/* Paket landing. Dark only, by brand: the app itself is dark-only
   (app.json userInterfaceStyle "dark"); tokens mirror apps/mobile/src/theme/tokens.ts.
   Shape rule: buttons and tags are full pills, cards/devices 28px, rows 18px. */

@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;
  --bg-2: #0e0f12;
  --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-deep: #345f34;
  --accent-glow: rgba(138, 221, 136, 0.28);
  --ambient: rgba(45, 100, 48, 0.45);
  --r-card: 28px;
  --r-row: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  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: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ic-lg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
: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 scale: 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>");
}

/* ---------- 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: 600;
  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: 64px;
  padding-inline: 34px;
  font-size: 18px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  transition:
    background-color 0.4s,
    backdrop-filter 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;
}
.brand-mark rect {
  fill: #16261a;
  stroke: rgba(138, 221, 136, 0.35);
  stroke-width: 1.5;
}
.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 frame (real screenshots inside) ---------- */
.phone {
  position: relative;
  aspect-ratio: 1170 / 2532;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(145deg, #2a2c31, #0c0d0f 40%, #1c1d21);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px #000;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: #000;
}
.phone::after {
  /* glass highlight */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 36px;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08),
    transparent 28%,
    transparent 72%,
    rgba(255, 255, 255, 0.04)
  );
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  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.12);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-title {
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.22;
  font-weight: 700;
}
@media (min-width: 901px) {
  .hero-title .line > span {
    white-space: nowrap;
  }
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-title .line > span {
  display: inline-block;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
}
.hero-ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone-hero {
  width: min(330px, 78vw, calc((100dvh - 190px) / 2.164));
  transform-style: preserve-3d;
  will-change: transform;
}
.stage-glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  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: 8%;
  inset-inline-end: -6%;
  width: min(290px, 70vw);
  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-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.sms-bank {
  font-weight: 700;
  color: var(--text);
}
.sms-body {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
    gap: 40px;
    text-align: start;
  }
  .hero-stage {
    margin-top: 8px;
  }
  .phone-hero {
    width: min(300px, 72vw);
  }
  .hero-title {
    font-size: clamp(34px, 8.6vw, 54px);
  }
  .sms {
    inset-inline-end: 0;
    top: -2%;
  }
}

/* ---------- ledger (big number) ---------- */
.ledger {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
}
.led {
  font-family: "LED", ui-monospace, monospace;
  direction: ltr;
  font-size: clamp(54px, 13vw, 210px);
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.18);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger-title {
  margin-top: 36px;
  font-size: clamp(26px, 3.4vw, 46px);
}
.ledger-sub {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- story ---------- */
.story {
  position: relative;
}
.story-track {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.story-steps {
  display: grid;
}
.step h3 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
}
.step p {
  margin-top: 18px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 18px;
}
.story-device {
  position: relative;
  display: grid;
  place-items: center;
}
.phone-story {
  width: min(330px, 30vw, calc((100dvh - 250px) / 2.164));
}
.phone-story img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.phone-story img.is-on {
  opacity: 1;
}
.phone-story::before {
  content: "";
  display: block;
}
.story-dots {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.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);
}
.phone-inline {
  display: none;
}

/* desktop: pinned, steps cross-fade in place */
@media (min-width: 901px) {
  .story-track {
    height: 100dvh;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 40px;
  }
  .story-steps {
    grid-template-areas: "s";
  }
  .step {
    grid-area: s;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s var(--ease-out),
      transform 0.8s var(--ease-out);
  }
  .step.is-active {
    opacity: 1;
    transform: none;
  }
}
/* mobile/tablet: plain stack, each step with its own phone */
@media (max-width: 900px) {
  .story-track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .story-device {
    display: none;
  }
  .story-steps {
    gap: 96px;
    padding-block: 40px 96px;
  }
  .phone-inline {
    display: block;
    width: min(280px, 70vw);
    margin-top: 32px;
  }
}

/* ---------- bento ---------- */
.bento {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.section-title {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.2;
  max-width: 18ch;
}
.bento-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.bento {
  position: relative;
  isolation: isolate;
}
.bento::before,
.bento::after {
  /* colour behind the glass, so the blur has something to bend */
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.bento::before {
  width: 46vw;
  height: 46vw;
  inset-inline-start: -6vw;
  top: 22%;
  background: radial-gradient(closest-side, rgba(45, 100, 48, 0.55), transparent);
}
.bento::after {
  width: 34vw;
  height: 34vw;
  inset-inline-end: 4vw;
  bottom: 0;
  background: radial-gradient(closest-side, rgba(214, 140, 40, 0.26), transparent);
}
.cell {
  --sx: 50%;
  --sy: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding: 32px;
  min-height: 280px;
  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);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.cell::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(138, 221, 136, 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;
}
.cell:hover::before {
  opacity: 1;
}
.cell h3 {
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.35;
}
.cell p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.cell-budget {
  grid-row: span 2;
}
.cell-streak {
  grid-row: span 2;
}
.cell-debt {
  background: linear-gradient(160deg, rgba(138, 221, 136, 0.16), rgba(138, 221, 136, 0.03));
}
.cell-ic {
  width: 44px;
  height: 44px;
  color: var(--accent);
}
.cell-media {
  position: relative;
}
.cell-media img {
  width: 100%;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45));
}
.cell-media-tall {
  margin-inline: auto;
  width: 86%;
}
@media (max-width: 1080px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cell-budget {
    grid-row: span 1;
    grid-column: span 2;
  }
  .cell-budget .cell-media {
    width: min(440px, 76%);
    margin-inline: auto;
  }
  .cell-streak {
    grid-row: span 1;
  }
}
@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .cell-budget,
  .cell-streak {
    grid-column: auto;
  }
  .cell {
    padding: 26px;
    min-height: 0;
  }
}

/* ---------- banks marquee (the page's only marquee) ---------- */
.banks {
  padding: 40px 0 clamp(80px, 10vw, 140px);
}
.banks-title {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  font-size: clamp(24px, 2.6vw, 34px);
}
.marquee {
  margin-top: 32px;
  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:hover {
  opacity: 0.9;
}
.marquee-track img {
  flex: none;
  height: clamp(44px, 5vw, 64px);
  width: auto;
  opacity: 0.42;
  transition: opacity 0.3s;
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}
.banks-note {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-inline: var(--gutter);
  color: var(--faint);
  font-size: 15px;
}

/* ---------- privacy manifesto ---------- */
.privacy {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.manifesto {
  font-size: clamp(54px, 10vw, 160px);
  line-height: 1.05;
  font-weight: 700;
}
.manifesto span {
  display: inline-block;
}
.manifesto span:last-child {
  color: var(--accent);
}
.promises {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.promise {
  padding: 28px 26px 0;
  border-inline-start: 1px solid var(--line);
}
.promise:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.promise h3 {
  margin-top: 18px;
  font-size: 21px;
}
.promise p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.link-arrow {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(138, 221, 136, 0.35);
  padding-bottom: 2px;
}
.link-arrow:hover {
  border-bottom-color: var(--accent);
}
@media (max-width: 1080px) {
  .promises {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .promise:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}
@media (max-width: 640px) {
  .promises {
    grid-template-columns: 1fr;
  }
  .promise {
    border-inline-start: 0;
    padding-inline-start: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .promise:first-child {
    border-top: 0;
  }
}

/* ---------- plus ---------- */
.plus {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.plus-device {
  display: grid;
  place-items: center;
  position: relative;
}
.plus-device::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 169, 138, 0.3), transparent);
  filter: blur(30px);
}
.sheet-card {
  position: relative;
  width: min(400px, 84vw);
  padding: 26px 22px 18px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), 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.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.sheet-card img {
  width: 100%;
}
.tiers {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tier {
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tier-plus {
  background: linear-gradient(160deg, rgba(63, 169, 138, 0.2), rgba(63, 169, 138, 0.04));
  box-shadow: inset 0 0 0 1px rgba(63, 169, 138, 0.35);
}
.tier h3 {
  font-size: 20px;
}
.tier ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
}
.tier li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tier li .ic {
  margin-top: 0.3em;
  color: var(--accent);
}
.plans {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.plan {
  padding: 16px 18px;
  border-radius: var(--r-row);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan dt {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.plan dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.plan dd b {
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
}
.plan-hero {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(138, 221, 136, 0.4);
}
.tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.plus-note {
  margin-top: 22px;
  color: var(--faint);
  font-size: 15px;
  max-width: 60ch;
}
@media (max-width: 900px) {
  .plus {
    grid-template-columns: 1fr;
  }
  .plus-device {
    order: 2;
  }
}
@media (max-width: 560px) {
  .tiers,
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ---------- faq ---------- */
.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.faq-list {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}
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: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 18px;
}
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 26px 24px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- final ---------- */
.final {
  position: relative;
  text-align: center;
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.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: var(--accent);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.final-title {
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.2;
  max-width: 16ch;
  margin: 0 auto 44px;
}

/* ---------- 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);
}

/* ---------- 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,
  .step,
  .phone-story img {
    transition: none;
  }
}

/* ---------- privacy page ---------- */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.2;
}
.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;
  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;
  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: 600;
}
.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;
}

@media (prefers-reduced-transparency: reduce) {
  .cell,
  .sheet-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #15161a;
  }
}
