/* ============================================================================
   Sprig Edit tester-recruiting microsite — brand theme.

   GPR ships a neutral, tokenized base (Design Brief §9, D-22). Each recruiting
   microsite is a *theme* over that base: its own palette, type, and voice. This
   file is Sprig Edit's — a fresh blank page with one green sprig on it: crisp,
   minimal, ink-on-white, monospace accents for the markdown motif. Deliberately
   sparer than Pigeonpile's papery warmth or Away Team's travel brights, because
   the app itself manages exactly one document. Swapping this stylesheet re-skins
   the whole funnel without touching the signup logic. No external fonts or
   assets are loaded (CSP-safe, fast on Pages).
   ========================================================================== */

:root {
  /* Ground — a fresh sheet: cool near-white with the faintest green cast */
  --bg: #f6f8f3;
  --bg-tint: #eef3e9;
  --surface: #ffffff;
  --ink: #1d221c;
  --muted: #5d675b;
  --border: #dde5d8;

  /* Primary — sprig green (links, CTAs, the shoot on the page) */
  --primary: #3a7d54;
  --primary-hover: #2f6845;
  --primary-ink: #ffffff;

  /* Accent — tender new-leaf green (highlights, chips, ticks) */
  --accent: #a9cf6f;
  --accent-soft: #eaf3da;

  /* Functional status (reserved) */
  --ok: #2f7d4f;
  --warn: #9a6a10;
  --err: #b3402f;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(29, 34, 28, 0.08);
  --shadow-sm: 0 3px 10px rgba(29, 34, 28, 0.06);
  --maxw: 1080px;

  /* Clean system sans everywhere; monospace accents carry the markdown motif */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 84% -6%, #f0f6e6 0%, rgba(240, 246, 230, 0) 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 0.5em; }
h3 { font-size: 1.16rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
code, .mono { font-family: var(--font-mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font: inherit; font-weight: 700; border: 0; border-radius: 999px;
  padding: 13px 24px; text-decoration: none; transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--surface); }

/* ---- Nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 9px 18px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art .art-frame { width: 100%; }
/* The mascot SVGs' width/height attributes give the img an intrinsic size;
   without one, the auto-margin-centered .hero-art collapses to 0x0 on mobile. */
.hero-art .art-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ---- Platform badges -------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.badges li {
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
}
.hero .badges { justify-content: flex-start; }
@media (max-width: 880px) { .hero .badges { justify-content: center; } }

/* ---- Sections --------------------------------------------------------- */
section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 62ch; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }

/* ---- Cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
/* Mode cards ("One document, three ways to see it") — the ⌘-key chip is the
   app's own UI language, so the cards read like the editor's mode switcher. */
.mode-card h3 { display: flex; align-items: center; gap: 10px; }
.mode-card .key {
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; flex: 0 0 auto;
  display: grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px;
  border-radius: 8px; background: var(--accent-soft); color: var(--primary);
  border: 1px solid var(--border); border-bottom-width: 2.5px;
}
.mode-card .tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }

/* ---- Steps ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 12px; }
.step .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 800; margin-bottom: 14px;
}

/* ---- Feature list ----------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; margin-top: 2px;
}

/* ---- Signup form ------------------------------------------------------ */
.signup-band { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
label { display: block; margin: 16px 0 5px; font-weight: 700; font-size: 0.9rem; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; background: var(--bg); color: var(--ink);
}
input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 1px; border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 400; font-size: 0.95rem; }
.check input { margin-top: 4px; flex: 0 0 auto; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
#result { margin-top: 16px; min-height: 1.2em; }
.ok { color: var(--ok); font-weight: 600; }
.err { color: var(--err); font-weight: 600; }
.turnstile-slot { margin-top: 16px; }

/* ---- FAQ -------------------------------------------------------------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 14px; margin: 0; color: var(--muted); }

/* ---- Footer ----------------------------------------------------------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer a { color: var(--muted); }
.powered { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.powered img { height: 22px; }

/* ---- Art placeholder frame ------------------------------------------- */
/* Every guinea-pig illustration below is TEMPORARY placeholder art. Real
   cartoon art is tracked in ART-NEEDED.md. The dashed frame + label make the
   gap obvious in review builds; remove `.is-placeholder` styling when final art
   lands (or simply drop in the real SVG at the same path). */
.is-placeholder { outline: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 6px; border-radius: var(--radius); position: relative; }
.is-placeholder::after {
  content: "placeholder art"; position: absolute; bottom: 8px; right: 10px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--surface); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border);
}

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