/* ============================================================================
   GritGiggs — styles.css
   ----------------------------------------------------------------------------
   Joy: you normally don't need to edit this. To re-theme the whole site,
   change the colours in the :root block right below (one place changes all).
   Built mobile-first (designed for a ~380px phone first, then scaled up).
   ============================================================================ */

/* ---------------------------------------------------------------------------
   THEME TOKENS  — change these to re-skin the entire site
   --------------------------------------------------------------------------- */
:root {
  /* Brand palette (locked) */
  --color-primary-dark: #0E4F4F;   /* Dark Teal — hero + footer + dark bands */
  --color-primary-darker: #0A3D3D; /* deeper teal for hovers/depth */
  --color-tint: #E8F5F3;           /* Teal Tint — alternating section backgrounds */
  --color-accent: #20B2A0;         /* GritGiggs teal — button fills, borders, icons (locked brand colour) */
  --color-accent-strong: #1A9A8B;  /* accent hover/active (darker GritGiggs teal) */
  --color-white: #FFFFFF;
  --color-ink: #14110F;            /* Near-black body text                                 ⚠️ Joy: confirm exact hex vs brand kit */

  /* Accessible (AA) helpers derived from the palette */
  --color-accent-ink:  #0F766E;    /* readable accent TEXT on light backgrounds (bright accent fails contrast for text) */
  --color-accent-light:#5EEAD4;    /* accent used ON the dark teal hero (eyebrows, highlighted word) */
  --color-muted:       #5A6664;    /* muted body text on light (passes AA on white) */
  --color-line:        #DCE7E5;    /* hairline borders on light surfaces */
  --cta-text:          #06312D;    /* text colour on bright-accent buttons (≈7:1 contrast). If you DARKEN --color-accent past ~#0F766E, switch this to var(--color-white). */

  /* Type */
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-pad: clamp(56px, 9vw, 112px);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10,40,40,.06), 0 4px 14px rgba(10,40,40,.06);
  --shadow-md: 0 10px 30px rgba(10,40,40,.10), 0 2px 8px rgba(10,40,40,.06);
  --shadow-lg: 0 24px 60px rgba(10,40,40,.16);
  --header-h: 64px;
}

/* ---------------------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-accent-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------------------
   UTILITIES
   --------------------------------------------------------------------------- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--color-tint); }
.visually-hidden, .skip-link {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 12px 18px; background: var(--color-white); color: var(--color-ink);
  border-radius: 10px; box-shadow: var(--shadow-md); z-index: 1000; font-weight: 600;
}
/* honeypot — hidden from people, still in the DOM for dumb bots (no off-screen
   positioning, so it can never create phantom horizontal scroll) */
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-ink);
  margin-bottom: .75rem;
}
.accent { color: var(--color-accent-ink); }              /* readable highlight on light bg */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.55rem); }
.section-head .eyebrow { margin-bottom: .6rem; }

/* ---------------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.45em; border: 2px solid transparent; border-radius: var(--radius-pill);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.btn .btn-icon { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--color-accent); color: var(--cta-text); box-shadow: 0 6px 18px rgba(32,178,160,.32); }
.btn-accent:hover { background: var(--color-accent-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32,178,160,.38); }

.btn-primary { background: var(--color-primary-dark); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-darker); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-on-dark { background: var(--color-white); color: var(--color-primary-dark); }
.btn-on-dark:hover { background: var(--color-tint); transform: translateY(-2px); }

/* disabled survey buttons (when a Tally URL hasn't been set yet) */
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(.2); }
.btn.is-disabled:hover { transform: none; }

/* ---------------------------------------------------------------------------
   HEADER (A)
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
  padding-block: 10px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px); box-shadow: var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--color-white); }
.brand img { height: 34px; width: auto; }
.brand .brand-mark { height: 30px; width: auto; flex: 0 0 auto; }
.brand--footer .brand-mark { height: 34px; }
.brand-accent { color: var(--color-accent-light); }
.site-header.scrolled .brand { color: var(--color-ink); }
.site-header.scrolled .brand-accent { color: var(--color-accent-ink); }
.header-cta { padding: .7em 1.15em; font-size: .95rem; }

/* ---------------------------------------------------------------------------
   HERO (B)
   --------------------------------------------------------------------------- */
.hero { position: relative; background: var(--color-primary-dark); color: var(--color-white); padding-top: calc(var(--header-h) + clamp(28px, 6vw, 64px)); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 82% 12%, rgba(32,178,160,.42), transparent 60%),
    radial-gradient(50% 50% at 8% 92%, rgba(94,234,212,.20), transparent 60%),
    linear-gradient(180deg, #0E4F4F 0%, #0C4646 100%);
}
.hero-inner { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-eyebrow { color: var(--color-accent-light); }
.hero-title { font-size: clamp(2.15rem, 6.4vw, 3.7rem); color: var(--color-white); max-width: 16ch; }
.hero-title .accent { color: var(--color-accent-light); }
.hero-subhead { margin-top: 1.1rem; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 46ch; }

/* ---------------------------------------------------------------------------
   EMAIL FORM (shared)
   --------------------------------------------------------------------------- */
.form-shell { margin-top: 1.75rem; max-width: 34rem; }
.email-form { display: block; }
.email-row { display: flex; flex-direction: column; gap: .65rem; }
.email-input {
  flex: 1 1 auto; width: 100%; font-family: var(--font-body); font-size: 1.02rem;
  padding: .9rem 1.05rem; border-radius: var(--radius-sm); border: 2px solid var(--color-line);
  background: var(--color-white); color: var(--color-ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.email-input::placeholder { color: #8A9694; }
.email-input:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(32,178,160,.30); }
.email-input[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.18); }
.email-submit { width: 100%; }

.consent { display: flex; align-items: flex-start; gap: .6rem; margin-top: .9rem; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.consent-box { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .12rem; accent-color: var(--color-accent); cursor: pointer; }
.trust-line { margin-top: .8rem; font-size: .85rem; color: var(--color-muted); }

.form-status { margin-top: .85rem; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.is-error { color: #E66A5A; }
.form-status.is-success { color: var(--color-accent-ink); }

/* success: collapse the inputs, leave a clean confirmation */
.email-form.is-success .email-row,
.email-form.is-success .consent,
.email-form.is-success .trust-line { display: none; }
.email-form.is-success .form-status { font-size: 1.1rem; }

/* form colours when placed on the DARK hero */
.hero .consent, .hero .trust-line { color: rgba(255,255,255,.78); }
.hero .form-status.is-success { color: var(--color-accent-light); }
.hero .form-status.is-error { color: #FFC9C0; }

/* wider screens: input + button on one row */
@media (min-width: 560px) {
  .email-row { flex-direction: row; align-items: stretch; }
  .email-submit { width: auto; flex: 0 0 auto; }
}

/* ---------------------------------------------------------------------------
   HERO VISUAL
   --------------------------------------------------------------------------- */
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: min(100%, 420px); height: auto; filter: drop-shadow(0 24px 50px rgba(0,0,0,.28)); }
.hero-visual img { width: min(100%, 460px); border-radius: var(--radius); box-shadow: var(--shadow-lg); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .hero-visual { justify-content: flex-end; }
}

/* ---------------------------------------------------------------------------
   CARDS / GRIDS
   --------------------------------------------------------------------------- */
.card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }

/* C. routing split */
.split-grid { display: grid; gap: 1.25rem; }
.split-card { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.split-card h3 { font-size: 1.5rem; margin-top: .35rem; }
.split-card p { color: var(--color-muted); }
.split-card .btn { margin-top: 1.25rem; }
.split-card--gritter { background: var(--color-tint); border-color: #CDE9E4; }
.split-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--color-primary-dark); color: var(--color-white); }
.split-icon .icon { width: 28px; height: 28px; }
.split-card--gritter .split-icon { background: var(--color-accent); color: var(--cta-text); }
@media (min-width: 760px) { .split-grid { grid-template-columns: 1fr 1fr; } }

/* D. benefits */
.grid-3 { display: grid; gap: 1.25rem; }
.benefit { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: var(--shadow-sm); }
.section--tint .benefit { background: var(--color-white); }
.benefit-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--color-tint); color: var(--color-accent-ink); margin-bottom: 1rem; }
.benefit-icon .icon { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.benefit p { color: var(--color-muted); font-size: 1rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* E. how it works */
.steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--cta-text); margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--color-muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* F. mission */
.section--mission { background: var(--color-primary-dark); color: var(--color-white); }
.section--mission h2 { color: var(--color-white); font-size: clamp(1.8rem, 4.4vw, 2.7rem); max-width: 18ch; }
.section--mission .eyebrow { color: var(--color-accent-light); }
.mission-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.mission-body { display: grid; gap: 1.1rem; }
.mission-body p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 60ch; }
.mission-body p:first-child { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: #fff; font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
@media (min-width: 900px) { .mission-inner { grid-template-columns: .9fr 1.1fr; align-items: start; } }

/* G. early-mover band */
.earlymover-inner { display: grid; gap: 1.5rem; align-items: center; }
.earlymover-text h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
.earlymover-text p { color: var(--color-muted); margin-top: .6rem; max-width: 44ch; }
.counter { display: flex; align-items: baseline; gap: .6rem; }
.counter-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--color-accent-ink); line-height: 1; }
.counter-label { color: var(--color-muted); font-weight: 600; }
.earlymover-cta { justify-self: start; }
@media (min-width: 860px) { .earlymover-inner { grid-template-columns: 1fr auto; } .earlymover-cta { justify-self: end; } .earlymover.has-counter .earlymover-inner { grid-template-columns: 1fr auto auto; } }

/* H. survey CTA band */
.survey-band { background: var(--color-primary-dark); color: var(--color-white); }
.survey-inner { text-align: center; max-width: 52rem; margin-inline: auto; }
.survey-band-title { color: var(--color-white); font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.survey-band-body { color: rgba(255,255,255,.84); margin-top: .9rem; font-size: 1.1rem; }
.survey-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.9rem; }
.survey-buttons .btn { flex: 1 1 240px; max-width: 340px; }

/* I. final CTA */
.final-inner { text-align: center; }
.final-title { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin-bottom: .4rem; }
.final-title .accent { display: block; }
.final-sub { color: var(--color-muted); margin: .8rem auto 1.7rem; max-width: 42ch; font-size: 1.05rem; }
.final-cta .form-shell { margin-inline: auto; }
.final-cta .email-form { text-align: left; }
.final-cta .trust-line, .final-cta .form-status { text-align: center; }
.final-cta .consent { justify-content: flex-start; }

/* ---------------------------------------------------------------------------
   FOOTER (J)
   --------------------------------------------------------------------------- */
.site-footer { background: var(--color-primary-darker); color: rgba(255,255,255,.82); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand--footer { font-size: 1.5rem; }
.footer-tagline { margin-top: .7rem; max-width: 36ch; color: rgba(255,255,255,.72); }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-email { color: var(--color-white); font-weight: 600; text-decoration: none; font-size: 1.1rem; width: max-content; }
.footer-email:hover { color: var(--color-accent-light); }
.socials { display: flex; gap: .7rem; }
.social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: var(--color-white); transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.social-link:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--cta-text); transform: translateY(-2px); }
.social-link .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .9rem; }
.footer-legal a { color: rgba(255,255,255,.82); }
.footer-legal a:hover { color: var(--color-accent-light); }
.footer-note { color: rgba(255,255,255,.6); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.3fr 1fr; align-items: start; } .footer-links { align-items: flex-end; text-align: right; } }

/* ---------------------------------------------------------------------------
   SCROLL-REVEAL ANIMATION  (only when JS is on; disabled for reduced-motion)
   --------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   REDUCED MOTION  — respect the user's OS setting
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .social-link:hover { transform: none !important; }
}
