/* Noyad landing — «یک شب تا امتحان», faceted low-poly.
   The page starts at night on a desk under a study lamp (a floating diorama); the scroll is the night before an exam,
   and the page wakes up in daylight for the practical part (tools, prices, support, questions).
   Modes, set in <head> by js/boot.js before the first paint:
     html.gl     WebGL2 and motion allowed → the fixed 3D stage, the pinned story
     html.no-gl  (also no JS, and html.rm) → still renders of the same diorama, the story as a column of chapters
   The low-poly language outside WebGL: chamfered corners, hard-stop gradients as facets, faceted gems.
   Persian text is never letter-spaced (it breaks the joins). */

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-arabic-wght-normal.woff2?v=15') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-latin-wght-normal.woff2?v=15') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lalezar: the Arabic subset carries the zero-width joiners (patched, see fonts/LICENSES.md) and the Latin subset
   must not claim them, or Safari draws the letter before every نیم‌فاصله in a fallback font. */
@font-face {
  font-family: 'Lalezar';
  src: url('fonts/lalezar-arabic-400-normal.woff2?v=15') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Lalezar';
  src: url('fonts/lalezar-latin-400-normal.woff2?v=15') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2010-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazir Code';
  src: url('fonts/vazir-code-fd.woff2?v=15') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* night */
  --night: #0b0918;
  --night-2: #16113a;
  --n-ink: #f4f1ff;
  --n-ink-2: #c9c2e8;
  --n-mute: #8e87b4;
  --n-line: rgb(255 255 255 / 0.12);
  --lamp: #ffc46b;
  --violet: #9d88ff;
  /* day */
  --paper: #fcfbff;
  --paper-2: #f6f2ff;
  --ink: #15121f;
  --ink-2: #4a4660;
  --mute: #8a85a3;
  --line: #e7e3f1;
  --brand: #6a3ff5;
  --brand-2: #7c5cff;
  --brand-soft: #f1edff;
  --xp: #f59e0b;
  --ok: #10b981;
  --alert: #e0484e;
  --slate: #2c4a3e;
  --chalk: #f3f0e7;
  --chalk-yellow: #fde68a;
  --wood: #8a5a33;
  /* type */
  --font-body: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
  --font-mono: 'Vazir Code', 'Vazirmatn', ui-monospace, Menlo, monospace;
  /* layout */
  --wrap: 74rem;
  --gutter: clamp(18px, 4vw, 48px);
  --header: 4.25rem;
  --svh: 100vh;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  /* a chamfered corner, the page's low-poly signature */
  --cut: 14px;
  --facets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 420'%3E%3Cpath fill='%23f1ecff' d='M640 0v420L380 300 250 120z'/%3E%3Cpath fill='%23ebe4ff' d='M640 0 250 120 470 0z'/%3E%3Cpath fill='%23f5f1ff' d='M250 120 380 300 120 250z'/%3E%3Cpath fill='%23efe8ff' d='M380 300 640 420H200z'/%3E%3Cpath fill='%23fff3e8' d='M120 250 380 300 200 420z'/%3E%3Cpath fill='%23f7f3ff' d='M470 0 250 120 300 0z'/%3E%3C/svg%3E");
  --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

/* If fonts miss the first-paint deadline, keep readable fallback metrics for this visit. */
html.fallback-body { --font-body: Tahoma, 'Segoe UI', system-ui, sans-serif; }
html.fallback-display { --font-display: Tahoma, sans-serif; }
html.fallback-mono { --font-mono: ui-monospace, Menlo, monospace; }

@supports (height: 100svh) { :root { --svh: 100svh; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  color: var(--n-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas, svg { max-width: 100%; }
[id] { scroll-margin-top: calc(var(--header) + 8px); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed !important; inset-inline-start: 1rem; top: 1rem; z-index: 50; width: auto; height: auto; clip: auto; padding: 0.6rem 1rem; background: var(--n-ink); color: var(--night); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
html.lenis, html.lenis body { height: auto; }
/* Keep the first viewport coherent until fonts and the initial fragment's pin geometry are settled. */
.js:not(.fonts) main, .js:not(.fonts) .site-header, .js.relocating main { visibility: hidden; }
html.entry-scroll { overflow-anchor: none; }
html.entry-day { background: var(--paper); }
html.entry-day .sky { background: var(--paper); }

/* ── the sky and the stage: fixed layers behind the page ───────────────────────────────────── */
.sky { position: fixed; inset: 0; height: 100lvh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 8% 14%, rgb(255 255 255 / 0.55), transparent),
    radial-gradient(1px 1px at 17% 31%, rgb(255 255 255 / 0.4), transparent),
    radial-gradient(1.5px 1.5px at 29% 9%, rgb(255 236 200 / 0.5), transparent),
    radial-gradient(1px 1px at 41% 22%, rgb(255 255 255 / 0.35), transparent),
    radial-gradient(1px 1px at 52% 6%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(1.5px 1.5px at 63% 17%, rgb(220 210 255 / 0.5), transparent),
    radial-gradient(1px 1px at 71% 38%, rgb(255 255 255 / 0.3), transparent),
    radial-gradient(1px 1px at 84% 11%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(1.5px 1.5px at 93% 27%, rgb(255 236 200 / 0.4), transparent),
    radial-gradient(1px 1px at 5% 46%, rgb(255 255 255 / 0.3), transparent),
    radial-gradient(1px 1px at 36% 4%, rgb(255 255 255 / 0.35), transparent),
    radial-gradient(1px 1px at 78% 58%, rgb(255 255 255 / 0.25), transparent),
    radial-gradient(90% 70% at 85% -10%, #1d1546 0%, transparent 65%),
    linear-gradient(180deg, #100c26 0%, var(--night) 70%); }
/* dawn: a pale morning over the night, with a warm sunrise passing through */
.sky-dawn { position: absolute; inset: 0; opacity: var(--dawn, 0);
  background: radial-gradient(90% 60% at 30% 100%, #ffe7d0 0%, transparent 70%), linear-gradient(180deg, #ece6ff 0%, #f5f0ff 45%, #fbf8ff 100%); }
.sky::after { content: ''; position: absolute; inset: 0; opacity: calc(var(--sunrise, 0) * 0.8);
  background: radial-gradient(110% 75% at 26% 105%, #ffb27a 0%, #e98aa8 38%, rgb(157 120 220 / 0.6) 62%, transparent 85%); }
.stage { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; display: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
.gl .stage { display: block; }
.stage-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; display: none; }
.gl .stage-labels { display: block; }
.slabel { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; display: grid; gap: 0.05rem; translate: -50% calc(-100% - 0.7rem); padding: 0.35rem 0.8rem;
  background: linear-gradient(160deg, rgb(32 25 66 / 0.9) 0 55%, rgb(22 17 48 / 0.9) 55%);
  white-space: nowrap; text-align: center; visibility: hidden; }
/* a small faceted pointer under each label, down to what it names */
.slabel::after { content: ''; position: absolute; left: 50%; top: 100%; width: 0.8rem; height: 0.6rem; translate: -50% 0; background: rgb(22 17 48 / 0.9); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.slabel b { font-weight: 800; font-size: 0.92rem; color: var(--n-ink); }
.slabel span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--lamp); }
main { position: relative; z-index: 3; }

/* ── header ──────────────────────────────────────────────────────────────────────────────── */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 30; height: var(--header); border-bottom: 1px solid var(--n-line); background: rgb(11 9 24 / 0.94); }
.js .site-header { border-color: transparent; background: linear-gradient(180deg, rgb(11 9 24 / 0.8), rgb(11 9 24 / 0)); transition: background-color 0.3s, border-color 0.3s, color 0.4s; }
.js .site-header.scrolled { background-color: rgb(11 9 24 / 0.88); border-color: var(--n-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.js .site-header.light { background: rgb(252 251 255 / 0.9); border-color: var(--line); color: var(--ink); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.brand small { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.7; margin-top: 0.35rem; }
.nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; opacity: 0.78; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
/* the display face is ready before the headline shows (boot.js adds .fonts, 1.2s at most) */
.js:not(.fonts) .hero-copy, .js:not(.fonts) .brand b, .js:not(.fonts) .story-title { opacity: 0; }
.hero-copy, .brand b, .story-title { transition: opacity 0.6s var(--ease); }

/* ── buttons, eyebrows ───────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid currentColor; border-radius: 0.8rem; background: transparent; color: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { background: var(--n-ink); border-color: var(--n-ink); color: var(--night); }
.btn.small { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: #1d1205; box-shadow: 0 10px 34px -10px rgb(255 170 70 / 0.65); }
.btn.primary:hover { background: #ffd391; border-color: #ffd391; transform: translateY(-1px); }
.btn.ghost { border-color: var(--n-line); color: var(--n-ink-2); background: rgb(11 9 24 / 0.35); }
.btn.ghost:hover { border-color: var(--n-ink); background: rgb(11 9 24 / 0.35); color: var(--n-ink); }
.btn .arrow { font-family: var(--font-mono); transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(-4px); }
.btn:hover .arrow.down { transform: translateY(3px); }
.site-header.light .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.92rem; color: var(--lamp); margin: 0 0 1rem; }
.eyebrow::before { content: ''; width: 0.55rem; height: 0.55rem; background: currentColor; transform: rotate(45deg) scale(0.85); }
.lede { font-size: clamp(1.06rem, 1.45vw, 1.24rem); line-height: 1.95; color: var(--n-ink-2); max-width: 36rem; margin-top: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ── hero ────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--header) + 2rem) 5.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); width: 100%; }
.hero-copy { grid-column: 1; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.32; text-shadow: 0 4px 40px rgb(11 9 24 / 0.8); }
.hero h1 em { font-style: normal; color: var(--lamp); }
.hero .lede { text-shadow: 0 2px 18px rgb(11 9 24 / 0.9); }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0.4rem 2.2rem; margin: 2.6rem 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-family: var(--font-mono); font-size: 1.45rem; line-height: 1.4; color: var(--n-ink); font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 0.82rem; color: var(--n-mute); }

/* the box the diorama is framed into: the 3D camera fits the scene to the largest centred square in it, and the still
   (a square render of the same frame) is object-fit: contain, so the two line up exactly */
.hero-art { position: absolute; z-index: -1; left: 0; top: var(--header); width: 50%; bottom: 1.5rem; pointer-events: none; }
.hero-art::before { content: ''; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgb(120 90 255 / 0.22), rgb(120 90 255 / 0) 100%); }
/* with WebGL the canvas sits behind <main>, so the glow has to come from the sky layer instead of tinting the scene */
.gl .hero-art::before { content: none; }
.gl .sky::before { content: ''; position: absolute; left: 0; width: 50%; top: var(--header); bottom: 1.5rem; opacity: calc(1 - var(--dawn, 0)); background: radial-gradient(closest-side, rgb(120 90 255 / 0.22), rgb(120 90 255 / 0)); }
.hero-art picture, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { object-fit: contain; transition: opacity 0.7s var(--ease); }
.stage-ready .hero-still { opacity: 0; }

.hero-hint, .scroll-cue { position: absolute; font-family: var(--font-mono); font-size: 0.8rem; color: var(--n-mute); }
.hero-hint { display: none; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 2.2rem; }
.gl .hero-hint { display: block; }
.hero-hint::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px var(--lamp); vertical-align: 0.05em; }
.hero-hint .for-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hero-hint .for-mouse { display: none; } .hero-hint .for-touch { display: inline; } }
.scroll-cue { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 2.2rem; display: flex; align-items: center; gap: 0.8rem; }
.scroll-cue i { width: 1px; height: 2.4rem; background: linear-gradient(var(--lamp), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── the story ───────────────────────────────────────────────────────────────────────────── */
.story { position: relative; }
.story-title { font-family: var(--font-display); font-weight: 400; text-align: center; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.3; color: var(--n-ink); }
.story-title span { display: inline-block; padding-inline: 0.2em; }
.chap-no { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.86rem; color: var(--lamp); margin-bottom: 0.9rem; }
.chap-no time { padding: 0.1rem 0.6rem; --pill-bg: rgb(255 196 107 / 0.1); --pill-line: rgb(255 196 107 / 0.45); --cut: 6px; font-variant-numeric: tabular-nums; }
.chap h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem, 2.9vw, 2.75rem); line-height: 1.38; color: var(--n-ink); }
.chap > p:not(.chap-no):not(.stat) { margin-top: 1rem; color: var(--n-ink-2); font-size: 1.02rem; line-height: 1.95; }
.chap .stat { display: grid; gap: 0.2rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--n-line); }
.chap .stat b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1.15; color: var(--n-ink); }
.chap .stat span { font-size: 0.9rem; color: var(--n-ink-2); line-height: 1.8; }
.chap .stat small { font-size: 0.86rem; color: var(--n-mute); line-height: 1.8; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ticks li { font-size: 0.86rem; padding: 0.2rem 0.75rem; color: var(--n-ink-2); --pill-bg: rgb(255 255 255 / 0.07); --pill-line: var(--n-line); --cut: 7px; }
/* Clip the pill's decoration, leaving Persian glyphs intact at the cut corners. */
.chap-no time, .ticks li { position: relative; isolation: isolate; }
.chap-no time::before, .ticks li::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--pill-bg); box-shadow: inset 0 0 0 1px var(--pill-line); clip-path: var(--chamfer); }
.ticks.dark li { color: var(--ink-2); --pill-bg: #fff; --pill-line: var(--line); }
.mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.3rem 2rem; margin: 1.3rem 0 0; }
.mini div { display: flex; flex-direction: column-reverse; }
.mini dd { margin: 0; font-family: var(--font-mono); color: var(--n-ink); }
.mini dt { font-size: 0.8rem; color: var(--n-mute); }
.chat { display: grid; gap: 0.55rem; margin-top: 1.3rem; }
.chat .bubble { max-width: 92%; padding: 0.55rem 0.9rem; font-size: 0.95rem; line-height: 1.85; clip-path: var(--chamfer); --cut: 10px; }
.chat .me { justify-self: start; background: linear-gradient(160deg, var(--brand-2) 0 60%, #7350ff 60%); color: #fff; }
.chat .ai { justify-self: end; background: linear-gradient(160deg, rgb(243 240 255 / 0.14) 0 60%, rgb(243 240 255 / 0.09) 60%); color: var(--n-ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cite { --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); display: inline-block; margin-inline-start: 0.3rem; font-size: 0.74rem; padding: 0 0.55rem; background: #fef3c7; color: #92400e; white-space: nowrap; clip-path: var(--chamfer); --cut: 5px; }
.chap-still { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 1.4rem; background: radial-gradient(closest-side, rgb(120 90 255 / 0.2), rgb(120 90 255 / 0)); }
.story-hud, .story-rail { display: none; }

/* still layout: no JS, no WebGL, or reduced motion — a column of chapters, each with a render of its scene */
.story { padding-block: 5rem 0; }
.story-title { margin-bottom: 3rem; }
.story-pin { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.chap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto; column-gap: clamp(2rem, 5vw, 4rem); align-content: center; }
.chap > * { grid-column: 1; }
.chap .chap-still { grid-column: 2; grid-row: 1 / span 8; align-self: center; margin: 0; }
.chap:last-of-type { padding: 4.5rem 0 6rem; position: relative; }
/* the last chapter is the morning, also without WebGL */
.chap:last-of-type::before { content: ''; position: absolute; inset-block: 0; inset-inline: calc(50% - 50vw); z-index: -1; background: linear-gradient(180deg, rgb(236 230 255 / 0), #ece6ff 3rem, #f6f2ff); }
/* room for the day's ridge, which rises over the end of the story */
html:not(.gl) .chap:last-of-type { padding-bottom: calc(5rem + clamp(70px, 9vw, 130px)); }
html:not(.gl) .chap:last-of-type h3 { color: var(--ink); }
html:not(.gl) .chap:last-of-type > p:not(.chap-no) { color: var(--ink-2); }
html:not(.gl) .chap:last-of-type .chap-no { color: #b45309; }
html:not(.gl) .chap:last-of-type .ticks li { color: var(--ink-2); --pill-bg: rgb(255 255 255 / 0.8); --pill-line: var(--line); }
html:not(.gl) .chap:last-of-type .chap-still { background: radial-gradient(closest-side, rgb(255 200 150 / 0.35), rgb(255 200 150 / 0)); }

/* pinned layout: the stage is fixed behind, scroll drives the night */
.gl .story { height: 900vh; padding: 0; }
.gl .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: block; max-width: none; padding: 0; }
/* the title card, in the words' column (desktop) or under the picture (portrait), as the story slides in */
.gl .story-title { position: absolute; inset-block: 0; inset-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(31rem, 38vw); display: grid; align-content: center; justify-items: start; text-align: start; margin: 0; pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); text-shadow: 0 6px 50px rgb(11 9 24 / 0.9); }
.gl.story-started .story-title { opacity: 0; transform: translateY(-24px); }
.gl .chap { position: absolute; inset-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 50%; translate: 0 -46%; width: min(31rem, 38vw); display: block; padding: 0; pointer-events: none; }
.gl .chap:last-of-type::before { content: none; }
.gl .chap.on { pointer-events: auto; }
.gl .chap .chap-still { display: none; }
.gl .chap > * { opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.gl .chap.on > *, .gl .chap:focus-within > * { opacity: 1; transform: none; }
.gl .chap.on > :nth-child(3) { transition-delay: 0.05s; }
.gl .chap.on > :nth-child(4) { transition-delay: 0.1s; }
.gl .chap.on > :nth-child(5) { transition-delay: 0.15s; }
.gl .chap.on > :nth-child(6) { transition-delay: 0.2s; }
.gl .chap.past > * { transform: translateY(-22px); }
.gl .chap h3, .gl .chap > p { text-shadow: 0 2px 24px rgb(11 9 24 / 0.95), 0 0 2px rgb(11 9 24 / 0.6); }
.gl .chat .bubble { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.gl .chat .bubble.on { opacity: 1; transform: none; }
.gl .story-hud { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 1.8rem; position: absolute; inset-inline-end: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 4.4rem; direction: rtl; opacity: 0; transition: opacity 0.5s var(--ease), color 0.6s; font-family: var(--font-mono); }
.gl.in-story .story-hud { opacity: 1; }
.hud-title { grid-column: 1 / -1; font-size: 0.76rem; color: var(--n-mute); margin-bottom: 0.2rem; }
.hud-clock { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.1; color: var(--n-ink); direction: ltr; }
.hud-rows { display: flex; gap: 1.4rem; margin: 0 0 0.35rem; }
.hud-rows div { display: flex; flex-direction: column-reverse; color: var(--n-mute); font-size: 0.72rem; }
.hud-rows dd { margin: 0; font-size: 1.02rem; color: var(--lamp); }
.gl .story-rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; position: absolute; inset-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 1.6rem; margin: 0; padding: 0; list-style: none; opacity: 0; transition: opacity 0.5s var(--ease); }
.gl.in-story .story-rail { opacity: 1; }
.story-rail li { position: relative; padding-top: 0.7rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--n-mute); transition: color 0.3s; }
/* each step is a thin faceted bar: a parallelogram that fills with lamplight */
.story-rail li::before, .story-rail li::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 4px; width: 100%; background: var(--n-line); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.story-rail li::after { width: calc(var(--fill, 0) * 100%); background: linear-gradient(180deg, #ffd99a 0 50%, var(--lamp) 50%); }
.story-rail li.on { color: var(--n-ink); }
/* dawn: the last chapter and the instruments switch to daylight ink */
.gl.is-day .chap h3 { color: var(--ink); text-shadow: none; }
.gl.is-day .chap > p:not(.chap-no) { color: var(--ink-2); text-shadow: none; }
.gl.is-day .chap-no { color: #b45309; }
.gl.is-day .chap-no time { --pill-bg: rgb(180 83 9 / 0.08); --pill-line: rgb(180 83 9 / 0.4); }
.gl.is-day .ticks li { color: var(--ink-2); --pill-bg: rgb(255 255 255 / 0.75); --pill-line: var(--line); }
.gl.is-day .hud-clock { color: var(--ink); }
.gl.is-day .hud-rows dd { color: #b45309; }
.gl.is-day .hud-title, .gl.is-day .hud-rows div { color: var(--mute); }
.gl.is-day .story-rail li::before { background: var(--line); }
.gl.is-day .story-rail li, .gl.is-day .story-rail li.on { color: var(--ink-2); }
.gl.is-day .story-rail li::after { background: linear-gradient(180deg, #f6b35a 0 50%, #d97706 50%); }

/* ── day ─────────────────────────────────────────────────────────────────────────────────── */
.day { position: relative; background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 18rem); color: var(--ink); color-scheme: light; }
/* the morning rises over the stage as a faceted ridge, then paper */
.day::before { content: ''; position: absolute; inset-inline: 0; bottom: calc(100% - 1px); height: clamp(70px, 9vw, 130px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 130' preserveAspectRatio='none'%3E%3Cpath fill='%23e9e2ff' d='M0 130V72l120-38 110 30 140-52 120 44 130-30 150 46 120-40 140 34 130-50 150 44 130-22v114z'/%3E%3Cpath fill='%23f1ecff' d='M0 130V96l90-26 140 34 150-42 130 30 160-36 110 28 150-30 140 38 130-28 140 22 100-14v58z'/%3E%3Cpath fill='%23ddd3fb' d='M370 12 490 56 410 130H260zM980 18l130 50-90 62H880zM1110 34l130-50 40 146h-160z' opacity='.55'/%3E%3Cpath fill='%23f6f2ff' d='M0 130v-18l160-22 130 18 170-30 140 24 160-26 150 22 170-20 160 18 200-12v46z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.day .eyebrow { color: var(--brand); }
.day .lede { color: var(--ink-2); max-width: 38rem; }
.day .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px rgb(106 63 245 / 0.6); }
.day .btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.day .btn.ghost { border-color: var(--line); color: var(--ink-2); background: transparent; }
.day .btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.day section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); overflow-x: clip; }
.day h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.4; }
.day h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.55; }
.section-head { max-width: 46rem; }
/* low-poly facets on paper: a soft cluster of triangles in a section's corner */
.showcase::after, .pricing::after { content: ''; position: absolute; z-index: 0; pointer-events: none; width: min(46vw, 640px); aspect-ratio: 640 / 420; opacity: 0.9;
  background: var(--facets) center / contain no-repeat; }
.showcase::after { top: 0; left: 0; transform: scaleX(-1); }
.pricing::after { top: 0; right: 0; width: min(34vw, 480px); opacity: 0.7; }
.day .wrap { position: relative; z-index: 1; }

/* ── Seven real app views in a phone ───────────────────────────────────────────────────────────
   With WebGL and motion, a tall scroll track pins the phone beneath the header and slides between screenshots.
   The other layouts show every figure with its caption. Hardware sizes follow the phone's width (--pw). */
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head phone" "tools phone"; column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.tour-grid > .section-head { grid-area: head; }
.tools { grid-area: tools; list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.tool { position: relative; border-bottom: 1px solid var(--line); }
.tool button { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); align-items: center; width: 100%; padding: 0.95rem 0 0.75rem; border: 0; background: none; font: inherit; color: var(--ink); text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:not(.js) .tool button { cursor: default; pointer-events: none; }
/* the step number sits in a small faceted hexagon, like the steps inside the app */
.tool .no { display: grid; place-items: center; width: 2rem; aspect-ratio: 1 / 1.1; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1; color: var(--brand); background: var(--brand-soft); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color 0.4s, color 0.4s; }
.tool b { font-size: 1.14rem; font-weight: 700; transition: color 0.4s; }
.tool.on .no { color: #fff; background: linear-gradient(160deg, var(--brand-2) 0 50%, var(--brand) 50%); }
.tool .desc { display: grid; grid-template-rows: 1fr; padding-inline-start: 2.9rem; }
.tool .desc p { min-height: 0; overflow: hidden; color: var(--ink-2); font-size: 0.97rem; line-height: 1.85; }
.tool .desc p::after { content: ''; display: block; height: 0.85rem; }
.tool .fill { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(270deg, var(--brand), var(--brand-2)); transform-origin: 100% 50%; transform: scaleX(0); pointer-events: none; }
.tour-steps { display: none; }

.phone-stage { grid-area: phone; --pw: 19rem; display: grid; justify-items: center; align-content: center; align-self: center; padding-block: 1rem 3rem; }
.phone-wrap { position: relative; }
/* the soft shadow it casts on the paper; it stays put while the phone tilts */
.phone-shadow { position: absolute; inset-inline: 6%; bottom: -1.6rem; height: 3.2rem; background: radial-gradient(50% 50% at 50% 50%, rgb(42 26 104 / 0.34), rgb(42 26 104 / 0.12) 55%, rgb(42 26 104 / 0) 100%); filter: blur(5px); }
.phone { position: relative; width: var(--pw); aspect-ratio: 71.6 / 146.6; padding: calc(var(--pw) * 0.011); border-radius: calc(var(--pw) * 0.165); font-size: calc(var(--pw) * 0.0435); line-height: 1.7; color: var(--ink); transform-origin: 50% 55%;
  /* the rail: dark brushed metal, catching light on two corners */
  background: linear-gradient(142deg, #b4b0c2 0%, #57535f 4%, #2b2832 14%, #1c1a21 46%, #211f27 70%, #46424f 92%, #aaa6b8 100%);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.5), inset 0 0 0 1.5px rgb(0 0 0 / 0.35), 0 1px 2px rgb(21 14 48 / 0.28), 0 22px 36px -16px rgb(38 22 100 / 0.42), 0 58px 80px -40px rgb(38 22 100 / 0.5); }
.phone .hw { position: absolute; width: calc(var(--pw) * 0.012); border-radius: 1px; background: linear-gradient(90deg, #1b1920, #77737f 50%, #26232c); }
.phone .hw-act { left: calc(var(--pw) * -0.009); top: 17.5%; height: 4.4%; }
.phone .hw-up { left: calc(var(--pw) * -0.009); top: 25.5%; height: 8.4%; }
.phone .hw-dn { left: calc(var(--pw) * -0.009); top: 36%; height: 8.4%; }
.phone .hw-pwr { right: calc(var(--pw) * -0.009); top: 28.5%; height: 13%; background: linear-gradient(270deg, #1b1920, #77737f 50%, #26232c); }
.glass { position: relative; height: 100%; padding: calc(var(--pw) * 0.025); border-radius: calc(var(--pw) * 0.154); background: #050408; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.display { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * 0.129); clip-path: inset(0 round calc(var(--pw) * 0.129)); background: var(--paper); isolation: isolate; }
/* the glass: one soft diagonal reflection over bezel and screen */
.sheen { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(116deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0.07) 14%, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 68%, rgb(255 255 255 / 0.05) 84%, rgb(255 255 255 / 0.11) 100%); background-size: 100% 100%; }
.statusbar { position: absolute; inset: 0 0 auto; z-index: 20; height: 3.05em; display: flex; align-items: center; justify-content: space-between; padding: 0.2em 2.05em 0; color: var(--ink); pointer-events: none; }
.sb-time { font-size: 1.06em; font-weight: 700; }
.sb-icons { display: flex; align-items: center; gap: 0.36em; }
.sb-icons svg { display: block; fill: currentColor; }
.sb-signal { width: 1.25em; height: 0.82em; }
.sb-wifi { width: 1.16em; height: 0.84em; }
.sb-batt { position: relative; width: 1.86em; height: 0.9em; padding: 0.13em; border-radius: 0.28em; box-shadow: inset 0 0 0 0.08em rgb(21 18 31 / 0.38); }
.sb-batt::before { content: ''; display: block; height: 100%; width: 78%; margin-inline-start: auto; border-radius: 0.14em; background: currentColor; }
.sb-batt::after { content: ''; position: absolute; left: -0.17em; top: 50%; width: 0.1em; height: 0.3em; translate: 0 -50%; border-radius: 0.1em 0 0 0.1em; background: rgb(21 18 31 / 0.38); }
.island { position: absolute; z-index: 21; top: 0.62em; left: 50%; width: 7.1em; height: 2.08em; translate: -50% 0; border-radius: 99em;
  background: radial-gradient(circle at 80% 50%, #29304d 0 0.2em, #10131f 0.26em 0.4em, rgb(0 0 0 / 0) 0.44em), #000; }
.home { position: absolute; z-index: 20; bottom: 0.48em; left: 50%; width: 8.2em; height: 0.3em; translate: -50% 0; border-radius: 99em; background: rgb(21 18 31 / 0.85); }

/* The app screenshots exclude system chrome; the mockup supplies its own status bar and home indicator. */
.pages { position: absolute; inset: 3.35em 0 1.4em; }
.screen { position: absolute; inset: 0; margin: 0; background: #151023; }
.screen:not(.on) { display: none; }
.screen::after { content: ''; position: absolute; inset: 0; background: #0f0b24; opacity: var(--dim, 0); pointer-events: none; }
.screen > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.screen-caption { display: none; }
.statusbar { color: #eeeaff; background: #151023; }
.home { background: #eeeaff; }
.display { background: #151023; }

/* the walkthrough */
.gl .tour { --run: 430vh; height: calc(var(--svh) - var(--header) + var(--run)); }
.gl .tour-pin { position: sticky; top: var(--header); height: calc(var(--svh) - var(--header)); }
.gl .tour-pin::before { content: ''; position: absolute; z-index: 0; top: 0; left: 0; width: min(46vw, 640px); aspect-ratio: 640 / 420; opacity: 0.9; transform: scaleX(-1); pointer-events: none; background: var(--facets) center / contain no-repeat; }
.gl .showcase::after { content: none; }
.gl .tour-grid { height: 100%; grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); grid-template-areas: ". phone" "head phone" "tools phone" ". phone"; align-items: stretch; }
.gl .tools { margin-top: 2rem; }
.gl .tool button { color: var(--mute); }
.gl .tool .no { color: var(--mute); background: #efecf6; }
.gl .tool.past .no { color: var(--brand); background: var(--brand-soft); }
.gl .tool.past button { color: var(--ink-2); }
.gl .tool.on button { color: var(--ink); }
.gl .tool.on .no { color: #fff; background: linear-gradient(160deg, var(--brand-2) 0 50%, var(--brand) 50%); }
.gl .tool button:hover { color: var(--ink); }
.gl .tool .desc { grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.gl .tool .desc p { opacity: 0; transition: opacity 0.3s; }
.gl .tool.on .desc { grid-template-rows: 1fr; }
.gl .tool.on .desc p { opacity: 1; transition: opacity 0.45s 0.12s; }
.gl .tool.past .fill { opacity: 0.32; }
.gl .phone-stage { --pw: clamp(14rem, (var(--svh) - var(--header) - 5rem) / 2.05, 19.5rem); height: 100%; min-height: 0; padding: 0; }
.gl .phone { will-change: transform; }
.gl .screen { display: flex; will-change: transform; }
.gl .screen:not(.on) { visibility: hidden; }
.gl .screen.in { box-shadow: 1.2em 0 2.4em rgb(15 11 36 / 0.16); }
/* portrait: a step indicator, the phone, and under it only the open tool's words */
.tour-steps ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; flex: 1; margin: 0; padding: 0; list-style: none; }
.tour-steps li { position: relative; height: 4px; background: var(--line); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.tour-steps li::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, var(--brand), var(--brand-2)); transform-origin: 100% 50%; transform: scaleX(var(--f, 0)); }
.tour-steps span { font-size: 0.8rem; color: var(--mute); white-space: nowrap; }
.tour-steps b { color: var(--brand); font-weight: 400; }

/* ── the day after the walkthrough: five reasons, the race, prices, support, questions, the last call, the footer ─────
   Without WebGL (also no JS, reduced motion): a still page — cards, the live race, bars, a dusk band, the night below.
   html.gl: one continuous film. The sky goes on with the day (a golden afternoon in the race, the sunset in «پشتیبانی»,
   night from the questions to the footer) and each pinned section (.pin-track / .pin, site.js) has its own 3D scene,
   drawn by the stage into the section's .art box, the words beside it (portrait: below it). */
:root { --inset: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); --col: min(32rem, 40vw); }
.art { display: none; }
.why-dial { display: none; }
/* the afternoon: a warm wash over the day sky (0 until the race; site.js sets --gold) */
.sky-dawn::after { content: ''; position: absolute; inset: 0; opacity: var(--gold, 0);
  background: radial-gradient(70% 55% at 82% 4%, rgb(255 222 176 / 0.9) 0%, rgb(255 222 176 / 0) 72%), linear-gradient(180deg, rgb(255 238 220 / 0.5), rgb(255 222 190 / 0.32) 55%, rgb(255 205 170 / 0.45)); }

/* five reasons (still layout): chamfered cards, each with a faceted gem; three on the first row, two wider on the second */
.why { border-top: 1px solid var(--line); }
.why-grid { list-style: none; padding: 0; margin: 3.2rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; filter: drop-shadow(0 20px 26px rgb(61 36 140 / 0.08)); }
.why-grid li { grid-column: span 2; position: relative; padding: 1.8rem 1.6rem 1.7rem; display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 0.9rem; align-content: start; align-items: center; clip-path: var(--chamfer);
  background: linear-gradient(162deg, #ffffff 0 58%, #f7f4ff 58% 100%); transition: transform 0.3s var(--ease); }
.why-grid li:nth-child(n + 4) { grid-column: span 3; }
.why-grid li:hover { transform: translateY(-3px); }
.why-grid .gem { grid-row: 1; width: 2.4rem; aspect-ratio: 1 / 1.08; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(from 0deg at 50% 50%, var(--g1) 0 60deg, var(--g2) 60deg 120deg, var(--g3) 120deg 180deg, var(--g4) 180deg 240deg, var(--g5) 240deg 300deg, var(--g6) 300deg 360deg); }
.why-grid .no { grid-row: 1; font-family: var(--font-mono); font-size: 0.85rem; color: var(--c, var(--brand)); }
.why-grid h3, .why-grid p { grid-column: 1 / -1; }
.why-grid p { color: var(--ink-2); line-height: 1.95; }
.why-grid li:nth-child(1) { --c: #6a3ff5; } .why-grid li:nth-child(2) { --c: #b7700a; } .why-grid li:nth-child(3) { --c: #0f8a78; }
.why-grid li:nth-child(4) { --c: #d63d55; } .why-grid li:nth-child(5) { --c: #2a64c9; }
.why-grid li:nth-child(1) .gem { --g1: #a48bff; --g2: #7c5cff; --g3: #5b36e0; --g4: #4a26b8; --g5: #6a3ff5; --g6: #8b6dff; }
.why-grid li:nth-child(2) .gem { --g1: #ffe08a; --g2: #f5b83d; --g3: #d99316; --g4: #b97709; --g5: #e8a521; --g6: #ffd15e; }
.why-grid li:nth-child(3) .gem { --g1: #7ee0cf; --g2: #2fb5a3; --g3: #16917f; --g4: #0e7365; --g5: #1fa391; --g6: #56cdbb; }
.why-grid li:nth-child(4) .gem { --g1: #ffb0b6; --g2: #f0566c; --g3: #c93a50; --g4: #a52a3f; --g5: #e04760; --g6: #ff8c97; }
.why-grid li:nth-child(5) .gem { --g1: #9fc0ff; --g2: #3d7be0; --g3: #2a5fc0; --g4: #1f4b9e; --g5: #346dd4; --g6: #74a1f2; }

/* competition (still layout): a night game screen, faceted */
.day .arena { background: linear-gradient(170deg, #17122f 0 45%, #120e26 45% 70%, var(--night) 70%); color: var(--n-ink); color-scheme: dark; overflow: hidden; }
.arena::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='xMidYMid slice'%3E%3Cpath fill='%231d1645' d='M0 0h420L0 260z'/%3E%3Cpath fill='%23181238' d='M420 0 0 260v120L260 180z'/%3E%3Cpath fill='%23221a52' d='M1440 600H980l460-320z'/%3E%3Cpath fill='%231a1440' d='M1440 280 980 600l120-260z'/%3E%3Cpath fill='%23271e5c' d='M1100 340 1440 280V160z'/%3E%3C/svg%3E") center / cover no-repeat; }
.arena .eyebrow { color: var(--lamp); }
.arena .lede { color: var(--n-ink-2); }
.arena-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.match { padding: 1.4rem; font-family: var(--font-mono); min-width: 0; clip-path: var(--chamfer); background: linear-gradient(160deg, #241d4a 0 40%, #1c1640 40% 75%, #17122f 75%); }
.match-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #a9a3c2; font-size: 0.85rem; margin-bottom: 1.2rem; }
.match-head b { color: var(--xp); font-weight: 400; }
.racer { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 3.2rem; gap: 0.8rem; align-items: center; padding-block: 0.55rem; border-bottom: 1px dashed #3a3550; }
.racer:last-child { border-bottom: 0; }
/* each avatar sits in a hexagon ringed with its pawn's colour */
.racer canvas { width: 2.6rem; height: 2.6rem; background: linear-gradient(160deg, #3b3170 0 50%, #2e2660 50%); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); box-shadow: inset 0 -0.35rem 0 var(--c, transparent); }
.racer .name { font-family: var(--font-body); font-size: 0.92rem; color: #e9e6f5; display: flex; gap: 0.5rem; align-items: center; }
.racer .name .crown { color: var(--xp); font-family: var(--font-mono); font-size: 0.75rem; visibility: hidden; }
.racer.lead .name .crown { visibility: visible; }
.racer .lane { height: 0.6rem; background: #2a2450; margin-top: 0.35rem; overflow: hidden; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.racer .lane i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #9b85ff 0 50%, var(--brand-2) 50%); transition: width 0.6s cubic-bezier(0.3, 0.8, 0.3, 1); }
.racer.lead .lane i { background: linear-gradient(180deg, #ffd27a 0 50%, var(--xp) 50%); }
.racer .score { text-align: end; color: #fff; font-variant-numeric: tabular-nums; }
.arena-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; }
.arena-points li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: baseline; color: #d6d1e8; }
.arena-points li::before { content: ''; width: 0.6rem; height: 0.6rem; background: linear-gradient(135deg, #ffd27a 0 50%, var(--xp) 50%); transform: rotate(45deg) translateY(-0.1rem); }

/* prices (still layout): bars as faceted prisms, plans as chamfered cards */
.compare { margin-top: 3rem; display: grid; gap: 1.4rem; max-width: 56rem; }
.bar-row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.bar-row .who b { display: block; font-size: 1.05rem; }
.bar-row .who span { font-size: 0.85rem; color: var(--ink-2); }
.bar-track { position: relative; height: 3rem; background: linear-gradient(180deg, #f3f0fa 0 38%, #ebe6f6 38%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.bar-track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(180deg, #b6b0c9 0 38%, #9690ab 38%); transition: width 1.1s cubic-bezier(0.25, 0.8, 0.25, 1); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
[dir='rtl'] .bar-track i { clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.bar-row.us .bar-track i { background: linear-gradient(180deg, #9b85ff 0 38%, var(--brand) 38%); min-width: 0.9rem; }
/* without JS the bars simply start at their final width */
.bar-row:nth-child(1) .bar-track i { --w: 100%; } .bar-row:nth-child(2) .bar-track i { --w: 83.333333%; } .bar-row:nth-child(3) .bar-track i { --w: 24.704167%; }
html:not(.js) .bar-track i, .rm .bar-track i { width: var(--w); }
.bar-track em { position: absolute; inset-block: 0; inset-inline-start: 0.9rem; display: flex; align-items: center; font-style: normal; font-family: var(--font-mono); font-size: 0.95rem; color: #fff; z-index: 1; white-space: nowrap; }
.bar-row.us .bar-track em { inset-inline-start: calc(24.704167% + 1.1rem); color: var(--brand); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3.5rem; filter: drop-shadow(0 26px 30px rgb(61 36 140 / 0.1)); }
.plan { position: relative; padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; clip-path: var(--chamfer); background: linear-gradient(165deg, #ffffff 0 56%, #f7f4ff 56%); }
.plan.featured { background: linear-gradient(165deg, #f4f0ff 0 46%, #ebe4ff 46% 78%, #e3daff 78%); box-shadow: inset 0 0 0 2px var(--brand); }
/* a small gold star on the featured plan, faceted like the one on the desk */
.plan.featured::before { content: ''; position: absolute; inset-block-start: 1.6rem; inset-inline-end: 1.6rem; width: 1.9rem; aspect-ratio: 1;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: conic-gradient(from -18deg at 50% 55%, #ffd04a 0 36deg, #e39410 36deg 72deg, #ffd04a 72deg 108deg, #e39410 108deg 144deg, #ffd04a 144deg 180deg, #e39410 180deg 216deg, #ffd04a 216deg 252deg, #e39410 252deg 288deg, #ffd04a 288deg 324deg, #e39410 324deg 360deg); }
.plan .price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--ink); }
.plan .price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-2); }
.plan p { color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.93rem; }
.plan ul { flex: 1; }
.plan ul li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); }
.plan ul li b { font-weight: 700; }
.plan ul li span { color: var(--ink-2); }
.plan .plan-description { min-height: 10rem; }
.plan-prices { min-height: 10rem; }
.plan .price-option { min-height: 10rem; }
.plan .vat, .plan .saving { font-size: 0.8rem; }
.billing-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 1.5rem 0 0; }
.billing-switch label { position: relative; cursor: pointer; }
.billing-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing-switch span { display: block; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 0.5rem; }
.billing-switch b { margin-inline-start: 0.4rem; font-size: 0.78rem; color: var(--brand); }
.billing-switch input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.billing-switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 4px; }
.gl .plans-wrap:has(#billing-yearly:checked) .monthly-price, .gl .plans-wrap:has(#billing-monthly:checked) .yearly-price { display: none; }
html:not(.gl) .billing-switch { display: none; }
.plan .btn { align-self: start; margin-top: 0.4rem; }
.fine { font-size: 0.82rem; color: var(--mute); margin-top: 1.4rem; line-height: 1.9; max-width: 56rem; }

/* ── the evening and the night (both layouts): support, questions, the last call, the footer ─────────────────────── */
/* support (still layout): a dusk band — the sky goes from a warm horizon to violet night, a lit window glows in it */
.day .support { color: var(--n-ink); color-scheme: dark;
  background: radial-gradient(60% 45% at 18% 0%, rgb(255 178 122 / 0.55), rgb(255 178 122 / 0) 70%), radial-gradient(28rem 18rem at 12% 62%, rgb(255 196 107 / 0.16), rgb(255 196 107 / 0) 70%), linear-gradient(180deg, #e98aa8 0, #7d5bc9 9rem, #2a1f63 26rem, #120e2b 70%, var(--night)); }
.support .eyebrow { color: var(--lamp); }
.support .lede { color: var(--n-ink-2); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.support-note { margin-top: 1.2rem; color: var(--n-ink-2); max-width: 36rem; }
.support .ticks.dark li { color: var(--n-ink-2); --pill-bg: rgb(255 255 255 / 0.08); --pill-line: rgb(255 255 255 / 0.16); }
/* the thread: each topic is sent (a violet chip), then answered (a warm reply) */
.telemetry { display: grid; gap: 0.6rem; font-size: 0.92rem; align-self: center; padding: 1.3rem 1.3rem 1.4rem; clip-path: var(--chamfer); background: linear-gradient(160deg, rgb(36 29 74 / 0.86) 0 42%, rgb(28 22 64 / 0.86) 42% 78%, rgb(23 18 47 / 0.86) 78%); }
.telemetry .t-head { font-family: var(--font-mono); color: var(--n-mute); font-size: 0.8rem; margin-bottom: 0.2rem; }
.telemetry .t-head::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); vertical-align: 0.05em; }
.telemetry .t-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
.telemetry .t-row span { justify-self: start; font-family: var(--font-mono); font-size: 0.8rem; padding: 0.15rem 0.7rem; color: #fff; background: linear-gradient(160deg, var(--brand-2) 0 60%, #7350ff 60%); clip-path: var(--chamfer); }
.telemetry .t-row b { justify-self: end; font-weight: 700; padding: 0.3rem 0.85rem; color: #1d1205; background: linear-gradient(160deg, #ffd99a 0 55%, var(--lamp) 55%); clip-path: var(--chamfer); }
.telemetry .t-row span, .telemetry .t-row b, .faq-item summary::before, .faq-item summary::after, .channels .ch-icon { --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); --cut: 0.4rem; }
.support-after { padding-top: clamp(2.5rem, 5vw, 4rem); }
.channels-title { margin: 0; font-size: 1.05rem; color: var(--n-ink); }
.channels { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
/* each way to reach the team is a faceted night tile with depth: a lit facet, a glow under it, an icon in a gem */
.channels a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1.15rem 1.3rem; text-decoration: none; clip-path: var(--chamfer); color: var(--n-ink);
  background: linear-gradient(155deg, rgb(255 255 255 / 0.13) 0 34%, rgb(255 255 255 / 0.07) 34% 70%, rgb(255 255 255 / 0.04) 70%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2); transition: background 0.3s, transform 0.4s var(--ease); }
.channels a:hover { background: linear-gradient(155deg, rgb(255 196 107 / 0.26) 0 34%, rgb(255 196 107 / 0.14) 34% 70%, rgb(255 196 107 / 0.08) 70%); transform: translateY(-3px); }
.channels .ch-icon { grid-row: 1 / span 2; width: 2.9rem; aspect-ratio: 1 / 1.1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--ico) center / 56% no-repeat, linear-gradient(160deg, #ffd99a 0 50%, var(--lamp) 50%); }
.channels .ch-icon.mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1205' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3z'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
.channels .ch-icon.tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1205' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-3 2a11 11 0 0 0 6 6l2-3 5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.channels a > span:not(.mono) { font-size: 0.92rem; color: var(--n-ink-2); }
.channels .mono { color: var(--lamp); direction: ltr; text-align: end; font-size: 1.08rem; }
.support .cta-row .btn { border-color: rgb(255 255 255 / 0.3); }
.support .btn:hover { background: var(--n-ink); border-color: var(--n-ink); color: var(--night); }

/* questions: the night again; each ؟ turns into a ✓ as its answer opens */
.day .faq { color: var(--n-ink); color-scheme: dark; background: linear-gradient(180deg, var(--night), #120e2b); }
.faq .eyebrow { color: var(--lamp); font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.4; gap: 0.9rem; margin-bottom: 0; }
.faq .eyebrow::before { width: 0.9rem; height: 0.9rem; }
.faq-list { margin-top: 2.2rem; display: grid; gap: 0.8rem; max-width: 56rem; }
.faq-item { position: relative; clip-path: var(--chamfer); background: linear-gradient(160deg, rgb(255 255 255 / 0.09) 0 46%, rgb(255 255 255 / 0.055) 46%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12); transition: background 0.4s; }
.faq-item[open]:not(.closing) { background: linear-gradient(160deg, rgb(255 255 255 / 0.13) 0 46%, rgb(255 255 255 / 0.08) 46%); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; min-height: 4.6rem; padding: 1.1rem 1.4rem; padding-inline-start: 4.6rem; font-size: clamp(1.04rem, 1.9vw, 1.22rem); font-weight: 700; color: var(--n-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; }
/* the gem: a faceted hexagon with ؟ (closed) and a green one with ✓ (open); they swap at the flip's edge-on moment */
.faq-item summary::before, .faq-item summary::after { content: ''; position: absolute; inset-inline-start: 1.3rem; top: 50%; width: 2.3rem; aspect-ratio: 1 / 1.1; margin-top: -1.265rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform 0.55s var(--ease), opacity 0s 0.14s; }
.faq-item summary::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='matrix(-1 0 0 1 24 0)' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8.6 9.2a3.4 3.4 0 1 1 5 3c-1 .6-1.6 1.2-1.6 2.4v.6'/%3E%3C/g%3E%3Ccircle cx='12' cy='18.6' r='1.55' fill='%23fff'/%3E%3C/svg%3E") center / 62% no-repeat,
  conic-gradient(from 30deg, #a48bff 0 60deg, #7c5cff 60deg 120deg, #5b36e0 120deg 180deg, #6a3ff5 180deg 240deg, #8b6dff 240deg 300deg, #b9acf2 300deg); }
.faq-item summary::after { opacity: 0; transform: rotateY(-180deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.8 3.8 7.4-8.6'/%3E%3C/svg%3E") center / 62% no-repeat,
  conic-gradient(from 30deg, #6ee7a8 0 60deg, #22c55e 60deg 120deg, #15803d 120deg 180deg, #16a34a 180deg 240deg, #34d399 240deg 300deg, #86efac 300deg); }
.faq-item[open]:not(.closing) summary::before { transform: rotateY(180deg); opacity: 0; }
.faq-item[open]:not(.closing) summary::after { transform: none; opacity: 1; }
.faq-item:hover summary::before { transform: rotate(-8deg) scale(1.06); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.4rem; padding-inline-start: 4.6rem; color: var(--n-ink-2); max-width: 54rem; line-height: 2; }

/* the last call: the night (still layout: the hero's own picture of the desk beside the words) */
.day .final { color: var(--n-ink); color-scheme: dark; background: radial-gradient(40rem 30rem at 22% 50%, rgb(120 90 255 / 0.2), rgb(120 90 255 / 0) 70%), linear-gradient(180deg, #120e2b, var(--night)); }
.day .final { padding-block: clamp(4rem, 8vw, 6.5rem); }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.final h2 { grid-column: 1; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.32; text-shadow: 0 4px 40px rgb(11 9 24 / 0.8); }
.final .cta-row { grid-column: 1; margin-top: 0; }
.final .btn.primary, .day .final .btn.primary { background: var(--lamp); border-color: var(--lamp); color: #1d1205; box-shadow: 0 10px 34px -10px rgb(255 170 70 / 0.65); }
.final .btn.primary:hover, .day .final .btn.primary:hover { background: #ffd391; border-color: #ffd391; color: #1d1205; }
.final .btn.ghost, .day .final .btn.ghost { border-color: var(--n-line); color: var(--n-ink-2); background: rgb(11 9 24 / 0.35); }
.final .btn.ghost:hover, .day .final .btn.ghost:hover { border-color: var(--n-ink); color: var(--n-ink); background: rgb(11 9 24 / 0.35); }
/* the still layout's pictures: renders of the same scenes (assets/img/day-*.webp), beside the words */
.art-still { display: block; width: 100%; height: auto; }
.gl .art-still { display: none; }
.gl:not(.stage-ready) .art-still { display: block; height: 100%; object-fit: contain; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .art { display: block; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .pin { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: center; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .pin > .wrap { display: contents; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .pin > .art { grid-column: 2; grid-row: 1; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .pin-head { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
html:not(.gl) .why-grid, html:not(.gl) .pricing .compare { grid-column: 1 / -1; grid-row: 3; }
html:not(.gl) :is(.why, .pricing) .pin-head { grid-row: 1 / span 2; }
html:not(.gl) .arena .match, html:not(.gl) .support .telemetry { grid-column: 2; grid-row: 2; }
html:not(.gl) .arena .art, html:not(.gl) .support .art { margin-bottom: -2rem; }
html:not(.gl) :is(.why, .arena, .pricing, .support) .pin { position: relative; z-index: 1; } /* over the section's paper facets */
html:not(.gl) .final .pin { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
html:not(.gl) .final .pin > .wrap { display: block; max-width: none; margin: 0; padding: 0; order: -1; }
html:not(.gl) .final .pin > .art { display: block; }
html:not(.gl) .final .art-still { display: block; }
html:not(.gl) .final .cta-row { margin-top: 2rem; }

/* footer: the night ground — a faceted ridge against the sky, then the brand, the links, the trust seal */
footer { position: relative; z-index: 3; color: var(--n-ink); color-scheme: dark; padding-block: 3.5rem 2rem; font-size: 0.93rem;
  background: radial-gradient(1px 1px at 12% 30%, rgb(255 255 255 / 0.35), transparent), radial-gradient(1px 1px at 37% 64%, rgb(255 255 255 / 0.25), transparent), radial-gradient(1.5px 1.5px at 71% 22%, rgb(255 236 200 / 0.35), transparent), radial-gradient(1px 1px at 88% 58%, rgb(255 255 255 / 0.25), transparent), linear-gradient(180deg, #17122f, #0b0918 70%); }
footer::before { content: ''; position: absolute; inset-inline: 0; bottom: calc(100% - 1px); height: clamp(48px, 6vw, 90px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23231a4f' d='M0 90V52l130-30 120 22 150-38 120 30 140-26 160 34 120-28 150 24 130-36 150 30 70-10v66z'/%3E%3Cpath fill='%231b1540' d='M0 90V70l160-20 140 16 170-26 150 18 160-22 150 20 170-18 160 14 180-10v48z'/%3E%3Cpath fill='%2317122f' d='M0 90V82l200-10 180 8 200-12 200 10 220-8 200 9 240-6v19z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) auto; gap: 2rem; }
.foot-grid h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.82rem; color: var(--n-mute); margin-bottom: 0.8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.foot-grid a { text-decoration: none; color: var(--n-ink-2); transition: color 0.2s; }
.foot-grid a:hover { color: var(--lamp); }
.foot-grid a.mono { font-size: 0.85rem; }
.foot-brand .brand b { color: var(--n-ink); }
.foot-brand p { color: var(--n-ink-2); margin: 0.8rem 0 0; max-width: 18rem; }
/* the seal reads best on paper: a small chamfered tile */
.foot-trust a { display: inline-block; padding: 0.5rem; background: #fff; clip-path: var(--chamfer); --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); --cut: 7px; }
.foot-trust img { display: block; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--n-line); color: var(--n-mute); font-size: 0.85rem; }

/* ═════ the film (html.gl): pinned sections over the sky ═════════════════════════════════════════════════════════ */
.gl .day { background: none; }
.gl .showcase { background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 18rem); }
.gl .day > section:is(.why, .arena, .pricing, .support, .final) { padding-block: 0; background: none; border: 0; }
.gl .day > .faq { background: none; padding-block: clamp(5rem, 10vw, 8rem); }
.gl .pricing::after, .gl .arena::before { content: none; }
.gl .why { --run: 250vh; }
.gl .arena { --run: 260vh; }
.gl .pricing { --run: 180vh; }
.gl .support { --run: 200vh; }
.gl .final { --run: 120vh; }
.gl .pin-track { position: relative; height: calc(var(--svh) - var(--header) + var(--run)); }
.gl .pin { position: sticky; top: var(--header); height: calc(var(--svh) - var(--header)); overflow: clip; }
.gl .pin > .art { display: block; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: calc(100% - var(--inset) - var(--col) - 1rem); pointer-events: none; }
.gl .pin > .wrap { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr); align-content: center; }
.gl .pin > .wrap > * { grid-column: 1; min-width: 0; }
.gl .pin .section-head h2, .gl .pin .pin-head h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.4; }
.gl .pin .lede { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.9; margin-top: 0.8rem; }
/* the morning mist: the showcase's paper dissolves into the sky above the turntable */
.gl .why::before { content: ''; position: absolute; z-index: 0; inset: 0 0 auto; height: 34vh; pointer-events: none; background: linear-gradient(180deg, var(--paper) 0, rgb(252 251 255 / 0.85) 30%, rgb(252 251 255 / 0)); }
/* everything that rises in as it comes up (site.js sets --in, 0 → 1) */
.gl [data-rise], .gl .faq-item { opacity: var(--in, 1); translate: 0 calc((1 - var(--in, 1)) * 2.6rem); }

/* ۵ دلیل: the reason being read, big, beside the table; a small pentagon dial turns with it */
.gl .why-wrap { grid-template-rows: auto auto auto; }
.gl .why-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 2.1rem 0 0; filter: none; }
.gl .why-grid > li { grid-area: 1 / 1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.2rem 1.1rem; padding: 0; background: none; clip-path: none; opacity: 0; visibility: hidden; translate: 0 1.4rem;
  transition: opacity 0.35s, translate 0.6s var(--ease), visibility 0s 0.35s; }
.gl .why-grid > li:hover { transform: none; }
.gl .why-grid > li.past { translate: 0 -1.4rem; }
.gl .why-grid > li.on { opacity: 1; visibility: visible; translate: none; transition: opacity 0.5s 0.1s, translate 0.8s var(--ease) 0.1s, visibility 0s; }
.gl .why-grid .gem { display: none; }
.gl .why-grid .no { grid-row: 1; font-family: var(--font-display); font-size: clamp(3.6rem, 5.6vw, 5.2rem); line-height: 1; color: var(--c); text-shadow: 0 8px 30px rgb(255 255 255 / 0.6); }
.gl .why-grid h3 { grid-row: 1; grid-column: 2; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1.4; }
.gl .why-grid p { font-size: 1.06rem; line-height: 1.95; margin-top: 0.6rem; }
.gl .why-grid > li::after { content: ''; grid-column: 1 / -1; height: 3px; width: 4.5rem; margin-top: 1.1rem; background: linear-gradient(270deg, var(--c), rgb(255 255 255 / 0)); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.gl .why-dial { display: block; position: relative; width: 5.2rem; aspect-ratio: 1; margin-top: 1.8rem; }
.gl .why-dial::before { content: ''; position: absolute; inset: 22%; clip-path: polygon(50% 100%, 2.45% 65.45%, 20.61% 9.55%, 79.39% 9.55%, 97.55% 65.45%); background: conic-gradient(from 36deg, #efeafd 0 72deg, #e3dbfb 72deg 144deg, #d7cdf7 144deg 216deg, #e9e3fc 216deg 288deg, #f6f2ff 288deg); }
.gl .why-dial i { position: absolute; left: 50%; top: 50%; width: 0.7rem; aspect-ratio: 1 / 1.1; margin: -0.385rem 0 0 -0.35rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--c); opacity: 0.4;
  transform: rotate(calc((var(--n) - var(--k, 0)) * 72deg)) translateY(2.25rem) scale(calc(0.8 + 0.6 * max(0, 1 - max(var(--k, 0) - var(--n), var(--n) - var(--k, 0))))); }
.gl .why-dial i:nth-child(1) { --n: 0; --c: #7c5cff; } .gl .why-dial i:nth-child(2) { --n: 1; --c: #f5b83d; } .gl .why-dial i:nth-child(3) { --n: 2; --c: #2fb5a3; }
.gl .why-dial i:nth-child(4) { --n: 3; --c: #f0566c; } .gl .why-dial i:nth-child(5) { --n: 4; --c: #3d7be0; }
/* the marker: a little warm pointer where the lamp is, at the front */
.gl .why-dial b { position: absolute; left: 50%; bottom: -0.85rem; width: 0.9rem; height: 0.55rem; margin-left: -0.45rem; background: linear-gradient(180deg, #ffd99a 0 50%, var(--lamp) 50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* مسابقه: a golden afternoon; the scoreboard is a dark game screen over the field */
.gl .day .arena { color: var(--ink); color-scheme: light; overflow: visible; }
.gl .arena .eyebrow { color: #b45309; }
.gl .arena .lede { color: var(--ink-2); }
.gl .arena-grid { gap: 0; }
.gl .arena-points { margin-top: 1.4rem; gap: 0.6rem; }
.gl .arena-points li { color: var(--ink-2); font-size: 0.97rem; }
.gl .arena .match { position: absolute; z-index: 2; left: 0; bottom: 1.2rem; width: min(21rem, 27vw); padding: 0.85rem 1rem; background: linear-gradient(160deg, rgb(36 29 74 / 0.9) 0 40%, rgb(28 22 64 / 0.9) 40% 75%, rgb(23 18 47 / 0.92) 75%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gl .arena .match-head { margin-bottom: 0.6rem; font-size: 0.8rem; }
.gl .arena .racer { grid-template-columns: 1.9rem minmax(0, 1fr) 2.4rem; gap: 0.6rem; padding-block: 0.22rem; }
.gl .arena .racer canvas { width: 1.9rem; height: 1.9rem; }
.gl .arena .racer .name { font-size: 0.86rem; }
.gl .arena .racer .lane { margin-top: 0.2rem; height: 0.5rem; }
.gl .arena .racer .lane i { width: 100%; transform-origin: 100% 50%; transform: scaleX(0); transition: none; }

/* قیمت: the rows are the legend of the stacks; each lights up while its stack grows */
.gl .price-wrap .compare { margin-top: 1.8rem; gap: 1rem; }
.gl .bar-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; opacity: 0.4; transition: opacity 0.5s; }
.gl .bar-row.on, .gl .bar-row.done { opacity: 1; }
.gl .bar-row .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.7rem; }
.gl .bar-row .who b { display: inline; }
.gl .bar-track { height: 0.55rem; margin-top: 1.75rem; clip-path: none; background: linear-gradient(180deg, #ece7f7 0 50%, #e2dcf2 50%); }
.gl .bar-track i { transform-origin: 100% 50%; transform: scaleX(0); transition: none; }
.gl .bar-track em, .gl .bar-row.us .bar-track em { inset-block: auto 100%; inset-inline-start: 0; padding-bottom: 0.25rem; color: var(--ink); font-weight: 400; font-size: 0.98rem; }
.gl .bar-row.us .bar-track em { color: var(--brand); font-weight: 700; }
.gl .plans-wrap { padding-block: 2rem clamp(4rem, 8vw, 6rem); }
.gl .plans { margin-top: 0; }
.gl .plan[data-rise] { transform: perspective(1000px) rotateX(calc((1 - var(--in, 1)) * 16deg)); transform-origin: 50% 100%; }
.gl .plan.featured::before { rotate: calc((1 - var(--in, 1)) * -216deg); scale: var(--in, 1); }
/* the counting labels over the stacks (in the stage's label layer) */
.plabel b { font-size: 0.86rem; }
.plabel span { font-size: 0.9rem; color: #ffd99a; }
.plabel.ours { background: linear-gradient(160deg, #7c5cff 0 55%, #6a3ff5 55%); }
.plabel.ours::after { background: #6a3ff5; }
.plabel.ours span { color: #fff; font-weight: 700; }

/* پشتیبانی: the words come out once the sun is down; the thread floats beside the house */
.gl .day .support { color: var(--n-ink); }
.gl .support .pin-head > * { opacity: 0; translate: 0 1rem; transition: opacity 0.5s var(--ease), translate 0.8s var(--ease); }
.gl .support .telemetry { opacity: 0; translate: 0 1rem; transition: opacity 0.5s var(--ease) 0.3s, translate 0.8s var(--ease) 0.3s; }
.gl .support.lit .pin-head > *, .gl .support.lit .telemetry { opacity: 1; translate: none; }
.gl .support.lit .pin-head > :nth-child(2) { transition-delay: 0.06s; } .gl .support.lit .pin-head > :nth-child(3) { transition-delay: 0.12s; }
.gl .support.lit .pin-head > :nth-child(4) { transition-delay: 0.18s; } .gl .support.lit .pin-head > :nth-child(5) { transition-delay: 0.24s; }
.gl .support h2, .gl .support .lede, .gl .support .support-note { text-shadow: 0 2px 24px rgb(11 9 24 / 0.7); }
.gl .support .support-note { font-size: 0.95rem; color: var(--n-mute); }
.gl .support .telemetry { margin-top: 1.5rem; padding: 1rem 1.1rem 1.1rem; gap: 0.5rem; }
.gl .support .t-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.gl .support .support-note { margin-top: 0.9rem; }
.gl .support .ticks { margin-top: 0.9rem; }
.gl .support .t-row span, .gl .support .t-row b { opacity: 0; translate: 0 0.6rem; transition: opacity 0.35s, translate 0.5s var(--ease); }
.gl .support .t-row.sent span, .gl .support .t-row.answered b { opacity: 1; translate: none; }
.gl .support-after { padding-block: 0 clamp(4.5rem, 9vw, 7rem); }
.gl .support .channels a { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* the last call: the hero's own composition — the desk on the left, the words on the right */
.gl .final .pin > .art { width: 50%; }
.gl .final .pin > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gl .final h2, .gl .final .cta-row { opacity: 0; translate: 0 1.2rem; transition: opacity 0.6s var(--ease), translate 0.9s var(--ease); }
.gl .final.lit h2, .gl .final.lit .cta-row { opacity: 1; translate: none; }
.gl .final.lit .cta-row { transition-delay: 0.12s; }
.gl .final .cta-row { margin-top: 2rem; }

/* ── responsive ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) { .nav { display: none; } .site-header .btn { margin-inline-start: auto; } }
@media (max-width: 960px) {
  .arena-grid, .support-grid, .chap { grid-template-columns: minmax(0, 1fr); }
  html:not(.js) .tour-grid, .rm .tour-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tools" "phone"; }
  html:not(.js) .phone-stage, .rm .phone-stage { --pw: min(17rem, 100vw - 6rem); padding-top: 2.5rem; }
  .chap .chap-still { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 1.2rem; }
  .why-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  html:not(.gl) .why-grid > li { grid-column: auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .final .wrap { grid-template-columns: minmax(0, 1fr); }
  .showcase::after, .pricing::after { width: 80vw; opacity: 0.7; }
}
/* portrait / narrow: the diorama on top, the words below */
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  :root { --art-h: min(50svh, 118vw); }
  .hero { align-items: start; padding-block: calc(var(--header) + var(--art-h) + 0.6rem) 5.5rem; }
  .hero-art { left: 0; width: 100%; top: calc(var(--header) - 0.5rem); bottom: auto; height: var(--art-h); }
  .hero-art::before { inset: 4% 0; }
  .gl .sky::before { left: 0; width: 100%; top: var(--header); bottom: auto; height: var(--art-h); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 0.6rem 2.6rem; margin-top: 2rem; }
  .hero-hint { left: auto; right: var(--gutter); top: calc(var(--header) + var(--art-h) - 1.9rem); bottom: auto; font-size: 0.74rem; }
  .scroll-cue { display: none; }
  .gl .hero-copy { position: relative; }
  .gl .hero-copy::before { content: ''; position: absolute; inset: -1rem calc(var(--gutter) * -1) -3rem; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgb(11 9 24 / 0), rgb(11 9 24 / 0.88) 4rem, rgb(11 9 24 / 0.88) calc(100% - 3rem), rgb(11 9 24 / 0)); }
  .gl .story { height: 840vh; }
  .gl .story-title { inset-inline: 1.1rem; width: auto; inset-block: auto 4rem; justify-items: center; text-align: center; font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .gl .chap { inset-inline: 1.1rem; top: auto; bottom: 3.4rem; translate: none; width: auto; }
  .gl .chap::before { content: ''; position: absolute; inset: -4rem -1.1rem -3.4rem; z-index: -1; background: linear-gradient(0deg, rgb(11 9 24 / 0.94) 62%, rgb(11 9 24 / 0)); opacity: 0; transition: opacity 0.5s var(--ease); }
  .gl .chap:last-of-type::before { content: ''; }
  .gl.is-day .chap::before { background: linear-gradient(0deg, rgb(250 247 255 / 0.95) 62%, rgb(250 247 255 / 0)); }
  .gl .chap.on::before { opacity: 1; }
  .gl .chap h3 { font-size: clamp(1.5rem, 6.4vw, 2.05rem); }
  .gl .chap > p:not(.chap-no):not(.stat) { font-size: 0.94rem; line-height: 1.85; margin-top: 0.6rem; }
  .gl .chap-no { margin-bottom: 0.5rem; }
  .gl .chap .stat { margin-top: 0.8rem; padding-top: 0.7rem; }
  .gl .chap .stat b { font-size: 2.2rem; }
  .gl .chap .stat span { font-size: 0.82rem; }
  .gl .chap .stat small { display: none; }
  .gl .chap .ticks { margin-top: 0.8rem; gap: 0.3rem; }
  .gl .chap .ticks li { font-size: 0.74rem; padding: 0.05rem 0.55rem; }
  .gl .chap .mini { margin-top: 0.8rem; }
  .gl .chap .wide-only { display: none; }  /* the chat below says the same thing */
  .gl .chat { gap: 0.4rem; margin-top: 0.7rem; }
  .gl .chat .bubble { font-size: 0.86rem; padding: 0.4rem 0.75rem; }
  .gl .chap .cta-row { margin-top: 0.9rem; }
  .gl .chap .cta-row .btn { flex: 0 0 auto; padding: 0.55rem 1.2rem; }
  .gl .story-hud { inset-inline: 1.1rem; top: calc(var(--header) + 0.2rem); bottom: auto; display: flex; align-items: flex-end; gap: 1rem; }
  .gl .hud-title { display: none; }
  /* a solid band down to the HUD's last line, then a short fade: the scene never shows through the numbers */
  .gl .story-hud::before { content: ''; position: absolute; inset: calc(var(--header) * -1) -1.1rem -1.5rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(11 9 24) calc(100% - 1.5rem), rgb(11 9 24 / 0)); transition: opacity 0.6s; }
  .gl.is-day .story-hud::before { background: linear-gradient(180deg, rgb(246 242 255) calc(100% - 1.5rem), rgb(246 242 255 / 0)); }
  .gl .hud-clock { font-size: 1.6rem; order: 2; margin-inline-start: auto; }
  .gl .hud-rows { gap: 1rem; margin: 0 0 0.2rem; }
  .gl .hud-rows dd { font-size: 0.86rem; }
  .gl .hud-rows dt { font-size: 0.66rem; }
  .gl .story-rail { bottom: 1rem; gap: 0.3rem; inset-inline: 1.1rem; }
  .gl .story-rail li { font-size: 0; padding-top: 0; height: 4px; }
  /* the walkthrough, portrait: the heading scrolls away (the pin sticks --head-h above the header), then the steps,
     the phone and the open tool's words stay */
  .gl .tour { --run: 390vh; height: calc(var(--svh) - var(--header) + var(--head-h, 0px) + var(--run)); }
  .gl .tour-pin { top: calc(var(--header) - var(--head-h, 0px)); height: calc(var(--svh) - var(--header) + var(--head-h, 0px)); }
  .gl .tour-pin::before { top: var(--head-h, 0px); width: 90vw; opacity: 0.75; }
  .gl .tour-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "head" "steps" "phone" "tools"; }
  .gl .tour-grid > .section-head { padding-bottom: 1.2rem; }
  .gl .tour-steps { grid-area: steps; display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0 0.2rem; }
  .gl .phone-stage { --pw: min(17rem, 100vw - 7rem, max(14.5rem, (var(--svh) - var(--header) - 13rem) / 2.05)); display: flex; flex-direction: column; align-items: center; padding: 0.9rem 0 0; overflow: clip; }
  .gl .phone-wrap { margin-block: auto; }
  .gl .phone-stage.tight { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.6rem), rgb(0 0 0 / 0)); mask-image: linear-gradient(#000 calc(100% - 2.6rem), rgb(0 0 0 / 0)); }
  .gl .phone-stage.tight .phone-wrap { margin-top: 0; }
  .gl .tools { display: grid; margin: 0; padding: 0.7rem 0 1.1rem; border: 0; }
  .gl .tool { grid-area: 1 / 1; border: 0; opacity: 0; visibility: hidden; translate: 0 0.5rem; transition: opacity 0.25s, translate 0.25s, visibility 0s 0.25s; }
  .gl .tool.on { opacity: 1; visibility: visible; translate: none; transition: opacity 0.45s 0.1s, translate 0.6s var(--ease) 0.1s, visibility 0s; }
  .gl .tool button { padding: 0 0 0.25rem; }
  .gl .tool b { font-size: 1.22rem; }
  .gl .tool .desc { grid-template-rows: 1fr; transition: none; }
  .gl .tool .desc p { opacity: 1; font-size: 0.95rem; line-height: 1.8; }
  .gl .tool .desc p::after { content: none; }
  .gl .tool .fill { display: none; }
}
/* ── the film in portrait: the heading scrolls away first (the pin sticks --head-h above the header, as in the
   walkthrough); then the picture on top and the words under it ─────────────────────────────────────────────────── */
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  :root { --col: 100%; --pin-h: calc(var(--svh) - var(--header)); }
  .gl .pin-track { --art-h2: calc(var(--pin-h) * var(--art-k, 0.5)); } /* per section: --art-k is read here, not at :root */
  .gl .why { --art-k: 0.6; } .gl .arena { --art-k: 0.56; } .gl .support { --art-k: 0.54; }
  .gl .why { --run: 225vh; } .gl .arena { --run: 240vh; } .gl .pricing { --run: 170vh; } .gl .support { --run: 190vh; } .gl .final { --run: 110vh; }
  .gl .pin-track { height: calc(var(--svh) - var(--header) + var(--head-h, 0px) + var(--run)); }
  .gl .pin { top: calc(var(--header) - var(--head-h, 0px)); height: calc(var(--svh) - var(--header) + var(--head-h, 0px)); }
  .gl .pin > .art { top: var(--head-h, 0px); bottom: auto; width: 100%; height: var(--art-h2); }
  .gl .pin > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--art-h2) minmax(0, 1fr); align-content: stretch; }
  .gl .pin > .wrap > .pin-head { grid-row: 1; padding-block: 2.6rem 0.4rem; }
  .gl .pin > .wrap > :not(.pin-head) { grid-row: 3; align-self: start; }
  .gl .pin .section-head h2, .gl .pin .pin-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .gl .pin .lede { font-size: 0.98rem; }
  .gl .why-grid { margin-top: 0.9rem; }
  .gl .why-grid .no { font-size: 2.9rem; }
  .gl .why-grid h3 { font-size: 1.42rem; }
  .gl .why-grid p { font-size: 0.95rem; line-height: 1.85; margin-top: 0.3rem; }
  .gl .why-grid > li::after { margin-top: 0.6rem; }
  .gl .pin > .wrap > .why-dial { grid-row: auto; position: absolute; margin: 0; left: 0; top: calc(var(--head-h, 0px) + 0.9rem); width: 3.8rem; }
  .gl .why-dial i { width: 0.5rem; margin: -0.275rem 0 0 -0.25rem; transform: rotate(calc((var(--n) - var(--k, 0)) * 72deg)) translateY(1.55rem) scale(calc(0.8 + 0.6 * max(0, 1 - max(var(--k, 0) - var(--n), var(--n) - var(--k, 0))))); }
  .gl .why-dial b { bottom: -0.65rem; }
  .gl .arena .match { position: relative; left: auto; bottom: auto; width: auto; margin-top: 0.7rem; padding: 0.8rem 0.9rem; }
  .gl .arena .match-head { margin-bottom: 0.3rem; }
  .gl .arena .racer { padding-block: 0.22rem; }
  .gl .arena .racer canvas { width: 1.9rem; height: 1.9rem; }
  .gl .arena-points { margin-top: 1rem; }
  .gl .price-wrap .compare { margin-top: 0.8rem; gap: 0.6rem; }
  .gl .bar-row .who span { font-size: 0.78rem; }
  .gl .bar-track { height: 2rem; }
  .gl .bar-track em { font-size: 0.85rem; }
  .gl .support .pin-head > * { opacity: 1; translate: none; transition: none; text-shadow: none; }
  .gl .support .pin-head .eyebrow { color: var(--brand); }
  .gl .support .pin-head h2 { color: var(--ink); }
  .gl .support .pin-head .lede, .gl .support .pin-head .support-note { color: var(--ink-2); }
  .gl .support .pin-head .ticks.dark li { color: var(--ink-2); --pill-bg: rgb(255 255 255 / 0.75); --pill-line: var(--line); }
  .gl .support .telemetry { position: relative; left: auto; bottom: auto; width: auto; margin-top: 0.7rem; padding: 0.9rem 1rem 1rem; gap: 0.45rem; }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .gl .final .pin > .art { width: 100%; height: calc(var(--pin-h) * 0.6); }
  .gl .final .pin > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(var(--pin-h) * 0.6) auto auto; text-align: center; justify-items: center; }
  .gl .final .pin > .wrap > h2 { grid-row: 2; font-size: clamp(2rem, 9vw, 2.8rem); }
  .gl .final .pin > .wrap > .cta-row { grid-row: 3; margin-top: 1.2rem; justify-content: center; }
  html:not(.gl) .final .pin { grid-template-columns: minmax(0, 1fr); }
  html:not(.gl) .final .pin > .art { order: -2; }
  html:not(.gl) :is(.why, .arena, .pricing, .support) .pin { grid-template-columns: minmax(0, 1fr); }
  html:not(.gl) :is(.why, .arena, .pricing, .support) .pin > .art { grid-column: 1; grid-row: 1; margin: 0 0 0.5rem; }
  html:not(.gl) :is(.why, .arena, .pricing, .support) .pin-head { grid-column: 1; grid-row: 2; }
  html:not(.gl) .why-grid, html:not(.gl) .pricing .compare, html:not(.gl) .arena .match, html:not(.gl) .support .telemetry { grid-column: 1; grid-row: auto; margin-top: 2rem; }
  .faq-item summary { padding-inline-start: 3.9rem; min-height: 4rem; }
  .faq-item summary::before, .faq-item summary::after { inset-inline-start: 1rem; width: 2rem; margin-top: -1.1rem; }
  .faq-item p { padding-inline-start: 1.4rem; }
  /* the counting labels over the stacks: compact, so neighbouring stacks' labels don't collide */
  .plabel { padding: 0.18rem 0.5rem; }
  .plabel b { font-size: 0.72rem; }
  .plabel span { font-size: 0.7rem; }
}
/* short phones: a smaller picture, so the words under it (legend, thread) stay whole */
@media (max-aspect-ratio: 9/10) and (max-height: 720px) {
  .gl .why { --art-k: 0.5; } .gl .arena { --art-k: 0.5; } .gl .pricing { --art-k: 0.38; } .gl .support { --art-k: 0.42; }
  .gl .price-wrap .compare { gap: 0.4rem; }
  .gl .bar-track { margin-top: 1.55rem; }
  .gl .support .telemetry { gap: 0.35rem; padding-block: 0.7rem 0.8rem; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .mini { gap: 0.3rem 1.3rem; }
  .why-grid li { padding: 1.5rem 1.3rem; }
}
/* the walkthrough on short landscape screens (laptops): the heading and the list tighten so all seven fit in the pin */
@media (min-aspect-ratio: 9/10) and (min-width: 761px) and (max-height: 880px) {
  .gl .tour-grid > .section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.35; }
  .gl .tour-grid .eyebrow { margin-bottom: 0.4rem; }
  .gl .tour-grid .lede { font-size: 1.03rem; line-height: 1.85; margin-top: 0.6rem; }
  .gl .tools { margin-top: 1.3rem; }
  .gl .tool button { padding: 0.62rem 0 0.5rem; }
  .gl .tool b { font-size: 1.06rem; }
  .gl .tool .desc p { font-size: 0.93rem; line-height: 1.75; }
  .gl .tool .desc p::after { height: 0.6rem; }
}
@media (min-aspect-ratio: 9/10) and (min-width: 761px) and (max-height: 740px) {
  .gl .tour-grid .lede { margin-top: 0.3rem; }
  .gl .tools { margin-top: 0.9rem; }
  .gl .tool button { padding: 0.45rem 0 0.36rem; }
  .gl .tool .no { width: 1.8rem; font-size: 0.74rem; }
}
@media (max-height: 700px) and (max-aspect-ratio: 9/10) {
  .gl .chap .ticks, .gl .chap .mini { display: none; }
}
/* On short landscape phones, keep every word and control reachable inside its column. */
@media (min-width: 761px) and (max-height: 500px) {
  .gl .chap, .gl .tools, .gl .pin > .wrap { overflow-anchor: none; }
  .gl .chap { top: calc(var(--header) + 1rem); bottom: 4rem; translate: none; overflow-y: auto; padding-inline: 0.25rem; scrollbar-width: thin; }
  .gl .chap:focus-visible { outline-offset: -3px; }
  .gl .story-title { inset-block-start: var(--header); }
  .gl .tour-grid { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head phone" "tools phone"; padding-block: 0.5rem 1rem; }
  .gl .tools { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
  .gl .phone-stage { --pw: calc((var(--svh) - var(--header) - 2rem) / 2.05); grid-row: 1 / -1; }
  .gl .pin > .wrap { width: calc(var(--col) + var(--gutter) * 2); height: 100%; margin-inline: var(--inset) auto; padding-inline: 0; padding-block: 1rem; display: block; overflow-y: auto; scrollbar-width: thin; }
  .gl .pin > .wrap > * { max-width: var(--col); }
  .gl .arena .match { position: relative; left: auto; bottom: auto; width: var(--col); margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* The error page shares the night desk, using a still instead of a renderer. */
.error-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: calc(var(--header) + 2rem) 3rem; }
.error-art { grid-column: 2; grid-row: 1; }
.error-art img { display: block; width: 100%; height: auto; }
.error-copy { grid-column: 1; grid-row: 1; }
.error-copy h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.3; }
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .error-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .error-art { grid-column: 1; grid-row: 1; max-width: 24rem; width: 100%; margin-inline: auto; }
  .error-copy { grid-column: 1; grid-row: 2; }
}

/* Static app tour: all seven real views and their captions remain available. */
html:not(.gl) .tour { height: auto; }
html:not(.gl) .tour-pin { position: relative; height: auto; top: auto; }
html:not(.gl) .tour-grid { display: block; }
html:not(.gl) .tour :is(.tools, .tour-steps, .hw, .phone-shadow, .statusbar, .island, .home, .sheen) { display: none; }
html:not(.gl) .phone-stage { display: block; padding: 2rem 0 0; height: auto; -webkit-mask-image: none; mask-image: none; }
html:not(.gl) :is(.phone-wrap, .phone, .glass, .display, .pages) { position: relative; width: 100%; height: auto; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none; overflow: visible; transform: none; }
html:not(.gl) .pages { inset: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem; align-items: start; }
html:not(.gl) .screen { display: block; position: relative; inset: auto; background: none; visibility: visible; }
html:not(.gl) .screen::after { content: none; }
html:not(.gl) .screen > img { width: min(100%, 19.5rem); height: auto; margin-inline: auto; border-radius: 0.7rem; }
html:not(.gl) .screen-caption { display: block; font: 1rem/1.9 var(--font-body); margin-top: 1rem; }
html:not(.gl) .screen-caption b { font-size: 1.1rem; }
html:not(.gl) .screen-caption p { color: var(--ink-2); }
@media (max-width: 760px) {
  .plan .plan-description { min-height: 0; }
}
