/* ============================================================
   timmygrimberg.com — "Signal" design system
   Ground #FBFBFD · Ink #101425 · Cobalt #1D4ED8 · Teal #0E9F8C
   ============================================================ */

:root {
  --bg: #FBFBFD;
  --ink: #101425;
  --body: #3C4258;
  --muted: #4B5065;
  --subtle: #9DA2B8;
  --line: #E8E9F0;
  --cobalt: #1D4ED8;
  --cobalt-soft: #E7EDFB;
  --teal: #0E9F8C;
  --teal-soft: #E6F4F2;
  --signal: #34D399;
  --amber: #E8B75A;
  --panel: #101425;
  --panel-2: #181D33;
  --panel-line: #262B45;
  --panel-text: #C7CCE0;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-panel: 0 16px 40px rgba(16, 20, 37, .18);
  --shadow-card: 0 1px 2px rgba(16, 20, 37, .05), 0 4px 16px rgba(16, 20, 37, .06);
  --font-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.grad { background: linear-gradient(90deg, var(--cobalt), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--cobalt);
  background: var(--cobalt-soft); padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo i { font-style: normal; color: var(--cobalt); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--cobalt); color: #fff !important; font-weight: 600 !important;
  padding: 9px 18px; border-radius: 9px; transition: background .15s ease;
}
.nav-cta:hover { background: #1a44be; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-size: 16px; line-height: 1; }

/* ---------- buttons ---------- */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px; transition: transform .12s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c2340; }
.btn-secondary { border: 1.5px solid #D6D9E4; color: var(--ink); background: rgba(255, 255, 255, .72); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0c8a7a; }

/* ---------- hero (homepage) ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,251,253,.96) 0%, rgba(251,251,253,.82) 44%, rgba(251,251,253,.35) 100%); }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 84px 88px; }
.hero .sub { font-size: 17.5px; color: var(--muted); max-width: 48ch; margin-bottom: 28px; }

/* ---------- instrument panel ---------- */
.panel {
  background: var(--panel); border-radius: var(--radius-lg); padding: 26px;
  color: var(--panel-text); box-shadow: var(--shadow-panel); font-size: 13.5px;
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7C82A0; margin-bottom: 18px; font-weight: 600; }
.panel-score { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.gauge { width: 82px; height: 82px; border-radius: 50%; flex: none; background: conic-gradient(var(--signal) 0 74%, var(--panel-line) 74% 100%); display: flex; align-items: center; justify-content: center; }
.gauge > div { width: 60px; height: 60px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--signal); }
.panel-score p { margin: 0; font-size: 13px; line-height: 1.55; max-width: none; }
.panel-score b { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }
.panel-rows { display: grid; gap: 8px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; background: var(--panel-2); border-radius: 9px; padding: 10px 14px; }
.panel-row b { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; }
.ok { color: var(--signal); } .mid { color: var(--amber); }
.panel-note { margin-top: 14px; font-size: 11px; color: #7C82A0; }

/* ---------- proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 26px 24px; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: none; }
.proof-item b { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.proof-item span { font-size: 13px; color: var(--muted); }

/* ---------- company logos band ---------- */
.logos-band { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.logos-label { display: block; text-align: center; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); font-weight: 600; margin-bottom: 24px; }
.logos-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos-track { display: flex; width: max-content; animation: logos-scroll 26s linear infinite; }
.logos-track:hover { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; }
.logos-set img { width: auto; filter: grayscale(1); opacity: .55; transition: filter .15s ease, opacity .15s ease; }
.logos-set img:hover { filter: none; opacity: 1; }
.logo-icon { height: 40px; }
.logo-boxed { height: 36px; }
.logo-word { height: 30px; }
.logo-wide { height: 24px; }
@keyframes logos-scroll { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; width: 100%; justify-content: center; }
  .logos-set[aria-hidden] { display: none; }
}
@media (max-width: 720px) {
  .logos-set { gap: 42px; padding-right: 42px; }
  .logo-icon { height: 32px; }
  .logo-boxed { height: 29px; }
  .logo-word { height: 24px; }
  .logo-wide { height: 19px; }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card); display: block; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(16, 20, 37, .1); border-color: #D6D9E4; }
.card-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--cobalt-soft); color: var(--cobalt); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.card:nth-child(even) .card-ic { background: var(--teal-soft); color: var(--teal); }
.card h2, .card h3 { margin-bottom: 8px; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.card .card-more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--cobalt); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--teal); display: block; margin-bottom: 12px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- media band (hub pages) ---------- */
.media-band { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-panel); margin: 8px 0 40px; }
.media-band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- pillar hero ---------- */
.crumbs { font-size: 13px; color: var(--subtle); padding-top: 26px; }
.crumbs a { color: var(--subtle); }
.crumbs b { color: var(--muted); font-weight: 600; }
.pillar-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; padding: 26px 0 64px; }
.pillar-hero .imgcard { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-panel); position: sticky; top: 90px; }
.pillar-hero .imgcard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* answer-first block — the GEO-quotable paragraph */
.answer {
  border-left: 3px solid var(--teal); background: var(--teal-soft);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 0 0 26px;
  font-size: 16px; line-height: 1.62; color: #22304A; max-width: 58ch;
}
.answer b, .answer strong { color: var(--ink); }
.ticks { display: flex; gap: 22px; margin-top: 22px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; padding: 0; list-style: none; }
.ticks li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* ---------- prose (long-form sections) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 34px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--body); max-width: 66ch; }
.prose li { margin: 6px 0; }
.prose .stat-callout {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--cobalt);
  border-radius: 0 10px 10px 0; padding: 16px 22px; margin: 26px 0; font-size: 15px;
}
.prose .stat-callout b { color: var(--ink); }

/* ---------- service item grids (inside .prose) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 10px; }
.svc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-card); }
.svc-item .n { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.svc-item h3 { font-size: 15.5px; margin: 0 0 8px; line-height: 1.3; }
.svc-item p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: none; line-height: 1.6; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 22px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--subtle); font-size: 17px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 22px 18px; font-size: 14.5px; color: var(--muted); }
.faq .faq-a p { margin: 0 0 .7em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--panel); border-radius: var(--radius-lg); padding: 52px 48px; color: var(--panel-text); box-shadow: var(--shadow-panel); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #9BA1BE; margin: 0; font-size: 15px; }
.cta-band .btns { justify-content: flex-end; }

/* ---------- tools strip ---------- */
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tool-link {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.tool-link:hover { text-decoration: none; transform: translateY(-2px); border-color: #D6D9E4; }
.tool-link .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
.tool-link b { font-size: 14.5px; color: var(--ink); display: block; }
.tool-link span { font-size: 12.5px; color: var(--subtle); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; background: #fff; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; }
.footer-in p { color: var(--subtle); font-size: 13.5px; max-width: 34ch; }
.footer-col b { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); padding: 3.5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base-in { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--subtle); flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .pillar-hero, .cta-band { grid-template-columns: 1fr; }
  .pillar-hero .imgcard { position: static; order: -1; max-width: 560px; }
  .hero-media img, .hero-media video { object-position: 70% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(251,251,253,.94) 0%, rgba(251,251,253,.86) 100%); }
  .cta-band .btns { justify-content: flex-start; }
  .proof-in { grid-template-columns: repeat(2, 1fr); }
  .proof-item { padding-left: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .proof-item:nth-last-child(-n+2) { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 16px 24px 20px; gap: 14px; box-shadow: 0 12px 24px rgba(16,20,37,.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 52px 0; }
  .cta-band { padding: 36px 28px; }
}
