/* HitSum site. Dark only, like the app. Tokens match the app's palette. */
:root {
  --bg: #121315;
  --surface: #1b1d1f;
  --line: #2a2d30;
  --text: #ecedee;
  --text-muted: #9aa0a6;
  --lime: #c8f542;
  --ink-on-lime: #121315;
  --radius: 14px;
  --gutter: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }
.lime { color: var(--lime); }
.eyebrow {
  color: var(--text-muted); font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75em;
}

/* Header & footer */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { width: 88px; height: auto; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav nav a:hover { color: var(--lime); }

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; font-size: 0.9rem; }
.site-footer p { margin: 0 0 0.5em; }
.site-footer a { color: var(--text); }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; }

/* Hero */
.hero { padding-block: 40px 56px; display: grid; gap: 40px; align-items: center; }
.hero .lede { font-size: clamp(1.1rem, 2.6vw, 1.35rem); }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding-block: 72px; }
}

/* CTA */
.cta { margin-top: 28px; }
.cta-pill {
  display: inline-block; background: var(--lime); color: var(--ink-on-lime);
  font-weight: 700; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
.cta-note { color: var(--text-muted); font-size: 0.95rem; margin-top: 12px; }

/* Screenshots */
.phone {
  width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 12% / 5.5%; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}
.phones { display: flex; gap: 16px; justify-content: center; }
.phones .phone { max-width: 260px; }

/* Feature rows */
.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
.feature p { color: var(--text-muted); }
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--flip > :first-child { order: 2; }
}

/* Stats */
.stat { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0; }
.stat-row div { display: flex; flex-direction: column; }
.stat-row .label { color: var(--text-muted); font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.stat-row .value { font-size: 1.9rem; }
.stat-row .measured { color: var(--lime); }
.stat-row .estimated { color: var(--text-muted); }
.est {
  font: 700 0.7rem/1 var(--sans); letter-spacing: 0.08em; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 8px; vertical-align: middle;
}

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border-radius: var(--radius);
  padding: 20px 20px 20px 68px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink-on-lime);
  font: 700 1rem/32px var(--mono); text-align: center;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--text-muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Two columns */
.split { display: grid; gap: 16px; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card--lime { box-shadow: inset 0 0 0 2px var(--lime); }
.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin: 0.35em 0; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--lime); font: 400 1.5rem/1 var(--mono);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq details > p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); }

/* Long-form pages */
.prose { max-width: 42em; padding-top: 40px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 4vw, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose figure { margin: 24px 0; }
.prose figcaption { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; text-align: center; }
.prose dl { margin: 0; }
.prose dt { font-weight: 700; margin-top: 1.2em; }
.prose dd { margin: 0.3em 0 0; color: var(--text-muted); }
.toc { background: var(--surface); border-radius: var(--radius); padding: 16px 20px 16px 40px; }
/* Reserved for the in-app tutorial photos; hidden until a photo replaces it. */
.photo-slot { display: none; }
figure:has(> .photo-slot:only-child) { display: none; }
.nowrap { white-space: nowrap; }

/* Tables (privacy policy) */
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: 600; }

/* Install band on inner pages */
.cta-band { margin-top: 56px; }

.cta-band .card { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band p { margin: 0; font-weight: 600; }

/* Below 360px the pill is wider than the column: let it wrap. */
@media (max-width: 359px) {
  .cta-pill { white-space: normal; text-align: center; padding: 12px 18px; }
}

/* Setup video (vertical YouTube Short) */
.video-frame { margin: 0 auto; width: 100%; max-width: 320px; }
.video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 0;
  border-radius: 24px; background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}
.setup-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) {
  .setup-grid { grid-template-columns: 320px 1fr; gap: 64px; }
  .steps.steps--stacked { grid-template-columns: 1fr; }
}

/* Preview clips use the .phone frame; videos need an explicit box. */
video.phone { display: block; height: auto; background: var(--surface); object-fit: cover; }
.phones .phone { min-width: 0; flex: 1 1 0; }
