/* Qwoter Design System — Components
 * Values verified against the Qwoter 4-26 Figma redesign.
 */

/* ====================================================================== */
/* Layout primitives                                                      */
/* ====================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.container--wide {
  padding-inline: var(--container-gutter-wide);
}

.section {
  padding-block: var(--space-20);
}

.section--tight  { padding-block: var(--space-12); }
.section--loose  { padding-block: var(--space-24); }
.section--flush  { padding-block: 0; }

.divider {
  height: 1px;
  background-color: var(--color-border);
  border: 0;
  margin: 0;
}

.divider--accent {
  height: 4px;
  width: 80px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

/* ====================================================================== */
/* Typography                                                             */
/* ====================================================================== */

.eyebrow,
.platform-header__eyebrow {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  line-height: 1;
}

.display {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text);
}

.display .accent { color: var(--color-accent); }

.h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);   /* 48px target */
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text);
}

.h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tighter);
}

.h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
}

.lede strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.muted   { color: var(--color-text-muted); }
.subtle  { color: var(--color-text-subtle); }

/* ====================================================================== */
/* Button — matches Figma 64:197 "Get early access"                       */
/*   background #007c13, padding 10px 20px, 4px radius,                   */
/*   13px Bold white, gap 8px                                             */
/* ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 0;
  transition: background-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

/* Variants */
.btn--accent {
  background-color: var(--color-accent-button);
  color: var(--color-accent-ink);
}
.btn--accent:hover { background-color: var(--color-accent-button-hover); }

.btn--primary {
  background-color: var(--color-surface-inverse);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background-color: #1f1f1f; }

.btn--inverse {
  background-color: var(--color-surface);
  color: var(--color-accent-button);
}
.btn--inverse:hover { background-color: var(--color-surface-subtle); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: var(--space-2);
}

/* Sizes (preserve Figma 13px button proportions; --lg only for CTA contexts) */
.btn--sm { padding: 8px 16px; font-size: 12px; }
.btn--lg { padding: 14px 28px; font-size: 14px; }

/* Large hero CTA: black pill with mixed-weight label + green arrow */
.btn--cta {
  height: 51px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.01em;
  gap: 0;
  border-radius: var(--radius-md);
}

.btn--cta strong {
  font-weight: var(--font-weight-bold);
}

.btn__arrow {
  color: #00D820;
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 1;
  margin-left: 12px;
  transition: transform var(--duration-base) var(--ease-standard);
}

.btn--cta:hover .btn__arrow { transform: translateX(4px); }

/* ====================================================================== */
/* Navigation                                                             */
/* ====================================================================== */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

.nav__link {
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-standard);
}
.nav__link:hover { color: var(--color-text-muted); }
.nav__link[aria-current="page"] { color: var(--color-accent-button); }

/* ====================================================================== */
/* Brand                                                                  */
/* ====================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand__logo--footer {
  height: 44px;
}

.brand__mark {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* ====================================================================== */
/* Hero                                                                   */
/* ====================================================================== */

.hero {
  padding-block: var(--space-24) var(--space-24);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -8% -10% 30%;
  background:
    radial-gradient(55% 50% at 70% 40%, rgba(0,161,24,0.18) 0%, rgba(0,161,24,0.06) 40%, transparent 75%),
    radial-gradient(45% 45% at 30% 80%, rgba(0,124,19,0.10) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.hero__visual {
  aspect-ratio: 1 / 1.05;
  position: relative;
  perspective: 1400px;
  perspective-origin: 55% 45%;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-14deg) rotateZ(1.5deg);
  z-index: 1;
}

/* Background sparks ------------------------------------------------------- */
.hero__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.35;
  filter: blur(0.4px);
  animation: spark-float 9s ease-in-out infinite;
  z-index: 0;
}
.hero__spark--1 { top: 14%; left: 10%;  --tx:  10px; --ty: -12px; animation-delay: 0s;   }
.hero__spark--2 { top: 76%; left: 16%;  --tx: -8px;  --ty:  10px; animation-delay: 1.6s; background: #0a7d35; }
.hero__spark--3 { top: 22%; right: 12%; --tx: -10px; --ty:  14px; animation-delay: 3.2s; width: 4px; height: 4px; }
.hero__spark--4 { top: 70%; right: 22%; --tx:  12px; --ty: -8px;  animation-delay: 4.8s; width: 5px; height: 5px; opacity: 0.25; }

@keyframes spark-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1);     opacity: 0.25; }
  50%      { transform: translate3d(var(--tx), var(--ty), 30px) scale(1.3); opacity: 0.6; }
}

/* Scene stage ------------------------------------------------------------- */
/* Total cycle = 18s, 4 scenes × 4.5s. Each scene fades & flies in/out.     */

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.scene--1 { animation: scene-show 18s cubic-bezier(.22,.85,.32,1) infinite; animation-delay:  0s;    }
.scene--2 { animation: scene-show 18s cubic-bezier(.22,.85,.32,1) infinite; animation-delay: -13.5s; }
.scene--3 { animation: scene-show 18s cubic-bezier(.22,.85,.32,1) infinite; animation-delay: -9s;    }
.scene--4 { animation: scene-show 18s cubic-bezier(.22,.85,.32,1) infinite; animation-delay: -4.5s;  }

@keyframes scene-show {
  0%   { opacity: 0; transform: translate3d(0, 38px, -120px) rotateX(-14deg) rotateY(8deg); }
  3%   { opacity: 1; transform: translate3d(0, 0, 0)        rotateX(0)      rotateY(0);    }
  21%  { opacity: 1; transform: translate3d(0, 0, 0)        rotateX(0)      rotateY(0);    }
  25%  { opacity: 0; transform: translate3d(0, -28px, -140px) rotateX(10deg) rotateY(-6deg); }
  100% { opacity: 0; transform: translate3d(0, 38px, -120px) rotateX(-14deg) rotateY(8deg); }
}

/* Shared scene card ------------------------------------------------------- */
.scene-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 1.6vw, 26px) clamp(20px, 1.8vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.2vw, 20px);
  width: min(88%, clamp(360px, 36vw, 480px));
  min-height: clamp(320px, 28vw, 400px);
  box-shadow:
    0 1px 2px rgba(11,11,11,0.06),
    0 20px 40px -10px rgba(11,11,11,0.22),
    0 50px 80px -20px rgba(0,124,19,0.18);
  transform-style: preserve-3d;
  animation: card-bob 9s ease-in-out infinite;
}

@keyframes card-bob {
  0%, 100% { transform: translateZ(0)  rotateY(0)    translateY(0); }
  50%      { transform: translateZ(18px) rotateY(2deg) translateY(-6px); }
}


.scene-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.scene-icon {
  width: clamp(20px, 1.5vw, 24px);
  height: clamp(20px, 1.5vw, 24px);
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ===== Scene 1 · Census upload ========================================== */
.census-body {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.census-file {
  position: relative;
  width: 56px;
  height: 64px;
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-button);
  flex-shrink: 0;
  animation: census-file-in 18s ease-out infinite;
  transform-origin: 50% 50%;
}
.census-file svg { width: 28px; height: 28px; }
.census-file__tag {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--color-accent-button);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,124,19,0.35);
}

@keyframes census-file-in {
  0%   { transform: translate3d(0, -120px, 80px) rotateZ(-12deg); opacity: 0; }
  3%   { transform: translate3d(0, -120px, 80px) rotateZ(-12deg); opacity: 0; }
  8%   { transform: translate3d(0, 6px, 0) rotateZ(2deg);         opacity: 1; }
  11%  { transform: translate3d(0, 0, 0) rotateZ(0);              opacity: 1; }
  21%  { transform: translate3d(0, 0, 0) rotateZ(0);              opacity: 1; }
  25%, 100% { opacity: 0; }
}

.census-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.census-status__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-accent-soft);
  color: var(--color-accent-button);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  animation: badge-pop 18s ease-out infinite;
  transform-origin: 50% 50%;
}
.census-status__badge svg { width: 12px; height: 12px; }

@keyframes badge-pop {
  0%, 11% { transform: scale(0); opacity: 0; }
  14%     { transform: scale(1.25); opacity: 1; }
  17%     { transform: scale(1);    opacity: 1; }
  21%     { transform: scale(1);    opacity: 1; }
  25%, 100% { opacity: 0; transform: scale(1); }
}

.census-status__count {
  font-size: 13px;
  color: var(--color-text-muted);
}
.census-status__num {
  color: var(--color-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scene-progress {
  height: 4px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.scene-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-button) 100%);
  border-radius: inherit;
  animation: progress-fill 18s ease-out infinite;
}
@keyframes progress-fill {
  0%, 4%  { width: 0%; }
  18%     { width: 100%; }
  21%     { width: 100%; }
  25%, 100% { width: 100%; }
}

.census-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--color-border);
}
.census-stat {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.census-stat__num {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.census-stat__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.census-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent-button);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  box-shadow: 0 6px 14px -6px rgba(0,124,19,0.6);
}
.census-cta svg { width: 14px; height: 14px; }

/* ===== Scene 2 · White-label your agency ================================ */
.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(37,99,235,0.4);
  animation: brand-logo-in 18s cubic-bezier(.22,1.2,.4,1) infinite;
  transform-origin: 50% 50%;
}
.brand-logo svg { width: 24px; height: 24px; }

@keyframes brand-logo-in {
  0%, 27% { transform: scale(0) rotate(-30deg); opacity: 0; }
  32%     { transform: scale(1.15) rotate(4deg); opacity: 1; }
  35%     { transform: scale(1) rotate(0); opacity: 1; }
  46%     { transform: scale(1); opacity: 1; }
  50%, 100% { transform: scale(0.85); opacity: 0; }
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-meta__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  animation: brand-text-in 18s cubic-bezier(.22,.85,.32,1) infinite;
  opacity: 0;
}
.brand-meta__domain {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: brand-text-in 18s cubic-bezier(.22,.85,.32,1) infinite;
  animation-delay: 0.18s;
  opacity: 0;
}
.brand-meta__domain b { color: var(--color-accent-button); font-weight: 700; }

@keyframes brand-text-in {
  0%, 30%   { opacity: 0; transform: translateX(-8px); }
  35%       { opacity: 1; transform: translateX(0); }
  46%       { opacity: 1; transform: translateX(0); }
  50%, 100% { opacity: 0; transform: translateX(0); }
}

.brand-palette {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.brand-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  box-shadow: 0 2px 6px rgba(11,11,11,0.12), 0 0 0 1px rgba(11,11,11,0.06);
  transform: scale(0);
  animation: brand-swatch-in 18s cubic-bezier(.22,1.4,.4,1) infinite;
}
.brand-swatch--1 { background: #2563eb; animation-delay: 0.00s; }
.brand-swatch--2 { background: #6d28d9; animation-delay: 0.08s; }
.brand-swatch--3 { background: var(--color-accent); animation-delay: 0.16s; }
.brand-swatch--4 { background: #f59e0b; animation-delay: 0.24s; }
.brand-swatch--5 { background: #ef4444; animation-delay: 0.32s; }

.brand-palette__label {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: brand-text-in 18s cubic-bezier(.22,.85,.32,1) infinite;
  animation-delay: 0.36s;
  opacity: 0;
}

@keyframes brand-swatch-in {
  0%, 32%   { transform: scale(0) translateZ(0); }
  38%       { transform: scale(1.2) translateZ(15px); }
  42%       { transform: scale(1) translateZ(0); }
  46%       { transform: scale(1); }
  50%, 100% { transform: scale(0.6); opacity: 0; }
}

.brand-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.brand-email__from { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-email__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-email__lines { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-email__top { font-size: 10px; color: var(--color-text-muted); letter-spacing: -0.01em; }
.brand-email__top b { color: var(--color-text); font-weight: 700; }
.brand-email__bottom { font-size: 11px; color: var(--color-text); font-weight: 600; letter-spacing: -0.01em; }
.brand-email__pill {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-button);
  background: var(--color-accent-soft);
  padding: 3px 7px;
  border-radius: var(--radius-full);
}

.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-button);
  letter-spacing: -0.01em;
  align-self: flex-start;
}
.brand-cta svg { width: 14px; height: 14px; }

/* ===== Scene 3 · Strategies compared ==================================== */
.scene-card--strats { width: min(90%, clamp(380px, 38vw, 520px)); }

.strat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.strat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform-style: preserve-3d;
  opacity: 0;
  animation: strat-tile-in 18s cubic-bezier(.22,.85,.32,1) infinite;
}
.strat-tile:nth-child(2) { animation-delay: 0.12s; }
.strat-tile:nth-child(3) { animation-delay: 0.24s; }
.strat-tile:nth-child(4) { animation-delay: 0.36s; }

.strat-tile__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.strat-tile__label svg { width: 11px; height: 11px; }
.strat-tile__value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.strat-tile__sub {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}
.strat-tile__sub--save { color: var(--color-accent-button); font-weight: 700; }

.strat-footer {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  padding-top: 4px;
  border-top: 1px dashed var(--color-border);
}

.strat-tile--best {
  background: var(--color-accent-soft);
  border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  animation: strat-best-glow 18s ease-in-out infinite;
}
.strat-tile--best .strat-tile__label { color: var(--color-accent-button); }
.strat-tile--best .strat-tile__value { color: var(--color-accent-button); }

@keyframes strat-tile-in {
  0%, 50% { opacity: 0; transform: translate3d(0, 14px, -40px) rotateX(-18deg); }
  55%     { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); }
  71%     { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); }
  75%, 100% { opacity: 0; transform: translate3d(0, -10px, -40px) rotateX(6deg); }
}
@keyframes strat-best-glow {
  0%, 60%, 75%, 100% { box-shadow: 0 0 0 0 transparent, 0 8px 18px -8px rgba(0,124,19,0.0); transform: translateZ(0); }
  64%, 71%           { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent), 0 14px 28px -10px rgba(0,124,19,0.35); transform: translateZ(24px); }
}

/* ===== Scene 4 · Savings revealed ======================================= */
.scene-card--chart { width: min(90%, clamp(380px, 37vw, 500px)); }
.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.chart-legend__item { display: inline-flex; align-items: center; gap: 4px; }
.chart-legend__dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
}
.chart-legend__dot--ee { background: #3da8f5; }
.chart-legend__dot--er { background: var(--color-accent-button); }

.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  height: 150px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-border);
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.chart-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: chart-value-in 18s ease-out infinite;
}
.chart-col:nth-child(2) .chart-value { animation-delay: 0.12s; }
.chart-col:nth-child(3) .chart-value { animation-delay: 0.24s; }
.chart-col:nth-child(4) .chart-value { color: var(--color-accent-button); animation-delay: 0.36s; }

@keyframes chart-value-in {
  0%, 80% { opacity: 0; transform: translateY(6px); }
  86%     { opacity: 1; transform: translateY(0); }
  96%     { opacity: 1; transform: translateY(0); }
  100%    { opacity: 0; }
}
.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, #3da8f5 0%, #1a73c4 100%);
  border-radius: 4px 4px 0 0;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  --h: 60%;
  height: var(--h);
  animation: chart-bar-rise 18s cubic-bezier(.22,1.2,.4,1) infinite;
}
.chart-col:nth-child(1) .chart-bar { --h: 55%; }
.chart-col:nth-child(2) .chart-bar { --h: 82%; animation-delay: 0.12s; }
.chart-col:nth-child(3) .chart-bar { --h: 64%; animation-delay: 0.24s; }
.chart-col:nth-child(4) .chart-bar {
  --h: 48%;
  animation-delay: 0.36s;
  background: linear-gradient(180deg, #2dc24c 0%, var(--color-accent-button) 100%);
}
.chart-bar--best {
  box-shadow: 0 0 0 0 transparent;
  animation-name: chart-bar-rise-best;
}

@keyframes chart-bar-rise {
  0%, 75% { transform: scaleY(0); }
  82%     { transform: scaleY(1.08); }
  86%     { transform: scaleY(1);    }
  96%     { transform: scaleY(1);    }
  100%    { transform: scaleY(1);    }
}
@keyframes chart-bar-rise-best {
  0%, 75% { transform: scaleY(0) translateZ(0); box-shadow: 0 0 0 0 transparent; }
  82%     { transform: scaleY(1.08) translateZ(20px); box-shadow: 0 12px 28px -6px rgba(0,124,19,0.5); }
  88%     { transform: scaleY(1) translateZ(20px);    box-shadow: 0 12px 28px -6px rgba(0,124,19,0.5); }
  96%     { transform: scaleY(1) translateZ(20px);    box-shadow: 0 12px 28px -6px rgba(0,124,19,0.5); }
  100%    { transform: scaleY(1) translateZ(20px);    }
}

.chart-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.chart-col--best .chart-label { color: var(--color-accent-button); }

.savings-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  border-radius: 10px;
  transform-origin: 50% 100%;
  animation: savings-pop-in 18s cubic-bezier(.22,.85,.32,1) infinite;
}
.savings-pop__label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-button);
  font-weight: 600;
}
.savings-pop__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent-button);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.savings-pop__value small { font-size: 11px; font-weight: 600; opacity: 0.7; margin-left: 2px; }
.savings-pop__sub {
  font-size: 10px;
  color: var(--color-accent-button);
  opacity: 0.75;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

@keyframes savings-pop-in {
  0%, 86% { transform: scale(0.6) translateZ(0); opacity: 0; }
  90%     { transform: scale(1.1) translateZ(40px); opacity: 1; }
  93%     { transform: scale(1)   translateZ(30px); opacity: 1; }
  98%     { transform: scale(1)   translateZ(30px); opacity: 1; }
  100%    { transform: scale(0.95) translateZ(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__spark,
  .scene,
  .scene-card,
  .census-file,
  .census-status__badge,
  .scene-progress__fill,
  .brand-logo,
  .brand-meta__name,
  .brand-meta__domain,
  .brand-swatch,
  .brand-palette__label,
  .strat-tile,
  .chart-bar,
  .savings-pop {
    animation: none !important;
  }
  .scene { opacity: 1; }
  .scene--2, .scene--3, .scene--4 { display: none; }
}

/* ====================================================================== */
/* Pillar features (dark section)                                         */
/* Figma: bg #000, 32/32/36 padding, 20px gap                             */
/* Title: 32px ExtraBold, line-height 34, tracking -0.96px                */
/* Body: 14px Regular, #adadad, line-height 22                            */
/* ====================================================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-inline: calc(var(--space-8) * -1);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-8) var(--space-9);
}

.pillar__icon {
  height: 30px;
  width: auto;
  align-self: flex-start;
  display: block;
}

/* Middle icon is shorter — push it down so its bottom edge sits at 30px,
   keeping the title baselines aligned across all three pillars. */
.pillar:nth-child(2) .pillar__icon { height: 20px; margin-top: 10px; }

.pillar__title {
  font-size: 30px;
  font-weight: var(--font-weight-extrabold);
  line-height: 34px;
  letter-spacing: -0.9px;
  color: var(--color-text-inverse);
}

.pillar__body {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-inverse-subtle);
  line-height: 22px;
}

/* ====================================================================== */
/* Platform card grid                                                     */
/* Figma: white bg, 1px solid #e6e6e1, 24px padding, 12px gap             */
/* Title: 24px ExtraBold #121212, tracking -0.48px, dot 8px               */
/* Body: 14px Regular #666, line-height 1.6                               */
/* ====================================================================== */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.platform-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 133px;
}

.platform-card__title {
  font-size: 22px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.44px;
  color: var(--color-text);
  line-height: 1.2;
  display: block;
  text-indent: -18px;
  padding-left: 18px;
}

.platform-card__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  vertical-align: middle;
  position: relative;
  top: -2px;
  margin-right: 10px;
}

.platform-card__body {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Coming-soon variant: dashed border, gray title + italic "(coming soon)" */
.platform-card--soon {
  background: transparent;
  border: 1px dashed var(--color-border-dashed);
  padding: var(--space-6);
  min-height: 77px;
  justify-content: center;
}

.platform-card--soon .platform-card__title {
  color: var(--color-coming-soon-text);
  font-size: 20px;
}

.platform-card--soon .platform-card__title::before {
  background: var(--color-coming-soon);
}

.platform-card__soon-label {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  font-style: italic;
  color: var(--color-coming-soon-text);
}

/* ====================================================================== */
/* How-it-works dark cards                                                */
/* Figma: bg #000, 32/32/36 padding, 16px gap                             */
/* Index: 13px Bold #00a118, tracking 1.04px                              */
/* Title: 24px Bold (700) white, tracking -0.24px                         */
/* Body: 14px Regular #c6c6c6, line-height 1.6                            */
/* ====================================================================== */

.howitworks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.howitworks__card {
  background-color: var(--color-surface-inverse);
  color: var(--color-text-inverse);
  padding: var(--space-8) var(--space-8) var(--space-9);
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.howitworks__index {
  font-size: 15px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  letter-spacing: 1.2px;
}

.howitworks__title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.24px;
  color: var(--color-text-inverse);
}

.howitworks__body {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-inverse-muted);
  line-height: var(--leading-relaxed);
  margin-top: auto;
}

/* ====================================================================== */
/* CTA band — green sign-up                                               */
/* Figma title: 48px ExtraBold, line-height 1.1, tracking -1.44px         */
/* ====================================================================== */

.cta-band {
  background-color: var(--color-accent-button);
  color: var(--color-accent-ink);
  padding-block: var(--space-20);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

.cta-band__title {
  font-size: clamp(2rem, 4vw, 48px);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-cta);
  letter-spacing: -1.44px;
  color: var(--color-text-inverse);
}

.email-form {
  display: flex;
  gap: var(--space-3);
  width: min(540px, 100%);
}

.email-form__input {
  flex: 1;
  background-color: transparent;
  border: 1px solid color-mix(in srgb, var(--color-accent-ink) 60%, transparent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--color-accent-ink);
  font: inherit;
  font-size: 14px;
}

.email-form__input::placeholder {
  color: color-mix(in srgb, var(--color-accent-ink) 70%, transparent);
}

.email-form__input:focus-visible {
  outline: none;
  border-color: var(--color-accent-ink);
  box-shadow: none;
}

/* ====================================================================== */
/* Page header (Pricing / Contact)                                        */
/* ====================================================================== */

.page-header {
  padding-block: var(--space-16) var(--space-12);
}

.page-header__eyebrow {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-5);
}

.page-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text);
}

/* ====================================================================== */
/* Pricing tiers (3-column cards, middle one featured)                    */
/* ====================================================================== */

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.pricing-tier {
  position: relative;
  top: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: top var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}

.pricing-tier::before {
  content: "";
  position: absolute;
  inset: -90px;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(0,161,24,0.55) 0%, rgba(0,161,24,0.22) 40%, transparent 75%),
    radial-gradient(50% 50% at 30% 80%, rgba(0,124,19,0.32) 0%, transparent 70%);
  filter: blur(24px);
  opacity: 0;
  transform: scale(0.55);
  transform-origin: 50% 50%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-standard), transform 0.55s var(--ease-standard);
}

.pricing-tier:hover {
  top: -2px;
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}

.pricing-tier:hover::before {
  animation:
    pricing-glow-in 0.7s cubic-bezier(.22,1.2,.4,1) forwards,
    pricing-glow-pulse 2.6s ease-in-out 0.7s infinite;
}

@keyframes pricing-glow-in {
  0%   { opacity: 0;    transform: scale(0.55); }
  60%  { opacity: 0.95; transform: scale(1.06); }
  100% { opacity: 0.85; transform: scale(1);    }
}

@keyframes pricing-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.pricing-tier__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-tier__name {
  font-size: 22px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.44px;
  color: var(--color-text);
}

.pricing-tier__tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.pricing-tier__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pricing-tier__amount {
  font-size: 52px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text);
  line-height: 1;
}

.pricing-tier__unit {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.pricing-tier__price-note {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  min-height: 22px;
}

.pricing-tier__strikethrough {
  text-decoration: line-through;
  opacity: 0.7;
}

.pricing-tier__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-2) 0;
  flex: 1;
}

.pricing-tier__features li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.pricing-tier__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a118' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-tier__cta {
  width: 100%;
  margin-top: auto;
}

/* Make the whole card clickable: the CTA's overlay covers the card. */
.pricing-tier { cursor: pointer; }
.pricing-tier__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pricing-tier:has(.pricing-tier__cta:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.pricing-tier__cta:focus-visible { outline: none; }

/* Featured (Annual) tier — dark/inverse card */
.pricing-tier--featured {
  background: var(--color-surface-inverse);
  color: var(--color-text-inverse);
  border-color: var(--color-surface-inverse);
  padding-top: var(--space-12);
  top: -12px;
  box-shadow: var(--shadow-lg);
}

.pricing-tier--featured:hover {
  top: -14px;
}

.pricing-tier--featured .pricing-tier__name,
.pricing-tier--featured .pricing-tier__amount {
  color: var(--color-text-inverse);
}

.pricing-tier--featured .pricing-tier__tagline,
.pricing-tier--featured .pricing-tier__unit,
.pricing-tier--featured .pricing-tier__price-note {
  color: var(--color-text-inverse-muted);
}

.pricing-tier--featured .pricing-tier__price-note strong {
  color: var(--color-accent);
  font-weight: var(--font-weight-extrabold);
}

.pricing-tier--featured .pricing-tier__features li {
  color: var(--color-text-inverse);
}

.pricing-tier__features--inverse li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D820' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
}

.pricing-tier__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.pricing-footnote {
  margin-top: var(--space-12);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: var(--leading-relaxed);
}

/* ====================================================================== */
/* Contact                                                                */
/* ====================================================================== */

.contact-section {
  position: relative;
  min-height: calc(100vh - 76px);
  padding-block: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f5f7;
}

.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2 * var(--container-gutter)));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: var(--space-12) var(--space-10);
  box-shadow:
    0 1px 2px rgba(11,11,11,0.04),
    0 20px 50px rgba(11,11,11,0.10),
    0 40px 80px rgba(11,11,11,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-card__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.contact-card__lede {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.contact-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-card__form .field__input,
.contact-card__form .field__textarea {
  background-color: var(--color-surface-subtle);
}

.contact-card__cta {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.field__input,
.field__textarea,
.field__select {
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.field__input:hover,
.field__textarea:hover,
.field__select:hover {
  border-color: var(--color-border-strong);
}

.field__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--leading-relaxed);
}

.field__hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  line-height: var(--leading-normal);
}
.field__counter {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-subtle);
  white-space: nowrap;
}

/* Overflow state: counter turns red when the user exceeds the limit */
.field__hint--over .field__counter {
  color: #b42318;
  font-weight: var(--font-weight-bold);
}

/* Custom <select> fallback when JS is off — strip native UI, paint a chevron */
.field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23525968' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 2 L6 6 L11 2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  line-height: 1;
  height: 44px;
}

.field__select::-ms-expand { display: none; }

.field__input:focus-visible,
.field__textarea:focus-visible,
.field__select:focus-visible {
  outline: none;
  border-color: var(--color-accent-button);
  box-shadow: var(--focus-ring);
}

/* ====================================================================== */
/* Custom Select (combobox) — JS-enhanced; replaces native panel          */
/* ====================================================================== */

.select {
  position: relative;
  width: 100%;
}

/* Hide the native <select> when the JS combobox is active, but keep it in the
   DOM so form submission and accessibility tools still see it. */
.select .field__select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

.select__button {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font: inherit;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-radius var(--duration-fast) var(--ease-standard);
}

.select__button:hover { border-color: var(--color-border-strong); }

.select__button:focus-visible {
  outline: none;
  border-color: var(--color-accent-button);
  box-shadow: var(--focus-ring);
}

.select__button[aria-expanded="true"] {
  border-color: var(--color-accent-button);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: var(--focus-ring);
}

.select__chevron {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-standard);
  color: var(--color-text-muted);
}

.select__button:hover .select__chevron { color: var(--color-text); }
.select__button[aria-expanded="true"] .select__chevron {
  transform: rotate(180deg);
  color: var(--color-accent-button);
}

.select__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -1px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent-button);
  border-top: 0;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11, 11, 11, 0.10),
              0 4px 8px  rgba(11, 11, 11, 0.06);
  z-index: 20;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
  padding: var(--space-2) 0;
  animation: select-panel-in 140ms var(--ease-standard);
}

@keyframes select-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.select__panel[hidden] { display: none; }

.select__option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.select__option:hover,
.select__option:focus-visible {
  background: var(--color-surface-subtle);
  outline: none;
}

.select__option.is-selected {
  background: var(--color-accent-soft);
  color: var(--color-accent-button);
  font-weight: var(--font-weight-bold);
}

.select__option.is-selected::after {
  content: "";
  margin-left: auto;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a118' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.select__option.is-selected:hover,
.select__option.is-selected:focus-visible {
  background: var(--color-accent-button);
  color: #ffffff;
}

.select__option.is-selected:hover::after,
.select__option.is-selected:focus-visible::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
}

/* ====================================================================== */
/* Early access page                                                      */
/* ====================================================================== */

.early-hero {
  padding-block: var(--space-24);
}

.early-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.early-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.early-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.early-list__check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.early-form {
  padding: 0 var(--space-8) var(--space-8);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: calc(var(--space-8) * -1);
}

/* ====================================================================== */
/* Auth (login) page                                                      */
/* ====================================================================== */

.auth-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #008915 0%, #007c13 100%);
  padding-block: var(--space-16);
}

.auth-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 2 * var(--container-gutter)));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: var(--space-12) var(--space-10);
  box-shadow:
    0 1px 2px rgba(11,11,11,0.04),
    0 12px 32px rgba(11,11,11,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.auth-card__title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  color: var(--color-text);
}

.auth-card__lede {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form .field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.auth-form .field__label-row .field__label {
  margin-bottom: 0;
}

.auth-form__link {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.auth-form__link:hover { color: var(--color-accent-hover); }

.auth-form__link--strong {
  font-weight: var(--font-weight-bold);
}

.auth-form__cta {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-form__divider {
  position: relative;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-subtle);
  margin-block: var(--space-2);
}

.auth-form__divider::before,
.auth-form__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--color-border);
}

.auth-form__divider::before { left: 0; }
.auth-form__divider::after  { right: 0; }

.auth-form__divider span { background: var(--color-surface); padding: 0 12px; position: relative; }

.auth-form__sso {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  padding: 14px 28px !important;
  gap: 10px;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.auth-form__sso::after { display: none !important; }

.auth-form__sso:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-text);
}

.auth-form__sso-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.auth-card__footer {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ====================================================================== */
/* Footer                                                                 */
/* ====================================================================== */

.footer {
  background-color: var(--color-surface-inverse);
  color: var(--color-text-inverse);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

.footer__col-header {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-5);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--color-text-inverse);
}

.footer__list a { opacity: 0.85; transition: opacity var(--duration-fast); }
.footer__list a:hover { opacity: 1; }

.footer__tagline {
  font-size: 14px;
  color: var(--color-text-inverse-muted);
  margin-top: var(--space-3);
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border-inverse);
  font-size: 13px;
  color: var(--color-text-inverse-muted);
}

.footer__bar-links {
  display: flex;
  gap: var(--space-6);
}

/* ====================================================================== */
/* Responsive                                                             */
/* ====================================================================== */

@media (max-width: 960px) {
  .hero__inner,
  .early-hero__inner { grid-template-columns: 1fr; }
  /* 3-item grids (pillars, how-it-works): skip the awkward 2-col stage and
     go straight to 1-col so the third card doesn't orphan with empty space. */
  .pillar-grid,
  .howitworks { grid-template-columns: 1fr; }
  /* Platform grid stays 3-col at tablet (9 cards ÷ 3 = no orphan). */
  .pricing-tiers { grid-template-columns: 1fr; gap: var(--space-6); }
  .pricing-tier--featured { top: 0; }
  .pricing-tier--featured:hover { top: -2px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --container-gutter: 1.25rem; --container-gutter-wide: 1.25rem; }
  .pillar-grid,
  .platform-grid,
  .howitworks { grid-template-columns: 1fr; }
  .pillar-grid { margin-inline: 0; }
  .pricing-tiers { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: var(--space-8); padding-block: var(--space-10); }
  .footer__bar  { flex-direction: column; gap: var(--space-3); align-items: flex-start; text-align: left; }
  .footer__bar-links { flex-wrap: wrap; gap: var(--space-4); }
  .nav            { height: 60px; }
  .nav__links     { gap: var(--space-3); }
  .nav__links .nav__link--secondary { display: none; }
  .brand__logo    { height: 36px; }
  .brand__logo--footer { height: 36px; }
  .email-form     { flex-direction: column; }

  /* Section vertical rhythm: tighten heavy section padding on mobile */
  .section          { padding-block: var(--space-14); }
  .section--tight   { padding-block: var(--space-10); }
  .section--loose   { padding-block: var(--space-16); }

  /* Hero */
  .hero { padding-block: var(--space-10) var(--space-12); }
  .hero__inner { gap: var(--space-10); }
  .hero__copy  { gap: var(--space-6); }
  .display { font-size: clamp(2.5rem, 13vw, 3.25rem); }
  .lede    { font-size: 0.9375rem; }

  /* Hero visual: flatten 3D on mobile so scene cards don't bleed off-screen */
  .hero__visual { aspect-ratio: 1 / 0.95; perspective: none; }
  .hero__stage  { transform: none; }
  .scene-card   { width: min(92%, 340px); min-height: 280px; }

  /* Pillar (dark) section: override inline-style padding, tighten cards */
  .theme-dark.section,
  section.theme-dark { padding-block: var(--space-12) var(--space-10) !important; }
  .pillar { padding: var(--space-5) 0 var(--space-6); gap: var(--space-4); }
  .pillar__title { font-size: 26px; line-height: 30px; letter-spacing: -0.7px; }

  /* Platform section: align with mobile rhythm */
  #platform { padding-top: var(--space-10) !important; padding-bottom: var(--space-6) !important; }
  #platform + section { padding-bottom: var(--space-14) !important; }
  .platform-grid  { gap: var(--space-3); }
  .platform-card  { padding: var(--space-5); min-height: 0; }
  .platform-card__title { font-size: 20px; }
  .platform-card--soon  { padding: var(--space-4) var(--space-5); }

  /* How-it-works */
  .howitworks { gap: var(--space-3); }
  .howitworks__card { padding: var(--space-6) var(--space-6) var(--space-7); gap: var(--space-3); }
  .howitworks__title { font-size: 22px; }

  /* CTA band */
  .cta-band { padding-block: var(--space-12); }
  .cta-band__inner { gap: var(--space-6); }

  /* Auth (login / forgot) — remove tall green expanse and shrink card */
  .auth-section { min-height: 0; padding-block: var(--space-8); }
  .auth-card    { padding: var(--space-8) var(--space-6); border-radius: 16px; gap: var(--space-5); }
  .auth-card__title { font-size: 1.875rem; }

  /* Form buttons: ensure comfortable hit targets */
  .btn--cta { height: 52px; padding: 0 22px; font-size: 15px; }
  .btn--accent { padding: 10px 16px; }
}

@media (max-width: 380px) {
  .nav__links { gap: var(--space-2); }
  .btn--accent { padding: 9px 12px; font-size: 12px; }
  .brand__logo { height: 32px; }
  .display { font-size: 2.375rem; }
}

[hidden] { display: none !important; }

/* ====================================================================== */
/* Form success state                                                     */
/* ====================================================================== */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-button);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--color-accent) 12%, transparent),
    0 12px 28px -8px rgba(0,124,19,0.35);
  animation: form-success-icon-in 0.7s cubic-bezier(.22,1.4,.4,1) backwards;
}
.form-success__icon svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: form-success-check 0.55s ease-out 0.35s forwards; }

.form-success__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
  animation: form-success-rise 0.55s ease 0.2s backwards;
}

.form-success__body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 360px;
  margin: 0;
  animation: form-success-rise 0.55s ease 0.3s backwards;
}

.form-success__cta {
  margin-top: var(--space-2);
  animation: form-success-rise 0.55s ease 0.4s backwards;
}

@keyframes form-success-icon-in {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes form-success-check {
  to { stroke-dashoffset: 0; }
}
@keyframes form-success-rise {
  0%   { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ====================================================================== */
/* Rise-up reveal animation (load + scroll)                               */
/* ====================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.reveal.is-in {
  animation: reveal-rise 0.7s cubic-bezier(.2,.7,.2,1) var(--rd, 0s) forwards;
}
@keyframes reveal-rise {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .form-success__icon,
  .form-success__icon svg,
  .form-success__title,
  .form-success__body,
  .form-success__cta { animation: none !important; }
  .form-success__icon svg { stroke-dashoffset: 0; }
}
