/*
 * «دروسي» landing page (resources/views/landing, DECISIONS §13).
 * The brand's green — brand kit «vert», the app theme «أخضر» (docs/BRAND.md §4–5) — on a light green-grey page, in a
 * light and a dark theme (`html[data-theme]`, set before the first paint; the system's choice without JavaScript).
 * Flat surfaces under a hairline with soft neutral shadows, no gradient ground, no glass, no glow, no emoji.
 * Tajawal self-hosted (SIL OFL, fonts/OFL.txt). Mobile first, RTL, logical properties.
 */

@font-face { font-family: 'Tajawal'; src: url('fonts/tajawal-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('fonts/tajawal-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('fonts/tajawal-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('fonts/tajawal-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }

/* ── tokens ──────────────────────────────────────────────────────────────── */

:root {
    color-scheme: light;
    --bg: #f6f9f3;
    --surface: #ffffff;
    --surface-2: #eef5e8;
    --surface-3: #e4eedb;
    --line: #e1ebd8;
    --line-strong: #cbdcbd;
    --ink: #18231a;
    --ink-2: #475443;
    --ink-3: #5c6956;
    --primary: #4c7d36;          /* fills with --on-primary labels (4.9:1) */
    --primary-hover: #42702e;
    --on-primary: #ffffff;
    --primary-soft: #e5f0dc;
    --primary-ink: #3d6a2a;      /* green text (6.4:1 on white) */
    --accent: #6b9a52;           /* marks: dots, bars */
    --teal-soft: #dcefed;
    --teal-ink: #1f6f6b;
    --dots: rgb(76 125 54 / 0.16);
    --focus: #3d6a2a;            /* focus ring: ≥ 5:1 on every light ground */
    --phone: #ffffff;
    --notch: #18231a;
    --shadow-sm: 0 1px 2px rgb(24 35 26 / 0.05), 0 8px 20px -14px rgb(24 35 26 / 0.18);
    --shadow-md: 0 2px 6px rgb(24 35 26 / 0.04), 0 24px 48px -28px rgb(24 35 26 / 0.32);
    --shadow-primary: 0 10px 22px -12px rgb(76 125 54 / 0.65);
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0c140c;
    --surface: #131e13;
    --surface-2: #192819;
    --surface-3: #213220;
    --line: #243523;
    --line-strong: #33492f;
    --ink: #e9f1e4;
    --ink-2: #c0cdb8;
    --ink-3: #9eac96;
    --primary: #9fcf83;
    --primary-hover: #b3dc9b;
    --on-primary: #0f1d0c;
    --primary-soft: #1d3319;
    --primary-ink: #a9d48f;
    --accent: #8cc46e;
    --teal-soft: #163330;
    --teal-ink: #6cc7bf;
    --dots: rgb(169 212 143 / 0.1);
    --focus: #8cc46e;
    --phone: #1b281a;
    --notch: #050a05;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 20px -14px rgb(0 0 0 / 0.6);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 0.25), 0 24px 48px -28px rgb(0 0 0 / 0.8);
    --shadow-primary: 0 10px 22px -12px rgb(159 207 131 / 0.35);
}

/* Without JavaScript there is no data-theme: follow the system. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #0c140c; --surface: #131e13; --surface-2: #192819; --surface-3: #213220;
        --line: #243523; --line-strong: #33492f;
        --ink: #e9f1e4; --ink-2: #c0cdb8; --ink-3: #9eac96;
        --primary: #9fcf83; --primary-hover: #b3dc9b; --on-primary: #0f1d0c; --primary-soft: #1d3319; --primary-ink: #a9d48f;
        --accent: #8cc46e; --teal-soft: #163330; --teal-ink: #6cc7bf; --dots: rgb(169 212 143 / 0.1);
        --focus: #8cc46e; --phone: #1b281a; --notch: #050a05;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 20px -14px rgb(0 0 0 / 0.6);
        --shadow-md: 0 2px 6px rgb(0 0 0 / 0.25), 0 24px 48px -28px rgb(0 0 0 / 0.8);
        --shadow-primary: 0 10px 22px -12px rgb(159 207 131 / 0.35);
    }
}

/* ── base ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Tajawal', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.8;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--primary-ink); }
img { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1180px, 100% - 56px); } }

.i { width: 22px; height: 22px; flex: none; }

.skip {
    position: absolute; inset-inline-start: 16px; top: -120px; z-index: 100; padding: 10px 18px; border-radius: 12px;
    background: var(--primary); color: var(--on-primary); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── buttons, pills, tiles ───────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding-inline: 22px; border-radius: 14px; border: 1px solid transparent;
    font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-ghost .i { color: var(--primary-ink); }
.btn-lg { min-height: 56px; padding-inline: 26px; border-radius: 16px; font-size: 17px; }
.btn-sm { min-height: 44px; padding-inline: 16px; border-radius: 12px; font-size: 15px; }
.btn-sm .i { width: 20px; height: 20px; }

.icon-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; list-style: none;
    background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn::-webkit-details-marker { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding-inline: 16px 18px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { background: var(--surface-2); border-color: var(--accent); }
.pill .i { width: 20px; height: 20px; color: var(--primary-ink); }
.pill-sm { min-height: 38px; margin-top: 12px; padding-inline: 12px 14px; font-size: 15px; }

.tile {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px;
    background: var(--primary-soft); color: var(--primary-ink);
}
.tile .i { width: 22px; height: 22px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; font-size: 14px; line-height: 1.7;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── top bar ─────────────────────────────────────────────────────────────── */

.top {
    position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -22px rgb(0 0 0 / 0.5); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary);
}
.brand-name { font-size: 24px; font-weight: 800; line-height: 1; white-space: nowrap; }
/* The name is two words since 2026-11-04 («الأستاذة بلقاضي»): smaller on a narrow phone, never wrapped or cut. */
@media (max-width: 400px) { .brand-name { font-size: 19px; } .brand { gap: 8px; } }
.brand-desc {
    display: none; padding-inline-start: 10px; border-inline-start: 1px solid var(--line-strong);
    color: var(--ink-3); font-size: 14px; font-weight: 700; line-height: 1.3;
}

.nav { display: none; }
.nav a {
    padding: 8px 16px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 16px; text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--ink); background: var(--primary-soft); }

.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.theme-switch .i-sun, [data-theme='dark'] .theme-switch .i-moon { display: none; }
[data-theme='dark'] .theme-switch .i-sun { display: block; }
html:not(.js) .theme-switch { display: none; }

.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
    position: absolute; inset-inline: 0; top: 100%; display: grid; gap: 4px; padding: 10px 16px 18px;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.menu-panel a:not(.btn):hover, .menu-panel a.is-active { background: var(--surface-2); }
.menu-panel .btn { margin-top: 8px; }

@media (max-width: 459px) {
    /* Icon only, the words still read out (visually hidden, not display:none). */
    .top-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .top-cta { padding-inline: 12px; }
}
@media (min-width: 560px) { .brand-desc { display: inline; } }
@media (min-width: 960px) {
    .nav { display: flex; gap: 2px; margin-inline-start: 20px; }
    .menu { display: none; }
}

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; padding-block: 48px 72px; }
.hero::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none;
    background-image: radial-gradient(var(--dots) 1.1px, transparent 1.3px); background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%); mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }

h1 { margin: 0 0 20px; font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; line-height: 1.25; }
.h1-accent { display: block; color: var(--primary); }
[data-theme='dark'] .h1-accent { color: var(--primary-ink); }
.hero-lead { margin: 0 0 32px; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 2vw, 19.5px); line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.hero-stats dt { color: var(--ink-3); font-weight: 700; font-size: 15px; }

.hero-visual { position: relative; }
.hero-canvas {
    position: relative; display: flex; justify-content: center; align-items: flex-start; height: 470px; padding-top: 40px;
    overflow: hidden; border-radius: 32px; background: var(--surface-2); border: 1px solid var(--line);
}
.hero-canvas::before {
    content: ''; position: absolute; top: 60px; left: 50%; width: 420px; aspect-ratio: 1; translate: -50% 0;
    border-radius: 50%; background: var(--surface-3);
}

.phone {
    position: relative; flex: none; width: var(--w, 260px); aspect-ratio: 390 / 844; margin: 0; padding: 8px;
    border-radius: 42px; background: var(--phone); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md);
}
.phone img { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; object-position: top center; background: var(--surface-2); }
.phone::after {
    content: ''; position: absolute; top: 18px; left: 50%; width: 30%; height: 19px; translate: -50% 0;
    border-radius: 999px; background: var(--notch);
}
.phone-front { --w: 238px; z-index: 2; }
.phone-back { --w: 212px; z-index: 1; display: none; margin-top: 56px; margin-inline-start: -52px; }

.float {
    position: absolute; z-index: 3; display: none; align-items: center; gap: 12px; margin: 0; padding-block: 10px; padding-inline: 12px 18px;
    border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); line-height: 1.4;
}
.float b { display: block; font-weight: 800; font-size: 15px; }
.float small { display: block; color: var(--ink-3); font-weight: 700; font-size: 13px; }
.float .tile { width: 40px; height: 40px; border-radius: 12px; }
.float .i { width: 20px; height: 20px; }
.float-a { top: 120px; inset-inline-start: -12px; }
.float-b { bottom: 72px; inset-inline-end: -12px; }

@media (min-width: 540px) { .phone-back { display: block; } .hero-canvas { height: 500px; } }
@media (min-width: 720px) { .float { display: flex; } }
@media (max-width: 539px) { .actions > .btn { flex: 1 1 100%; } }
@media (min-width: 1000px) {
    .hero { padding-block: 64px 104px; }
    .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
    .hero-canvas { height: 560px; padding-top: 52px; }
    /* Inside the 28 px gutter until the page is wide enough for the full overhang. */
    .float-a { top: 150px; inset-inline-start: -20px; }
    .float-b { bottom: 96px; inset-inline-end: -20px; }
}
@media (min-width: 1100px) { .phone-front { --w: 262px; } .phone-back { --w: 232px; } }
@media (min-width: 1250px) { .float-a { inset-inline-start: -32px; } .float-b { inset-inline-end: -32px; } }

/* ── sections ────────────────────────────────────────────────────────────── */

.section { padding-block: 80px; }
.section-tight { padding-block: 40px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding-block: 112px; } .section-tight { padding-block: 56px; } }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.3; }
.section-lead { margin: 0; color: var(--ink-2); font-size: 18px; }

/* ── the app: segmented control + panels ─────────────────────────────────── */

.segmented-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.segmented {
    display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 5px;
    border-radius: 18px; background: var(--surface-3); border: 1px solid var(--line);
}
.seg {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding-inline: 18px 22px;
    border: 0; border-radius: 13px; background: transparent; color: var(--ink-2);
    font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg .i { width: 20px; height: 20px; color: var(--ink-3); }
.seg:hover { color: var(--ink); }
/* The selected one: the white thumb plus a 3 px bar (≥ 6:1), and an underline in forced colours. */
.seg[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -3px 0 var(--primary-ink), var(--shadow-sm); }
.seg[aria-selected='true'] .i { color: var(--primary-ink); }
@media (forced-colors: active) {
    .seg[aria-selected='true'] { text-decoration: underline 2px; text-underline-offset: 6px; }
}
@media (max-width: 459px) { .seg { padding-inline: 10px 12px; font-size: 15px; gap: 6px; } }

.panel {
    display: grid; gap: 28px; align-items: center; padding: 24px; border-radius: 32px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.panel[hidden] { display: none; }
.panel-mode { display: none; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--primary-ink); font-weight: 800; }
.panel-mode .i { width: 20px; height: 20px; }
.panel h3 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; line-height: 1.35; }
.panel-text { margin: 0 0 24px; color: var(--ink-2); font-size: 18px; }

html:not(.js) .segmented-wrap { display: none; }
html:not(.js) .panel[hidden] { display: grid; }
html:not(.js) .panel + .panel { margin-top: 20px; }
html:not(.js) .panel-mode { display: flex; }

.minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface-2); line-height: 1.6; }
.mini .tile { background: var(--surface); }
.mini b { display: block; font-weight: 800; font-size: 16.5px; }
.mini > span:last-child > span { display: block; color: var(--ink-3); font-size: 15px; }
@media (min-width: 560px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .minis-col { grid-template-columns: 1fr; } }

.stage {
    display: flex; justify-content: center; align-items: flex-start; height: 440px; padding-top: 32px; overflow: hidden;
    border-radius: 24px; background: var(--primary-soft);
}
.phone-stage { --w: min(250px, 100%); }
@media (min-width: 960px) {
    .panel { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding: 40px 48px; }
    .stage { height: 500px; padding-top: 40px; }
    .phone-stage { --w: 268px; }
}

.offline {
    display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 760px; margin: 28px auto 0;
    color: var(--ink-2); line-height: 1.7;
}
.offline b { color: var(--ink); }

/* ── mission ─────────────────────────────────────────────────────────────── */

.mission {
    position: relative; margin: 0; padding: 36px 28px; overflow: hidden; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mission::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--primary); }
.mission blockquote { margin: 0; }
.mission p { margin: 0; font-size: clamp(21px, 2.7vw, 29px); font-weight: 700; line-height: 1.8; color: var(--ink); }
.mission-accent { color: var(--primary-ink); }
.mission figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--ink-3); font-weight: 800; }
.mission figcaption::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }
@media (min-width: 900px) { .mission { padding: 52px 64px; } }

/* ── roadmap ─────────────────────────────────────────────────────────────── */

.roadmap { display: grid; gap: 16px; }
.road {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px;
    border-radius: 24px; background: var(--bg); border: 1px solid var(--line);
}
.road h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.4; }
.road p:not(.status) { margin: 0; color: var(--ink-2); }
.status {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 3px 12px; border-radius: 999px;
    font-size: 14px; font-weight: 800; line-height: 1.8;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-ready .status { background: var(--primary-soft); color: var(--primary-ink); }
.is-progress .status { background: var(--teal-soft); color: var(--teal-ink); }
.is-next .status { background: var(--surface-3); color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; margin: 2px 0 0; padding: 0; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; line-height: 1.5;
}
.chip-glyph { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); }
.chip-glyph .i { width: 16px; height: 16px; }
.chip-tag { padding: 0 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: 12.5px; font-weight: 800; }
.glyph-letter { font-size: 15px; font-weight: 800; line-height: 1; }
.glyph-letter.is-latin { direction: ltr; font-size: 11.5px; }
@media (min-width: 900px) {
    /* The middle card holds most subjects: wider, so its chips sit two or three to a line. */
    .roadmap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }
    .road { padding: 32px 28px; }
}

/* ── team ────────────────────────────────────────────────────────────────── */

.team { display: grid; gap: 16px; }
.person {
    display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 24px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.person h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.4; }
.person-role { margin: 4px 0 0; color: var(--ink-2); line-height: 1.7; }
.avatar {
    display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 24px;
    background: var(--primary-soft); color: var(--primary-ink); font-size: 36px; font-weight: 800; line-height: 1;
}
.avatar .i { width: 34px; height: 34px; }
.person-join { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.person-join .avatar { background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── tour ────────────────────────────────────────────────────────────────── */

.tour {
    list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 16px; margin: 0; padding: 4px 4px 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.tour li { display: flex; flex-direction: column; align-items: center; gap: 14px; scroll-snap-align: center; }
.phone-tour { --w: 100%; max-width: 230px; padding: 7px; border-radius: 36px; }
.phone-tour img { border-radius: 29px; }
.phone-tour::after { top: 15px; height: 16px; }
.tour-caption { color: var(--ink-2); font-weight: 800; font-size: 15.5px; text-align: center; }
@media (min-width: 640px) { .tour { grid-auto-columns: 34%; } }
@media (min-width: 1000px) {
    .tour { grid-auto-flow: row; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); overflow: visible; padding: 0; }
}

/* ── lab ─────────────────────────────────────────────────────────────────── */

.split { display: grid; gap: 40px; align-items: center; }
.split .section-head { margin-bottom: 28px; }
.stage-tall { height: 480px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; } .stage-tall { height: 560px; } }

/* ── contact ─────────────────────────────────────────────────────────────── */

.contact {
    display: grid; gap: 24px; align-items: center; padding: 32px 24px; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.35; }
.contact p:not(.eyebrow) { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 44px 48px; } }

/* ── download ────────────────────────────────────────────────────────────── */

.cta {
    display: grid; gap: 32px; align-items: center; padding: 36px 24px; border-radius: 32px;
    background: var(--primary-soft); border: 1px solid var(--line-strong);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.3; }
.cta-copy > p:not(.eyebrow):not(.cta-note) { margin: 0; max-width: 34em; color: var(--ink-2); font-size: 18px; }
.cta .eyebrow { background: var(--surface); }
.cta-note { margin: 14px 0 0; color: var(--ink-3); font-weight: 700; font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding-inline: 18px 24px; border-radius: 16px;
    background: var(--ink); color: var(--bg); border: 1px solid var(--ink); text-decoration: none; line-height: 1.3;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
a.store:hover { opacity: 0.9; }
.store .i { width: 26px; height: 26px; }
.store small { display: block; font-size: 12.5px; font-weight: 700; opacity: 0.8; }
.store b { display: block; font-size: 18px; font-weight: 800; }
.store.is-soon { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-strong); }
.store.is-direct { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
a.store.is-direct:hover { background: var(--primary-hover); opacity: 1; }
.store .i-end { width: 20px; height: 20px; margin-inline-start: 6px; opacity: 0.85; }
.dl-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 539px) { .store { flex: 1 1 150px; } }

.qr {
    justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 236px; margin: 0;
    padding: 18px 18px 14px; border-radius: 24px; background: #ffffff; border: 1px solid #e1ebd8; box-shadow: var(--shadow-sm);
}
.qr-code svg { display: block; width: 180px; height: 180px; }
.qr figcaption { color: #475443; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding: 56px 64px; } }

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot { padding-block: 56px 28px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-top { display: grid; gap: 24px; align-items: center; }
.foot-line { margin: 12px 0 0; max-width: 32em; color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.foot-nav a:hover { background: var(--surface-2); color: var(--ink); }
.foot-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
    margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px;
}
.foot-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal a { color: var(--ink-3); text-decoration: none; }
.foot-legal a:hover { color: var(--primary-ink); text-decoration: underline; }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) auto; } }

/* ── reveal on scroll ────────────────────────────────────────────────────── */
/* Hidden only with JavaScript. landing.js adds `io` once it watches: that pauses the safety net (a block it already
   revealed stays revealed). If landing.js never runs, the safety net shows everything after 2.5 s, and the head script
   drops `js` at 3 s. Focused content is never left invisible; print shows everything. */

.js [data-reveal] { opacity: 0; transform: translateY(18px); animation: reveal-safety 0.01s linear 2.5s forwards; }
.js.io [data-reveal] { animation-play-state: paused; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-in, .js [data-reveal]:focus-within { opacity: 1; transform: none; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .top { position: static; }
}
