/* ReadTiles: warm paper, ink pills, teal and module colours only as fills */
:root {
  --bg: #FBF8F3; --bg-2: #F3EFE8; --surface: #FFFFFF;
  --ink: #2B2A33; --muted: #75717C; --faint: #D3CED6; --line: #EAE5DC;
  --btn-bg: #2B2A33; --btn-ink: #FFFFFF;
  --teal: #7FC8B4; --coral: #FF8A65; --sun: #FFD27A; --sky: #A9C7F5; --lilac: #C9B8F2;
  --m-letters: #3FB59A; --m-letters-t: #E3F5EF; --m-slide: #FF8A65; --m-slide-t: #FFF0EA;
  --m-build: #4D9DFF; --m-build-t: #EAF3FF; --m-story: #8B7CF6; --m-story-t: #F1EDFF;
  --shadow: 0 1px 2px rgba(58,46,31,.10), 0 3px 6px rgba(58,46,31,.07), 0 14px 28px -8px rgba(58,46,31,.09);
  --shadow-up: 0 2px 3px rgba(58,46,31,.10), 0 6px 10px rgba(58,46,31,.07), 0 26px 44px -8px rgba(58,46,31,.12);
  --bar: rgba(251,248,243,.82);
  --head: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
/* dark tokens: system preference, or ?theme=dark preview */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1720; --bg-2: #132634; --surface: #1B3040;
    --ink: #EDF3F1; --muted: #9FB3BC; --faint: #4C6372; --line: #2B4354;
    --btn-bg: #7FC8B4; --btn-ink: #0C1720;
    --shadow: 0 1px 2px rgba(2,7,11,.55), 0 12px 26px -6px rgba(2,7,11,.45);
    --shadow-up: 0 2px 3px rgba(2,7,11,.55), 0 22px 40px -6px rgba(2,7,11,.5);
    --bar: rgba(12,23,32,.82);
  }
}
:root[data-theme="dark"] {
  --bg: #0C1720; --bg-2: #132634; --surface: #1B3040;
  --ink: #EDF3F1; --muted: #9FB3BC; --faint: #4C6372; --line: #2B4354;
  --btn-bg: #7FC8B4; --btn-ink: #0C1720;
  --shadow: 0 1px 2px rgba(2,7,11,.55), 0 12px 26px -6px rgba(2,7,11,.45);
  --shadow-up: 0 2px 3px rgba(2,7,11,.55), 0 22px 40px -6px rgba(2,7,11,.5);
  --bar: rgba(12,23,32,.82);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 820px) { .wrap { width: min(1160px, 100% - 44px); } }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--m-build); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 16px; z-index: 100; }
.skip:focus { top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 16px; background: var(--btn-bg); color: var(--btn-ink); font: 700 16px/1 var(--sans); text-decoration: none; border: 0; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.pill { min-height: 44px; border-radius: 999px; padding: 0 20px; font-size: 15px; }

.top { position: fixed; inset: 0 0 auto; z-index: 40; background: var(--bar); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--head); min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.hero { position: relative; padding: 112px 0 72px; overflow: hidden; }
.hero::before, .closing::before { content: ""; position: absolute; inset: 0; background: url(/assets/bits.svg) center / cover no-repeat; opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 820px) { .hero { padding: 140px 0 96px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.kicker { display: inline-block; font: 800 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34ch; margin: 20px 0 24px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 28px; font-weight: 600; }
.ticks li::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 6px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%232B2A33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); vertical-align: -3px; margin-right: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 20px; border-radius: 16px; border: 2px dashed var(--faint); color: var(--muted); line-height: 1.2; text-align: left; }
.store b { color: var(--ink); font-size: 16px; }
.store small { font-size: 13px; }

.phone { --pw: 280px; width: calc(var(--pw) + 20px); padding: 10px; border-radius: 44px; background: #17161C; box-shadow: var(--shadow-up); position: relative; margin-inline: auto; }
.screen { position: relative; width: var(--pw); aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; background: #FBF8F3; }
.screen img, .screen picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen img.hand { inset: auto; width: 24%; height: auto; object-fit: contain; }
.hero .phone { --pw: min(300px, 70vw); transform: rotate(2deg); }

.story { position: relative; height: 780vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; padding-top: 64px; align-items: center; }
.stage .wrap { display: grid; gap: 16px; grid-template-columns: 1fr; justify-items: center; }
.story .phone { --pw: min(236px, calc((100svh - 64px - 250px) * .462)); order: 1; }
.steps { position: relative; order: 2; width: 100%; max-width: 560px; height: 190px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; }
.step { position: absolute; inset: 16px 18px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.num { display: inline-block; font: 800 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 10px; margin-bottom: 8px; color: #2B2A33; }
.step h3 { font-size: clamp(22px, 5.4vw, 30px); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 6px 12px; border-radius: 10px; background: var(--bg-2); font: 700 14px/1 var(--sans); }
.soon { font: 800 12px/1 var(--sans); background: var(--m-story-t); color: #5B4BD0; padding: 5px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3.5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--teal); }
.layer { opacity: 0; }
.hand { position: absolute; width: 24%; z-index: 5; pointer-events: none; opacity: 0; transform-origin: 40% 8%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); left: 0; top: 0; }
.ring { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #2B2A33; background: rgba(127,200,180,.4); z-index: 4; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
@media (min-width: 820px) {
  .stage .wrap { grid-template-columns: 1fr auto; gap: 72px; justify-items: stretch; align-items: center; }
  .story .phone { --pw: min(320px, calc((100svh - 64px - 90px) * .462)); order: 2; }
  .steps { order: 1; max-width: 480px; justify-self: end; height: 300px; padding: 28px; background: transparent; box-shadow: none; }
  .step { inset: 0; }
  .step h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
  .step p { font-size: 18px; line-height: 1.55; }
  .progress { left: 0; right: 0; bottom: -24px; }
}

section.sec { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.card .dot { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 20px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; } .reveal:nth-child(3) { transition-delay: .2s; }

.duo { background: var(--bg-2); }
.duo .wrap { display: grid; gap: 40px; align-items: center; }
.pair { display: flex; justify-content: center; gap: 20px; }
.pair .phone { --pw: min(200px, 34vw); padding: 8px; border-radius: 36px; width: calc(var(--pw) + 16px); }
.pair .screen { border-radius: 28px; }
.pair figure { margin: 0; text-align: center; }
.pair figcaption { margin-top: 12px; font-weight: 700; color: var(--muted); font-size: 14px; }
@media (min-width: 820px) { .duo .wrap { grid-template-columns: 1fr 1fr; } .pair .phone { --pw: 220px; } }

.price { text-align: center; }
.price .box { max-width: 640px; margin-inline: auto; border: 2px dashed var(--faint); border-radius: 28px; padding: 40px 24px; }
.price p { color: var(--muted); margin-top: 12px; }

.closing { position: relative; overflow: hidden; text-align: center; padding: 96px 0; background: var(--bg-2); }
.closing .wrap { position: relative; }
.closing .stores { justify-content: center; margin-top: 28px; }
footer { padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

.doc { padding: 120px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc a { text-underline-offset: 3px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.summary { background: var(--surface); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); margin: 16px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step, .btn { transition: none; }
  .hero .phone { transform: none; }
}
