/* Me VS Me — landing. Monochrome, soft glass, two circles. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-extrabold.woff2") format("woff2"); }

:root {
  --bg: #EEEEF0;
  --ink: #0B0B0F;
  --ink-2: rgba(60, 60, 67, .62);
  --ink-3: rgba(60, 60, 67, .34);
  --paper: #FFFFFF;
  /* the five mood greys of the app, rough → great */
  --g0: #D1D1D6; --g1: #AEAEB2; --g2: #8E8E93; --g3: #48484A; --g4: #1C1C1E;

  --glass: rgba(255, 255, 255, .56);
  --glass-hi: rgba(255, 255, 255, .85);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(11, 11, 15, .22), 0 2px 8px rgba(11, 11, 15, .04);

  --gut: clamp(16px, 4.4vw, 64px);
  --max: 1240px;

  --fs-s: clamp(.875rem, .85rem + .1vw, .9375rem);
  --fs-b: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --fs-l: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  --fs-h: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  --fs-x: clamp(2.875rem, .8rem + 7.6vw, 8.25rem);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background:
    radial-gradient(900px 640px at 12% -4%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(800px 700px at 100% 36%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-b);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible { outline-color: #fff; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* ── type ─────────────────────────────────────────── */
.h2 { font-size: var(--fs-h); font-weight: 800; line-height: .98; letter-spacing: -.042em; text-wrap: balance; }
.h2-xl { font-size: var(--fs-x); line-height: .92; letter-spacing: -.05em; }
.h3 { font-size: var(--fs-l); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: var(--fs-l); line-height: 1.4; color: var(--ink-2); letter-spacing: -.012em; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.small { font-size: var(--fs-s); color: var(--ink-2); }
.eyebrow { font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); letter-spacing: -.005em; }

/* ── brand ────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; }
.word { font-weight: 700; font-size: 19px; letter-spacing: -.035em; white-space: nowrap; }
.word span { color: var(--ink-3); font-weight: 500; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 "Inter", sans-serif; letter-spacing: -.01em; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease, box-shadow 240ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 11, 15, .6); }
.btn-glass { background: var(--glass); color: var(--ink); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
.btn-glass-d { background: rgba(255, 255, 255, .1); color: #fff; }
@media (hover: hover) {
  .btn-ink:hover { background: #26262B; box-shadow: 0 16px 30px -14px rgba(11, 11, 15, .7); }
  .btn-glass:hover { background: var(--glass-hi); }
  .btn-glass-d:hover { background: rgba(255, 255, 255, .18); }
}
.dark .btn-ink { background: #fff; color: var(--ink); box-shadow: none; }
@media (hover: hover) { .dark .btn-ink:hover { background: #E6E6EA; } }

/* ── glass surfaces ───────────────────────────────── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: var(--glass-shadow);
  border-radius: 28px;
}
.glass-d {
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset;
  border-radius: 28px;
}

/* ── phone ────────────────────────────────────────── */
.phone {
  position: relative;
  aspect-ratio: 1170 / 2532;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: #0B0B0F;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 50px 80px -40px rgba(11, 11, 15, .45), 0 18px 30px -18px rgba(11, 11, 15, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13% / 6%; background: #F2F2F4; }

/* ── icons: the mark's two halves ─────────────────── */
.ic { display: inline-block; width: .62em; height: .62em; border-radius: 50%; flex: none; }
.ic-solid { background: currentColor; }
.ic-ring { box-shadow: inset 0 0 0 .17em currentColor; }

/* ═══ NAV ═══════════════════════════════════════════ */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color 240ms ease, box-shadow 240ms ease; }
.nav.is-glass { background: rgba(238, 238, 240, .66); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 1px 0 rgba(11, 11, 15, .05); }
.nav.on-dark { color: #fff; background: rgba(0, 0, 0, .5); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav.on-dark .brand { color: #fff; }
.nav.on-dark .word span { color: rgba(255, 255, 255, .42); }
.nav.on-dark .nav-links a, .nav.on-dark .langs a { color: rgba(255, 255, 255, .7); }
.nav.on-dark .langs a[aria-current] { color: #fff; }
.nav.on-dark .btn-ink { background: #fff; color: var(--ink); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 180ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.langs { display: inline-flex; gap: 2px; font-size: 14px; font-weight: 600; }
.langs a { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; border-radius: 999px; text-decoration: none; color: var(--ink-3); }
.langs a[aria-current] { color: var(--ink); }
.langs a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 380px) { .nav .word { display: none; } }

/* ═══ 1. THE DUEL ═══════════════════════════════════ */
.duel {
  --R: min(15.5vw, 23svh);
  --sw: calc(var(--R) * .2833);
  --D0: calc(var(--R) * 2.62);
  --Dm: calc(var(--R) * .9333);
  --top: calc(42svh - var(--R));
  --a: 0; --h: 0; --b: 1; --c: 0;
  --d: calc(var(--D0) + (var(--Dm) - var(--D0)) * var(--a));
  position: relative;
}
@media (max-width: 700px) {
  .duel { --R: 19.5vw; --D0: calc(var(--R) * 2.52); --top: calc(31svh - var(--R)); }
}
.stage { display: grid; }
.layer { min-width: 0; }

/* the circles */
.layer-pair, .layer-hero { grid-area: 1 / 1; }
.layer-pair { padding-top: var(--top); pointer-events: none; }
.pair { position: relative; height: calc(2 * var(--R)); }
.c { position: absolute; top: 0; left: 50%; width: calc(2 * var(--R)); height: calc(2 * var(--R)); margin-left: calc(-1 * var(--R)); border-radius: 50%; }
.c-solid {
  background: var(--ink);
  transform: translateX(calc(var(--d) / -2));
  -webkit-mask: radial-gradient(circle at calc(var(--R) + var(--d)) 50%, transparent calc(var(--R) + var(--sw) / 2), #000 calc(var(--R) + var(--sw) / 2 + .75px));
          mask: radial-gradient(circle at calc(var(--R) + var(--d)) 50%, transparent calc(var(--R) + var(--sw) / 2), #000 calc(var(--R) + var(--sw) / 2 + .75px));
}
.c-ring { box-shadow: inset 0 0 0 var(--sw) var(--ink); transform: translateX(calc(var(--d) / 2)); }

/* the headline sits inside the circles */
.layer-hero { position: relative; min-height: 100svh; padding-top: var(--top); display: flex; flex-direction: column; }
.h1 { font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.h1-row { position: relative; display: block; height: calc(2 * var(--R)); }
.w { position: absolute; top: 50%; left: 50%; white-space: nowrap; font-size: calc(var(--R) * .5); }
.w1 { color: #fff; transform: translate(-50%, -54%) translateX(calc(var(--d) / -2)); }
.w2 { color: var(--ink); transform: translate(-50%, -54%) translateX(calc(var(--d) / 2)); }
.wvs { font-size: calc(var(--R) * .26); font-weight: 500; letter-spacing: -.03em; color: var(--ink-3); transform: translate(-50%, -56%); }
.h1-l2 { display: block; text-align: center; font-size: calc(var(--R) * .5); margin-top: calc(var(--R) * .16); }

.hero-foot { margin-top: auto; padding: 0 var(--gut) 32px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px; }
.hero-lead { grid-column: 1; grid-row: 1 / span 2; font-size: var(--fs-l); line-height: 1.35; color: var(--ink-2); max-width: 38ch; letter-spacing: -.015em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-foot .hero-cta { grid-column: 2; justify-content: end; }
.hero-plat { font-size: var(--fs-s); color: var(--ink-2); }
.hero-foot .hero-plat { grid-column: 2; text-align: end; }
@media (max-width: 700px) {
  .hero-foot { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: 28px; margin-top: 0; }
  .hero-lead, .hero-foot .hero-cta, .hero-foot .hero-plat { grid-column: 1; grid-row: auto; }
  .hero-foot .hero-cta { justify-content: center; }
  .hero-foot .hero-plat { text-align: center; }
  .hero-lead { max-width: 26ch; }
}

/* score readout */
.readout { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 4px 36px; }
.ro-eyebrow { grid-column: 1 / -1; text-align: center; font-size: var(--fs-s); color: var(--ink-2); font-weight: 500; }
.ro-num { font-weight: 800; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.ro-big { font-size: clamp(4.5rem, 2rem + 6vw, 7.5rem); }
.ro-of { font-size: var(--fs-l); color: var(--ink-3); letter-spacing: -.02em; margin-inline-start: 4px; font-weight: 600; }
.ro-legend { display: grid; gap: 6px; min-width: 210px; }
.ro-legend li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-b); color: var(--ink); }
.ro-legend li + li { color: var(--ink-2); }
.ro-legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-ink { background: var(--ink); }
.dot-grey { background: var(--g1); }
.ro-pill { grid-column: 2; justify-self: start; margin-top: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 11, 15, .07); font-weight: 700; font-size: var(--fs-s); }
@media (max-width: 700px) {
  .readout { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .ro-pill { grid-column: 1; justify-self: center; }
}

/* score copy + phone */
.score-copy .h2 { margin-bottom: 18px; }
.score-copy .body { max-width: 34ch; font-size: var(--fs-l); line-height: 1.42; }
.phone-hero { width: min(300px, 62vw); }

/* static composition (no JS, or reduced motion) */
.layer-score { padding: 24px var(--gut) 0; display: grid; justify-items: center; gap: 28px; }
.score-pair-static .mark { width: 120px; height: 120px; color: var(--ink); }
.layer-phone { padding: 72px var(--gut) 96px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; max-width: calc(980px + 2 * var(--gut)); margin-inline: auto; width: 100%; }
@media (max-width: 700px) {
  .layer-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 56px; }
  .score-copy .body { margin-inline: auto; }
}

/* the scene (JS on, motion allowed) */
.motion .duel { height: 430svh; }
.motion .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.motion .stage > .layer { grid-area: 1 / 1; }
.motion .score-pair-static { display: none; }
.motion .layer-hero { min-height: 0; height: 100svh; }
.motion .w1, .motion .w2, .motion .wvs { opacity: calc(1 - var(--h) * 1.5); }
.motion .h1-l2, .motion .hero-foot { opacity: calc(1 - var(--h) * 1.25); translate: 0 calc(var(--h) * -36px); }
.motion .hero-foot { visibility: var(--hero-vis, visible); }

.motion .layer-pair, .motion .layer-score {
  transform-origin: 50% calc(var(--top) + var(--R));
  transform: translate(calc(var(--c) * var(--tx)), calc(var(--c) * var(--ty))) scale(calc(1 - var(--c) * var(--ts)));
  --tx: -24vw; --ty: -13svh; --ts: .46;
}
.motion .layer-score { padding: calc(var(--top) + 2 * var(--R) + 3.4svh) var(--gut) 0; display: block; pointer-events: none; }
.motion .readout { opacity: calc(var(--b) - var(--c) * 2.2); translate: 0 calc((1 - var(--b)) * 28px); }
.motion .layer-phone { max-width: none; padding: 0 var(--gut); grid-template-columns: 1fr 1fr; gap: 0; align-items: center; height: 100svh; pointer-events: none; visibility: var(--phone-vis, hidden); }
.motion .layer-phone .phone-hero { justify-self: center; translate: 0 calc((1 - var(--c)) * 110svh); width: min(300px, 25vw, 34svh); }
.motion .score-copy { justify-self: center; align-self: start; margin-top: calc(29svh + var(--R) * .6 + 24px); max-width: 30rem; opacity: calc(var(--c) * 2.4 - 1.4); translate: 0 calc((1 - var(--c)) * 24px); }
.motion .score-copy .h2 { font-size: clamp(2rem, 1rem + 2.4vw, 3.25rem); }
.motion .score-copy .body { font-size: var(--fs-b); }
@media (max-width: 700px) {
  .motion .duel { height: 400svh; }
  .motion .layer-pair, .motion .layer-score { --tx: 0px; --ty: -26svh; --ts: .62; }
  .motion .layer-pair, .motion .layer-score { opacity: calc(1 - var(--c) * 3); }
  .motion .layer-phone { grid-template-columns: 1fr; align-content: start; justify-items: center; padding-top: calc(var(--nav-h) + 3svh); gap: 18px; }
  .motion .score-copy { margin-top: 0; text-align: center; }
  .motion .score-copy .h2 { margin-bottom: 10px; }
  .motion .score-copy .body { font-size: var(--fs-s); max-width: 34ch; }
  .motion .layer-phone .phone-hero { width: min(62vw, 34svh); translate: 0 calc((1 - var(--c)) * 90svh); }
}

/* ═══ 2. JOURNAL ════════════════════════════════════ */
.journal { padding: clamp(96px, 14vw, 180px) 0 clamp(96px, 12vw, 160px); min-height: 100svh; display: grid; align-items: center; }
.journal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px 48px; align-items: center; }
.journal-visual { position: relative; display: grid; justify-items: end; padding-bottom: 72px; }
.journal-copy .eyebrow { margin-bottom: 20px; }
.journal-copy .h2 { max-width: 9ch; }
.journal-copy .lead { max-width: 30ch; margin-top: 32px; }
.moods { display: flex; gap: clamp(10px, 1.8vw, 22px); margin-top: clamp(32px, 4vw, 52px); }
.moods li { display: grid; justify-items: center; gap: 10px; font-size: var(--fs-s); color: var(--ink-2); }
.moods li.is-on { color: var(--ink); font-weight: 600; }
.m { display: block; width: clamp(48px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; }
.is-on .m { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ink); }
.m0, .g0 { background: var(--g0); } .m1, .g1 { background: var(--g1); } .m2, .g2 { background: var(--g2); } .m3, .g3 { background: var(--g3); } .m4, .g4 { background: var(--g4); }

.month { position: absolute; z-index: 2; inset-inline-start: 0; bottom: 0; width: min(300px, 58%); padding: 20px; }
.month-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.month-head b { font-size: var(--fs-l); letter-spacing: -.02em; }
.month-head span { color: var(--ink-2); font-size: var(--fs-s); }
.month-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.month-days i { aspect-ratio: 1; border-radius: 50%; }
.month-foot { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: var(--fs-s); color: var(--ink-2); }
.month-foot i { width: 12px; height: 12px; border-radius: 50%; }
.month-foot span:first-child { margin-inline-end: 4px; }
.month-foot span:last-child { margin-inline-start: 4px; }
.phone-journal { width: min(310px, 70%); margin-inline-end: 4%; }

.motion .month-days .d { transform: scale(.3); opacity: 0; transition: transform 700ms var(--ease-expo), opacity 400ms ease; transition-delay: calc(var(--i) * 45ms); }
.motion .month-days.in .d { transform: none; opacity: 1; }

@media (max-width: 900px) {
  .journal { min-height: 0; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-visual { justify-items: center; padding-bottom: 0; }
  .phone-journal { width: min(280px, 70vw); margin: 0; order: -1; }
  .month { position: relative; width: 100%; max-width: 420px; margin-top: -42%; justify-self: center; }
}

/* ═══ 3. HABITS ═════════════════════════════════════ */
.habits { padding: clamp(96px, 12vw, 160px) 0; }
.h2-split { display: grid; gap: .08em; font-size: var(--fs-x); }
.hs { display: flex; align-items: center; gap: .28em; }
.hs .ic { width: .66em; height: .66em; }
.hs-break { justify-self: end; }
.hs-break .ic-ring { box-shadow: inset 0 0 0 .12em currentColor; }
.habits-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 32px; align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.hcard { padding: 30px; display: grid; gap: 14px; }
.hcard:last-child { align-self: end; }
.hcard:first-child { align-self: start; }
.habits-phones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.habits-phones .phone-a { transform: translateY(-4%) rotate(-3deg); z-index: 1; }
.habits-phones .phone-b { transform: translate(-12%, 8%) rotate(3deg); }
.ui-habit, .ui-clean { margin-top: 10px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .7); }
.ui-row { display: flex; justify-content: space-between; font-size: var(--fs-b); }
.ui-streak::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-inline-end: 6px; vertical-align: 1px; }
.ui-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.ui-week i { aspect-ratio: 1; border-radius: 50%; background: var(--g4); }
.ui-week i.mid { background: var(--g3); }
.ui-week i.lo { background: var(--g2); }
.ui-clean { display: flex; align-items: center; gap: 16px; color: var(--ink-2); font-size: var(--fs-s); }
.ui-clean b { color: var(--ink); font-size: var(--fs-b); }
.ui-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 6px var(--ink); }
.ui-ring b { font-size: 20px; letter-spacing: -.03em; }
@media (max-width: 900px) {
  .habits-grid { grid-template-columns: 1fr; }
  .habits-phones { order: -1; max-width: 520px; width: 100%; margin: 0 auto 24px; padding-inline: 4%; }
  .hcard:first-child, .hcard:last-child { align-self: auto; }
  .hs-break { justify-self: start; }
}

/* ═══ 4. PLANS ══════════════════════════════════════ */
.plans { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px); }
.plans-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.plans-head .h2 { max-width: 13ch; }
.plans-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); max-width: calc(var(--max) + 2 * var(--gut)); margin: clamp(48px, 6vw, 80px) auto 0; padding-inline: var(--gut); }
.pl .phone { margin-bottom: 22px; }
.pl:nth-child(even) { margin-top: 64px; }
.pl .h3 { margin-bottom: 4px; }
.pl:last-child { opacity: .82; }
@media (max-width: 900px) {
  .plans-head { grid-template-columns: 1fr; }
  .plans-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding-bottom: 12px; scrollbar-width: none; }
  .plans-strip::-webkit-scrollbar { display: none; }
  .pl { flex: 0 0 min(64vw, 280px); scroll-snap-align: start; }
  .pl:nth-child(even) { margin-top: 0; }
}

/* ═══ 5. DARK ═══════════════════════════════════════ */
.dark {
  --ink-2: rgba(235, 235, 245, .62);
  --ink-3: rgba(235, 235, 245, .34);
  background: #000; color: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  position: relative;
}
.every { padding: clamp(96px, 12vw, 168px) 0 clamp(64px, 8vw, 112px); }
.every .lead { max-width: 34ch; margin-top: 28px; }
.desk { margin-top: clamp(48px, 6vw, 88px); border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -40px rgba(255, 255, 255, .12); background: #111; }
.desk img { width: 100%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .desk { animation: desk-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes desk-in { from { transform: perspective(1400px) rotateX(14deg) scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.facts li { padding: 26px; display: grid; gap: 6px; }
.facts b { font-size: var(--fs-l); letter-spacing: -.02em; }
.facts span { color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }

.pricing { padding: clamp(64px, 8vw, 112px) 0 clamp(96px, 12vw, 160px); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 40px 56px; align-items: start; }
.pricing .h2 { max-width: 12ch; font-size: clamp(2.25rem, 1rem + 3.2vw, 4rem); }
.pricing-head { position: sticky; top: calc(var(--nav-h) + 24px); }
.plans-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; border-radius: 32px; }
.plan-pro { background: #fff; color: var(--ink); --ink-2: rgba(60, 60, 67, .62); }
.plan-name { display: flex; align-items: center; gap: 12px; font-size: var(--fs-l); font-weight: 700; letter-spacing: -.02em; }
.plan-name .ic { width: 22px; height: 22px; }
.plan-name .ic-ring { box-shadow: inset 0 0 0 5px currentColor; }
.plan-price { display: grid; gap: 4px; }
.plan-price b { font-size: clamp(2.75rem, 1.6rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--ink-2); }
.ticks { display: grid; gap: 10px; flex: 1; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.plan:not(.plan-pro) .ticks li::before { background: none; box-shadow: inset 0 0 0 2.5px currentColor; }
.plan .btn { align-self: start; }
.plan-pro .btn-ink { background: var(--ink); color: #fff; }
.fine { margin-top: 24px; font-size: var(--fs-s); color: var(--ink-2); max-width: 34ch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-head { position: static; } .pricing .h2 { max-width: 14ch; } }
@media (max-width: 760px) { .plans-cards { grid-template-columns: 1fr; } }

/* ═══ 6. FAQ ════════════════════════════════════════ */
.faq { padding: clamp(96px, 12vw, 160px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px 64px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-grid .body { margin-top: 18px; }
.faq-grid .body a { color: var(--ink); font-weight: 600; }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--glass); border-radius: 22px; box-shadow: var(--glass-shadow); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: var(--fs-b); letter-spacing: -.012em; border-radius: 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--ink); transition: box-shadow 240ms var(--ease-out), background-color 240ms var(--ease-out); }
.qa details[open] summary::after { background: var(--ink); }
.qa .a { padding: 0 24px 22px; color: var(--ink-2); max-width: 62ch; }
.qa .a p + p { margin-top: 10px; }
.qa .a a { color: var(--ink); }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
}

/* ═══ 7. END ════════════════════════════════════════ */
.end {
  --R: min(14vw, 20svh);
  --sw: calc(var(--R) * .2833);
  --e: 0;
  --d: calc(var(--R) * (2.5 - 1.5667 * var(--e)));
  padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 10vw, 140px);
  text-align: center;
}
.end-pair { position: relative; height: calc(2 * var(--R)); }
.end-copy { margin-top: clamp(40px, 6vw, 72px); display: grid; justify-items: center; gap: 28px; }
.end-copy .h2 { font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem); max-width: 14ch; }
@media (max-width: 700px) { .end { --R: 19vw; } }

/* ═══ FOOTER ════════════════════════════════════════ */
.foot { padding: 28px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 28px; box-shadow: 0 -1px 0 rgba(11, 11, 15, .08); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: var(--fs-s); }
.foot-links > a { text-decoration: none; color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; }
.foot-links > a:hover { color: var(--ink); }
.foot-copy { width: 100%; font-size: var(--fs-s); color: var(--ink-2); }

/* ═══ small reveal, once, below the fold ═══════════ */
.motion .rv { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-expo), transform 800ms var(--ease-expo); }
.motion .rv.in { opacity: 1; transform: none; }

/* één abonnement: één kaart */
.plans-one { grid-template-columns: minmax(0, 1fr) !important; max-width: 520px; }
