/* مسیرتم — landing page. Dark «night» page in the app icon's colours: your path in green, a
   friend's in orange, coins in gold. Mobile first; the page road is drawn by site.js. */

@font-face { font-family: "IRANYekanX"; src: url("/assets/fonts/iranyekanx-regular.ttf?v=18892ffc31") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("/assets/fonts/iranyekanx-medium.ttf?v=8280274331") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("/assets/fonts/iranyekanx-bold.ttf?v=d1496589b6") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --night: #0B1F2A;
  --night-2: #0E2633;
  --night-3: #12303F;
  --forest: #14533F;
  --glow: #1FA77A;
  --green: #45E3A8;
  --green-2: #0FA68A;
  --orange: #FFB347;
  --orange-2: #F26A12;
  --violet: #A78BFA;
  --gold: #FFC53D;
  --gold-2: #F5A300;
  --cream: #FFF7EC;
  --text: #EAF3F0;
  --muted: #9BB2B6;
  --faint: #6F8A90;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --radius: 24px;
  --gutter: 16px;
  --wrap: 1180px;
  --header-h: 64px;
  --font: "IRANYekanX", Tahoma, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 700; }
::selection { background: rgba(69, 227, 168, 0.35); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--green); color: #04241A; padding: 8px 14px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.coin { width: 22px; height: 22px; flex: none; }
.hide-sm { display: none !important; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #032219; box-shadow: 0 10px 30px -10px rgba(69, 227, 168, .65); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(69, 227, 168, .85); }
.btn-ghost { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3A2400; }
.btn .i { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--card-2); cursor: pointer; }

/* store buttons */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 20px;
  border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text); cursor: pointer; border: 0; text-align: start;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.store:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.store .i { width: 26px; height: 26px; color: var(--green); }
.store span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 800; font-size: 16px; }
.store small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.store-web .i { color: var(--orange); }
.store.is-first { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #032219; box-shadow: 0 12px 30px -12px rgba(69, 227, 168, .7); }
.store.is-first .i, .store.is-first small { color: #064A35; }

/* ── invite banner (?ref=CODE) ── */
.invite { background: linear-gradient(90deg, rgba(255, 197, 61, .16), rgba(242, 106, 18, .14)); border-bottom: 1px solid rgba(255, 197, 61, .25); }
.invite-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; font-size: 14px; }
.invite-row > .i { color: var(--gold); }
.invite-row p { flex: 1; }
.invite-code { font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: .12em; color: var(--gold); direction: ltr; unicode-bidi: isolate; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 31, 42, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 31, 42, .86); }
.top-row { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-tile { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(31, 167, 122, .6); }
.nav { display: none; gap: 4px; margin-inline-start: 18px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.page-coins {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px;
  background: rgba(255, 197, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .25); color: var(--gold);
  font-weight: 800; font-size: 15px; cursor: default; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.page-coins .coin { width: 22px; height: 22px; }
.page-coins.bump { transform: scale(1.14); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 28px 0 40px; isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.trail path { fill: none; stroke-linecap: round; }
.trail-glow { stroke-width: 60; opacity: .16; }
.trail-core { stroke-width: 4; opacity: .75; }
.trail-friend .trail-core { stroke-width: 4; }
.hero-glow {
  position: absolute; z-index: -2; inset: -10% -20% auto; height: 120%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 88%); mask-image: linear-gradient(#000 55%, transparent 88%);
  background:
    radial-gradient(40% 45% at 30% 30%, rgba(31, 167, 122, .30), transparent 70%),
    radial-gradient(35% 40% at 80% 20%, rgba(20, 83, 63, .65), transparent 70%),
    radial-gradient(30% 30% at 15% 80%, rgba(242, 106, 18, .10), transparent 70%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(69, 227, 168, .1); box-shadow: inset 0 0 0 1px rgba(69, 227, 168, .25); color: var(--green); font-size: 13.5px; font-weight: 700;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69, 227, 168, .2); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(69, 227, 168, 0); } }
.hero h1 { margin-top: 18px; font-size: clamp(2.05rem, 8.4vw, 4.1rem); line-height: 1.3; font-weight: 900; }
.grad-text { background: linear-gradient(100deg, var(--green) 10%, #B9F5DD 50%, var(--orange) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 18px auto 0; max-width: 34em; color: #C6D6D6; font-size: clamp(1rem, 3.6vw, 1.14rem); }
.store-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fine { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.fine .i { width: 16px; height: 16px; color: var(--green); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 10px 0 18px; }
.hero-visual::before {
  content: ""; position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(69, 227, 168, .26), rgba(69, 227, 168, .06) 60%, transparent);
}
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 18px;
  background: rgba(14, 38, 51, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, .7);
  font-size: 13px; line-height: 1.35; animation: bob 6s ease-in-out infinite;
}
.float > span { display: flex; flex-direction: column; }
.float b { font-size: 14px; }
.float small { color: var(--muted); font-size: 11.5px; }
.float .coin { width: 30px; height: 30px; }
.float .i { width: 28px; height: 28px; color: var(--orange); stroke-width: 2; }
.float-coin { top: 14%; inset-inline-end: max(0px, calc(50% - 230px)); }
.float-coin b { color: var(--gold); }
.float-streak { top: 46%; inset-inline-start: max(0px, calc(50% - 235px)); animation-delay: -2s; }
.float-friend { bottom: 13%; inset-inline-end: max(0px, calc(50% - 220px)); animation-delay: -4s; }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid !important; place-items: center; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #3B1600; font-weight: 800; font-size: 14px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ── phones ── */
.phone {
  --w: min(268px, 72vw);
  position: relative; width: var(--w); margin: 0; padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .16); aspect-ratio: 390 / 844;
  background: linear-gradient(150deg, #2B3B44, #0D161B 45%, #1C2930);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6);
}
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: var(--sb, #f4f8f6); display: flex; flex-direction: column; }
.phone-screen img { width: 100%; height: auto; flex: none; margin-top: auto; }
.phone-status {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 10%;
  font-size: calc(var(--w) * .043); font-weight: 700; color: #10221A; direction: ltr; position: relative;
}
.phone-status span { order: 0; }
.phone-status i { width: 13%; height: 34%; border-radius: 4px; border: 1.5px solid currentColor; opacity: .85; position: relative; }
.phone-status i::after { content: ""; position: absolute; inset: 1.5px; width: 62%; background: currentColor; border-radius: 2px; }
.phone-status::before { /* the island */
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30%; height: 62%; border-radius: 999px; background: #05080A;
}
.phone[data-sb="light"] .phone-status { color: #fff; }
.phone-hero { --w: min(300px, 76vw); }
.chapter-visual-pair { position: relative; }
.chapter-visual-pair .phone-back { position: absolute; --w: min(200px, 50vw); transform: translate(-30%, 8%) rotate(-6deg); opacity: .9; filter: saturate(.9) brightness(.85); }
.chapter-visual-pair .phone-front { --w: min(230px, 58vw); transform: translate(10%, 0) rotate(3deg); }

/* ── the journey (page road) ── */
.journey { position: relative; padding-top: 30px; }
.road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-bed { stroke: rgba(255, 255, 255, .055); stroke-width: 18; }
.road-dash { stroke: rgba(255, 255, 255, .16); stroke-width: 1.6; stroke-dasharray: 2 12; }
.road-walked { stroke: url(#r-walk); stroke-width: 6; filter: drop-shadow(0 0 8px rgba(69, 227, 168, .55)); }
.road-walked-friend { stroke: url(#r-friend); stroke-width: 3; transform: translateX(7px); }
.road-friend-in { stroke: url(#r-friend); stroke-width: 4; filter: drop-shadow(0 0 7px rgba(255, 179, 71, .5)); }
.walker { transition: opacity .3s; }
.walker-ring { fill: var(--night); stroke: var(--green); stroke-width: 3.5; }
.walker-head { fill: var(--cream); }
.walker-bubble {
  position: absolute; z-index: 3; top: 0; left: 0; padding: 5px 11px; border-radius: 10px; background: var(--cream); color: #0B1F2A;
  font-size: 12.5px; font-weight: 800; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .7);
}
.walker-bubble.show { opacity: 1; }

.chapter { position: relative; z-index: 1; padding: 30px 0 72px; }
.chapter-grid { display: grid; gap: 34px; align-items: center; padding-inline-start: calc(var(--gutter) + 52px); }
.chapter-wide .wrap { padding-inline-start: calc(var(--gutter) + 52px); }
.chapter-copy h2, .chapter-head h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); margin-top: 8px; }
.chapter-copy > p, .chapter-head > p { margin-top: 14px; color: #C3D3D3; font-size: 1.04rem; }
.chapter-visual { display: grid; place-items: center; padding-block: 8px 20px; }
.kicker { display: inline-block; color: var(--green); font-weight: 800; font-size: 13.5px; letter-spacing: .01em; }
.kicker-orange { color: var(--orange); }
.kicker-violet { color: var(--violet); }

/* stops on the road */
.stop {
  position: absolute; z-index: 2; top: 30px; inset-inline-start: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px;
}
.stop-node {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 0 0 6px var(--night);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease, background-color .4s ease;
}
.stop-node .coin { width: 34px; height: 34px; filter: grayscale(.85) brightness(.75); opacity: .55; transition: filter .5s ease, opacity .5s ease; }
.stop-node .i { width: 24px; height: 24px; color: var(--faint); transition: color .4s ease; }
.stop-node svg:not(.i):not(.coin) { width: 34px; height: 34px; }
.stop-label { font-size: 11px; line-height: 1.35; text-align: center; font-weight: 800; color: var(--faint); max-width: 56px; transition: color .4s ease; background: var(--night); padding: 0 4px; border-radius: 6px; }
.stop.reached .stop-node { transform: scale(1.08); box-shadow: inset 0 0 0 2px rgba(255, 197, 61, .6), 0 0 0 6px var(--night), 0 0 30px 4px rgba(255, 197, 61, .35); }
.stop.reached .stop-node .coin { filter: none; opacity: 1; }
.stop.reached .stop-label { color: var(--gold); }
.stop-plain.reached .stop-node, .stop-friend.reached .stop-node, .stop-finish.reached .stop-node { box-shadow: inset 0 0 0 2px rgba(69, 227, 168, .55), 0 0 0 6px var(--night), 0 0 26px 2px rgba(69, 227, 168, .3); }
.stop-plain.reached .i { color: var(--green); }
.stop-plain.reached .stop-label { color: var(--green); }
.stop-friend.reached .stop-node { box-shadow: inset 0 0 0 2px rgba(255, 179, 71, .7), 0 0 0 6px var(--night), 0 0 30px 4px rgba(255, 179, 71, .35); }
.stop-friend.reached .i { color: var(--orange); }
.stop-friend.reached .stop-label { color: var(--orange); }
.stop-finish .stop-node { width: 58px; height: 58px; background: linear-gradient(160deg, var(--forest), var(--night)); }
.stop-goal.stop-node .coin { width: 38px; height: 38px; }

.pop {
  position: fixed; z-index: 60; pointer-events: none; font-weight: 900; font-size: 18px; color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.fly { position: fixed; z-index: 60; width: 26px; height: 26px; pointer-events: none; }

/* chapter details */
.tiers { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiers li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); font-weight: 500; }
.tier-coin { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; color: var(--gold); }
.tier-coin .coin { width: 26px; height: 26px; }
.tier-goal { font-size: 22px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #CFDCDB; }
.ticks .i { margin-top: 3px; width: 22px; height: 22px; color: var(--green); padding: 0; }
.ticks b { color: var(--text); }

.week { margin-top: 20px; display: flex; gap: 8px; }
.day { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--card); color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.day.done { background: linear-gradient(140deg, var(--orange), var(--orange-2)); color: #3B1600; box-shadow: none; }
.day.frozen { background: linear-gradient(140deg, #9BD8FF, #4BA3E3); color: #062B45; box-shadow: none; }
.day.today { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); }
.tiers-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tier { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #10161A; }
.t-bronze { background: linear-gradient(135deg, #E9A46C, #B8682D); }
.t-silver { background: linear-gradient(135deg, #E6EBF0, #9AA6B2); }
.t-gold { background: linear-gradient(135deg, #FFE08A, #F2B33D); }
.t-emerald { background: linear-gradient(135deg, #7FF0C2, #17A57A); }
.t-diamond { background: linear-gradient(135deg, #C5E8FF, #6FA8F5); }
.t-legend { background: linear-gradient(135deg, #F3B6FF, #8B5CF6 60%, #F26A12); color: #fff; }

/* fair coins */
.chapter-head { max-width: 760px; }
.ledger { margin-top: 28px; display: grid; gap: 14px; }
.ledger-card { padding: 22px 20px; border-radius: var(--radius); background: #10293A; box-shadow: inset 0 0 0 1px var(--line); }
.ledger-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 10px; }
.ledger-in h3 .i { color: var(--green); }
.ledger-out h3 .i { color: var(--orange); }
.ledger-card ul { list-style: none; margin: 0; padding: 0; }
.ledger-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px dashed var(--line-2); color: #CDDAD9; font-size: 15px; }
.ledger-card li:first-child { border-top: 0; }
.ledger-card li b { white-space: nowrap; font-size: 15px; }
.ledger-in li b { color: var(--gold); }
.ledger-in li b::before { content: "+"; }
.ledger-out li b { color: var(--orange); }
.ledger-out li b::before { content: "−"; }
.ledger-in li b.word::before, .ledger-out li b.word::before { content: none; }
.fair-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.fair-points li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #0F2E34; box-shadow: inset 0 0 0 1px rgba(69, 227, 168, .14); font-size: 14.5px; color: #CFE3DD; }
.fair-points .i { color: var(--green); }

/* download */
.finish { padding-bottom: 90px; }
.download {
  position: relative; overflow: hidden; padding: 30px 20px 24px; border-radius: 32px;
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(31, 167, 122, .32), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(242, 106, 18, .14), transparent 60%),
    linear-gradient(160deg, #11352E, #0D2531 70%);
  box-shadow: inset 0 0 0 1px rgba(69, 227, 168, .2), 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.download-head { text-align: center; }
.download-head h2 { font-size: clamp(1.7rem, 6.6vw, 2.6rem); }
.page-coins-note { margin: 10px auto 0; max-width: 36em; color: var(--gold); font-size: 14.5px; }
.platforms { margin-top: 26px; display: grid; gap: 12px; }
.platform { padding: 20px 18px; border-radius: 22px; background: rgba(5, 18, 25, .35); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.platform-head { display: flex; align-items: center; gap: 10px; }
.platform-head h3 { font-size: 1.15rem; }
.platform-head .i { width: 26px; height: 26px; color: var(--green); }
.platform p { color: #BFD0CF; font-size: 14.5px; flex: 1; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.platform-actions .store { flex: 1 1 140px; justify-content: center; }
.platform-web { background: rgba(69, 227, 168, .08); box-shadow: inset 0 0 0 1px rgba(69, 227, 168, .3); }
.platform-web .btn { width: 100%; }
.platform-web .btn .i { transform: none; }
.download-note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.download-note .i { width: 18px; height: 18px; margin-top: 4px; color: var(--muted); }

/* faq */
.faq { padding: 30px 0 90px; position: relative; z-index: 1; }
.faq-wrap { max-width: 860px; }
.faq h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); text-align: center; }
.faq-list { margin-top: 26px; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s; }
.faq details[open] { background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 20px 18px; color: #C2D2D1; }
.faq a { color: var(--green); font-weight: 700; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.foot-row { display: grid; gap: 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand .brand { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-links a:hover { color: var(--text); }
.foot-trust { display: flex; align-items: center; }
.foot-trust a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
  width: 84px;
  height: 96px;
}
.foot-trust a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.foot-trust img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.foot-copy { color: var(--faint); font-size: 13px; margin-top: 20px; }

/* iPhone guide (dialog) */
.sheet {
  width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: auto auto 12px; padding: 18px 22px 22px;
  border: 0; border-radius: 28px; background: #102935; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -20px rgba(0, 0, 0, .8);
}
.sheet::backdrop { background: rgba(2, 10, 14, .6); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet-close-row { display: flex; justify-content: flex-end; margin: 0; }
.sheet h2 { font-size: 1.35rem; margin-top: -6px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.step-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(69, 227, 168, .15); color: var(--green); font-weight: 800; }
.i-inline { display: inline-block; vertical-align: -5px; width: 20px; height: 20px; color: #6CB4FF; }
.sheet-note { margin: 14px 0 18px; color: var(--muted); font-size: 14px; }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 14px; background: var(--cream); color: var(--night); font-weight: 700; font-size: 14px;
  transition: opacity .25s ease, translate .25s ease; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* pages (privacy, terms, 404) */
.page { padding: 40px 0 80px; }
.page-wrap { max-width: 820px; }
.page h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.page-meta { margin-top: 8px; color: var(--faint); font-size: 13.5px; }
.page-body { margin-top: 26px; padding: 24px 20px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #D2DFDE; }
.page-body p { margin-bottom: 14px; }
.page-body p:last-child { margin-bottom: 0; }
.page-body h2 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--text); }
.lost { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost svg { width: 110px; height: 110px; margin: 0 auto 18px; }
.lost h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.lost p { margin: 10px auto 24px; color: var(--muted); max-width: 30em; }

/* ── wider screens ── */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .hide-sm { display: inline-flex !important; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .fair-points { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .platform-web { grid-column: 1 / -1; }
  .platform-web .btn { width: auto; align-self: flex-start; }
  .foot-row { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
}

@media (min-width: 1000px) {
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero-copy { text-align: start; }
  .lead { margin-inline: 0; }
  .store-row { justify-content: flex-start; }
  .phone-hero { --w: 318px; }

  .journey { padding-top: 50px; }
  .chapter { padding: 50px 0 110px; }
  /* copy | road lane | phone; every other chapter swaps sides */
  .chapter-grid { grid-template-columns: 1fr 160px 1fr; padding-inline-start: var(--gutter); gap: 0; }
  .chapter-copy { grid-column: 1; grid-row: 1; max-width: 500px; justify-self: end; }
  .chapter-visual { grid-column: 3; grid-row: 1; }
  .chapter-flip .chapter-copy { grid-column: 3; justify-self: start; }
  .chapter-flip .chapter-visual { grid-column: 1; }
  .stop { inset-inline-start: calc(50% - 26px); top: 18px; }
  .stop-label { max-width: none; white-space: nowrap; font-size: 11.5px; }
  .chapter-wide .wrap { padding-inline-start: var(--gutter); }
  .chapter-wide .stop { top: 0; }
  .chapter-wide { padding-top: 110px; }
  .chapter-head { margin-inline: auto; text-align: center; }
  .ledger { max-width: 980px; margin-inline: auto; gap: 18px; }
  .fair-points { max-width: 980px; margin-inline: auto; grid-template-columns: repeat(4, 1fr); }
  .fair-points li { flex-direction: column; align-items: flex-start; }
  .phone { --w: 286px; }
  .chapter-visual-pair .phone-back { --w: 250px; transform: translate(-34%, 7%) rotate(-6deg); }
  .chapter-visual-pair .phone-front { --w: 272px; transform: translate(14%, 0) rotate(3deg); }
  .download { padding: 48px 44px 36px; }
  .platforms { grid-template-columns: 1fr 1fr 1.15fr; }
  .platform-web { grid-column: auto; }
  .platform-web .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.page-body ul { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 6px; }
.page-body li::marker { color: var(--green); }
.page-body h2:first-child { margin-top: 0; }
