/* ==========================================================================
   Green Plate Media — Design System
   gpm.css · v1.0 · derived from Brand Guide v1.0 (April 2026)

   Canonical source: design.md. If the two disagree, design.md wins.

   Token layers, in order:
     1. Brand tokens   --gpm-*      verbatim from the Brand Guide. Never edit.
     2. System tokens  --gpm-*      added here to fill gaps the guide leaves.
     3. Scale tokens   --space-* etc. surface-independent.
     4. Semantic tokens --surface, --text, --action ...  surface-DEPENDENT.

   Rule for all page code: use semantic tokens only. Never write a raw hex
   or a --gpm-* token in component CSS. That is what makes one component
   work on both a white band and a Forest band.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1 · BRAND TOKENS — verbatim from Brand Guide p.4
   ========================================================================== */

:root {
  --gpm-forest:       #1a3a1a;  /* primary dark surface            */
  --gpm-deep-green:   #111a11;  /* deepest surface                 */
  --gpm-vivid-green:  #2e7d32;  /* primary action — LIGHT surfaces */
  --gpm-mid-green:    #4caf50;  /* primary action — DARK surfaces  */
  --gpm-light-green:  #81c784;  /* text/links on dark              */
  --gpm-pale-green:   #c8e6c9;  /* tints, dividers, muted-on-dark  */
  --gpm-white:        #ffffff;
  --gpm-gold:         #c8a84b;  /* premium accent                  */
  --gpm-black:        #0d0f0d;

  /* ========================================================================
     2 · SYSTEM TOKENS — added by this design system, not in the guide.
        Each exists to solve a measured accessibility or state gap.
     ======================================================================== */

  /* Pressed/hover shade of Vivid Green. The guide names Mid Green as the
     hover colour, but white text on Mid Green is 2.78:1 (fail), so on light
     surfaces the button DARKENS instead of lightening. White on this: 6.79:1 */
  --gpm-vivid-green-dark: #25682a;
  --gpm-vivid-green-darker: #1f5c24;   /* active/pressed. White on this: 8.03:1 */

  /* Raised surface inside a Forest band. Nearly the same luminance as Forest
     by design — always pair with --border, never rely on fill alone. */
  --gpm-forest-raised: #224822;

  /* Neutral ramp. The guide has no greys at all; these are hue-matched to
     Deep Green so they never read as cold/blue next to the palette. */
  --gpm-ink-900: #0d0f0d;
  --gpm-ink-700: #2f3a2f;
  --gpm-ink-600: #4a564a;  /* 7.72:1 on white — secondary text      */
  --gpm-ink-500: #566356;  /* 6.34:1 on white — muted text          */
  --gpm-ink-400: #7d8a7d;  /* 3.62:1 — icons/borders only, NOT text */
  --gpm-ink-300: #a8b3a8;  /* strong borders                        */
  --gpm-ink-200: #d5ddd5;  /* default borders                       */
  --gpm-ink-100: #e6ebe6;  /* dividers, subtle fills                */
  --gpm-ink-50:  #f5f8f5;  /* off-white surface                     */

  /* Feedback. The guide has no error state. */
  --gpm-error:         #b3261e;  /* 6.54:1 on white  */
  --gpm-error-on-dark: #ff8a80;  /* 5.53:1 on Forest */

  /* ========================================================================
     3 · SCALE TOKENS — identical on every surface
     ======================================================================== */

  /* Type — family */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type — fluid ramp. Guide values are the DESKTOP end of each clamp;
     the min values are added here (the guide has no mobile sizes). */
  --fs-display:    clamp(2.5rem, 1.30rem + 5.1vw, 4rem);       /* 40 → 64 */
  --fs-h1:         clamp(2rem,   1.40rem + 2.6vw, 3rem);       /* 32 → 48 */
  --fs-h2:         clamp(1.5rem, 1.20rem + 1.3vw, 2rem);       /* 24 → 32 */
  --fs-h3:         clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);/* 18 → 22 */
  --fs-body-lg:    1rem;      /* 16px */
  --fs-body:       0.875rem;  /* 14px */
  --fs-caption:    0.75rem;   /* 12px */
  --fs-overline:   0.6875rem; /* 11px */

  --lh-display:  1.02;
  --lh-h1:       1.08;
  --lh-h2:       1.15;
  --lh-h3:       1.30;
  --lh-body:     1.60;
  --lh-caption:  1.40;

  --tr-display:  -0.04em;
  --tr-h1:       -0.03em;
  --tr-h2:       -0.025em;
  --tr-h3:       -0.01em;
  --tr-body:      0em;
  --tr-caption:   0.05em;
  --tr-overline:  0.22em;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500;
  --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;

  /* Space — 4px base */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  /* Band padding — vertical rhythm for full-width sections */
  --band-y: clamp(3.5rem, 2rem + 6vw, 7rem);   /* 56 → 112 */
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);/* 20 → 48  */

  /* Radius — buttons 6, cards 12; icons stay square per guide p.9 */
  --r-none: 0;
  --r-sm: 4px;    /* badges, tags, small chips        */
  --r-md: 6px;    /* buttons, inputs, selects         */
  --r-lg: 12px;   /* cards, images, media, panels     */
  --r-full: 999px;/* avatars and dots only            */

  /* Border widths — 1.5px matches the icon stroke spec */
  --bw-hair: 1px;
  --bw: 1.5px;

  /* Elevation — light surfaces only. On dark, use --border instead. */
  --shadow-sm:  0 1px 2px rgba(13,15,13,.06);
  --shadow-md:  0 4px 16px rgba(13,15,13,.08);
  --shadow-lg:  0 12px 32px rgba(13,15,13,.12);
  --shadow-bar: 0 -2px 16px rgba(13,15,13,.16);

  /* Motion */
  --ease: cubic-bezier(.2,.6,.3,1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 280ms;

  /* Layout */
  --container-max: 1200px;
  --container-prose: 42rem;   /* ~672px, keeps measure under 80ch */
  --container-narrow: 32.5rem;/* 520px — checkout/upsell columns  */

  /* Stacking */
  --z-base: 0; --z-header: 90; --z-stickybar: 100;
  --z-overlay: 200; --z-modal: 210; --z-toast: 300;
}

/* ==========================================================================
   4 · SEMANTIC TOKENS
   Light is the default. Any element with [data-surface="dark"] flips the
   whole set for itself and everything inside it.
   ========================================================================== */

:root,
[data-surface="light"] {
  --surface:        var(--gpm-white);
  --surface-sunken: var(--gpm-ink-50);
  --surface-raised: var(--gpm-white);
  --surface-tint:   var(--gpm-pale-green);

  --text:        var(--gpm-forest);    /* 12.62:1 */
  --text-muted:  var(--gpm-ink-600);   /*  7.72:1 */
  --text-subtle: var(--gpm-ink-500);   /*  6.34:1 */
  --text-invert: var(--gpm-white);

  --border:        var(--gpm-ink-200);
  --border-strong: var(--gpm-ink-300);
  --rule-accent:   var(--gpm-gold);

  --action:        var(--gpm-vivid-green);
  --action-hover:  var(--gpm-vivid-green-dark);
  --action-active: var(--gpm-vivid-green-darker);
  --action-text:   var(--gpm-white);

  --accent:  var(--gpm-vivid-green);
  --link:    var(--gpm-vivid-green);
  --focus:   var(--gpm-vivid-green);
  --error:   var(--gpm-error);

  --shadow-card: var(--shadow-sm);
  color-scheme: light;
}

[data-surface="dark"] {
  --surface:        var(--gpm-forest);
  --surface-sunken: var(--gpm-deep-green);
  --surface-raised: var(--gpm-forest-raised);
  --surface-tint:   rgba(200,230,201,.08);

  --text:        var(--gpm-white);       /* 12.62:1 */
  --text-muted:  var(--gpm-pale-green);  /*  9.39:1 */
  --text-subtle: var(--gpm-light-green); /*  6.27:1 */
  --text-invert: var(--gpm-forest);

  --border:        rgba(200,230,201,.18);
  --border-strong: rgba(200,230,201,.38);
  --rule-accent:   var(--gpm-gold);      /* 5.50:1 on Forest */

  --action:        var(--gpm-mid-green); /* 4.54:1 vs Forest — passes UI 3:1 */
  --action-hover:  var(--gpm-light-green);
  --action-active: var(--gpm-pale-green);
  --action-text:   var(--gpm-deep-green);/* 6.40:1 on Mid Green */

  --accent:  var(--gpm-mid-green);
  --link:    var(--gpm-light-green);
  --focus:   var(--gpm-light-green);
  --error:   var(--gpm-error-on-dark);

  --shadow-card: none;
  color-scheme: dark;
}

/* Deepest variant of the dark surface — for the sticky bar and footers */
[data-surface="deep"] {
  --surface: var(--gpm-deep-green);
}

/* ==========================================================================
   5 · RESET + BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--gpm-pale-green); color: var(--gpm-forest); }

/* ==========================================================================
   6 · TYPOGRAPHY
   ========================================================================== */

.gpm-display, .gpm-h1, .gpm-h2, .gpm-h3 { color: var(--text); text-wrap: balance; }

.gpm-display {
  font-size: var(--fs-display); font-weight: var(--fw-extrabold);
  line-height: var(--lh-display); letter-spacing: var(--tr-display);
}
.gpm-h1 {
  font-size: var(--fs-h1); font-weight: var(--fw-bold);
  line-height: var(--lh-h1); letter-spacing: var(--tr-h1);
}
.gpm-h2 {
  font-size: var(--fs-h2); font-weight: var(--fw-bold);
  line-height: var(--lh-h2); letter-spacing: var(--tr-h2);
}
.gpm-h3 {
  font-size: var(--fs-h3); font-weight: var(--fw-semibold);
  line-height: var(--lh-h3); letter-spacing: var(--tr-h3);
}
.gpm-body-lg {
  font-size: var(--fs-body-lg); font-weight: var(--fw-regular);
  line-height: var(--lh-body); letter-spacing: var(--tr-body);
}
.gpm-body {
  font-size: var(--fs-body); font-weight: var(--fw-regular);
  line-height: var(--lh-body); letter-spacing: var(--tr-body);
}
.gpm-caption {
  font-size: var(--fs-caption); font-weight: var(--fw-medium);
  line-height: var(--lh-caption); letter-spacing: var(--tr-caption);
  color: var(--text-muted);
}
.gpm-overline {
  display: block;
  font-size: var(--fs-overline); font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-overline); text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.gpm-lede { font-size: var(--fs-body-lg); color: var(--text-muted); max-width: var(--container-prose); }
.gpm-fine {
  font-size: var(--fs-caption); line-height: var(--lh-caption);
  color: var(--text-subtle); letter-spacing: 0;
}
.gpm-muted  { color: var(--text-muted); }
.gpm-subtle { color: var(--text-subtle); }
.gpm-nums   { font-variant-numeric: tabular-nums; }

/* Gold hairline used under headline blocks (Brand Guide cover page) */
.gpm-rule {
  width: 56px; height: 3px; border: 0;
  background: var(--rule-accent);
  margin: var(--space-6) 0;
}

/* ==========================================================================
   7 · LAYOUT
   ========================================================================== */

.gpm-band {
  background: var(--surface);
  color: var(--text);
  padding-block: var(--band-y);
}
.gpm-band--tight { padding-block: calc(var(--band-y) * .55); }
.gpm-band--flush { padding-block: 0; }

.gpm-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gpm-container--prose  { max-width: calc(var(--container-prose) + var(--gutter) * 2); }
.gpm-container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.gpm-stack > * + * { margin-top: var(--space-4); }
.gpm-stack-lg > * + * { margin-top: var(--space-8); }

.gpm-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) {
  .gpm-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gpm-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gpm-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   8 · BUTTONS
   ========================================================================== */

.gpm-btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 0 var(--space-6);
  border: var(--bw) solid transparent;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.gpm-btn:active { transform: translateY(1px); }

.gpm-btn--primary {
  background: var(--action);
  color: var(--action-text);
  border-color: var(--action);
}
.gpm-btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-text); }
.gpm-btn--primary:active { background: var(--action-active); border-color: var(--action-active); }

.gpm-btn--secondary {
  background: transparent;
  color: var(--action);
  border-color: var(--action);
}
.gpm-btn--secondary:hover { background: var(--action); color: var(--action-text); }

.gpm-btn--quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  font-weight: var(--fw-medium);
  padding-inline: var(--space-3);
}
.gpm-btn--quiet:hover { color: var(--text); background: var(--surface-tint); }

/* Decline link — used for "No thanks…" on the upsell and downsell pages.
   Deliberately not the flattest thing on the page: readable, underlined,
   still clearly subordinate to the primary CTA. */
.gpm-decline {
  display: inline-block;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  padding: var(--space-3) 0;
}
.gpm-decline:hover { color: var(--text); text-decoration-color: currentColor; }

.gpm-btn--sm { --btn-h: 36px; font-size: var(--fs-body); padding-inline: var(--space-4); }
.gpm-btn--lg { --btn-h: 56px; padding-inline: var(--space-8); }
.gpm-btn--block { display: flex; width: 100%; }

.gpm-btn[disabled], .gpm-btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.gpm-btn[data-loading="true"] { pointer-events: none; opacity: .8; }

/* Mobile: primary CTAs go full width and stay in the tap-target range */
@media (max-width: 599px) {
  .gpm-btn--primary, .gpm-btn--lg { display: flex; width: 100%; }
}

/* ==========================================================================
   9 · SURFACES: CARDS, PANELS, CALLOUTS
   ========================================================================== */

.gpm-card {
  background: var(--surface-raised);
  border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.gpm-card--pad-lg { padding: var(--space-8); }

/* Plan card — used for Monthly Growth / Monthly Core */
.gpm-plan {
  display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--surface-raised);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
}
.gpm-plan--featured { border-color: var(--accent); }
.gpm-plan--premium  { border-color: var(--rule-accent); }
.gpm-plan__price {
  font-size: var(--fs-h1); font-weight: var(--fw-extrabold);
  letter-spacing: var(--tr-h1); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gpm-plan__price span {
  font-size: var(--fs-body-lg); font-weight: var(--fw-medium);
  letter-spacing: 0; color: var(--text-muted);
}

/* Price callout — "$1,000 in Value. $250 Today." */
.gpm-callout {
  border: var(--bw) solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface-tint);
  padding: var(--space-6);
  text-align: center;
}
.gpm-callout__lead {
  font-size: var(--fs-h2); font-weight: var(--fw-extrabold);
  letter-spacing: var(--tr-h2); color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Quote / mission block — green keyline on the leading edge (Brand Guide) */
.gpm-quote {
  border-inline-start: 3px solid var(--accent);
  background: var(--surface-sunken);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.gpm-quote p { font-style: italic; color: var(--text); }
.gpm-quote cite {
  display: block; margin-top: var(--space-3);
  font-style: normal; font-size: var(--fs-caption);
  letter-spacing: var(--tr-caption); color: var(--text-muted);
}

/* Do / Don't rule blocks, carried over from the Brand Guide */
.gpm-rulecard {
  border-inline-start: 3px solid var(--accent);
  background: var(--surface-sunken);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.gpm-rulecard--dont { border-inline-start-color: var(--error); }
.gpm-rulecard__label {
  display: block; font-size: var(--fs-overline); font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-overline); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-1);
}
.gpm-rulecard--dont .gpm-rulecard__label { color: var(--error); }

/* Fine print under a CTA — Stripe billing notes */
.gpm-billing-note {
  border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-muted);
}

/* ==========================================================================
   10 · LISTS
   ========================================================================== */

.gpm-checklist { display: grid; gap: var(--space-3); }
.gpm-checklist li {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-body-lg); color: var(--text);
}
.gpm-checklist svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

.gpm-steps { counter-reset: gpmstep; display: grid; gap: var(--space-5); }
.gpm-steps li {
  counter-increment: gpmstep;
  display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4);
  align-items: start;
}
.gpm-steps li::before {
  content: counter(gpmstep);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: var(--bw) solid var(--accent);
  color: var(--accent);
  font-size: var(--fs-body); font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   11 · BADGES
   ========================================================================== */

.gpm-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--action-text);
  font-size: var(--fs-overline); font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-overline); text-transform: uppercase;
}
.gpm-badge--gold    { background: var(--rule-accent); color: var(--gpm-deep-green); }
.gpm-badge--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ==========================================================================
   12 · BEFORE / AFTER
   ========================================================================== */

.gpm-ba { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .gpm-ba { grid-template-columns: 1fr 1fr; } }

.gpm-ba__item { display: grid; gap: var(--space-3); }
.gpm-ba__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: var(--bw-hair) solid var(--border);
  background: var(--surface-sunken);
  aspect-ratio: 3 / 2;
}
.gpm-ba__frame img { width: 100%; height: 100%; object-fit: cover; }
.gpm-ba__frame .gpm-badge { position: absolute; top: var(--space-3); inset-inline-start: var(--space-3); }
.gpm-ba__label {
  font-size: var(--fs-overline); font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-overline); text-transform: uppercase;
  color: var(--text-muted);
}
.gpm-ba__item--after .gpm-ba__label { color: var(--accent); }

/* ==========================================================================
   13 · COUNTDOWN
   ========================================================================== */

.gpm-countdown { display: flex; gap: var(--space-3); align-items: flex-end; }
.gpm-countdown__unit { display: grid; justify-items: center; gap: var(--space-1); }
.gpm-countdown__num {
  min-width: 3ch;
  padding: var(--space-2) var(--space-3);
  border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  font-size: var(--fs-h3); font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1; text-align: center;
  color: var(--text);
}
.gpm-countdown__label {
  font-size: var(--fs-overline); letter-spacing: var(--tr-overline);
  text-transform: uppercase; color: var(--text-subtle);
}
.gpm-countdown--inline { gap: var(--space-2); }
.gpm-countdown--inline .gpm-countdown__num {
  border: 0; background: none; padding: 0;
  font-size: var(--fs-body-lg); min-width: 2ch;
}
.gpm-countdown--inline .gpm-countdown__label { font-size: 10px; }

/* ==========================================================================
   14 · STICKY BOTTOM BAR
   Hidden at load; add data-visible="true" once the hero scrolls out of view.
   ========================================================================== */

.gpm-stickybar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-stickybar);
  background: var(--surface);
  color: var(--text);
  border-top: 2px solid var(--rule-accent);
  box-shadow: var(--shadow-bar);
  padding: var(--space-2) var(--gutter);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease),
              opacity var(--dur-slow) var(--ease),
              visibility 0s linear var(--dur-slow);
}
.gpm-stickybar[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.gpm-stickybar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 40px;
}
.gpm-stickybar .gpm-btn { --btn-h: 40px; font-size: var(--fs-body); white-space: nowrap; }
@media (max-width: 599px) {
  .gpm-stickybar .gpm-btn { width: auto; display: inline-flex; }
}
/* Reserve room so the bar never covers the last CTA or the onboarding form */
body[data-stickybar="true"] { padding-bottom: 76px; }

/* ==========================================================================
   15 · FAQ — no JavaScript, no storage
   ========================================================================== */

.gpm-faq { border-top: var(--bw-hair) solid var(--border); }
.gpm-faq details { border-bottom: var(--bw-hair) solid var(--border); }
.gpm-faq summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer; list-style: none;
  font-size: var(--fs-h3); font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-h3); color: var(--text);
}
.gpm-faq summary::-webkit-details-marker { display: none; }
.gpm-faq summary::after {
  content: ""; flex: none;
  width: 12px; height: 12px;
  border-right: var(--bw) solid var(--accent);
  border-bottom: var(--bw) solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.gpm-faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.gpm-faq details > div { padding-bottom: var(--space-5); color: var(--text-muted); max-width: var(--container-prose); }

/* ==========================================================================
   16 · TABLE — order summary
   ========================================================================== */

.gpm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-lg); }
.gpm-table th, .gpm-table td {
  padding: var(--space-3) 0;
  border-bottom: var(--bw-hair) solid var(--border);
  text-align: start;
}
.gpm-table th { color: var(--text-muted); font-weight: var(--fw-medium); }
.gpm-table td { color: var(--text); font-weight: var(--fw-semibold); text-align: end; font-variant-numeric: tabular-nums; }
.gpm-table tr:last-child th, .gpm-table tr:last-child td {
  border-bottom: 0; padding-top: var(--space-4);
  font-size: var(--fs-h3); color: var(--text);
}

/* ==========================================================================
   17 · FORMS
   Font size stays at 16px minimum — anything smaller makes iOS Safari
   zoom the viewport on focus.
   ========================================================================== */

.gpm-field { display: grid; gap: var(--space-2); }
.gpm-label {
  font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text);
}
.gpm-input, .gpm-select, .gpm-textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-raised);
  border: var(--bw-hair) solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.gpm-textarea { min-height: 120px; padding-top: var(--space-3); resize: vertical; }
.gpm-input::placeholder, .gpm-textarea::placeholder { color: var(--text-subtle); }
.gpm-input:hover, .gpm-select:hover, .gpm-textarea:hover { border-color: var(--text-subtle); }
.gpm-input:focus, .gpm-select:focus, .gpm-textarea:focus { border-color: var(--action); }
.gpm-input[aria-invalid="true"], .gpm-textarea[aria-invalid="true"] { border-color: var(--error); }
.gpm-input[disabled], .gpm-select[disabled], .gpm-textarea[disabled] {
  background: var(--surface-sunken); color: var(--text-subtle); cursor: not-allowed;
}
.gpm-help  { font-size: var(--fs-caption); color: var(--text-muted); }
.gpm-error { font-size: var(--fs-caption); color: var(--error); font-weight: var(--fw-medium); }

/* ==========================================================================
   18 · LOGO LOCKUP
   Icon and wordmark always ship together — Brand Guide p.3,
   "never icon mark alone".
   ========================================================================== */

.gpm-logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: inherit;
  /* Clear space equals the height of the plate icon on all four sides */
  padding: .5em;
}
.gpm-logo__icon { width: 40px; height: 40px; flex: none; color: var(--accent); }
.gpm-logo__word { display: grid; line-height: 1; }
.gpm-logo__name {
  font-size: 1.0625rem; font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em; color: var(--text);
}
.gpm-logo__sub {
  font-size: 0.9375rem; font-weight: var(--fw-regular);
  letter-spacing: 0.16em; color: var(--accent);
}
.gpm-logo--sm .gpm-logo__icon { width: 28px; height: 28px; }
.gpm-logo--sm .gpm-logo__name { font-size: .875rem; }
.gpm-logo--sm .gpm-logo__sub  { font-size: .75rem; }

/* ==========================================================================
   19 · UTILITIES
   ========================================================================== */

.gpm-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.gpm-divider { height: 1px; background: var(--border); border: 0; margin: var(--space-8) 0; }
.gpm-center  { text-align: center; }
.gpm-measure { max-width: var(--container-prose); }

/* ==========================================================================
   20 · MOTION + PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .gpm-stickybar { transform: none; }
}

@media print {
  .gpm-stickybar { display: none; }
  body { background: #fff; color: #000; }
}
