/* ScouterSynth — one-page marketing site
   Palette, type and voice are taken verbatim from the app's OG theme
   and the in-app manual. See Parts 2-4 of the brief. */

:root {
  /* --- The app's skin (OG theme) --- */
  --screen: #04170C;        /* display background, near-black green */
  --screen-band: #0C2E1A;   /* every fourth grid row */
  --screen-dim: #3FA86A;    /* secondary text on the display */
  --screen-bright: #EAFFEF; /* primary text on the display */
  --accent: #FFE23A;        /* the cursor / playhead — one thing at a time */
  --accent-warm: #FFA83A;   /* effect commands, a second accent, sparingly */
  --mint: #7FE3A5;          /* instrument numbers, a quiet tint */
  --shell: #E8EBE8;         /* the console's plastic body */
  --control: #B4BCB6;       /* the D-pad and the SELECT/START pills */
  --bezel: #7C857E;         /* the rim around the screen */
  --button: #3FBF6B;        /* the A and B buttons */

  /* --- The manual's page (user guide) --- */
  --ground: #F1F2EC;        /* page background */
  --panel: #FBFBF7;         /* cards, raised surfaces */
  --sunk: #E7E9E0;          /* inline code, insets */
  --ink: #171A14;           /* body text */
  --soft: #5C6256;          /* captions, secondary text */
  --faint: #868C7E;         /* the quietest text there is */
  --rule: #D8DBD0;          /* hairlines and borders */
  --link: #306230;          /* links and small emphasis */
  --wash: #E4EBD7;          /* callout background */
  --note-bg: #F6F3E7;       /* the guide's yellow aside */
  --note-rule: #DED3AE;     /* its border */
  --note-ink: #7C6420;      /* its text */

  --shadow: 0 1px 2px rgba(23, 26, 20, .06), 0 8px 24px -12px rgba(23, 26, 20, .18);

  /* --- Type --- */
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: ui-serif, "New York", Iowan Old Style, Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 62rem;
  --radius-shell: 22px; /* soft plastic corners */
  --radius-screen: 8px; /* the screen's small radius */
}

/* --- Optional dark theme, derived from the app's own dark screen colours.
   Not an inversion of the page: it becomes the display. --- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #04170C;      /* the screen itself */
    --panel: #0C2E1A;       /* one step up, the grid band */
    --sunk: #062011;
    --ink: #EAFFEF;         /* primary display text */
    --soft: #7FE3A5;        /* mint, quiet tint */
    --faint: #3FA86A;       /* dimmed display text */
    --rule: #123c23;
    --link: #7FE3A5;        /* mint reads as a link on dark */
    --wash: #0C2E1A;
    --note-bg: #12251a;
    --note-rule: #2a4a34;
    --note-ink: #d9c98a;
    --shell: #0C2E1A;
    --control: #123c23;
    --bezel: #1a4a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Functional / small text uses the display (system) stack. */
h1, h2, h3, .eyebrow, .btn, nav, .caption, .stat b, footer .meta {
  font-family: var(--display);
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Anything quoted from the app: chords, page names, values. */
code, .m { font-family: var(--mono); }
.m {
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .05em .34em;
  font-size: .88em;
  color: var(--ink);
  white-space: nowrap;
}

kbd {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 5px; padding: .16em .44em .1em;
  white-space: nowrap;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
}

/* ---------- Buttons ----------
   The primary CTA is styled after the app's green A/B buttons, so the
   scarce yellow is never spent on chrome. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--button);
  color: #05230f;
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--panel); }

.todo {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--note-ink);
  background: var(--note-bg);
  border: 1px dashed var(--note-rule);
  border-radius: 5px;
  padding: .12em .5em;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--screen-band);
  position: sticky;
  top: 0;
  background: var(--screen);
  z-index: 10;
  }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
  }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  }
.brand img {
  height: 20px;
  width: auto;
  display: block;
  }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
  .hero .wrap {
  display: block;
  }
  .hero-copy { max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: .6rem 0 0;
  font-weight: 800;
}
.hero .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink);
  margin: 1.1rem 0 0;
  max-width: 34ch;
}
.hero .subhook {
  color: var(--soft);
  margin: .9rem 0 0;
  max-width: 42ch;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
}
.hero .platform {
  font-family: var(--display);
  font-size: .85rem;
  color: var(--faint);
  margin-top: 1rem;
}

/* The one yellow element per viewport: a cursor marking the CTA. */
.cursor {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.hero-shot {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
}
.hero-shot img {
  width: 100%;
  border-radius: var(--radius-shell);
  box-shadow: var(--shadow);
}
.hero-shot figcaption {
  font-family: var(--display);
  font-size: .8rem;
  color: var(--faint);
  text-align: center;
  margin-top: .7rem;
}

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { max-width: 46ch; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: .3rem 0 0;
  font-weight: 800;
}
.section-head p { color: var(--soft); margin: .7rem 0 0; }

.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- "Looks like" screenshot gallery ----------
   The screenshots already carry the shell and controls, so they sit on the
   page directly. No card chrome, no dark frame, no fake UI. */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: 2rem;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-screen);
}
.shot figcaption {
  font-family: var(--display);
  font-size: .84rem;
  color: var(--soft);
  margin-top: .7rem;
  line-height: 1.5;
}
.shot figcaption .m {
  font-size: .74rem;
  letter-spacing: .04em;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 .1rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: .55rem;
}
.card h3 .tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--mint-ink, var(--link));
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .05em .4em;
  letter-spacing: .04em;
}
.card p { margin: .5rem 0 0; }

/* ---------- Callout (the two hooks) ---------- */
.callout {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}
.callout .hook h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
}
.callout .hook p { margin: 0; }
.callout .hook .chords {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ---------- Honesty aside ---------- */
.note {
  background: var(--note-bg);
  border: 1px solid var(--note-rule);
  border-left-width: 3px;
  border-radius: 8px;
  color: var(--note-ink);
  padding: 1.1rem 1.3rem;
  margin-top: 1.5rem;
  font-size: .98rem;
}
.note b { color: var(--note-ink); }

/* ---------- Support / doc page ----------
   Long-form manual voice: serif prose on paper, generous measure. */
.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 44rem;
}
.doc h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
}
.doc h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -.01em;
  margin: 2.4rem 0 .4rem;
  font-weight: 700;
}
.doc .lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink);
  margin: 1rem 0 0;
}
  .doc .date {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  margin: .5rem 0 0;
  }
  .doc p { margin: .8rem 0 0; }
.doc dl { margin: .6rem 0 0; }
.doc dt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.3rem;
}
.doc dd {
  margin: .35rem 0 0;
  color: var(--soft);
}
.doc code {
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .05em .34em;
  font-size: .88em;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0 0;
}
.doc > footer {
  font-family: var(--display);
  font-size: .85rem;
  color: var(--faint);
  margin-top: 1.2rem;
}

/* ---------- Footer (this is the display: dark green) ---------- */
.site-footer {
  background: var(--screen);
  color: var(--screen-bright);
  border-top: 1px solid #0a2415;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.site-footer .wrap {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.site-footer .mark img {
  width: min(60vw, 15rem);
  opacity: .96;
}
.site-footer .tag {
  font-family: var(--mono);
  color: var(--screen-dim);
  font-size: .85rem;
  margin: 1rem 0 0;
  letter-spacing: .04em;
}
.site-footer .meta {
  font-size: .85rem;
  color: var(--screen-dim);
  text-align: right;
  line-height: 1.9;
}
.site-footer .meta .todo {
  background: transparent;
  color: var(--accent);
  border-color: #4a5a20;
}
.site-footer .btn-primary { margin-bottom: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  }
@media (max-width: 820px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; gap: 1.25rem; }
  .shot img { max-width: 22rem; margin-inline: auto; }
.site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
