/* Deload landing — the lit stage.
   Every colour is the app's own token (design/v2/Main.dc.html THEMES v2,
   through the P4 recreation kit); the page composes them in a web register.
   One visual world, dark-first, painted explicitly: the body is the light
   source, and the bands alternate the app's ground, its accent, its paper
   and its fresh green, in the order the approved store deck established. */

:root {
  --bg: #0b0e14; --ground: #131728; --sheet: #131824; --splash: #07080c;
  --tx: #f1f4f9; --sub: #99a3b4; --faint: #7d8a9e;
  --hair: rgba(255,255,255,0.09); --cardDark: rgba(255,255,255,0.045);
  --acc: #9B8CFF; --accHover: #ab9fff; --onAcc: #0c0e15;
  --accSoft: rgba(155,140,255,0.14); --accBd: rgba(155,140,255,0.4); --accGlow: rgba(155,140,255,0.24);
  --fresh: #3fd99b; --rec: #edac3f; --cooked: #f0584a; --pull: #56cfe4;
  --paper: #f1f2f6; --ink: #171b23; --inkSub: #59626f; --inkFaint: #5e6674; --paperHair: rgba(16,22,36,0.08);
  --accInkL: #6553cb; --freshL: #0fa06a; --recL: #c8871a; --cookedL: #d84537;
  --freshInkL: #0a734c; --recInkL: #8a5d12; --cookedInkL: #b73a2f;
  --font-body: 'Barlow', 'PT Sans', 'Almarai', 'Hind', 'PingFang SC', 'PingFang TC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'PT Sans Narrow', 'Almarai', 'Khand', 'PingFang SC', 'PingFang TC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans', system-ui, sans-serif;
  /* Script rules, ported from lib/l10n/script_rules.dart: cursive and
     complex-shaping scripts take no tracking at all, CJK drops positive
     tracking and opens its line boxes, Devanagari floors its lines at 1.62. */
  --tkp: 1; --tkn: 1; --lh-display: 0.96; --lh-body: 1.55;
  --gutter: clamp(20px, 4vw, 40px); --max: 1160px;
}
html[data-track="none"] { --tkp: 0; --tkn: 0; }
html[data-track="cjk"] { --tkp: 0; --lh-display: 1.15; --lh-body: 1.7; }
html[data-script="deva"] { --lh-display: 1.62; --lh-body: 1.8; }
/* Devanagari's line box is 1.62 tall for its matras; the accent bar hugs the
   baseline instead of the box's floor, and a tall line box reads as air. */
html[data-script="deva"] .sw i { bottom: 0.22em; }
html[lang="ko"] { word-break: keep-all; }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 400 17px/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.band--accent :focus-visible, .band--fresh :focus-visible { outline-color: var(--onAcc); }
.band--paper :focus-visible { outline-color: var(--accInkL); }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus {
  width: auto; height: auto; clip: auto; inset-inline-start: 16px; top: 16px; z-index: 100;
  background: var(--acc); color: var(--onAcc); padding: 10px 14px; border-radius: 999px; font-weight: 600; text-decoration: none;
}

/* ── bands ─────────────────────────────────────────────────────────────── */
.band { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.band--ground {
  background: radial-gradient(1100px 760px at 50% -8%, var(--ground) 0%, var(--bg) 58%);
  --t1: var(--tx); --t2: var(--sub); --t3: var(--faint); --line: var(--hair); --card: var(--cardDark);
  --sw: var(--acc); --swGlow: 0 0 0.18em rgba(155,140,255,0.75);
}
.band--splash {
  background: radial-gradient(1100px 640px at 50% -8%, #12141f 0%, var(--splash) 58%);
  --t1: var(--tx); --t2: var(--sub); --t3: var(--faint); --line: var(--hair); --card: var(--cardDark);
  --sw: var(--acc); --swGlow: 0 0 0.18em rgba(155,140,255,0.75);
}
.band--accent {
  background: var(--acc);
  --t1: var(--onAcc); --t2: #292744; --t3: #292744; --line: rgba(12,14,21,0.18); --card: rgba(255,255,255,0.22);
  --sw: #ffffff; --swGlow: none;
}
.band--fresh {
  background: var(--fresh);
  --t1: var(--onAcc); --t2: #163730; --t3: #163730; --line: rgba(12,14,21,0.18); --card: rgba(255,255,255,0.24);
  --sw: var(--onAcc); --swGlow: none;
}
.band--paper {
  background: var(--paper);
  --t1: var(--ink); --t2: var(--inkSub); --t3: var(--inkFaint); --line: var(--paperHair); --card: #ffffff;
  --sw: var(--accInkL); --swGlow: none;
}
.band { color: var(--t1); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .body { margin-inline: auto; }

/* ── type ──────────────────────────────────────────────────────────────── */
h1 {
  font: 700 clamp(60px, 8vw, 104px) / var(--lh-display) var(--font-display);
  letter-spacing: calc(-0.012em * var(--tkn)); text-wrap: pretty; color: var(--t1);
}
h2 {
  font: 700 clamp(40px, 5.2vw, 72px) / var(--lh-display) var(--font-display);
  letter-spacing: calc(-0.01em * var(--tkn)); text-wrap: pretty; color: var(--t1);
}
.hl { display: block; }
/* Deload's accent device: the READY tick's straight bar under the accent
   word, glowing where it sits on a dark ground (the deck's own device, not an
   inherited marker swipe). */
.sw { position: relative; display: inline-block; z-index: 0; }
.sw i {
  position: absolute; inset-inline: 0.02em; bottom: -0.02em; height: 0.07em; border-radius: 0.035em;
  background: var(--sw); box-shadow: var(--swGlow); z-index: -1;
}
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font: 600 12px/1.3 var(--font-body); letter-spacing: calc(0.22em * var(--tkp)); text-transform: uppercase; color: var(--t3);
}
.eyebrow__mark { width: 16px; height: 16px; color: var(--sw); flex: none; }
.band--paper .eyebrow__mark { color: var(--accInkL); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--t2); max-width: 34em; margin: 22px 0 28px; }
.body { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--t2); max-width: 36em; }
h2 + .body { margin-top: 20px; }
.try { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--t2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.try__chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; flex: none;
  background: var(--accSoft); border: 1px solid var(--accBd); color: var(--acc);
  font-weight: 600; font-size: 12.5px; letter-spacing: calc(0.02em * var(--tkp));
  box-shadow: 0 0 14px var(--accGlow); animation: chip-breathe 2.8s ease-in-out infinite;
}
html[lang="tr"] .eyebrow, html[lang="tr"] .state__word, html[lang="tr"] caption { text-transform: none; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; padding: 14px 0; transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11,14,20,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--hair); }
.nav__in { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none;
  font: 700 17px/1 var(--font-display); letter-spacing: calc(0.32em * var(--tkp)); text-transform: uppercase;
}
.nav__brand img { border-radius: 7px; display: block; }
.nav__cta {
  background: var(--acc); color: var(--onAcc); text-decoration: none; white-space: nowrap;
  font: 600 13.5px/1 var(--font-body); letter-spacing: calc(0.03em * var(--tkp));
  padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 22px var(--accGlow);
}
.nav__cta:hover { background: var(--accHover); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(116px, 14vw, 156px); padding-bottom: clamp(48px, 6vw, 84px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__free { margin: 14px 0 0; font-size: 13.5px; color: var(--t3); }
.hero__stage { position: relative; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { height: 50px; width: auto; display: block; }
.badges--lg .store-badge img { height: 56px; }

/* ── live surfaces: a logical app box, scaled to its slot ──────────────── */
.fit { position: relative; width: 100%; }
.fit > .logical { position: absolute; left: 0; top: 0; transform-origin: top left; }
/* Reserved room before the script mounts (and the no-JS still): exact aspect
   for the boxes with a fixed logical height, a floor for the auto-height ones. */
.fit--hero { max-width: 600px; margin-inline: auto; aspect-ratio: 440 / 720; }
.fit--phone { max-width: 420px; aspect-ratio: 468 / 984; }
.fit--card { max-width: 520px; min-height: 360px; }
.fit--strip { max-width: 800px; margin: 44px auto 0; min-height: 120px; }
.fit--panel { max-width: 520px; min-height: 700px; }
.fit--presence { max-width: 580px; min-height: 440px; }
.fit__still { display: block; width: 100%; height: auto; border-radius: 24px; }
.slot { display: flex; justify-content: center; min-width: 0; }
.slot--phone .fit, .slot--card .fit, .slot--panel .fit { width: 100%; }
.logical svg [data-muscle] { cursor: pointer; }
.logical [data-muscle].pulse { animation: cooked-pulse 2.8s ease-in-out infinite; }
.logical .reveal { opacity: 0; transition: opacity 0.9s ease; }
.logical .reveal.on { opacity: 1; }
.logical .tap { cursor: pointer; }

/* ── sections ──────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--flip .copy { order: 2; }
.copy { min-width: 0; }

.states { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.state {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(16,22,36,0.06);
}
.state__dot { width: 10px; height: 10px; border-radius: 50%; }
.state--fresh .state__dot { background: var(--freshL); box-shadow: 0 0 9px var(--freshL); }
.state--recovering .state__dot { background: var(--recL); box-shadow: 0 0 9px var(--recL); }
.state--cooked .state__dot { background: var(--cookedL); box-shadow: 0 0 9px var(--cookedL); }
.state__word {
  font: 700 11px/1.2 var(--font-body); letter-spacing: calc(0.16em * var(--tkp)); text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.state--fresh .state__word { color: var(--freshInkL); background: rgba(15,160,106,0.14); }
.state--recovering .state__word { color: var(--recInkL); background: rgba(200,135,26,0.14); }
.state--cooked .state__word { color: var(--cookedInkL); background: rgba(216,69,55,0.14); }
.state__line { color: var(--t1); font-size: 16px; line-height: 1.4; }
.ready { display: flex; gap: 18px; align-items: center; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(16,22,36,0.06); }
.ready__num { font: 700 64px/0.95 var(--font-display); letter-spacing: -1px; color: var(--t1); font-variant-numeric: tabular-nums; flex: none; }
.ready__num span { font: 600 11px/1 var(--font-body); letter-spacing: calc(0.16em * var(--tkp)); color: var(--t3); margin-inline-start: 6px; }
.ready h3 { font: 600 17px/1.3 var(--font-body); color: var(--t1); margin-bottom: 4px; }
.ready p { color: var(--t2); font-size: 15px; line-height: 1.5; }

.how__head { max-width: 780px; }
.how__why { margin-top: 18px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--t2); max-width: 36em; }
.how__why strong { color: var(--t1); font-weight: 600; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 24px 22px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(16,22,36,0.06); }
.steps__n {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--accSoft); border: 1px solid var(--accBd); color: var(--accInkL); font: 700 16px/1 var(--font-display);
}
.steps p { color: var(--t1); font-size: 16px; line-height: 1.55; }
.windows { margin-top: 24px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; box-shadow: 0 2px 12px rgba(16,22,36,0.06); }
.windows__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.windows__table caption { text-align: start; font: 600 12px/1.3 var(--font-body); letter-spacing: calc(0.2em * var(--tkp)); text-transform: uppercase; color: var(--t3); margin-bottom: 14px; }
.windows__table th, .windows__table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.windows__table thead th { border-top: 0; font: 600 13.5px/1.3 var(--font-body); color: var(--t2); padding-top: 0; }
.windows__table tbody th { font: 600 16px/1.3 var(--font-body); color: var(--t1); width: 46%; }
.windows__table tbody th span { display: block; font: 400 13px/1.45 var(--font-body); color: var(--t3); margin-top: 2px; }
.windows__table td { font: 700 32px/1 var(--font-display); color: var(--t1); }
.windows__note { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--t2); max-width: 64em; }

.nots { list-style: none; margin: 30px auto 0; padding: 0; display: grid; gap: 12px; max-width: 640px; text-align: start; }
.nots li { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--t1); font-size: 16px; line-height: 1.5; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--t1); font-weight: 600; font-size: 14.5px;
}
.chip::before {
  content: ''; width: 15px; height: 15px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233fd99b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 L8.2 14.5 L16 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.trust__data { margin: 30px auto 0; max-width: 40em; }

.maker__quote { margin: 26px 0 20px; padding: 0; border: 0; }
.maker__quote p { font: 600 clamp(24px, 3vw, 34px) / 1.25 var(--font-display); color: var(--t1); text-wrap: balance; letter-spacing: calc(-0.005em * var(--tkn)); }
.maker__sign { margin: 18px 0 0; font: 600 14px/1.4 var(--font-body); color: var(--t3); letter-spacing: calc(0.04em * var(--tkp)); }

.cta .badges { justify-content: center; margin-top: 30px; }
.cta__not { margin: 22px 0 0; font: 600 14px/1.4 var(--font-body); letter-spacing: calc(0.06em * var(--tkp)); color: var(--t2); }
.contact { margin-top: 40px; }
.contact--start { margin-top: 28px; }
.contact__btn {
  appearance: none; cursor: pointer; border: 1px solid var(--accBd); background: var(--accSoft); color: var(--acc);
  font: 600 15px/1 var(--font-body); padding: 14px 22px; border-radius: 999px; box-shadow: 0 0 18px var(--accGlow);
}
.contact__btn:hover { background: rgba(155,140,255,0.22); }
.contact__note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--t3); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--splash); padding: 44px 0 40px; border-top: 1px solid var(--hair); }
.footer__in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.footer__brand { display: inline-flex; gap: 8px; align-items: center; font: 700 15px/1 var(--font-display); letter-spacing: calc(0.3em * var(--tkp)); text-transform: uppercase; color: var(--tx); }
.footer__mark { width: 18px; height: 18px; color: var(--acc); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--sub); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--tx); text-decoration: underline; }
.langs { position: relative; }
.langs summary { cursor: pointer; color: var(--sub); font-size: 14px; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ' ▾'; }
.langs summary:hover { color: var(--tx); }
.langs__menu {
  position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; z-index: 20; min-width: 300px;
  background: var(--sheet); border: 1px solid var(--hair); border-radius: 14px; padding: 8px; box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px;
}
.langs__menu a { padding: 7px 10px; border-radius: 8px; color: var(--tx); text-decoration: none; font-size: 14px; white-space: nowrap; }
.langs__menu a:hover { background: var(--cardDark); }
.langs__menu a[aria-current] { background: var(--accSoft); }
.footer__made, .footer__copy { width: 100%; font-size: 13px; color: var(--faint); }
.footer__copy { margin-top: -10px; }

/* ── snackbar (behavior.js toggles .snackbar--show) ────────────────────── */
.snackbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--sheet); color: var(--tx); border: 1px solid var(--hair); border-radius: 14px; padding: 11px 16px;
  font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.snackbar--show { opacity: 1; transform: translate(-50%, 0); }

/* ── support page ──────────────────────────────────────────────────────── */
.supportpage { padding-top: clamp(116px, 14vw, 156px); min-height: 100vh; }
.supportpage h1 { font-size: clamp(52px, 8vw, 96px); }
.supportpage__h2 { margin: 52px 0 0; font-size: clamp(30px, 3.4vw, 40px); }
.faq { margin: 26px 0 0; }
.faq__item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq dt { font: 600 18px/1.35 var(--font-body); color: var(--t1); margin: 0 0 8px; }
.faq dd { margin: 0; color: var(--t2); line-height: 1.6; }
.supportpage__links { margin: 44px 0 0; color: var(--t3); }
.supportpage__links a { color: var(--sub); }
.supportpage__langs { margin-top: 26px; }

/* ── motion ────────────────────────────────────────────────────────────── */
@keyframes cooked-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes chip-breathe { 0%, 100% { box-shadow: 0 0 14px var(--accGlow); } 50% { box-shadow: 0 0 26px rgba(155,140,255,0.5); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .logical .reveal { opacity: 1; }
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__in, .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .copy { order: 0; }
  .hero { padding-top: 92px; }
  /* Promise, then the proof, then the badges: the live body lands in the
     first screen and the fixed nav keeps the download one tap away. */
  .hero__copy { display: contents; }
  .hero__in > * , .hero__copy > * { min-width: 0; }
  .hero__copy > h1 { order: 0; }
  .hero__stage { order: 1; margin-top: 8px; }
  .hero__copy > .lead { order: 2; margin: 28px 0 24px; }
  .hero__copy > .badges { order: 3; }
  .hero__copy > .hero__free { order: 4; }
  .hero__in { gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .fit--phone { max-width: 360px; }
}
@media (max-width: 600px) {
  /* The windows table stacks: one block per size, the three intensities as
     labelled cells, so nothing hides behind a horizontal scroll. */
  .windows { overflow: visible; }
  .windows__table { min-width: 0; }
  .windows__table thead { display: none; }
  .windows__table caption { display: block; width: auto; }
  .windows__table, .windows__table tbody, .windows__table tr { display: block; }
  .windows__table tbody th { display: block; width: auto; border-top: 1px solid var(--line); padding: 14px 0 6px; }
  .windows__table tr:first-child th { border-top: 0; padding-top: 0; }
  .windows__table td { display: inline-block; width: 32%; padding: 4px 0 12px; border-top: 0; vertical-align: top; }
  .windows__table td::before { content: attr(data-label); display: block; font: 600 12px/1.3 var(--font-body); color: var(--t2); margin-bottom: 4px; }
}
@media (max-width: 600px) {
  .band { padding: 64px 0; }
  .footer__in { flex-direction: column; align-items: flex-start; }
  .langs__menu { min-width: 260px; }
  .ready { flex-direction: column; align-items: flex-start; }
}
