/* Paket landing (paket.life). Dark only, by brand: the app itself is dark-only;
   tokens mirror apps/mobile/src/theme/tokens.ts. Phones are real captures with the
   official iPhone 16 Pro bezel baked in (scripts/landing-shots-4k), never CSS frames.
   Shape rule: buttons and chips are full pills, cards 28px, rows 18px. */

@font-face {
  font-family: "YekanBakh";
  src: url("/assets/fonts/yekanbakh-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("/assets/fonts/yekanbakh-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("/assets/fonts/yekanbakh-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("/assets/fonts/yekanbakh-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("/assets/fonts/yekanbakh-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "LED";
  src: url("/assets/fonts/led.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #09090b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f9fa;
  --muted: #b5bac0;
  --faint: rgba(255, 255, 255, 0.5);
  --accent: #8add88;
  --accent-ink: #0b1a0b;
  --accent-glow: rgba(138, 221, 136, 0.28);
  --ambient: rgba(45, 100, 48, 0.45);
  --gold: #f0b54a;
  --r-card: 28px;
  --r-row: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 68px;
  /* one screenshot = bezel 1350×2760 */
  --phone-ratio: 2.0444;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "YekanBakh", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
[lang="en"] {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  unicode-bidi: isolate;
}
.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ic-lg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  border-radius: 999px;
}
.skip:focus {
  top: 12px;
}

/* z-index: 1 content, 40 nav, 60 grain, 100 skip link */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- shared text ---------- */
.section-title {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.4;
  max-width: 22ch;
}
/* a headline half: always its own line, never split mid-phrase on wide screens */
.tl {
  display: block;
}
@media (max-width: 600px) {
  /* narrow phones: each headline half still fits one line */
  .section-title {
    font-size: min(32px, 7.8vw);
  }
}
.tl + .tl {
  margin-top: 0.12em;
  color: var(--muted);
  font-weight: 300;
}
.section-sub {
  font-weight: 300;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 40ch;
}

/* ---------- buttons ---------- */
.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  height: 54px;
  padding-inline: 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.3s,
    box-shadow 0.3s,
    color 0.3s;
}
.btn:active {
  transform: translate(var(--mx), var(--my)) scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 12px 28px -14px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  background: #a3e8a1;
}
.btn-ghost {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-sm {
  height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}
.btn-lg {
  height: 62px;
  padding-inline: 32px;
  font-size: 17px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  top: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  transition:
    background-color 0.4s,
    box-shadow 0.4s;
}
.nav.is-solid {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  height: 24px;
  width: auto;
}
.wordmark path {
  fill: var(--accent);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-mark rect {
  /* the app icon: black tile, only the chevron is green */
  fill: #000;
}
/* glass over the icon: a sheen that sweeps across now and then, and a hairline
   stroke whose light slowly travels round the tile */
@property --mark-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.mark {
  position: relative;
  display: inline-grid;
  flex: none;
  border-radius: 25%;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.mark .brand-mark {
  grid-area: 1 / 1;
}
.mark::before,
.mark::after {
  content: "";
  grid-area: 1 / 1;
  border-radius: inherit;
  pointer-events: none;
}
.mark::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 46%),
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.2) 50%, transparent 62%)
      no-repeat;
  background-size:
    100% 100%,
    300% 100%;
  background-position:
    0 0,
    120% 0;
  animation: mark-sheen 6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
.mark::after {
  z-index: 2;
  padding: 1px;
  background: conic-gradient(
    from var(--mark-a),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.08) 22%,
    rgba(138, 221, 136, 0.4) 50%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0.6)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mark-ring 8s linear infinite;
}
@keyframes mark-sheen {
  0%,
  55% {
    background-position:
      0 0,
      120% 0;
  }
  85%,
  100% {
    background-position:
      0 0,
      -20% 0;
  }
}
@keyframes mark-ring {
  to {
    --mark-a: 360deg;
  }
}
.brand-mark path {
  fill: none;
  stroke: #60b260;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 420px) {
  .nav .btn span {
    display: none;
  }
  .nav .btn {
    padding-inline: 14px;
  }
}

/* ---------- phone (bezel baked into the image) ---------- */
.phone {
  position: relative;
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* hero: the screen is a video under a transparent bezel (screen hole 72,69 · 1206×2622 of 1350×2760) */
.phone-live .screen {
  position: absolute;
  left: 5.333%;
  top: 2.5%;
  width: 89.333%;
  height: 95%;
  object-fit: cover;
  border-radius: 17.4% / 8%;
  /* the bezel's exact screen opening, so no corner of the film shows past the glass */
  -webkit-mask: url("/assets/img/screen-mask.png?v=20261117") center / 100% 100% no-repeat;
  mask: url("/assets/img/screen-mask.png?v=20261117") center / 100% 100% no-repeat;
  background: #000;
}
.phone-live .bezel {
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 56px;
  display: grid;
  /* minmax(0, …): a long title must not widen its column and shove the phone aside */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 40px;
  isolation: isolate;
}
.hero::before {
  /* the app's own ambient green */
  content: "";
  position: absolute;
  z-index: -2;
  inset: -10% -30% auto auto;
  width: 90vw;
  height: 90vh;
  background: radial-gradient(closest-side, var(--ambient), transparent 70%);
  filter: blur(10px);
}
.hero-fold {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-fold path {
  fill: none;
  stroke: rgba(138, 221, 136, 0.14);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-title {
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.4;
}
/* hero: two lines by default; on small phones, where two lines would shrink under ~24px,
   each half breaks once more at a whole phrase and the type stays big */
.m-br {
  display: none;
}
@media (max-width: 359px) {
  .m-br {
    display: inline;
  }
  .hero-title.hero-title {
    font-size: 9vw;
  }
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .line > span {
  display: inline-block;
}
@media (min-width: 901px) {
  .hero-title .line > span {
    white-space: nowrap;
  }
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* quieter than the title: the CTAs sit under it, they don't compete with it */
.hero-ctas .btn-lg {
  height: 52px;
  padding-inline: 24px;
  font-size: 16px;
}
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone-hero {
  width: min(360px, 78vw, calc((100dvh - 180px) / var(--phone-ratio)));
  transform-style: preserve-3d;
  will-change: transform;
}
.stage-glow {
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(30px);
}
.sms {
  position: absolute;
  z-index: 2;
  top: 9%;
  inset-inline-end: -4%;
  width: min(280px, 68vw);
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(30, 32, 36, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px -20px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity;
}
.sms {
  text-align: start;
}
.sms-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.sms-bank {
  font-weight: 500;
  color: var(--text);
}
.sms-body {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
}
/* the "tap" on the bubble, just before its sheet opens in the video */
.sms-tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.hero-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.hero-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  50% {
    transform: translateY(14px);
    opacity: 0.2;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 72px;
    gap: 64px;
    align-content: start;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(22px, 6.8vw, 52px);
  }
  .hero-ctas {
    margin-top: 6px;
    justify-content: center;
  }
  .hero-ctas {
    gap: 10px;
  }
  .hero-ctas .btn-lg {
    height: 46px;
    padding-inline: 20px;
    font-size: 15px;
    gap: 8px;
  }
  .hero-stage {
    align-self: end;
    /* the phone rises from the bottom of the first screen */
    overflow: visible;
  }
  .phone-hero {
    /* the whole phone shows: the video's sheets and keyboard live at its bottom */
    width: min(76vw, 330px);
  }
  .sms {
    top: 7%;
    inset-inline-end: -2%;
  }
  .hero-hint {
    display: none;
  }
}

/* ---------- ledger ---------- */
.ledger {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vw, 180px) var(--gutter);
  text-align: center;
}
.led {
  font-family: "LED", ui-monospace, monospace;
  direction: ltr;
  font-size: clamp(50px, 12.5vw, 200px);
  line-height: 1;
  text-shadow:
    0 0 32px rgba(138, 221, 136, 0.35),
    0 0 2px rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger-title {
  margin-top: 32px;
  font-size: clamp(26px, 3.4vw, 46px);
}
.ledger-sub {
  font-weight: 300;
  margin: 10px auto 0;
  color: var(--muted);
}

/* ---------- story: three pinned steps ---------- */
.story {
  position: relative;
}
.story-stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--nav-h) var(--gutter) 0;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.story-caps {
  position: relative;
  display: grid;
  grid-template-areas: "c" "d";
  grid-template-rows: auto auto;
}
.cap {
  grid-area: c;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.cap.is-on {
  opacity: 1;
  transform: none;
}
.cap-n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  margin-bottom: 20px;
}
.cap h3 {
  /* sized so the longest step title stays on one line */
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.4;
}
.cap p {
  font-weight: 300;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 34ch;
}
.story-dots {
  grid-area: d;
  display: flex;
  gap: 8px;
  margin-top: 36px;
}
.story-dots li {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition:
    background-color 0.4s,
    width 0.4s var(--ease-out);
}
.story-dots li.is-on {
  width: 52px;
  background: var(--accent);
}
.story-device {
  display: grid;
  place-items: center;
}
.phone-story {
  width: min(360px, 32vw, calc((100dvh - var(--nav-h) - 60px) / var(--phone-ratio)));
  display: grid;
  grid-template-areas: "p";
}
.phone-story img {
  grid-area: p;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.phone-story img.is-on {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .story-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding-top: calc(var(--nav-h) + 8px);
    align-items: start;
    text-align: center;
  }
  .story-caps {
    min-height: 170px;
  }
  .cap h3 {
    font-size: clamp(22px, 7vw, 40px);
  }
  .cap p {
    margin-inline: auto;
    font-size: 16px;
  }
  .cap-n {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
  }
  .story-dots {
    justify-content: center;
    margin-top: 14px;
  }
  .story-device {
    align-self: end;
    overflow: hidden;
  }
  .phone-story {
    width: min(78vw, 330px);
    margin-bottom: -22%;
    -webkit-mask: linear-gradient(#000 72%, transparent 98%);
    mask: linear-gradient(#000 72%, transparent 98%);
  }
  /* on a phone the next screen slides up over the last one */
  .phone-story img {
    transform: translateY(6%);
    clip-path: inset(0 0 100% 0 round 60px);
    transition:
      clip-path 0.7s var(--ease-out),
      transform 0.7s var(--ease-out),
      opacity 0.3s;
  }
  .phone-story img.is-on {
    clip-path: inset(0 0 0 0 round 60px);
  }
  .phone-story img.was-on {
    opacity: 1;
    transform: none;
  }
}

/* ---------- monthly review: pages flip like a story ---------- */
.wrap {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.wrap .section-title {
  /* half a page wide: a touch smaller so each half stays on one line */
  font-size: clamp(30px, 3.7vw, 58px);
}
.wrap::before {
  /* the review's own warm season behind the phone */
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  inset-inline-start: 4%;
  top: 14%;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(closest-side, rgba(232, 120, 60, 0.28), transparent);
  pointer-events: none;
}
.wrap-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.story-bar {
  display: flex;
  gap: 6px;
  width: min(300px, 70vw);
  direction: rtl;
}
.story-bar li {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.story-bar li::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text);
  transform-origin: right;
  transform: scaleX(0);
}
.story-bar li.is-done::after {
  transform: scaleX(1);
}
.story-bar li.is-on::after {
  animation: bar var(--story-ms, 2800ms) linear forwards;
}
@keyframes bar {
  to {
    transform: scaleX(1);
  }
}
.phone-wrap {
  width: min(380px, 74vw, calc((100dvh - 200px) / var(--phone-ratio)));
  display: grid;
  grid-template-areas: "p";
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.phone-wrap img {
  grid-area: p;
  opacity: 0;
  transform: translateX(-4%) scale(0.98);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.phone-wrap img.is-on {
  opacity: 1;
  transform: none;
}
.phone-wrap .tap {
  grid-area: p;
  z-index: 2;
  width: 50%;
  height: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* round arrows just outside the phone, centred on its height */
.phone-wrap {
  position: relative;
}
.wrap-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.wrap-arrow .ic {
  width: 20px;
  height: 20px;
}
.wrap-arrow:hover {
  background: rgba(255, 255, 255, 0.13);
}
.wrap-arrow:active {
  transform: scale(0.94);
}
.wrap-arrow:focus-visible {
  outline: 2px solid var(--accent, #8add88);
  outline-offset: 3px;
}
.wrap-arrow-prev {
  right: -76px;
}
.wrap-arrow-next {
  left: -76px;
}
@media (max-width: 600px) {
  .wrap-arrow {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  .wrap-arrow-prev {
    right: calc((100vw - 100%) / -2 + 8px);
  }
  .wrap-arrow-next {
    left: calc((100vw - 100%) / -2 + 8px);
  }
}
.tap-prev {
  justify-self: start;
}
.tap-next {
  justify-self: end;
}
.tap:focus-visible {
  outline-offset: -14px;
  border-radius: 40px;
}
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wrap .section-title,
  .wrap .section-sub {
    margin-inline: auto;
  }
  .wrap::before {
    inset-inline-start: 10%;
    top: 30%;
    width: 80vw;
    height: 80vw;
  }
}

/* ---------- 4K modules ---------- */
.modules {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.modules::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 50vw;
  height: 50vw;
  max-width: 760px;
  max-height: 760px;
  left: 25%;
  top: 10%;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(closest-side, rgba(214, 170, 60, 0.16), transparent);
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 14px;
  border-radius: 999px;
  color: #1a1300;
  background: linear-gradient(120deg, #ffe39a, var(--gold));
  margin-bottom: 18px;
}
.module-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.module {
  --sx: 50%;
  --sy: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding: 36px 32px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-height: 680px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.module::before {
  /* spotlight border, follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--sx) var(--sy),
    rgba(240, 181, 74, 0.55),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.module:hover::before {
  opacity: 1;
}
.module-copy {
  order: -1;
}
.module-copy h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}
.module-copy p {
  font-weight: 300;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}
.phone-module {
  /* big enough to read the module's figures (user, 1405-08-26) */
  width: min(400px, 82%);
  margin-inline: auto;
  align-self: end;
  margin-bottom: -22%;
  -webkit-mask: linear-gradient(#000 80%, transparent 100%);
  mask: linear-gradient(#000 80%, transparent 100%);
  filter: none;
  transition: transform 0.9s var(--ease-out);
}
.module:hover .phone-module {
  transform: translateY(-14px);
}
.modules-soon {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(240, 181, 74, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(240, 181, 74, 0.22);
}
.soon-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #f5d06b;
  border: 1.5px dashed rgba(245, 208, 107, 0.6);
}
.modules-soon p {
  display: grid;
  gap: 4px;
}
.soon-title {
  font-size: clamp(18px, 1.6vw, 22px);
}
.modules-soon p span + span {
  color: var(--muted);
  font-weight: 300;
}
.soon-slots {
  margin-inline-start: auto;
  display: flex;
  gap: 10px;
}
.soon-slots i {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  animation: soon 3.6s ease-in-out infinite;
}
.soon-slots i:nth-child(2) {
  animation-delay: 0.6s;
}
.soon-slots i:nth-child(3) {
  animation-delay: 1.2s;
}
@keyframes soon {
  50% {
    border-color: rgba(245, 208, 107, 0.5);
    background: rgba(245, 208, 107, 0.06);
  }
}
@media (max-width: 600px) {
  .soon-slots {
    display: none;
  }
}
@media (max-width: 900px) {
  .module-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .module-grid::-webkit-scrollbar {
    display: none;
  }
  .module {
    flex: 0 0 84%;
    scroll-snap-align: center;
    min-height: 560px;
    padding: 26px 18px 0;
  }
  .phone-module {
    width: min(330px, 88%);
  }
}

/* ---------- tiers: the quality dial ---------- */
.tiers {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.dial {
  /* --q: 0 = 360p, 1 = HD, 2 = 4K (fractional while dragging) */
  --q: 2;
  --q0: clamp(0, calc(1 - var(--q)), 1);
  --q1: clamp(0, calc(1 - max(var(--q) - 1, 1 - var(--q))), 1);
  --q2: clamp(0, calc(var(--q) - 1), 1);
  margin-top: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.dial-stage {
  /* --s scales every piece (they are sized in the app's own points) */
  --s: 1.12;
  container-type: inline-size;
  position: relative;
  height: 700px;
  isolation: isolate;
}
.dial-halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(50px);
  /* grey at 360p, the brand green at HD, gold at 4K */
  background:
    radial-gradient(closest-side, rgba(240, 181, 74, calc(0.3 * var(--q2))), transparent 70%),
    radial-gradient(closest-side, rgba(138, 221, 136, calc(0.26 * var(--q1))), transparent 70%),
    radial-gradient(closest-side, rgba(255, 255, 255, calc(0.08 * var(--q0))), transparent 70%);
}

/* one scene per tier; --k is how much of it is on (fractional while dragging).
   Off, every piece is pulled into the money at the centre; on, it floats out to its spot. */
.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene-0 {
  --k: var(--q0);
}
.scene-1 {
  --k: var(--q1);
}
.scene-2 {
  --k: var(--q2);
}
.pc {
  position: absolute;
  left: calc(var(--x) * var(--k) + 50% * (1 - var(--k)));
  top: calc(var(--y) * var(--k) + 46% * (1 - var(--k)));
  width: min(calc(var(--w) * var(--s) * 1px), calc(var(--w) * 0.19cqw));
  height: auto;
  translate: -50% -50%;
  rotate: calc(var(--r, 0deg) * var(--k));
  scale: calc(0.3 + 0.7 * var(--k));
  opacity: var(--k);
  z-index: var(--z, 1);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  animation: drift var(--t, 7s) ease-in-out var(--d, 0s) infinite;
}
@keyframes drift {
  50% {
    transform: translateY(-12px) rotate(1.2deg);
  }
}
/* 360p */
.pc-queue {
  --x: 50%;
  --y: 10%;
  --w: 340;
  --r: -2deg;
  --t: 7.5s;
}
.pc-coffee {
  --x: 12%;
  --y: 34%;
  --w: 90;
  --r: -8deg;
  --d: -1s;
  --t: 5.5s;
}
.pc-food {
  --x: 88%;
  --y: 30%;
  --w: 104;
  --r: 7deg;
  --d: -2.4s;
  --t: 6s;
}
.pc-grocery {
  --x: 86%;
  --y: 56%;
  --w: 124;
  --r: -5deg;
  --d: -3s;
  --t: 6.5s;
}
.pc-car {
  --x: 14%;
  --y: 58%;
  --w: 98;
  --r: 6deg;
  --d: -0.6s;
  --t: 5.8s;
}
.pc-expense {
  --x: 28%;
  --y: 84%;
  --w: 190;
  --r: -5deg;
  --d: -1.6s;
  --z: 2;
}
.pc-income {
  --x: 72%;
  --y: 86%;
  --w: 190;
  --r: 4deg;
  --d: -3.6s;
  --z: 2;
}
/* HD */
.pc-procard {
  --x: 50%;
  --y: 15%;
  --w: 350;
  --r: -2deg;
  --t: 8s;
}
.pc-tree {
  --x: 50%;
  --y: 80%;
  --w: 340;
  --d: -2s;
  --t: 9s;
  display: grid;
  justify-items: end;
  gap: 4px;
  filter: none;
}
.pc-tree img {
  display: block;
}
.tree-head {
  width: 100%;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5));
}
/* the subcategory tree, transparent and fading down the branch */
.leaf {
  width: 89.4%;
  margin-inline-end: 1%;
  opacity: calc(var(--k) * var(--o));
  translate: calc((1 - var(--k)) * 40px) 0;
  transition: translate 0.5s var(--ease-out);
}
.leaf:nth-child(2) {
  --o: 0.92;
}
.leaf:nth-child(3) {
  --o: 0.76;
}
.leaf:nth-child(4) {
  --o: 0.6;
}
.leaf:nth-child(5) {
  --o: 0.44;
}
.leaf:nth-child(6) {
  --o: 0.28;
}
/* 4K */
.pc-avail {
  --x: 34%;
  --y: 20%;
  --w: 190;
  --r: -4deg;
  --t: 8s;
  --z: 2;
}
.pc-coupon {
  --x: 62%;
  --y: 65%;
  --w: 290;
  --r: 5deg;
  --d: -2s;
  --t: 6.5s;
  --z: 3;
}
.pc-wrapcard {
  --x: 42%;
  --y: 88%;
  --w: 300;
  --r: 3deg;
  --d: -4s;
  --t: 7.5s;
  --z: 2;
}

/* the app's own «money with wings»: full art at 4K, averaged into cells below it */
.money {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: calc(190px * var(--s));
  aspect-ratio: 660 / 540;
  animation: bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}
.money img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.money-px {
  image-rendering: pixelated;
}
.money-full,
.money.is-full .money-px {
  display: none;
}
.money.is-full .money-full {
  display: block;
}
.money-back {
  transform-origin: 36% 32.6%;
  animation: beat 0.9s ease-in-out infinite alternate;
}
.money-front {
  transform-origin: 58.4% 60.3%;
  animation: beat 0.9s ease-in-out infinite alternate-reverse;
}
@keyframes beat {
  from {
    transform: rotate(-9deg);
  }
  to {
    transform: rotate(9deg);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
.spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 2.2s ease-in-out infinite;
}
.spark-1 {
  top: 0;
  right: 4%;
}
.spark-2 {
  bottom: 14%;
  left: -2%;
  width: 8px;
  height: 8px;
  animation-duration: 1.7s;
  animation-delay: 0.6s;
}
@keyframes twinkle {
  50% {
    opacity: 0.1;
    transform: scale(0.6);
  }
}
.dial-panel {
  min-width: 0;
  container-type: inline-size;
}

/* dot-matrix readout: one grid, cells light up as the tier changes.
   23 cells + 22 gaps of 0.28 cell span the panel exactly, so the LED box
   lines up edge to edge with the track below it. */
.matrix {
  --cell: calc(100cqw / 29.16);
  display: grid;
  grid-template-columns: repeat(23, var(--cell));
  grid-auto-rows: var(--cell);
  gap: calc(var(--cell) * 0.28);
  direction: ltr;
  width: 100%;
  margin-bottom: 28px;
}
.matrix i {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transform: scale(0.72);
  transition:
    background-color 0.35s,
    transform 0.5s var(--spring),
    box-shadow 0.35s;
  transition-delay: var(--d, 0ms);
}
.matrix i.on {
  background: var(--m, var(--text));
  transform: none;
  box-shadow: 0 0 10px var(--m, var(--text));
}
.dial[data-tier="0"] .matrix {
  --m: #e9ecef;
}
.dial[data-tier="1"] .matrix {
  --m: var(--accent);
}
.dial[data-tier="2"] .matrix {
  --m: #f5d06b;
}

/* the track */
.dial-track {
  position: relative;
  height: 56px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  direction: ltr;
  touch-action: pan-y;
  margin-bottom: 22px;
}
.dial-fill {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(138, 221, 136, 0.35) 50%,
    rgba(245, 208, 107, 0.85)
  );
  clip-path: inset(0 calc((100% - 48px) * (1 - var(--q) / 2)) 0 0 round 999px);
  pointer-events: none;
}
.dial-stops {
  position: absolute;
  inset: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.dial-stops li {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.dial-knob {
  position: absolute;
  top: 4px;
  left: calc(4px + (100% - 8px - 48px) * var(--q) / 2);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    0 8px 20px -6px rgba(0, 0, 0, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  cursor: grab;
  touch-action: none;
  transition: transform 0.3s var(--spring);
}
.dial-knob::before,
.dial-knob::after {
  /* grip lines */
  content: "";
  position: absolute;
  top: 17px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
}
.dial-knob::before {
  left: 20px;
}
.dial-knob::after {
  left: 26px;
}
.dial-knob:hover {
  transform: scale(1.06);
}
.dial.is-dragging .dial-knob {
  cursor: grabbing;
  transform: scale(1.12);
}
.dial.is-dragging .pc,
.dial.is-dragging .dial-knob,
.dial.is-dragging .dial-fill {
  transition: none;
}

/* the three cards */
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tier {
  padding: 20px 20px 18px;
  min-height: 136px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  text-align: start;
  cursor: pointer;
  opacity: 0.55;
  transition:
    transform 0.5s var(--spring),
    box-shadow 0.3s,
    opacity 0.3s,
    background-color 0.3s;
}
.tier:hover {
  opacity: 0.85;
}
.tier[aria-pressed="true"] {
  opacity: 1;
  transform: translateY(-6px);
}
.tier-name {
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.tier-line {
  font-weight: 300;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.tier[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}
.tier-hd .tier-name {
  color: var(--accent);
}
.tier-hd[aria-pressed="true"] {
  background: linear-gradient(160deg, rgba(138, 221, 136, 0.16), rgba(138, 221, 136, 0.03));
  box-shadow: inset 0 0 0 1.5px rgba(138, 221, 136, 0.6);
}
.tier-4k .tier-name {
  color: #f5d06b;
}
.tier-4k[aria-pressed="true"] {
  background: linear-gradient(160deg, rgba(240, 181, 74, 0.18), rgba(240, 181, 74, 0.03));
  box-shadow: inset 0 0 0 1.5px rgba(240, 181, 74, 0.6);
}
.gift {
  --gold-l: #f5d06b;
  margin-top: 22px;
  display: flex;
  align-items: stretch;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(240, 181, 74, 0.1), rgba(255, 255, 255, 0.015) 60%);
  box-shadow: inset 0 0 0 1px rgba(245, 208, 107, 0.28);
}
.gift-stub {
  position: relative;
  flex: none;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  width: 116px;
  padding: 18px 0;
  border-inline-end: 1.5px dashed rgba(245, 208, 107, 0.3);
}
/* ticket notches where the perforation meets the edge */
.gift-stub::before,
.gift-stub::after {
  content: "";
  position: absolute;
  inset-inline-end: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(245, 208, 107, 0.28);
}
.gift-stub::before {
  top: -10px;
  clip-path: inset(50% 0 0 0);
}
.gift-stub::after {
  bottom: -10px;
  clip-path: inset(0 0 50% 0);
}
.gift-days {
  font-family: "LED", ui-monospace, monospace;
  font-size: 52px;
  line-height: 1;
  color: var(--gold-l);
  text-shadow:
    0 0 22px rgba(245, 208, 107, 0.55),
    0 0 2px rgba(255, 255, 255, 0.5);
}
.gift-unit {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 208, 107, 0.8);
}
.gift-body {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 22px;
}
.gift-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold-l);
}
.gift-tag .ic {
  width: 16px;
  height: 16px;
  animation: gift 4s ease-in-out infinite;
}
@keyframes gift {
  0%,
  70%,
  100% {
    rotate: 0deg;
  }
  76% {
    rotate: -12deg;
  }
  82% {
    rotate: 9deg;
  }
  88% {
    rotate: -5deg;
  }
}
.gift-title {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
}
.gift-sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .dial {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }
  .dial-stage {
    --s: 0.62;
    height: 470px;
    margin-inline: calc(var(--gutter) * -1);
    overflow: hidden;
  }
  /* the shorter phone stage clips the top card otherwise */
  .pc-avail {
    --y: 17%;
  }
  .matrix {
    margin: 0 auto 20px;
  }
  .dial-track {
    height: 52px;
  }
  .dial-knob {
    width: 44px;
    height: 44px;
    left: calc(4px + (100% - 8px - 44px) * var(--q) / 2);
  }
  .dial-fill {
    clip-path: inset(0 calc((100% - 44px) * (1 - var(--q) / 2)) 0 0 round 999px);
  }
  .dial-knob::before {
    left: 18px;
  }
  .dial-knob::after {
    left: 24px;
  }
  .tier-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .tier-row::-webkit-scrollbar {
    display: none;
  }
  .tier {
    flex: 0 0 66%;
    scroll-snap-align: center;
    min-height: 120px;
  }
  .gift {
    margin-top: 10px;
  }
  .gift-stub {
    width: 92px;
  }
  .gift-days {
    font-size: 42px;
  }
  .gift-body {
    padding: 16px 18px;
  }
}

/* ---------- privacy ---------- */
.privacy {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.manifesto {
  font-size: clamp(50px, 10vw, 160px);
  line-height: 1.35;
  font-weight: 500;
}
.manifesto span {
  display: block;
}
.manifesto span:last-child {
  color: var(--accent);
}
.promises {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.promises li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px 22px 0;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 26px;
  font-size: 18px;
}
.promises li:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.link-arrow {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 400;
  border-bottom: 1px solid rgba(138, 221, 136, 0.35);
  padding-bottom: 2px;
}
.link-arrow:hover {
  border-bottom-color: var(--accent);
}
@media (max-width: 900px) {
  .promises {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .promises li {
    border-inline-start: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 17px;
  }
  .promises li:first-child {
    border-top: 0;
  }
}

/* ---------- banks marquee ---------- */
.banks {
  padding: 20px 0 clamp(80px, 10vw, 140px);
}
.banks .section-title {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.marquee {
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track img {
  flex: none;
  height: clamp(44px, 5vw, 64px);
  width: auto;
  opacity: 0.42;
  transition: opacity 0.3s;
}
.marquee-track img:hover {
  opacity: 0.9;
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}

/* ---------- faq ---------- */
.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 10px;
}
details {
  border-radius: var(--r-row);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s;
}
details[open] {
  background: var(--surface-2);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 17px;
}
summary::-webkit-details-marker {
  display: none;
}
summary .ic {
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
}
details[open] summary .ic {
  transform: rotate(45deg);
}
details p {
  padding: 0 24px 22px;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- final ---------- */
.final {
  position: relative;
  text-align: center;
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.final .btn {
  margin: 6px;
}
.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 -40% 0;
  height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, var(--ambient), transparent 70%);
}
.final-fold {
  width: min(420px, 70vw);
  margin: 0 auto 28px;
}
.final-fold path {
  fill: none;
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.final-fold .fold-line {
  stroke: url(#fold-green);
}
.final-fold .fold-shine {
  stroke: url(#fold-shine);
  mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: reduce) {
  .final-fold .fold-shine {
    display: none;
  }
}
.final-title {
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.4;
  max-width: 16ch;
  margin: 0 auto 40px;
}

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 26px;
}
.footer-links a:hover {
  color: var(--text);
}

/* ---------- dot-matrix tier names (360p / HD / 4K like the LED) ---------- */
[data-pix] {
  display: inline-flex;
  line-height: 0;
}
[data-pix] svg {
  height: 13px;
  width: auto;
}
[data-pix] rect {
  fill: currentColor;
}

/* ---------- motion helpers (JS sets .js; without JS everything is visible) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee {
    -webkit-mask: none;
    mask: none;
    padding-inline: var(--gutter);
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn,
  .cap,
  .phone-story img,
  .phone-wrap img {
    transition: none;
  }
  .hero-hint span,
  .story-bar li.is-on::after,
  .money,
  .money img,
  .spark,
  .pc,
  .mark::before,
  .mark::after {
    animation: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .module,
  .sms {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #15161a;
  }
}

/* ---------- privacy page (/privacy/) ---------- */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.4;
}
.doc .doc-meta {
  margin-top: 14px;
  color: var(--faint);
  font-size: 15px;
}
.doc .doc-lead {
  margin-top: 28px;
  font-size: 19px;
  color: var(--muted);
}
.doc nav.toc {
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--r-row);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.doc nav.toc ol {
  margin: 0;
  padding-inline-start: 1.2em;
  list-style: decimal;
  columns: 2;
  column-gap: 32px;
  color: var(--muted);
}
.doc nav.toc a:hover {
  color: var(--accent);
}
.doc h2 {
  margin-top: 64px;
  font-size: clamp(24px, 3vw, 32px);
  scroll-margin-top: 90px;
}
.doc ul {
  margin: 18px 0 0;
  padding-inline-start: 1.2em;
  list-style: disc;
  display: grid;
  gap: 12px;
  color: var(--muted);
}
.doc li::marker {
  color: var(--accent);
}
.doc p {
  margin-top: 16px;
  color: var(--muted);
}
.doc strong {
  color: var(--text);
  font-weight: 500;
}
.doc a.mail {
  color: var(--accent);
}
@media (max-width: 560px) {
  .doc nav.toc ol {
    columns: 1;
  }
}
.final-page {
  min-height: 100dvh;
  display: grid;
  place-content: center;
}
