/* TimeCode Play — site styles (v1.0, 2026-10-26)
   Depends on tokens.css. No inline styles are used anywhere (CSP: style-src 'self').
   Breakpoints: 760px (mobile menu, stacked hero, phone-size type), 900px (Generator first). */

/* ---------- Fonts (self-hosted, OFL 1.1) ---------- */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/golos-text-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/golos-text-latin-600-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/golos-text-latin-700-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/golos-text-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/golos-text-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/golos-text-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--color-bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
a:focus-visible, button:focus-visible { border-radius: var(--radius-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); border-radius: var(--radius-field); background: var(--color-accent); color: var(--color-on-accent); font-weight: var(--fw-semibold); text-decoration: none; }
.skip-link:focus { top: var(--space-4); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-label); color: var(--color-accent); text-transform: uppercase; }
.label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); transition: background-color var(--dur-base) var(--ease-ui), box-shadow var(--dur-base) var(--ease-ui), margin-bottom var(--dur-base) var(--ease-ui); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-8); padding-top: 18px; padding-bottom: 18px; transition: padding var(--dur-base) var(--ease-ui); }
.brand { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap-min); color: var(--color-text); text-decoration: none; }
.brand:hover { color: var(--color-text); }
.brand__logo { width: 40px; height: 40px; transition: width var(--dur-base) var(--ease-ui), height var(--dur-base) var(--ease-ui); }
.brand__name { font-size: 18px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.site-nav__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.nav-link { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 var(--space-3); color: var(--color-text); font-size: var(--fs-small); text-decoration: none; transition: color var(--dur-fast) var(--ease-ui); }
.nav-link:hover { color: var(--color-accent); }
.nav-link[aria-current="page"] { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-btn { display: none; }
.menu-btn__icon--close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__icon--open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__icon--close { display: block; }

/* Scrolled (compact) header — class set by ui.js after 12px of scroll */
.site-header.is-scrolled { background: rgba(8, 9, 11, 0.62); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow-header); margin-bottom: 20px; }
.site-header.is-scrolled .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled .brand__logo { width: 32px; height: 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); border: 1px solid transparent; font: inherit; font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-ui), border-color var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui); }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn--primary:active { background: var(--color-accent-pressed); }
.btn--secondary { background: transparent; border-color: var(--color-line-control); color: var(--color-text); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: #8A909A; color: var(--color-text); }
.btn--secondary:active { background: rgba(255, 255, 255, 0.04); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--color-surface-2); border-color: var(--color-surface-2); color: #8C929C; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-pill); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: max(640px, calc(100vh - var(--header-h))); background: var(--color-bg); }
@supports (height: 100svh) { .hero { min-height: max(640px, calc(100svh - var(--header-h))); } }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: 50% 30%; }
.js .hero__photo { animation: hero-zoom var(--dur-hero-zoom) var(--ease-out) both; }
@keyframes hero-zoom { from { transform: scale(1.12); opacity: 0.35; } to { transform: scale(1); opacity: 1; } }
.hero__shade { position: absolute; inset: 0; background-image: linear-gradient(180deg, #08090B 0, rgba(8, 9, 11, 0.6) 70px, rgba(8, 9, 11, 0) 180px), linear-gradient(0deg, #08090B 0, rgba(8, 9, 11, 0.7) 120px, rgba(8, 9, 11, 0) 300px), linear-gradient(90deg, rgba(8, 9, 11, 0.88) 0%, rgba(8, 9, 11, 0.6) 36%, rgba(8, 9, 11, 0.1) 62%, rgba(8, 9, 11, 0) 85%); }
.hero__content { position: relative; z-index: 1; padding-top: clamp(180px, 18vw, 260px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__text { display: flex; flex-direction: column; gap: var(--space-6); max-width: 820px; }
.hero__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-h1); font-weight: var(--fw-bold); }
.hero__lead { max-width: 500px; font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text-body); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }
.hero__requirement { max-width: 500px; font-size: var(--fs-body); line-height: 1.5; color: var(--color-text); text-wrap: pretty; }

/* ---------- Section headings ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--space-3); }
.section-head--center { align-items: center; text-align: center; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--tracking-h2); font-weight: var(--fw-bold); }
.h2--large { font-size: var(--fs-h2-large); line-height: 1.1; max-width: 18em; }
.h2--small { font-size: var(--fs-h2-small); line-height: 1.15; }

/* ---------- App screens (phones) ---------- */
.shots { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-section) 28%, var(--color-section) 72%, var(--color-bg-raised) 100%); }
.shots__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.shots__glow--warm { left: 6%; top: 22%; width: 620px; height: 620px; background: var(--color-accent); opacity: 0.09; filter: blur(140px); }
.shots__glow--cool { right: 4%; top: 30%; width: 680px; height: 680px; background: var(--color-glow-cool); opacity: 0.11; filter: blur(150px); }
.shots__floor { position: absolute; left: 50%; bottom: 150px; width: min(1100px, 92%); height: 180px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(168, 173, 184, 0.10) 0%, rgba(168, 173, 184, 0) 70%); filter: blur(24px); pointer-events: none; }
.shots__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4vw, 56px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.shots__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 4vw, 64px); width: 100%; }
.phone-fig { flex: 0 1 270px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone-fig--main { flex-basis: 296px; }
.phone { position: relative; width: 100%; padding: 9px; border-radius: var(--radius-phone); background: linear-gradient(145deg, #4A4E57 0%, #1C1E23 22%, #0D0E11 55%, #24272D 85%, #3A3E46 100%); box-shadow: var(--shadow-phone); }
.phone-fig--main .phone { padding: 10px; border-radius: 54px; box-shadow: var(--shadow-phone), 0 0 120px -20px rgba(242, 169, 59, 0.18); }
.phone__screen { width: 100%; height: auto; border-radius: var(--radius-phone-screen); }
.phone-fig--main .phone__screen { border-radius: 44px; }
.phone__glare { position: absolute; inset: 9px; border-radius: var(--radius-phone-screen); background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 26%, rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.phone-fig--main .phone__glare { inset: 10px; border-radius: 44px; }
.phone__key { position: absolute; width: 3px; background: linear-gradient(90deg, #2A2D33, #555A64); }
.phone__key--action { left: -3px; top: 17%; height: 26px; border-radius: 2px 0 0 2px; }
.phone__key--vol-up { left: -3px; top: 24%; height: 48px; border-radius: 2px 0 0 2px; }
.phone__key--vol-down { left: -3px; top: 32%; height: 48px; border-radius: 2px 0 0 2px; }
.phone__key--side { right: -3px; top: 27%; height: 78px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #2A2D33, #555A64); }
.phone-fig__caption { display: flex; flex-direction: column; gap: var(--space-1); max-width: 290px; text-align: center; }
.phone-fig__title { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--color-text); }
.phone-fig__text { font-size: var(--fs-caption); line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Features ---------- */
.features { background: var(--color-bg-raised); border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.features__inner { display: flex; flex-direction: column; gap: var(--space-12); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.features__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); }
.features__note { margin-top: calc(var(--space-4) * -1); font-size: var(--fs-body); line-height: 1.5; color: var(--color-text-muted); }
.feature-card { --reveal-delay: 0s; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-7); border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-line); transition: transform 0.25s var(--ease-ui), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.feature-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease-ui); }
.feature-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 220px at 0% 0%, rgba(242, 169, 59, 0.09), rgba(242, 169, 59, 0) 70%); opacity: 0; transition: opacity 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); background: var(--color-surface-hover); border-color: rgba(242, 169, 59, 0.38); box-shadow: var(--shadow-card-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }
.feature-card__label { color: var(--color-accent); }
.feature-card__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: var(--fw-bold); }
.feature-card__text { font-size: var(--fs-body); line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Requirements ---------- */
.requirements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-10); align-items: start; padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.requirements__body { display: flex; flex-direction: column; gap: var(--space-7); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-6); }
.spec-list__item { display: flex; flex-direction: column; gap: 6px; padding-top: var(--space-4); border-top: 1px solid var(--color-line-strong); }
.spec-list__term { color: var(--color-text-meta); }
.spec-list__value { font-size: 19px; }
.requirements__note { font-size: var(--fs-body); line-height: 1.55; color: var(--color-text-muted); text-wrap: pretty; }
.notice { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius-notice); background: var(--color-field); border: 1px solid var(--color-line); }
.notice__strong { font-size: 16px; line-height: 1.5; color: var(--color-text); }
.notice__text { font-size: 16px; line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Link cards (Help and support) ---------- */
.help { display: flex; flex-direction: column; gap: var(--space-8); padding-bottom: var(--section-pad); }
.link-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); }
.link-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: var(--space-7); border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-text); transition: background-color var(--dur-fast) var(--ease-ui), border-color var(--dur-fast) var(--ease-ui); }
.link-card:hover { background: var(--color-surface-2); border-color: rgba(242, 169, 59, 0.5); }
.link-card__title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--color-text); text-decoration: none; }
.link-card__title::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.link-card__title:hover { color: var(--color-text); }
.link-card__title:focus-visible { outline: none; }
.link-card:focus-within { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.link-card__text { font-size: var(--fs-body); line-height: 1.5; color: var(--color-text-muted); }
.link-card__inline { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-12); }
.site-footer__name { font-size: var(--fs-footer); color: var(--color-text-subtle); }
.footer-nav__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font-size: var(--fs-footer); }
.foot-link { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--color-text-subtle); transition: color var(--dur-fast) var(--ease-ui); }
.foot-link:hover { color: var(--color-text); }
.foot-link[aria-current="page"] { color: var(--color-text); }

/* ---------- Inner pages (help, support, privacy, 404) ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--space-5); border-bottom: 1px solid var(--color-line); }
.page-head__title { font-size: var(--fs-h1-page); line-height: 1.08; letter-spacing: var(--tracking-h1); font-weight: var(--fw-bold); }
.page-head__lead { max-width: 640px; font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text-body); }
.page-head__meta { font-size: var(--fs-small); color: var(--color-text-subtle); }
.placeholder-note { display: flex; gap: var(--space-3); align-items: flex-start; max-width: 760px; padding: 14px 18px; border-radius: var(--radius-notice); border: 1px dashed var(--color-accent); background: rgba(242, 169, 59, 0.08); font-size: var(--fs-small); line-height: 1.5; color: var(--color-text); }
.placeholder-note__tag { flex: none; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); color: var(--color-accent); padding-top: 2px; }
.ph { color: var(--color-text-subtle); font-style: italic; }
.doc-layout { display: flex; flex-wrap: wrap; gap: var(--space-12) clamp(40px, 6vw, 96px); align-items: flex-start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-pad); }
.toc { flex: 1 1 240px; max-width: 300px; position: sticky; top: calc(var(--header-h) + 24px); }
.toc__title { margin-bottom: var(--space-3); color: var(--color-text-meta); }
.toc__list { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--color-line-strong); }
.toc__link { display: flex; align-items: center; min-height: var(--tap-min); padding: 6px 0 6px var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.35; text-decoration: none; }
.toc__link:hover { color: var(--color-text); border-left-color: var(--color-line-control); }
.doc { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: var(--space-14); }
.doc-section { display: flex; flex-direction: column; gap: var(--space-4); }
.doc-section__title { display: flex; align-items: center; gap: var(--space-2); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.015em; font-weight: var(--fw-bold); }
.anchor-link { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-sm); opacity: 0.6; }
.anchor-link:hover, .anchor-link:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.doc-section p, .doc-section li { color: var(--color-text-muted); line-height: 1.6; }
.doc-section ul, .doc-section ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-2); }
.doc-section strong { color: var(--color-text); }

/* FAQ (native details/summary) */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--color-line-strong); }
.faq__item { border-bottom: 1px solid var(--color-line-strong); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-3) 0; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--color-text); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-line-control); border-radius: 50%; font-family: var(--font-mono); font-size: 16px; color: var(--color-text); }
.faq__item[open] > .faq__q::after { content: "\2212"; }
.faq__q:hover { color: var(--color-accent); }
.faq__a { padding: 0 0 var(--space-5); color: var(--color-text-muted); line-height: 1.6; }

/* ---------- Support page ---------- */
.support-grid { display: flex; flex-wrap: wrap; gap: var(--space-12) clamp(40px, 6vw, 96px); align-items: flex-start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-pad); }
.support-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: var(--space-8); }
.support-main { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: var(--space-6); }
.contact-box { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-line); }
.contact-box__email { font-family: var(--font-mono); font-size: clamp(18px, 1.8vw, 22px); word-break: break-all; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li { position: relative; padding-left: 28px; color: var(--color-text-muted); line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--color-accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-5); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-line); }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--color-text); }
.field__hint { font-size: 14px; color: var(--color-text-subtle); }
.field__control { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-field); border: 1px solid var(--color-line-control); background: var(--color-field); color: var(--color-text); font: inherit; font-size: var(--fs-body); line-height: 1.4; transition: border-color var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui); }
.field__control::placeholder { color: #8C929C; } /* 5.9:1 on field */
.field__control:hover { border-color: #8A909A; }
.field__control:focus-visible { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.35); }
.field__control:disabled { opacity: 0.55; cursor: not-allowed; }
textarea.field__control { min-height: 120px; resize: vertical; }
select.field__control { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field.is-invalid .field__control, .field__control[aria-invalid="true"] { border-color: var(--color-error); }
.field__error { display: none; font-size: 14px; color: var(--color-error); }
.field.is-invalid .field__error { display: block; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.status { padding: 14px 18px; border-radius: var(--radius-notice); background: var(--color-field); border: 1px solid var(--color-line-strong); font-size: var(--fs-small); line-height: 1.5; color: var(--color-text); }
.status:empty { display: none; }
.status--success { border-color: rgba(79, 217, 138, 0.5); }
.status--success .status__title { color: var(--color-success); }
.status--warning { border-color: rgba(242, 169, 59, 0.6); }
.status--warning .status__title { color: var(--color-accent); }
.status--error { border-color: rgba(255, 122, 134, 0.6); }
.status--error .status__title { color: var(--color-error); }
.status__title { display: block; font-weight: var(--fw-semibold); margin-bottom: 2px; }
.fallback { display: flex; flex-direction: column; gap: var(--space-3); }
.fallback[hidden] { display: none; }
.fallback__text { min-height: 220px; font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.noscript-note { padding: 14px 18px; border-radius: var(--radius-notice); border: 1px solid var(--color-line-strong); color: var(--color-text-muted); }

/* ---------- 404 ---------- */
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.not-found__code { font-family: var(--font-mono); font-size: clamp(56px, 9vw, 120px); font-weight: var(--fw-bold); line-height: 1; letter-spacing: 0.02em; color: var(--color-accent); }

/* ---------- States demo page ---------- */
.states { display: flex; flex-direction: column; gap: var(--space-12); padding-top: var(--space-12); padding-bottom: var(--section-pad); }
.states__group { display: flex; flex-direction: column; gap: var(--space-4); }
.states__row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.states__cell { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.states__cap { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--color-text-meta); }
.is-hover.btn--primary { background: var(--color-accent-hover); }
.is-active.btn--primary { background: var(--color-accent-pressed); }
.is-hover.btn--secondary { background: rgba(255, 255, 255, 0.08); border-color: #8A909A; }
.is-focus { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.is-hover.feature-card { transform: translateY(-4px); background: var(--color-surface-hover); border-color: rgba(242, 169, 59, 0.38); box-shadow: var(--shadow-card-hover); }
.is-hover.feature-card::before { transform: scaleX(1); }
.is-hover.feature-card::after { opacity: 1; }
.badge-slot { display: flex; flex-direction: column; gap: var(--space-2); max-width: 420px; padding: var(--space-5); border: 1px dashed var(--color-line-control); border-radius: var(--radius-field); color: var(--color-text-muted); font-size: var(--fs-small); }
.badge-slot__box { display: flex; align-items: center; justify-content: center; width: 156px; height: 52px; border: 1px dashed var(--color-text-subtle); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); text-align: center; }

/* ---------- Scroll reveal (only when ui.js arms a section that starts below the fold) ---------- */
.reveal-armed .shots__head, .reveal-armed .phone, .reveal-armed .phone-fig__caption,
.reveal-armed .features__title, .reveal-armed .feature-card { opacity: 0; transition: none; }
.reveal-armed .shots__head { transform: translateY(16px); }
.reveal-armed .phone-fig:nth-child(1) .phone { transform: perspective(1400px) translateY(48px) rotateY(16deg) rotateZ(-2deg) scale(0.92); }
.reveal-armed .phone-fig:nth-child(2) .phone { transform: perspective(1400px) translateY(64px) rotateX(8deg) scale(0.9); }
.reveal-armed .phone-fig:nth-child(3) .phone { transform: perspective(1400px) translateY(48px) rotateY(-16deg) rotateZ(2deg) scale(0.92); }
.reveal-armed .phone-fig__caption { transform: translateY(10px); }
.reveal-armed .features__title { translate: 0 16px; }
.reveal-armed .feature-card { translate: 0 32px; }
.reveal-in .shots__head { transition: opacity 0.8s ease, transform var(--dur-reveal) var(--ease-out); }
.reveal-in .phone { transition: transform var(--dur-reveal-phone) var(--ease-out), opacity 0.9s ease; }
.reveal-in .phone-fig:nth-child(2) .phone { transition-delay: 0.08s; }
.reveal-in .phone-fig:nth-child(1) .phone, .reveal-in .phone-fig:nth-child(3) .phone { transition-delay: 0.22s; }
.reveal-in .phone-fig__caption { transition: opacity 0.8s ease 0.45s, transform var(--dur-reveal) var(--ease-out) 0.45s; }
.reveal-in .features__title { transition: opacity 0.8s ease, translate var(--dur-reveal) var(--ease-out); }
.reveal-in .feature-card { transition: translate 0.8s var(--ease-out) var(--reveal-delay), opacity 0.7s ease var(--reveal-delay), transform 0.25s var(--ease-ui), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.feature-card:nth-child(2) { --reveal-delay: 0.07s; }
.feature-card:nth-child(3) { --reveal-delay: 0.14s; }
.feature-card:nth-child(4) { --reveal-delay: 0.21s; }
.feature-card:nth-child(5) { --reveal-delay: 0.28s; }
.feature-card:nth-child(6) { --reveal-delay: 0.35s; }

/* ---------- Breakpoint: ≤ 900px ---------- */
@media (max-width: 900px) {
  .phone-fig--main { order: -1; }
  .toc { position: static; max-width: none; }
}

/* ---------- Breakpoint: ≤ 760px (phones) ---------- */
@media (max-width: 760px) {
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: var(--tap-min); height: var(--tap-min); margin-left: auto; padding: 0; border-radius: var(--radius-field); border: 1px solid var(--color-line-control); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
  .js .menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-field); }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-1) var(--space-4) var(--space-4); background: rgba(8, 9, 11, 0.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-menu); }
  .js .site-nav.is-open { display: block; animation: menu-in var(--dur-menu) var(--ease-ui); }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav .nav-link { min-height: 52px; padding: 0 var(--space-1); font-size: var(--fs-body); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .js .site-nav li:last-child .nav-link { border-bottom: 0; }

  .hero { display: block; min-height: 0; }
  .hero__photo { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 11; object-position: 100% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 72%, transparent 100%); }
  .hero__shade { display: none; }
  .hero__content { padding-top: var(--space-2); }
  .hero__title { font-size: var(--fs-h1-mobile); line-height: 1.1; text-wrap: balance; }
  .hero__title br { display: none; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; font-size: var(--fs-small); white-space: nowrap; }
}
@media (max-width: 340px) {
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex-basis: 100%; white-space: normal; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__photo { animation: none; }
  .site-header, .site-header__inner, .brand__logo, .btn, .nav-link, .foot-link, .link-card, .field__control,
  .feature-card, .feature-card::before, .feature-card::after { transition: none; }
  .feature-card:hover { transform: none; }
  .js .site-nav.is-open { animation: none; }
}
