/* =========================================================================
   SuperMoo — /vimeo-alternative comparison landing page (new design)
   Depends on tokens.css + site.css. Re-skins this page's components with the
   design tokens; aliases its legacy vars so the markup stays identical.
   ========================================================================= */

:root {
  --bg:             var(--paper);
  --bg-alt:         var(--paper-3);
  --text:           var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted:     var(--ink-mute);
  --border:         var(--line);
  --radius:         var(--r-md);
  --transition:     .3s var(--ease);
  --pink-glow:      rgba(255, 46, 136, 0.18);
  --pink-subtle:    var(--pink-wash);
  --pink-light:     var(--pink-press);
  --green:          var(--good);
  --green-bg:       var(--good-bg);
  --amber:          #B45309;
}

/* ---- Reveal (page's own observer adds .visible) ----------------------- */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Buttons (page uses .btn-primary/.btn-secondary/.btn-ghost) -------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: var(--t-body); line-height: 1;
  padding: 16px 28px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-press); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(24,24,27,0.03); }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--line-dk); }
.btn-ghost:hover { border-color: var(--on-ink); background: rgba(255,255,255,0.06); }

/* ---- Section header ---------------------------------------------------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.0; font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--ink); }
.section-head p { font-size: var(--t-body-lg); color: var(--ink-soft); line-height: 1.6; margin-top: 18px; }
.band-ink .section-head h2 { color: var(--on-ink); }
.band-ink .section-head p { color: var(--on-ink-soft); }

/* ---- Hero (ink band) -------------------------------------------------- */
.vs-hero { padding: clamp(80px,11vw,116px) 0 clamp(72px,10vw,104px); text-align: center; }
.vs-hero .inner { max-width: 820px; margin: 0 auto; }
.vs-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: .98; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--on-ink); margin-bottom: 24px; }
.vs-hero .subhead { font-size: var(--t-body-lg); color: var(--on-ink-soft); line-height: 1.6; margin: 0 auto 36px; max-width: 660px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Speed proof (light band) ---------------------------------------- */
.speed { padding: var(--section-y) 0; background: var(--paper-3); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); max-width: 980px; margin: var(--s-8) auto 0; }
.metric-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); padding: 36px 28px; text-align: center; }
.metric-card.sm { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.metric-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 16px; }
.metric-value { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--ink); }
.metric-card.sm .metric-value { color: var(--pink); }
.metric-value .arrow { color: var(--ink-faint); margin: 0 6px; }
.metric-value .after { color: var(--good-ink); }
.honest-note { max-width: 660px; margin: var(--s-6) auto 0; text-align: center; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.65; }
.honest-note .label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.honest-note .label svg { width: 16px; height: 16px; stroke: var(--pink); fill: none; }

/* ---- Comparison table ------------------------------------------------- */
.vscompare { padding: var(--section-y) 0; background: var(--paper); }
.vscmp-wrap { max-width: 960px; margin: var(--s-8) auto 0; }
table.vscmp { width: 100%; border-collapse: collapse; }
table.vscmp th, table.vscmp td { text-align: left; padding: 16px 18px; vertical-align: middle; }
table.vscmp thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); border-bottom: 2px solid var(--line-2); }
table.vscmp thead th.col-sm { color: var(--pink-ink); }
table.vscmp tbody tr { border-bottom: 1px solid var(--line); }
table.vscmp tbody tr:last-child { border-bottom: none; }
.vsfeat { font-weight: 700; font-size: var(--t-small); color: var(--ink); width: 34%; }
table.vscmp td.cell { font-size: 14px; color: var(--ink-soft); width: 33%; }
.cell .row { display: flex; align-items: flex-start; gap: 10px; }
.ic { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ic svg { width: 12px; height: 12px; }
.c-best { background: var(--pink-wash); }
.c-best .v { color: var(--ink); font-weight: 700; }
.c-best .ic { background: var(--pink-wash); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent); }
.c-best .ic svg { stroke: var(--pink-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-yes { background: var(--good-bg); }
.c-yes .v { color: var(--ink); font-weight: 700; }
.c-yes .ic { background: var(--good-bg); border: 1px solid color-mix(in srgb, var(--good) 28%, transparent); }
.c-yes .ic svg { stroke: var(--good-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-partial .ic { background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.c-partial .ic svg { stroke: var(--amber); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-no .ic { background: var(--paper-3); border: 1px solid var(--line); }
.c-no .ic svg { stroke: var(--ink-faint); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- People who switched (light band) -------------------------------- */
.switched { padding: var(--section-y) 0; background: var(--paper-3); }
.switch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); max-width: 1040px; margin: var(--s-8) auto 0; align-items: stretch; }
.switch-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; }
.switch-card.stat { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.switch-stat-num { font-family: var(--font-display); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--pink); margin-bottom: 12px; }
.switch-stat-text { font-size: var(--t-body); color: var(--ink-soft); line-height: 1.55; flex: 1; }
.switch-quote { font-size: 1.25rem; font-weight: 500; line-height: 1.45; color: var(--ink); margin-bottom: 24px; flex: 1; text-wrap: pretty; }
.switch-attr { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.switch-avatar { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: var(--pink-wash); color: var(--pink-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; border: 1px solid color-mix(in srgb, var(--pink) 22%, transparent); }
.switch-name { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.switch-org { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.switch-logo { margin-top: auto; padding-top: 20px; }
.switch-logo img { height: 22px; width: auto; opacity: .8; }
[data-theme="dark"] .switch-logo img { filter: invert(1) brightness(1.8); }

/* ---- CTA band (ink) --------------------------------------------------- */
.cta-band { padding: clamp(72px,10vw,104px) 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.0; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--on-ink); margin-bottom: 18px; }
.cta-band .sub { font-size: var(--t-body-lg); color: var(--on-ink-soft); line-height: 1.5; max-width: 580px; margin: 0 auto 32px; }
.cta-band .micro { font-family: var(--font-mono); font-size: 12px; color: var(--on-ink-mute); margin-top: 16px; }
.cta-band-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- FAQ accordion (light band) -------------------------------------- */
.vsfaq { padding: var(--section-y) 0; background: var(--paper-3); }
.vsfaq .section-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.faq-section { max-width: 720px; margin: var(--s-7) auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; width: 100%; background: none; border: none; color: var(--ink); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .015em; font-size: 19px; text-align: left; transition: color .15s var(--ease); }
.faq-question:hover { color: var(--pink-ink); }
.faq-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s var(--ease), border-color .15s var(--ease); }
.faq-icon svg { width: 14px; height: 14px; stroke: var(--ink-mute); transition: transform .2s var(--ease), stroke .15s var(--ease); }
.faq-item.open .faq-icon { background: var(--pink-wash); border-color: color-mix(in srgb, var(--pink) 22%, transparent); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); stroke: var(--pink-ink); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-answer-inner { padding: 0 0 22px; font-size: var(--t-body); color: var(--ink-mute); line-height: 1.65; max-width: 640px; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: 1fr; max-width: 480px; }
  .switch-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  table.vscmp thead { display: none; }
  table.vscmp, table.vscmp tbody, table.vscmp tr, table.vscmp td, table.vscmp th { display: block; width: 100% !important; }
  table.vscmp tbody tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 16px; padding: 8px 4px; }
  table.vscmp .vsfeat { font-size: 1rem; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
  table.vscmp td.cell { padding: 12px 16px; }
  table.vscmp td.cell::before { content: attr(data-col); display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 6px; }
}
