/* ============================================================================
   Away Team tester-recruiting microsite — brand theme.

   A theme over GPR's neutral tokenized base (Design Brief §9, D-22). Away Team's
   world is travel + expedition: bright, warm, horizon-and-sunset, mobile-first —
   deliberately distinct from Pigeonpile's papery, bookish skin. Swapping this
   stylesheet re-skins the whole funnel without touching the signup logic. No
   external fonts/assets (CSP-safe, fast on Pages).
   ========================================================================== */

:root {
  /* Ground — pale sky + deep teal ink */
  --bg: #eaf4f6;
  --bg-tint: #ffffff;
  --surface: #ffffff;
  --ink: #123039;
  --muted: #567480;
  --border: #d3e6ea;

  /* Primary — ocean teal (CTAs, headings, links) */
  --primary: #0e7c86;
  --primary-hover: #0b656e;
  --primary-ink: #ffffff;

  /* Accent — sunset coral (energy, highlights, the "away team" pins) */
  --accent: #f4693b;
  --accent-hover: #e2551f;
  --accent-soft: #ffe7dd;

  /* Functional status (reserved) */
  --ok: #1f8a5b;
  --warn: #b5760a;
  --err: #c23b26;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 14px 34px rgba(14, 48, 57, 0.12);
  --shadow-sm: 0 4px 14px rgba(14, 48, 57, 0.08);
  --maxw: 1080px;

  /* Rounded, friendly sans throughout — travel-app warmth */
  --font-display: "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 12% -6%, #d5edf0 0%, rgba(213, 237, 240, 0) 62%),
    radial-gradient(900px 420px at 95% 0%, #ffe9e0 0%, rgba(255, 233, 224, 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.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.4rem); margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-hover); 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: 800; border: 0; border-radius: 999px; padding: 13px 26px; 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-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hover); }
.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) 84%, transparent);
  backdrop-filter: saturate(150%) blur(9px);
  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: 700; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 9px 20px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.22rem; 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: 28px; 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: 800; color: var(--primary);
  background: var(--surface); border: 1px solid var(--border); padding: 5px 13px; 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: 60ch; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.tint { background: linear-gradient(180deg, #ffffff, 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-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); }
.feature .fic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hover); font-size: 1.4rem; margin-bottom: 14px;
}

/* ---- Steps ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step .n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* ---- Checklist -------------------------------------------------------- */
.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: 8px; background: var(--accent-soft);
  color: var(--accent-hover); display: grid; place-items: center; font-weight: 800; margin-top: 2px;
}

/* ---- Signup form ------------------------------------------------------ */
.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: #f7fbfc; color: var(--ink);
}
input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, 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: 700; }
.err { color: var(--err); font-weight: 700; }
.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: 800; 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(--accent); 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 (identical mechanism to Pigeonpile) -------- */
.is-placeholder { outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 6px; border-radius: var(--radius); position: relative; }
.is-placeholder::after {
  content: "placeholder art"; position: absolute; bottom: 8px; right: 10px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-hover); 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; } }
