/* zurico.ch — storefront
   Palette and type follow the guides themselves: navy, cream, Swiss red. */

:root {
  --navy: #0b2e52;
  --navy-deep: #082340;
  --navy-lift: #14406f;
  --cream: #f4f1ea;
  --paper: #fbf9f4;
  --sand: #e9e4d8;
  --ink: #1b2430;
  --muted: #5b6878;
  --red: #da291c;
  --sky: #4f97d6;
  --mint: #86c9ae;
  --pale: #dbe8f4;
  --haze: #b9d0e6;

  --sans: "Avenir Next", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --serif: "Charter", "Source Serif 4", Georgia, serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { width: min(100%, 1040px); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
[data-theme="dark"] .eyebrow { color: var(--haze); }

.h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1; letter-spacing: -.03em; font-weight: 700;
  text-wrap: balance;
}

/* ── wordmark ── */
.mark { font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.mark b { color: var(--red); }
.mark--big { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ── buttons ── */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15.5px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .3s, background .3s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translate(3px, 0); }
.btn--light { --bg: var(--cream); --fg: var(--navy); }
.btn--light:hover svg { transform: translate(0, 3px); }
.btn--red { --bg: var(--red); padding: 19px 28px; font-size: 17px; box-shadow: 0 14px 40px -12px rgba(218, 41, 28, .7); }
.btn--red:hover { box-shadow: 0 20px 50px -12px rgba(218, 41, 28, .9); }
.btn--buy { --bg: var(--cream); --fg: var(--ink); padding: 6px 6px 6px 22px; gap: 16px; }
.btn--buy .price {
  display: inline-flex; gap: 8px; align-items: baseline;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums; transition: background .3s;
}
.btn--buy:hover .price { background: var(--red); }
.btn .logo-full { display: none; }
.price s { opacity: .55; font-weight: 500; font-size: .86em; }

.link { color: inherit; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; opacity: .85; transition: opacity .2s; }
.link:hover { opacity: 1; }

/* ── progress + nav ── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  color: var(--cream);
  transition: transform .5s var(--ease), color .35s, background .35s;
}
.nav[data-theme="light"] { color: var(--navy); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: color-mix(in srgb, var(--nav-bg, var(--navy-deep)) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav[data-theme="light"].is-scrolled { --nav-bg: var(--cream); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 14.5px; font-weight: 600; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links .nav__cta { opacity: 1; padding: 9px 16px; border-radius: 999px; border: 1.5px solid currentColor; transition: background .25s, color .25s, border-color .25s; }
.nav__links .nav__cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 760px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ═════════════ HERO ═════════════ */
.hero {
  position: relative; min-height: max(100svh, 620px); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  color: #fff;
  background: radial-gradient(120% 90% at 28% 30%, var(--navy-lift) 0, var(--navy) 48%, var(--navy-deep) 100%);
}
.hero__sky { position: absolute; inset: 0; z-index: -1; }
.star {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff; opacity: .5;
  animation: twinkle var(--t) ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .1; transform: scale(.6); } }

.hero__copy {
  position: relative; z-index: 2;
  padding: clamp(92px, 13vh, 170px) var(--gut) 24vh;
  width: min(100%, 1320px); margin-inline: auto;
}
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--haze); margin-bottom: clamp(18px, 3vh, 34px); }
.hero__eyebrow span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--red); margin-right: 22px; vertical-align: middle; }
/* phones: the row would wrap and strand a dot at the start of line two,
   so stack the items and give every line its own bullet instead */
@media (max-width: 560px) {
  .hero__eyebrow { flex-direction: column; flex-wrap: nowrap; gap: 10px; font-size: 11.5px; letter-spacing: .18em; }
  .hero__eyebrow span { display: flex; align-items: center; gap: 12px; }
  .hero__eyebrow span::before,
  .hero__eyebrow span + span::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--red); margin: 0; }
}

.hero__title {
  font-size: clamp(2.2rem, min(10.2vw, 11.5vh), 8rem);
  line-height: .96; letter-spacing: -.04em; font-weight: 700;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .ln > span { display: block; }
.hero__title .ln--dim { color: var(--sky); }
.hero__title em { font-style: normal; color: #fff; position: relative; white-space: nowrap; display: inline-block; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: .14em; bottom: -.06em; height: .07em;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(1);
}

.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px;
  margin-top: clamp(22px, 4vh, 44px);
}
.hero__lede { max-width: 25em; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--pale); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; color: var(--pale); font-size: 15px; }

.hero__scene {
  position: absolute; inset: auto 0 0; z-index: 1; height: clamp(220px, 38vh, 420px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#0000 0, #000 22%); mask-image: linear-gradient(#0000 0, #000 22%);
}
.hero__scene svg { width: 100%; height: 100%; overflow: visible; }
.hero__scene g { will-change: transform; }
.tram { animation: tram 38s linear infinite; }
@keyframes tram { from { transform: translateX(-140px); } to { transform: translateX(1500px); } }
.ripples path { stroke-dasharray: 60 22; animation: ripple 9s linear infinite; }
@keyframes ripple { to { stroke-dashoffset: -164; } }

.hero__clock {
  position: absolute; right: var(--gut); bottom: 18px; z-index: 3;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--pale);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(8, 35, 64, .6);
}
.hero__clock b { font-variant-numeric: tabular-nums; color: #fff; }
.hero__clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(134, 201, 174, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(134, 201, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(134, 201, 174, 0); } }

/* hero load-in (only when JS is present; otherwise everything is simply visible) */
.js .hero__title .ln > span { transform: translateY(105%); animation: lineUp 1.15s var(--ease-out) forwards; }
.js .hero__title .ln:nth-child(1) > span { animation-delay: .15s; }
.js .hero__title .ln:nth-child(2) > span { animation-delay: .25s; }
.js .hero__title .ln:nth-child(3) > span { animation-delay: .42s; }
.js .hero__title .ln:nth-child(4) > span { animation-delay: .52s; }
.js .hero__title em::after { transform: scaleX(0); animation: strike .8s 1.35s var(--ease-out) forwards; }
.js .hero__eyebrow, .js .hero__foot, .js .hero__clock { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.js .hero__eyebrow { animation-delay: .05s; }
.js .hero__foot { animation-delay: .9s; }
.js .hero__clock { animation-delay: 1.5s; }
.js .rise { transform: translateY(70px); opacity: 0; animation: rise 1.6s var(--d) var(--ease-out) forwards; }
@keyframes lineUp { to { transform: none; } }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; opacity: 1; } }

/* ═════════════ MANIFESTO ═════════════ */
.manifesto { padding: clamp(90px, 16vh, 190px) 0 clamp(80px, 13vh, 150px); background: var(--cream); }
.manifesto .eyebrow { margin-bottom: 34px; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 3.05rem); line-height: 1.22; letter-spacing: -.012em;
  color: var(--navy); text-wrap: pretty;
}
.manifesto__text em { font-style: italic; color: var(--red); }
.manifesto__text--2 { margin-top: 1.1em; }
.js .manifesto__text .w { opacity: .14; transition: opacity .5s; }
.js .manifesto__text .w.on { opacity: 1; }

.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(50px, 8vh, 90px); border-top: 1.5px solid var(--navy); }
.pledges li { padding: 22px 26px 0 0; font-size: 15.5px; color: var(--muted); }
.pledges li + li { padding-left: 26px; border-left: 1px solid #d9d3c5; }
.pledges b { display: block; color: var(--navy); font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
@media (max-width: 760px) {
  .pledges { grid-template-columns: 1fr; }
  .pledges li, .pledges li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid #d9d3c5; }
}

/* ═════════════ TICKER ═════════════ */
.ticker { background: var(--navy); color: var(--cream); overflow: hidden; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ticker__track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  animation: ticker 46s linear infinite;
  transform: skewX(var(--skew, 0deg));
}
.ticker__track i { width: 9px; height: 9px; background: var(--red); flex: none; }
@keyframes ticker { to { translate: -50% 0; } }

/* ═════════════ THE YEAR ═════════════ */
.year {
  --bg: #0b2e52; --accent: #86c9ae;
  position: relative; color: #fff;
  background: var(--bg); transition: background 1s var(--ease);
}
.year__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 78% 50%, rgba(255, 255, 255, .09), transparent 70%);
  background-attachment: fixed;
}
.year__head { position: relative; padding-top: clamp(80px, 13vh, 150px); padding-bottom: clamp(30px, 6vh, 70px); }
.year__head .eyebrow { margin-bottom: 22px; }
.year__intro { margin-top: 22px; max-width: 30em; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--pale); }

.year__body { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }

/* rail */
.rail { position: sticky; top: 0; height: 100vh; align-self: start; display: flex; align-items: center; }
.rail ol { display: grid; gap: 4px; padding-left: 22px; }
.rail a { display: block; padding: 7px 0; text-decoration: none; opacity: .38; transition: opacity .4s, transform .5s var(--ease-out); }
.rail a:hover { opacity: .8; }
.rail b { display: block; font-size: 15px; letter-spacing: -.01em; }
.rail span { display: block; font-size: 12px; color: var(--haze); letter-spacing: .02em; }
.rail li.on a { opacity: 1; transform: translateX(6px); }
.rail li.on b { color: var(--accent); transition: color .6s; }
.rail__line { position: absolute; left: 0; top: 50%; height: 440px; max-height: 70vh; translate: 0 -50%; width: 2px; background: rgba(255, 255, 255, .14); }
.rail__line i { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--rp, 0)); transition: background .6s; }

/* chapter */
.chapter {
  min-height: 100vh; padding: 9vh 0;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(28px, 5vw, 90px);
}
.chapter__text { container-type: inline-size; }
.chapter__no { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--haze); }
.chapter__no i { width: 34px; height: 1.5px; background: currentColor; opacity: .6; }

.deadline {
  margin: 14px 0 0 -.04em;
  font-size: clamp(3.4rem, 19cqi, 10rem); line-height: .9; letter-spacing: -.055em; font-weight: 700;
  white-space: nowrap; overflow: hidden; padding-bottom: .1em;
  font-variant-numeric: lining-nums;
}
.deadline .ch { display: inline-block; white-space: pre; }
.js .deadline .ch { transform: translateY(110%) rotate(6deg); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 38ms); }
.js .chapter.in .deadline .ch { transform: none; }

.deadline__note {
  margin-top: 6px; max-width: 26em;
  font-family: var(--serif); font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.42; color: var(--pale);
  padding-left: 16px; border-left: 2px solid var(--red);
}
.guide { margin-top: clamp(26px, 4.5vh, 46px); padding-top: clamp(22px, 3.5vh, 34px); border-top: 1px solid rgba(255, 255, 255, .18); max-width: 34em; }
.guide h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.025em; line-height: 1.05; }
.guide__hook { margin-top: 10px; color: var(--pale); font-size: 16.5px; }
.can { margin-top: 18px; display: grid; gap: 9px; }
.can li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.can li::before {
  content: ""; position: absolute; left: 2px; top: .32em; width: 13px; height: 7px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); rotate: -45deg;
}
.buy { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.buy .meta { order: 2; font-size: 13.5px; color: var(--haze); letter-spacing: .01em; }

.js .chapter__text > *:not(.deadline), .js .guide > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .chapter__text > .guide { opacity: 1; transform: none; }
.js .chapter.in .chapter__text > *, .js .chapter.in .guide > * { opacity: 1; transform: none; }
.js .chapter.in .chapter__no { transition-delay: 0s; }
.js .chapter.in .deadline__note { transition-delay: .32s; }
.js .chapter.in .guide > :nth-child(1) { transition-delay: .42s; }
.js .chapter.in .guide > :nth-child(2) { transition-delay: .5s; }
.js .chapter.in .guide > :nth-child(3) { transition-delay: .58s; }
.js .chapter.in .guide > :nth-child(4) { transition-delay: .66s; }

/* book */
.chapter__art { display: grid; place-items: center; perspective: 1400px; }
.book { width: min(100%, 400px); transform-style: preserve-3d; translate: 0 calc(var(--drift, 0) * 1px); }
.book__in {
  position: relative; border-radius: 5px; transform-style: preserve-3d;
  transform: rotateY(calc(var(--ry, -16) * 1deg)) rotateX(calc(var(--rx, 4) * 1deg));
  transition: transform .9s var(--ease-out);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, .12) inset,
    0 2px 2px rgba(0, 0, 0, .2), 0 14px 22px -6px rgba(0, 0, 0, .35), 34px 60px 90px -20px rgba(0, 0, 0, .6);
}
.book.is-live .book__in { transition-duration: .18s; }
.book img { width: 100%; border-radius: 5px; }
.book__in::before { /* page block */
  content: ""; position: absolute; inset: 5px -9px 5px auto; width: 10px;
  background: repeating-linear-gradient(90deg, #efe9dc 0 1.5px, #cfc8b8 1.5px 2.5px);
  transform: translateZ(-12px) rotateY(72deg); transform-origin: 0 50%; border-radius: 0 2px 2px 0;
}
.book__in::after { /* spine crease */
  content: ""; position: absolute; inset: 0; border-radius: 5px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .14) 1.6%, transparent 4.5%, transparent);
}
.book__glare {
  position: absolute; inset: 0; border-radius: 5px; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 50% at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 70%);
  opacity: var(--go, .35); transition: opacity .5s;
}
.js .book { opacity: 0; scale: .9; transition: opacity 1s var(--ease-out), scale 1.3s var(--ease-out); }
.js .chapter:not(.in) .book__in { transform: rotateY(-58deg) rotateX(8deg); }
.js .chapter.in .book { opacity: 1; scale: 1; }

@media (max-width: 1080px) {
  .year__body { grid-template-columns: 1fr; }
  .rail { display: none; }
}
@media (max-width: 800px) {
  .chapter { grid-template-columns: 1fr; min-height: 0; padding: 70px 0; gap: 36px; }
  .chapter__art { order: -1; justify-items: start; }
  .book { width: min(62%, 250px); margin-left: 14px; }
  .chapter + .chapter { border-top: 1px solid rgba(255, 255, 255, .12); }
  .year__glow { display: none; }
}

/* ═════════════ INSIDE ═════════════ */
.inside { background: var(--cream); padding-bottom: clamp(70px, 11vh, 130px); }
.inside__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: 76px 0 30px; }
.inside__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 30px; }
.inside__head .eyebrow { grid-column: 1 / -1; }
.inside__head .h2 { color: var(--navy); font-size: clamp(2rem, 4.6vw, 3.8rem); }
.inside__hint { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding-bottom: 6px; white-space: nowrap; }
.inside__hint svg { width: 24px; height: 10px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.only-native { display: none; }
.inside__track { display: flex; gap: clamp(18px, 2.6vw, 40px); padding-inline: var(--gut); width: max-content; will-change: transform; }
.page { flex: none; width: clamp(230px, 27vh, 340px); }
.page img {
  width: 100%; border-radius: 3px; background: #fff;
  box-shadow: 0 1px 1px rgba(27, 36, 48, .08), 0 18px 40px -18px rgba(27, 36, 48, .35);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.page:nth-child(odd) img { rotate: -.8deg; }
.page:nth-child(even) img { rotate: .7deg; translate: 0 10px; }
.page:hover img { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px -22px rgba(27, 36, 48, .5); }
.page figcaption { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.page figcaption b { color: var(--navy); display: block; }

.inside.is-native .inside__sticky { position: static; height: auto; padding-top: clamp(70px, 11vh, 120px); }
.inside.is-native .inside__viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-block: 16px 10px; }
.inside.is-native .inside__viewport::-webkit-scrollbar { display: none; }
.inside.is-native .page { scroll-snap-align: center; width: min(68vw, 300px); }
.inside.is-native .only-native { display: inline; }
.inside.is-native .only-pin { display: none; }
@media (max-width: 640px) { .inside__head { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(30px, 6vh, 70px); border-top: 1.5px solid var(--navy); }
.fact { padding: 24px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid #d9d3c5; }
.fact b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.fact b i { font-style: normal; color: var(--red); margin: 0 .04em; }
.fact p { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 20em; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px 22px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid #d9d3c5; }
  .fact:nth-child(n+3) { border-top: 1px solid #d9d3c5; }
}

/* ═════════════ LETTER ═════════════ */
.letter { background: var(--sand); padding: clamp(80px, 14vh, 160px) 0; }
.letter__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.letter .h2 { color: var(--navy); font-size: clamp(2rem, 4.2vw, 3.5rem); margin-top: 20px; }
.letter__lede { margin-top: 22px; font-family: var(--serif); font-size: 1.14rem; color: #36506e; max-width: 30em; }

.calc { margin-top: 34px; padding: 26px; border-radius: 18px; background: var(--paper); box-shadow: 0 1px 0 #fff inset, 0 20px 50px -30px rgba(11, 46, 82, .45); }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.calc__row output { font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 8px 0 14px; background: none; cursor: grab; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy) var(--fill, 30%), #d5dfe9 var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #d5dfe9; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--navy); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 4px 12px rgba(11, 46, 82, .3); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calc__seg legend { font-weight: 600; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.calc__seg label { position: relative; cursor: pointer; }
.calc__seg input { position: absolute; opacity: 0; inset: 0; }
.calc__seg span { display: block; text-align: center; padding: 11px 0; border-radius: 10px; background: #eef1f4; font-weight: 700; font-size: 15px; color: var(--muted); transition: background .25s, color .25s; font-variant-numeric: tabular-nums; }
.calc__seg input:checked + span { background: var(--navy); color: #fff; }
.calc__seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.calc__result { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #c9d3de; }
.calc__label { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.calc__big { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; color: var(--red); font-variant-numeric: tabular-nums; }
.calc__big small { font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.calc__small { color: var(--muted); font-size: 14.5px; }
.fineprint { margin-top: 18px; font-size: 12.5px; color: var(--muted); max-width: 36em; }

.sheetwrap { position: sticky; top: 90px; }
.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(11, 46, 82, .09); margin-bottom: 18px; }
.lang button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 20px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); transition: color .3s; border-radius: 999px; }
.lang button[aria-selected="true"] { color: #fff; }
.lang i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--navy); transition: transform .5s var(--ease-out); }
.lang:has([data-lang="en"][aria-selected="true"]) i { transform: translateX(100%); }

.sheet {
  position: relative; background: #fffefb; border-radius: 4px; padding: clamp(26px, 4vw, 54px);
  font-family: var(--serif); font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 1.6; color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 36, 48, .06), 0 40px 80px -40px rgba(11, 46, 82, .5);
  rotate: .6deg;
}
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--navy); border-radius: 4px 4px 0 0; }
.sheet p + p { margin-top: 1em; }
.sheet__stamp { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sheet__subject { font-family: var(--sans); font-weight: 700; font-size: 1.12em; color: var(--navy); }
.sheet mark { background: none; color: #0f4c81; font-weight: 600; box-shadow: inset 0 -.55em 0 #e3eefa; transition: box-shadow .4s; }
.sheet mark.flash { box-shadow: inset 0 -1.3em 0 #ffe9a8; }
.sheet__sig { margin-top: 2.2em !important; }
.sheet__pane { animation: paneIn .55s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.sheet__none { font-family: var(--sans); font-weight: 600; color: var(--navy); }
.sheet__cap { margin-top: 18px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .letter__grid { grid-template-columns: 1fr; }
  .sheetwrap { position: static; }
}

/* ═════════════ LIBRARY ═════════════ */
.library {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(90% 70% at 50% 0, var(--navy-lift), var(--navy) 50%, var(--navy-deep));
  padding: clamp(70px, 12vh, 140px) 0 clamp(90px, 14vh, 170px);
}
.library__in { display: flex; flex-direction: column; align-items: center; }
.fan { --spread: clamp(30px, 7.4vw, 104px); position: relative; width: 100%; height: clamp(250px, 36vw, 470px); margin-bottom: clamp(30px, 6vh, 70px); }
.fan img {
  position: absolute; left: 50%; bottom: 0; width: clamp(130px, 19vw, 250px); margin-left: calc(clamp(130px, 19vw, 250px) / -2);
  border-radius: 4px; transform-origin: 50% 130%;
  box-shadow: -8px 12px 30px -8px rgba(0, 0, 0, .55);
  transform:
    translateX(calc((var(--i) - 3.5) * var(--fan, 1) * var(--spread)))
    translateY(calc(var(--a) * var(--a) * var(--fan, 1) * 4px))
    rotate(calc((var(--i) - 3.5) * var(--fan, 1) * var(--rot, 4.2deg)));
  transition: translate .5s var(--ease-out);
  will-change: transform;
}
.fan img:hover { translate: 0 -26px; }
@media (max-width: 700px) { .fan { --spread: 27px; --rot: 2.4deg; height: 230px; margin-bottom: 64px; } }
.library__title { font-size: clamp(2.6rem, 7.4vw, 6.4rem); margin-top: 20px; }
.library__lede { margin-top: 22px; max-width: 30em; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--pale); }
.library__buy { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.library__price { display: flex; align-items: baseline; gap: 16px; }
.library__price s { color: var(--haze); font-size: 1.2rem; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.library__price b { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.library__note { font-size: 13.5px; color: var(--haze); }

/* ═════════════ FAQ + FOOT ═════════════ */
.faq { padding: clamp(80px, 13vh, 150px) 0; background: var(--cream); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); }
.faq .h2 { color: var(--navy); }
.faq details { border-top: 1.5px solid var(--navy); }
.faq details:last-child { border-bottom: 1.5px solid var(--navy); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -.015em; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--red), var(--red)) 50% / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) 50% / 2px 100% no-repeat; transition: rotate .45s var(--ease-out); }
.faq details[open] summary::after { rotate: 135deg; }
.faq details p { padding: 0 40px 26px 0; font-family: var(--serif); font-size: 1.08rem; color: #36506e; max-width: 38em; animation: paneIn .5s var(--ease-out); }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

.foot { background: var(--navy-deep); color: var(--pale); padding: 70px 0 34px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot .mark { color: #fff; }
.foot__in p { margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; font-size: 15px; }
.foot nav a { text-decoration: none; opacity: .8; }
.foot nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.foot__legal { padding-top: 24px; font-size: 13px; color: var(--haze); }

/* ═════════════ generic reveals ═════════════ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .hero__title .ln > span, .js .rise, .js .deadline .ch, .js .book, .js [data-reveal], .js [data-stagger] > *,
  .js .chapter__text > *, .js .guide > *, .js .hero__eyebrow, .js .hero__foot, .js .hero__clock { opacity: 1 !important; transform: none !important; scale: 1 !important; }
  .js .hero__title em::after { transform: scaleX(1); }
  .js .manifesto__text .w { opacity: 1; }
  .js .chapter:not(.in) .book__in { transform: rotateY(-16deg) rotateX(4deg); }
}

/* ── legal / support pages ── */
.page-legal .nav { position: absolute; }
.legal-hero { background: var(--navy-deep); color: var(--cream); padding: clamp(120px, 18vh, 170px) 0 clamp(44px, 7vh, 80px); }
.legal-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.legal-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.01em; max-width: 18ch; }
.legal-hero p { margin-top: 16px; color: var(--haze); font-size: 16px; }
.legal { background: var(--cream); padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 110px); }
.legal__in { max-width: 720px; margin-inline: auto; padding-inline: var(--gut); }
.legal__lede { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--navy); margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--sand); }
.legal p { color: var(--ink); opacity: .86; margin-bottom: 14px; }
.legal a { color: var(--navy-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--red); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; opacity: .86; }
.faq { background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.faq h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.faq p { margin: 0; }
.contact { background: var(--navy); color: var(--cream); border-radius: 18px; padding: clamp(26px, 5vw, 40px); margin-top: 44px; }
.contact h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; }
.contact p { color: var(--pale); opacity: 1; margin-bottom: 22px; }
.legal .contact .btn { color: var(--navy); text-decoration: none; }
.legal .contact .btn:hover { color: var(--navy); }

/* ── contact form ── */
.cform { display: grid; gap: 18px; }
.cform label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.cform input, .cform select, .cform textarea { width: 100%; padding: 13px 15px; background: var(--paper); border: 1px solid var(--sand); border-radius: 12px; font-weight: 400; font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color .15s var(--ease); }
.cform select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%230b2e52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
.cform input:hover, .cform select:hover, .cform textarea:hover { border-color: #cfc7b6; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--navy-lift); outline-offset: 1px; }
.cform .btn { justify-self: start; border: 0; cursor: pointer; }
.cform__thanks { background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; padding: 26px 28px; }
.cform__thanks[hidden], .cform[hidden] { display: none; }

/* yearly-figures card: the Pillar 3a limit rolls from 2026 to 2027 when it scrolls into view.
   Without JS (or with reduced motion) the card simply shows the finished 2027 state. */
.yearly { padding: clamp(70px, 11vh, 130px) 0; background: var(--paper); }
.yearly__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.yearly .h2 { color: var(--navy); }
.yearly p { color: var(--ink); max-width: 46ch; margin-top: 16px; }
@media (max-width: 760px) { .yearly__in { grid-template-columns: 1fr; } }

.ycard { position: relative; overflow: hidden; background: var(--cream); border-radius: 16px; padding: 28px; color: var(--navy); isolation: isolate; }
.ycard::before { /* soft glow that drifts behind the numbers */
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 201, 174, .35), transparent);
  animation: glowDrift 12s ease-in-out infinite alternate;
}
.ycard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ycard__tag { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.ycard__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: dotPulse 2.4s ease-in-out infinite; }
.ycard__year { display: inline-block; height: 1.3em; overflow: hidden; font-weight: 800; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ycard__year > span { display: flex; flex-direction: column; }
.ycard__year b { display: block; height: 1.3em; font-weight: inherit; }
.ycard__label { margin: 26px 0 0; max-width: none; color: var(--muted); font-size: 15px; }
.ycard__num { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ycard__chf { font-size: .38em; letter-spacing: .06em; color: var(--muted); }
.ycard__chip { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.ycard__months { display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--sand); }
.ycard__months i { flex: 1; display: grid; justify-items: center; gap: 8px; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.ycard__months i::before { content: ""; width: 2px; height: 14px; border-radius: 2px; background: var(--sand); transform-origin: bottom; }
.ycard__months i.is-new { color: var(--red); }
.ycard__months i.is-new::before { background: var(--red); height: 26px; }

/* animated state: only when the script has armed the card */
.ycard[data-anim] { opacity: 0; transform: translateY(40px) scale(.97); }
.ycard[data-anim="play"] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.ycard[data-anim] .ycard__year > span { transform: translateY(0); }
.ycard[data-anim="play"] .ycard__year > span { transform: translateY(-50%); transition: transform .9s 1.1s cubic-bezier(.7, 0, .2, 1); }
.ycard[data-anim] .ycard__chip { opacity: 0; transform: translateY(8px) scale(.9); }
.ycard[data-anim="play"] .ycard__chip { opacity: 1; transform: none; transition: opacity .5s 2.3s var(--ease-out), transform .6s 2.3s cubic-bezier(.3, 1.8, .5, 1); }
.ycard[data-anim] .ycard__months i::before { transform: scaleY(0); }
.ycard[data-anim="play"] .ycard__months i::before { transform: none; transition: transform .6s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .3s); }
.ycard[data-anim="play"] .ycard__months i.is-new::before { animation: janPulse 2.4s 2.6s ease-in-out infinite; transform-origin: bottom; }
@keyframes janPulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .ycard::before, .ycard__tag::before, .ycard__months i.is-new::before { animation: none !important; }
}

/* envelope badge (contact page): draws itself once the form enters */
.cform__badge { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.cform__badge svg { flex: none; overflow: visible; }
.cform__badge-text { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.env-dot { transform-origin: 49px 15px; }
.js .env-body, .js .env-flap { stroke-dasharray: 140; stroke-dashoffset: 140; }
.js .env-dot { transform: scale(0); }
@keyframes envDraw { to { stroke-dashoffset: 0; } }
@keyframes dotPop { to { transform: scale(1); } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes flapNudge { 0%, 90%, 100% { transform: translateY(0); } 94% { transform: translateY(-2px); } 97% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) {
  .js .env-body, .js .env-flap { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .env-dot { transform: scale(1) !important; animation: none !important; }
}

/* after-the-first-year guides */
.more { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper); }
.more .h2 { color: var(--navy); }
.more__lede { max-width: 56ch; margin: 16px 0 40px; color: var(--ink); }
.more__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 640px) { .more__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .more__grid { grid-template-columns: repeat(5, 1fr); } }
.more__card { display: grid; gap: 8px; align-content: start; color: var(--ink); text-decoration: none; }
.more__card img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(11,46,82,.18); transition: translate .45s var(--ease-out); }
.more__card:hover img { translate: 0 -6px; }
.more__card h3 { font-size: 1.05rem; letter-spacing: -.01em; color: var(--navy); margin-top: 8px; }
.more__card p { font-size: 14px; margin: 0; }
.more__card span { font-weight: 700; color: var(--red); font-size: 14px; }
.more__bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; justify-content: space-between; margin-top: 48px; padding: 26px 28px; background: var(--cream); border-radius: 16px; }
.more__bundle div { display: grid; gap: 4px; max-width: 52ch; }
.more__bundle strong { color: var(--navy); font-size: 1.15rem; }
.more__bundle span { font-size: 15px; }
.more__bundle .library__price b { font-size: 2rem; color: var(--navy); }
.more__bundle .library__price s { font-size: 1rem; color: #6b7280; }

.buy .meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ═════════════ inner pages (contact, support, privacy, terms) ═════════════ */
.page-legal .legal-hero { position: relative; overflow: hidden; }
.page-legal .legal-hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 201, 174, .22), transparent);
  animation: glowDrift 14s ease-in-out infinite alternate; pointer-events: none;
}
.page-legal .legal-hero .wrap { position: relative; }
.page-legal .legal-hero .eyebrow, .page-legal .legal-hero h1, .page-legal .legal-hero p { animation: fadeUp 1s var(--ease-out) both; }
.page-legal .legal-hero .eyebrow { animation-delay: .05s; }
.page-legal .legal-hero h1 { animation-delay: .18s; }
.page-legal .legal-hero p { animation-delay: .34s; }
.page-legal .legal-hero .eyebrow::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: var(--mint); transform-origin: left; animation: lineGrow .9s .5s var(--ease-out) both; }
@keyframes glowDrift { to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes lineGrow { from { transform: scaleX(0); } }

.js .legal__in > *:not(.cform__thanks), .js .legal .faq, .js .cform > label, .js .cform > .btn {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s);
}
.js .legal__in > .in, .js .legal .faq.in, .js .cform > .in { opacity: 1; transform: none; }
.js .cform > .btn.in { transition: opacity .9s var(--ease-out) var(--d, 0s), transform .5s var(--ease-out), box-shadow .3s, background .3s; }

.cform input, .cform select, .cform textarea { transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.cform input:hover, .cform select:hover, .cform textarea:hover { border-color: var(--navy-lift); }
.cform input:focus, .cform select:focus, .cform textarea:focus { box-shadow: 0 8px 22px rgba(11, 46, 82, .12); transform: translateY(-2px); }
.cform label:focus-within { color: var(--navy-lift); transition: color .3s; }
.cform__thanks:not([hidden]) { animation: paneIn .7s var(--ease-out); }
.legal .faq { transition: translate .5s var(--ease-out); }
.legal .faq:hover { translate: 6px 0; }
.legal h2 { position: relative; }
.legal h2::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .2s var(--ease-out); }
.js .legal h2.in::before { transform: scaleX(.12); }

/* contact: envelope badge draws itself in once the form enters, then idles */
.page-legal .cform__badge { margin-bottom: 4px; }
.js .page-legal .cform > .cform__badge { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .page-legal .cform > .cform__badge.in { opacity: 1; transform: none; }
.js .page-legal .cform .env-body, .js .page-legal .cform .env-flap { stroke-dasharray: 140; stroke-dashoffset: 140; }
.js .page-legal .cform .env-dot { transform: scale(0); }
.js .page-legal .cform > .cform__badge.in .env-body { animation: envDraw 1.1s .15s var(--ease-out) forwards; }
.js .page-legal .cform > .cform__badge.in .env-flap { transform-origin: 32px 21px; animation: envDraw 1s .55s var(--ease-out) forwards, flapNudge 5s 3s ease-in-out infinite; }
.js .page-legal .cform > .cform__badge.in .env-dot { animation: dotPop .6s 1.2s cubic-bezier(.3, 1.8, .5, 1) forwards, dotPulse 2.4s 2s ease-in-out infinite; }

/* contact: checkmark draws itself on success */
.cform__thanks .tick { display: block; margin-bottom: 14px; overflow: visible; }
.tick__ring, .tick__check { stroke-dasharray: 150; stroke-dashoffset: 150; }
.cform__thanks:not([hidden]) .tick__ring { animation: envDraw .9s .1s var(--ease-out) forwards; }
.cform__thanks:not([hidden]) .tick__check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: envDraw .5s .8s var(--ease-out) forwards; }
.cform .btn:disabled { opacity: .7; cursor: progress; }

/* contact: thank-you celebration (confetti burst, pulse ring, pop, staggered text) */
.cform__thanks { position: relative; }
.cform__thanks::before, .cform__thanks::after { content: ""; position: absolute; left: 54px; top: 52px; border-radius: 50%; pointer-events: none; opacity: 0; }
.cform__thanks::before { /* confetti: one dot, eight shadows, scaled outward */
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--red);
  box-shadow: 0 -38px 0 var(--red), 27px -27px 0 var(--mint), 38px 0 0 var(--sky), 27px 27px 0 var(--red),
              0 38px 0 var(--mint), -27px 27px 0 var(--sky), -38px 0 0 var(--red), -27px -27px 0 var(--mint);
}
.cform__thanks::after { width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 2px solid var(--mint); }
.cform__thanks:not([hidden])::before { animation: confettiBurst 1.1s 1s var(--ease-out) both; }
.cform__thanks:not([hidden])::after { animation: ringPulse 1.2s 1s var(--ease-out) both; }
.cform__thanks:not([hidden]) .tick { animation: tickPop .5s 1.2s cubic-bezier(.3, 1.8, .5, 1) both; }
.cform__thanks:not([hidden]) h2 { animation: fadeUp .8s 1.1s var(--ease-out) both; }
.cform__thanks:not([hidden]) p { animation: fadeUp .8s 1.25s var(--ease-out) both; }
@keyframes confettiBurst { 0% { opacity: 1; transform: scale(.2) rotate(0); } 100% { opacity: 0; transform: scale(1.4) rotate(40deg); } }
@keyframes ringPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes tickPop { 0% { transform: scale(1); } 50% { transform: scale(1.16); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cform__thanks::before, .cform__thanks::after { display: none; }
  .cform__thanks .tick, .cform__thanks h2, .cform__thanks p { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js .page-legal .cform > .cform__badge { opacity: 1 !important; transform: none !important; }
  .js .page-legal .cform .env-body, .js .page-legal .cform .env-flap, .tick__ring, .tick__check { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .page-legal .cform .env-dot { transform: scale(1) !important; animation: none !important; }
  .js .legal__in > *, .js .legal .faq, .js .cform > label, .js .cform > .btn { opacity: 1 !important; transform: none !important; }
  .cform input:focus, .cform select:focus, .cform textarea:focus { transform: none; }
  .legal .faq:hover { translate: none; }
}

.compare { width: 100%; max-width: 560px; margin: 28px auto 0; border-collapse: collapse; font-size: 15px; color: inherit; }
.compare caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.compare th, .compare td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.18); text-align: left; }
.compare td:nth-child(n+2), .compare thead th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.compare tbody th, .compare tfoot th { font-weight: 500; }
.compare tbody th a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.compare tbody th a:hover { text-decoration-color: currentColor; }
.compare tfoot tr:first-child th, .compare tfoot tr:first-child td { border-top: 2px solid rgba(255,255,255,.4); }
.compare__bundle th, .compare__bundle td { font-weight: 800; border-bottom: 0; }
.compare s { opacity: .6; }

/* ═════════════ NIGHT MODE ═════════════
   Toggled by theme.js via <html data-mode="night"> (system preference unless the visitor chose).
   Dark sections (hero, year, library, footer, contact card) are already dark and stay as they are;
   this block re-colours the cream/paper/sand surfaces and the navy-on-cream text above.
   (data-theme="dark|light" is separate: it only tells the nav which section it sits over.) */
html[data-mode="night"] {
  color-scheme: dark;
  --cream: #1d2b43; --paper: #243550; --sand: #324565; --ink: #e8e5dc; --muted: #b3c2d5;
  --head: #e0ebf7;            /* navy headings become pale blue */
  --rule: #41567a;            /* hairlines that were #d9d3c5 / navy */
  --accent: #6fb0ec;          /* controls that were navy */
}
html[data-mode="night"] .nav, html[data-mode="night"] .ticker, html[data-mode="night"] .legal-hero,
html[data-mode="night"] .contact { color: #f4f1ea; }
html[data-mode="night"] .nav[data-theme="light"] { color: #f4f1ea; }
html[data-mode="night"] .nav[data-theme="light"].is-scrolled { --nav-bg: #1d2b43; }
html[data-mode="night"] .btn { --bg: #1b2430; }
html[data-mode="night"] .btn--light { --bg: #f4f1ea; --fg: #0b2e52; }
html[data-mode="night"] .btn--buy { --bg: #f4f1ea; --fg: #1b2430; }
html[data-mode="night"] .btn--buy .price { background: #1b2430; }
html[data-mode="night"] .btn--buy:hover .price { background: var(--red); }
html[data-mode="night"] .legal .contact .btn, html[data-mode="night"] .legal .contact .btn:hover { color: #fff; }
html[data-mode="night"] .contact { box-shadow: 0 0 0 1px var(--rule); }

/* headings and numbers that were navy on cream */
html[data-mode="night"] .manifesto__text, html[data-mode="night"] .pledges b,
html[data-mode="night"] .inside__head .h2, html[data-mode="night"] .page figcaption b,
html[data-mode="night"] .fact b, html[data-mode="night"] .letter .h2, html[data-mode="night"] .calc__row output,
html[data-mode="night"] .faq .h2, html[data-mode="night"] .legal h2, html[data-mode="night"] .faq h3,
html[data-mode="night"] .cform label, html[data-mode="night"] .yearly .h2, html[data-mode="night"] .ycard,
html[data-mode="night"] .cform__badge, html[data-mode="night"] .more .h2, html[data-mode="night"] .more__card h3,
html[data-mode="night"] .more__bundle strong, html[data-mode="night"] .more__bundle .library__price b { color: var(--head); }
html[data-mode="night"] .manifesto__text em { color: #ff6b5e; }
html[data-mode="night"] .letter__lede, html[data-mode="night"] .faq details p { color: #c0cfe2; }
html[data-mode="night"] .faq summary { color: var(--head); }
html[data-mode="night"] .more__bundle .library__price s { color: var(--muted); }

/* hairlines */
html[data-mode="night"] .pledges, html[data-mode="night"] .facts,
html[data-mode="night"] .faq details, html[data-mode="night"] .faq details:last-child { border-color: var(--rule); }
html[data-mode="night"] .pledges li + li, html[data-mode="night"] .fact + .fact,
html[data-mode="night"] .fact:nth-child(even), html[data-mode="night"] .fact:nth-child(n+3) { border-color: var(--rule); }
@media (max-width: 760px) { html[data-mode="night"] .pledges li, html[data-mode="night"] .pledges li + li { border-color: var(--rule); } }
html[data-mode="night"] .calc__result { border-color: var(--rule); }
html[data-mode="night"] .cform input:hover, html[data-mode="night"] .cform select:hover,
html[data-mode="night"] .cform textarea:hover { border-color: var(--rule); }

/* calculator + language switch */
html[data-mode="night"] .calc { box-shadow: 0 0 0 1px var(--sand), 0 20px 50px -30px rgba(0, 0, 0, .4); }
html[data-mode="night"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--fill, 30%), #46597a var(--fill, 30%)); }
html[data-mode="night"] input[type="range"]::-moz-range-track { background: #46597a; }
html[data-mode="night"] input[type="range"]::-moz-range-progress { background: var(--accent); }
html[data-mode="night"] input[type="range"]::-webkit-slider-thumb { background: var(--paper); border-color: var(--accent); }
html[data-mode="night"] input[type="range"]::-moz-range-thumb { background: var(--paper); border-color: var(--accent); }
html[data-mode="night"] .calc__seg span { background: #2d4060; }
html[data-mode="night"] .calc__seg input:checked + span, html[data-mode="night"] .lang i,
html[data-mode="night"] .ycard__chip { background: #1f5a96; }
html[data-mode="night"] .lang { background: rgba(255, 255, 255, .08); }
html[data-mode="night"] .lang button[aria-selected="true"] { color: #fff; }

/* the sample letter and PDF page previews */
html[data-mode="night"] .sheet { background: #2a3c59; color: var(--ink); box-shadow: 0 0 0 1px var(--sand), 0 40px 80px -40px rgba(0, 0, 0, .45); }
html[data-mode="night"] .sheet::before { background: var(--accent); }
html[data-mode="night"] .sheet__subject, html[data-mode="night"] .sheet__none { color: var(--head); }
html[data-mode="night"] .sheet mark { color: #9ccbf5; box-shadow: inset 0 -.55em 0 #36567f; }
html[data-mode="night"] .sheet mark.flash { box-shadow: inset 0 -1.3em 0 #6b5a14; }
html[data-mode="night"] .page img { filter: brightness(.94); box-shadow: 0 0 0 1px var(--sand), 0 18px 40px -18px rgba(0, 0, 0, .4); }

/* ── theme toggle (button is created by theme.js) ── */
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit;
  cursor: pointer; opacity: .8; transition: opacity .2s, background .25s, color .25s, border-color .25s;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
html[data-mode="night"] .theme-toggle .i-sun { display: block; }
html[data-mode="night"] .theme-toggle .i-moon { display: none; }
html[data-mode="night"] .nf { color: #f4f1ea; }
html[data-mode="night"] .nf .btn--ghost { --fg: #f4f1ea; box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, .45); }
html[data-mode="night"] .nf .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #f4f1ea; }
html[data-mode="night"] .cform .btn { --bg: #1f5a96; }
html[data-mode="night"] .cform .btn:hover { --bg: var(--red); }
