/* ==========================================================================
   Landing page sections
   ========================================================================== */
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; padding: 8px 14px; border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(128px, 15vw, 188px); overflow: hidden; }
.hero-bg__wrap { height: min(100vh, 900px); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; margin-bottom: 28px;
  border-radius: 999px; background: var(--bg-primary); box-shadow: var(--shadow-sm); text-decoration: none;
  font-size: 13.5px; color: var(--text-secondary); transition: box-shadow 0.3s;
}
.hero-chip:hover { box-shadow: var(--shadow-md); }
.hero-chip b { color: var(--text-primary); font-weight: 600; }
.hero-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos-fg); box-shadow: 0 0 0 4px var(--pos-bg); }
.hero-chip-sep { width: 1px; height: 14px; background: var(--line-default); }
.hero-chip-cta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }
.hero-chip-cta svg { transition: transform 0.4s var(--ease-out-expo); }
.hero-chip:hover .hero-chip-cta svg { transform: translateX(2px); }

.hero-title { font-size: clamp(44px, 8vw, 104px); font-weight: 650; line-height: 0.98; letter-spacing: -0.045em; max-width: 13ch; margin-bottom: 26px; --reveal-base: 120ms; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-secondary); max-width: 620px; font-weight: 450; line-height: 1.45; letter-spacing: -0.015em; margin-bottom: 32px; }
.hero-cta-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }

/* Staggered entrance for hero copy (the title uses the word reveal) */
.js [data-hero-in] { opacity: 0; transform: translateY(14px); animation: heroIn 0.9s var(--ease-out-expo) both; animation-delay: calc(var(--in, 0) * 90ms + 150ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Evidence stage with scroll tilt ---------- */
.stage-wrap { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 88px); perspective: 1600px; }
.stage {
  --tilt: 0deg; --lift: 0px; --s: 1;
  max-width: 980px; margin-inline: auto; padding: clamp(18px, 3vw, 32px);
  background: var(--bg-primary); border-radius: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-subtle);
  transform: rotateX(var(--tilt)) translateY(var(--lift)) scale(var(--s)); transform-origin: 50% 0%; will-change: transform;
}
.js .stage { opacity: 0; animation: stageIn 1.2s var(--ease-out-expo) 0.55s both; }
@keyframes stageIn { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
.stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line-subtle); }
.stage-head-copy { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.stage-head h2 { font-size: clamp(19px, 2.3vw, 28px); font-weight: 650; line-height: 1.15; letter-spacing: -0.03em; }
.stage-dial { position: relative; width: 76px; height: 76px; flex: none; display: grid; place-items: center; }
.stage-dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--bg-tertiary); stroke-width: 5; }
.dial-val { fill: none; stroke: var(--pos-fg); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset 1.6s var(--ease-out-expo); }
.dial-num { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; margin-top: -8px; }
.dial-lbl { position: absolute; bottom: 15px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }

.forest-axis { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) 120px; gap: 16px; padding: 10px 0 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.forest-axis span:first-child { grid-column: 2; }
.forest-axis span:last-child { text-align: right; }
.fr { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) 120px; gap: 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-subtle); text-align: left; }
.fr-l { min-width: 0; display: flex; flex-direction: column; }
.fr-l b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-l small { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-t { position: relative; height: 22px; }
.fr-zero { position: absolute; top: -10px; bottom: -10px; width: 1px; background: var(--line-strong); }
.fr-ci { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--text-primary); border-radius: 2px; transform-origin: var(--o, 50%) 50%; transform: scaleX(0); transition: transform 0.9s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.fr-pt { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 3px; background: var(--text-primary); transform: scale(0) rotate(45deg); transition: transform 0.6s var(--cubic-default); transition-delay: calc(var(--d, 0s) + 0.15s); }
.fr-v { text-align: right; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--pos-fg); }
.fr-v.neg { color: var(--neg-fg); }
.fr-v small { font-size: 11px; font-weight: 450; color: var(--text-tertiary); }
.fr.pool { border-top: 1px solid var(--line-strong); padding-top: 14px; margin-top: 4px; }
.fr.pool .fr-l b { font-size: 15px; }
.fr-dia { position: absolute; top: 50%; height: 18px; margin-top: -9px; background: var(--pos-fg); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); transform: scaleX(0); transition: transform 1s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.forest.is-drawn .fr-ci, .forest.is-drawn .fr-dia { transform: scaleX(1); }
.forest.is-drawn .fr-pt { transform: scale(1) rotate(45deg); }
.stage-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-subtle); font-size: 12.5px; color: var(--text-tertiary); }
.stage-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Logo strip ---------- */
.logos { padding-block: clamp(56px, 8vw, 96px) 0; }
.logos-label { text-align: center; font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 18px; }
.logo-word { font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -0.035em; color: var(--text-tertiary); white-space: nowrap; transition: color 0.3s; }
.logo-word:hover { color: var(--text-primary); }

/* ---------- Numbers ---------- */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-default); }
.num-cell { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.num-cell + .num-cell { padding-left: 28px; border-left: 1px solid var(--line-default); }
.num-big { font-size: clamp(56px, 7vw, 96px); font-weight: 650; line-height: 1; letter-spacing: -0.05em; }
.num-cap { font-size: 15px; color: var(--text-secondary); max-width: 32ch; }
@media (max-width: 760px) {
  .num-grid { grid-template-columns: 1fr; }
  .num-cell, .num-cell + .num-cell { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-default); }
}

/* ---------- How it works ---------- */
.how { background: var(--bg-secondary); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.how-steps { list-style: none; }
.how-step { min-height: 54vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.32; transition: opacity 0.5s var(--cubic-default); }
.how-step.is-active { opacity: 1; }
.how-n { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.how-step h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 650; line-height: 1.08; letter-spacing: -0.035em; }
.how-step p { font-size: 16.5px; color: var(--text-secondary); max-width: 46ch; line-height: 1.6; }
.how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.how-panel { position: relative; width: 100%; aspect-ratio: 16 / 11; }
.how-visual { position: absolute; inset: 0; padding: clamp(20px, 3vw, 32px); background: var(--bg-primary); border-radius: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-subtle); display: flex; flex-direction: column; justify-content: center; gap: 16px; overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.6s var(--cubic-default), transform 0.7s var(--cubic-default); pointer-events: none; }
.how-visual.is-active { opacity: 1; transform: none; }
.how-visual-inline { display: none; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { display: none; }
  .how-step { min-height: 0; opacity: 1; padding-block: 28px; }
  .how-visual-inline { display: block; margin-top: 8px; }
  .how-visual-inline .how-visual { position: relative; inset: auto; opacity: 1; transform: none; }
}

/* Visual 1: find */
.v-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.v-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-secondary); font-size: 12.5px; font-weight: 500; color: var(--text-secondary); }
.v-chip.on { background: var(--bg-inverse); color: var(--text-inverse); }
.v-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-card { border-radius: 14px; background: var(--bg-secondary); padding: 14px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 0; }
.v-card b { font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-tertiary); gap: 8px; }
.v-lift { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--pos-fg); background: var(--pos-bg); padding: 2px 8px; border-radius: 999px; }
/* Visual 2: trust */
.v-tier { display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.v-tier-k { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; background: var(--bg-secondary); }
.v-tier-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-tier-name span { font-size: 13.5px; font-weight: 600; }
.v-tier-name small { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-bar { height: 6px; border-radius: 6px; background: var(--bg-tertiary); overflow: hidden; }
.v-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-primary); width: var(--w); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.how-visual.is-active .v-bar i, .how-visual-inline .is-revealed .v-bar i { transform: scaleX(1); }
.v-tier-cap { text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.v-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-subtle); }
.v-checks span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.v-checks svg { width: 13px; height: 13px; color: var(--pos-fg); flex: none; }
/* Visual 3: decide */
.v-pooled { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.v-pooled b { font-size: clamp(40px, 5vw, 64px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; color: var(--pos-fg); }
.v-pooled span { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.v-stack { display: flex; gap: 3px; height: 12px; }
.v-stack i { flex: var(--f, 1); border-radius: 3px; background: var(--pos-fg); }
.v-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.v-meta b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.v-next { margin-top: 6px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-secondary); font-size: 13.5px; line-height: 1.5; }
.v-next svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.v-actions { display: flex; gap: 8px; }
.v-actions .btn { height: 32px; font-size: 13px; padding: 0 14px; }

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof-card { padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--bg-secondary); display: flex; flex-direction: column; gap: 14px; }
.proof-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.proof-wide { grid-column: 1 / -1; }
.proof-big { font-size: clamp(48px, 6vw, 80px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.proof-of { font-size: 0.4em; letter-spacing: -0.02em; color: var(--text-tertiary); font-weight: 600; }
.company-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 0 28px; }
.company-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-default); }
.company-list b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-list span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); white-space: nowrap; }
.tier-bars { display: flex; flex-direction: column; gap: 10px; }
.tier-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: 13px; }
.tier-row b { font-family: var(--font-mono); font-weight: 600; }
.tier-row .v-bar { height: 8px; background: var(--bg-tertiary); }
.tier-row .v-bar i { background: var(--text-primary); }
.proof-card.is-revealed .v-bar i { transform: scaleX(1); }
.tier-row span:last-child { text-align: right; font-family: var(--font-mono); color: var(--text-secondary); }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing-toggle { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-secondary); margin-top: 8px; }
.billing-toggle button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: color 0.3s; }
.billing-toggle button[aria-checked="true"] { color: var(--text-primary); }
.billing-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--bg-primary); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--cubic-default), width 0.5s var(--cubic-default); }
.save-tag { font-family: var(--font-mono); font-size: 11px; color: var(--pos-fg); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 32px); border-radius: 24px; background: var(--bg-primary); box-shadow: var(--shadow-sm); }
.price-card.is-featured { box-shadow: var(--shadow-lg), 0 0 0 1.5px var(--text-primary); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-card h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.price-badge { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse); }
.price-desc { font-size: 14.5px; color: var(--text-secondary); min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-amt { font-size: 52px; font-weight: 650; letter-spacing: -0.05em; line-height: 1; display: inline-block; transition: transform 0.45s var(--cubic-default), opacity 0.3s; }
.price-amt.is-swapping { transform: translateY(-10px); opacity: 0; }
.price-per { font-size: 13.5px; color: var(--text-tertiary); }
.price-cta { width: 100%; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line-subtle); }
.price-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 1.8px solid var(--pos-fg); border-bottom: 1.8px solid var(--pos-fg); transform: rotate(-45deg); }
.price-list small { color: var(--text-tertiary); font-size: 12.5px; }
.planned { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); border: 1px solid var(--line-default); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.price-note { text-align: center; margin: 28px auto 0; max-width: 560px; font-size: 13.5px; color: var(--text-tertiary); }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .price-desc { min-height: 0; } }

/* ---------- FAQ and final CTA ---------- */
.faq { padding-top: 0; }
.final-cta { min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: clamp(80px, 11vw, 148px); }
.final-cta h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 650; line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; margin-bottom: 20px; }
.final-cta p { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-secondary); max-width: 520px; margin-bottom: 32px; }

@media (max-width: 640px) {
  .hero-chip-sep, .hero-chip-cta { display: none; }
  .hero-chip { padding-right: 14px; }
  .forest-axis, .fr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 76px; gap: 10px; }
  .fr-l small, .fr-v small { display: none; }
  .fr-v { font-size: 12.5px; }
  .stage-dial { width: 60px; height: 60px; }
  .dial-num { font-size: 18px; }
  .dial-lbl { display: none; }
  .v-cards { grid-template-columns: 1fr; }
  .v-checks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-hero-in], .js .stage { opacity: 1; animation: none; }
  .stage { transform: none !important; }
  .fr-ci, .fr-pt, .fr-dia, .v-bar i, .dial-val { transition: none !important; }
}
