/* ─── Whavester landing: page layout and the flowing sections ─────────
   Plain CSS on the tokens of tokens.css (which is never edited here); no
   Tailwind on this page. Sticky-safe: no overflow-x:hidden on any wrapper
   between <body> and the pinned stage (that would kill position:sticky);
   sections that bleed a glow clip themselves with overflow:clip; widths
   never use 100vw (the scrollbar would push the page wider than the
   viewport). The fixed bar is a direct child of <body> with no
   transformed ancestor. The pinned story is in story.css.            */

/* ─── Reset (the little the page needs) ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--whv-ink-0);
  color: var(--whv-paper);
  font-family: var(--whv-font-body);
  -webkit-text-size-adjust: 100%;
  /* Anchors land below the fixed bar, never under it. */
  scroll-padding-top: calc(var(--whv-nav-h) + var(--whv-safe-top) + 0.75rem);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
/* The words come from a text file that may one day carry a long compound
   word or an Arabic headline: a word that cannot fit its line breaks
   instead of widening the page (a 390px phone grew to 678px before). */
h1, h2, h3 { overflow-wrap: anywhere; }
p { overflow-wrap: break-word; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--whv-focus-ring); }
.whv-main { position: relative; }
/* The keyboard skip link drops in below the bar, not over the brand mark;
   parked, it sits fully above the viewport (tokens.css hides it by its own
   height only, which no longer clears the bar). */
.whv-skip {
  top: calc(var(--whv-safe-top) + var(--whv-nav-h) + 0.75rem);
  transform: translateY(calc(-100% - var(--whv-nav-h) - var(--whv-safe-top) - 1rem));
}

/* ─── The fixed bar ─────────────────────────────────────────────────── */
.whv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: var(--whv-safe-top);
  padding-left: var(--whv-safe-left); padding-right: var(--whv-safe-right);
  background: rgba(4, 7, 15, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--whv-line);
}
.whv-nav-inner {
  height: var(--whv-nav-h);
  max-width: var(--whv-content-max); margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.whv-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: var(--whv-tap); padding-right: 0.25rem;
  color: var(--whv-paper); text-decoration: none; border-radius: var(--whv-radius-s);
}
.whv-brand-mark { color: var(--whv-cyan); flex: none; }
.whv-wordmark { font-weight: 700; font-size: 0.875rem; letter-spacing: 0.14em; }
.whv-nav-links { display: none; margin-left: auto; gap: 1.25rem; }
.whv-nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--whv-tap); min-width: var(--whv-tap); padding: 0 0.25rem;
  color: var(--whv-paper-2); font-size: 0.9rem; text-decoration: none;
  border-radius: var(--whv-radius-s);
}
.whv-nav-links a:hover { color: var(--whv-paper); }
/* The primary action stays in the bar at every width: on a phone the
   story runs five screens before the next Sign in. Compact below 900px;
   the wordmark yields on the narrowest phones so the three fit. */
.whv-nav-cta { display: inline-flex; margin-left: auto; padding-inline: 1rem; font-size: 0.875rem; }
.whv-menu-btn {
  flex: none;
  width: var(--whv-tap); height: var(--whv-tap);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--whv-paper); border-radius: var(--whv-radius-s); cursor: pointer;
}
.whv-menu-btn:hover { background: rgba(255, 255, 255, 0.05); }
@media (max-width: 359px) { .whv-wordmark { display: none; } }
@media (min-width: 900px) {
  .whv-nav-links { display: flex; }
  .whv-nav-cta { margin-left: 0; padding-inline: 1.25rem; font-size: 0.9375rem; }
  .whv-menu-btn { display: none; }
}

/* ─── The phone menu (a dialog; nav.js runs it) ─────────────────────── */
.whv-menu { position: fixed; inset: 0; z-index: 200; }
.whv-menu[hidden] { display: none; }
.whv-menu-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 15, 0.72); }
.whv-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(22rem, 88%);
  padding: calc(var(--whv-safe-top) + 0.25rem) calc(var(--whv-safe-right) + 1.25rem)
           calc(var(--whv-safe-bottom) + 1.5rem) 1.25rem;
  background: var(--whv-ink-1); border-left: 1px solid var(--whv-line);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.9);
  display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto;
}
.whv-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--whv-nav-h); }
.whv-menu-close {
  width: var(--whv-tap); height: var(--whv-tap); margin-right: -0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--whv-paper); border-radius: var(--whv-radius-s); cursor: pointer;
}
.whv-menu-links { display: grid; }
.whv-menu-links a {
  display: flex; align-items: center; min-height: 3.25rem;
  font-family: var(--whv-font-display); font-variation-settings: var(--whv-display-axes-small);
  font-size: 1.5rem; color: var(--whv-paper); text-decoration: none;
  border-bottom: 1px solid var(--whv-line);
}
.whv-menu-links a:hover { color: var(--whv-cyan); }
.whv-menu-cta { align-self: flex-start; }
html.whv-menu-open { overflow: hidden; }   /* body scroll locked while open */
@media (min-width: 900px) { .whv-menu { display: none !important; } }

/* ─── Sections ──────────────────────────────────────────────────────── */
.whv-section {
  position: relative;
  /* 7rem of air on a desk, 4rem on a phone: at 112px top and bottom a
     390px screen showed 224px of ink between the last line of one
     section and the next heading. */
  padding: clamp(4rem, 2.5rem + 6vw, var(--whv-space-9)) 0;
  scroll-margin-top: calc(var(--whv-nav-h) + var(--whv-safe-top));
}
.whv-section:focus { outline: none; }
.whv-section-inner {
  max-width: var(--whv-content-max); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.whv-section-head { margin-bottom: var(--whv-space-7); }
.whv-section-title {
  font-size: var(--whv-step-3); margin-top: 0.75rem; max-width: 18ch;
  scroll-margin-top: calc(var(--whv-nav-h) + var(--whv-safe-top) + 0.75rem);
}
.whv-section + .whv-section { border-top: 1px solid var(--whv-line); }

/* What it does: six cards, the first and the last wider — an asymmetric
   ledger that bookends (2+1 / 1+1+1 / 3), not three icons in a row and
   no orphan in the last row. The last card lays its title beside its
   text so a full-width card reads as a row, not a hole. */
.whv-features { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.whv-feature {
  padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start;
  position: relative; overflow: clip;
}
.whv-feature::after {
  content: ''; position: absolute; inset: auto -30% -40% auto; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.10), transparent 75%);
  pointer-events: none; opacity: 0; transition: opacity var(--whv-dur) var(--whv-ease-out);
}
.whv-feature:hover::after { opacity: 1; }
.whv-feature-title {
  font-family: var(--whv-font-display); font-weight: 500;
  font-variation-settings: var(--whv-display-axes-small);
  font-size: var(--whv-step-1); line-height: 1.15; color: var(--whv-paper);
}
.whv-feature-text { font-size: 1rem; line-height: 1.55; color: var(--whv-paper-2); text-wrap: pretty; }
@media (min-width: 640px) { .whv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .whv-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .whv-feature:first-child { grid-column: span 2; }
  .whv-feature:first-child .whv-feature-text { max-width: 52ch; }
  .whv-feature:last-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 2.5rem; align-items: start;
  }
}

/* How it works: the head stays beside the steps on wide screens. */
.whv-section-how { overflow: clip; }
.whv-steps { display: grid; }
.whv-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--whv-line-strong);
}
.whv-step:last-child { border-bottom: 1px solid var(--whv-line-strong); }
.whv-step-n { font-family: var(--whv-font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--whv-cyan); padding-top: 0.4rem; }
.whv-step-title {
  font-family: var(--whv-font-display); font-weight: 500;
  font-variation-settings: var(--whv-display-axes-small);
  font-size: var(--whv-step-1); line-height: 1.15; margin-bottom: 0.5rem;
}
.whv-step-text { color: var(--whv-paper-2); line-height: 1.6; max-width: var(--whv-measure); text-wrap: pretty; }
@media (min-width: 900px) {
  .whv-section-how .whv-section-inner { display: grid; grid-template-columns: 5fr 7fr; column-gap: 4rem; }
  .whv-section-how .whv-section-head {
    position: sticky; top: calc(var(--whv-nav-h) + var(--whv-safe-top) + 2rem);
    align-self: start; margin-bottom: 0;
  }
}

/* Built for trust: four points on a two-column rule. */
.whv-trust { display: grid; gap: 2rem 3rem; }
.whv-trust-item { padding-top: 1.25rem; border-top: 1px solid var(--whv-line-strong); position: relative; }
.whv-trust-item::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 3rem; height: 1px; background: var(--whv-cyan);
}
.whv-trust-title {
  font-family: var(--whv-font-display); font-weight: 500;
  font-variation-settings: var(--whv-display-axes-small);
  font-size: var(--whv-step-1); line-height: 1.15; margin-bottom: 0.5rem;
}
.whv-trust-text { color: var(--whv-paper-2); line-height: 1.6; text-wrap: pretty; }
@media (min-width: 720px) { .whv-trust { grid-template-columns: 1fr 1fr; } }

/* Sources: three entries on the same rule and in the same voice as the
   trust points (display titles, paper-2 text), so the one factual list
   on the page does not read as a different product. */
.whv-sources { display: grid; gap: 1.5rem; }
.whv-source { padding: 1.25rem 0 0; border-top: 1px solid var(--whv-line-strong); }
.whv-source-title {
  font-family: var(--whv-font-display); font-weight: 500;
  font-variation-settings: var(--whv-display-axes-small);
  font-size: var(--whv-step-1); line-height: 1.15; margin-bottom: 0.5rem;
}
.whv-source-text { color: var(--whv-paper-2); line-height: 1.6; text-wrap: pretty; }
@media (min-width: 720px) { .whv-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* The closing sign-in. */
.whv-section-closing { overflow: clip; text-align: center; }
.whv-section-closing::before {
  content: ''; position: absolute; left: 50%; bottom: -30%; width: 70%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14), transparent 75%);
  pointer-events: none;
}
.whv-closing { position: relative; display: grid; justify-items: center; gap: 1rem; }
.whv-closing .whv-section-head { display: grid; justify-items: center; margin-bottom: 0; }
.whv-closing-title { font-size: var(--whv-step-4); max-width: 14ch; }
.whv-closing-line { text-align: center; }
.whv-closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }

/* Footer: the mark returns, and the promise is the last line read. */
.whv-footer { border-top: 1px solid var(--whv-line); padding: 2rem 0 calc(2rem + var(--whv-safe-bottom)); }
.whv-footer-inner {
  max-width: var(--whv-content-max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: var(--whv-paper-3);
}
.whv-footer-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.whv-footer-brand .whv-brand-mark { color: var(--whv-cyan); flex: none; }
.whv-footer-links { display: flex; gap: 1.25rem; }
.whv-footer-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--whv-tap); min-width: var(--whv-tap);
}
