/* ==========================================================================
   LCP Technologies: site styles
   Tokens first, then base, layout, components, then page-specific pieces.
   App pages set --app / --app-ink on <body>; components read those so each
   app keeps its own colour inside the shared design.
   ========================================================================== */

:root {
  --brand: #5b7cff;
  --brand-2: #8a5cff;
  --brand-3: #22c3b5;

  --bg: #f7f7fb;
  --bg-2: #eff0f7;
  --surface: #ffffff;
  --surface-2: #f3f4f9;
  --ink: #12141c;
  --ink-2: #3c4152;
  --muted: #5d6376;
  --line: #e3e5ee;
  --line-2: #d3d6e3;
  --good: #0f8a5f;
  --warn: #a15c00;
  --bad: #c0362c;
  --shadow-sm: 0 1px 2px rgba(18, 20, 40, .06);
  --shadow: 0 1px 2px rgba(18, 20, 40, .05), 0 12px 32px -8px rgba(18, 20, 40, .12);
  --shadow-lg: 0 2px 4px rgba(18, 20, 40, .04), 0 30px 60px -20px rgba(30, 30, 80, .25);
  --header-bg: rgba(247, 247, 251, .78);

  --app: var(--brand);
  --app-ink: #fff;
  --tint-to: #000;
  --tint-pct: 72%;
  --soft-pct: 10%;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0d14;
    --bg-2: #10131c;
    --surface: #141824;
    --surface-2: #1a1f2d;
    --ink: #eef0f7;
    --ink-2: #c9cdda;
    --muted: #9aa1b4;
    --line: #232838;
    --line-2: #30364a;
    --good: #3fcf8e;
    --warn: #f0b043;
    --bad: #ff7a6e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .75);
    --header-bg: rgba(11, 13, 20, .72);
    --tint-to: #fff;
    --tint-pct: 62%;
    --soft-pct: 16%;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --surface: #141824;
  --surface-2: #1a1f2d;
  --ink: #eef0f7;
  --ink-2: #c9cdda;
  --muted: #9aa1b4;
  --line: #232838;
  --line-2: #30364a;
  --good: #3fcf8e;
  --warn: #f0b043;
  --bad: #ff7a6e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .75);
  --header-bg: rgba(11, 13, 20, .72);
  --tint-to: #fff;
  --tint-pct: 62%;
  --soft-pct: 16%;
  color-scheme: dark;
}

/* Derived app colours. Declared on every element that sets --app, so each app
   card, tile and page gets text/tint colours from its own accent. */
body, [style*='--app'] {
  --app-text: color-mix(in oklab, var(--app) var(--tint-pct), var(--tint-to));
  --app-soft: color-mix(in oklab, var(--app) var(--soft-pct), transparent);
}

/* ---------- 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: 16px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--app-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--app) 70%, var(--ink) 0%); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--app) 30%, transparent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.stack { display: grid; gap: 20px; padding-bottom: 72px; }
.meta { color: var(--muted); font-size: .875rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--app-text); margin-bottom: 14px;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn { max-width: 100%; }
.btn span { min-width: 0; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn svg { transition: transform .2s var(--ease); flex: none; }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn--primary { --b-bg: linear-gradient(135deg, var(--brand), var(--brand-2)); --b-ink: #fff; --b-line: transparent; background: var(--b-bg); box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--brand) 60%, transparent); }
.btn--ghost { --b-bg: transparent; }
.btn--app { --b-bg: var(--app); --b-ink: var(--app-ink); --b-line: transparent; }
.btn--app:hover { filter: brightness(1.06); }
.btn--light { --b-bg: #fff; --b-ink: #151727; --b-line: transparent; }
.btn--outline-light { --b-bg: transparent; --b-ink: #fff; --b-line: rgba(255, 255, 255, .45); }
.btn--block { width: 100%; margin: 18px 0 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform .2s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.logo-mark { flex: none; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.brand__sub { font-weight: 500; color: var(--muted); font-size: .95rem; letter-spacing: 0; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item > a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 550; font-size: .95rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav__item > a:hover { background: var(--surface-2); color: var(--ink); }
.nav__item > a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.nav__item--apps > a::after {
  content: ''; width: 7px; height: 7px; margin-left: 8px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.nav__cta { background: var(--ink) !important; color: var(--bg) !important; margin-left: 6px; }
.nav__cta:hover { opacity: .88; }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__sub::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__item--apps:hover .nav__sub, .nav__item--apps:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav__sub a:hover, .nav__sub a[aria-current='page'] { background: var(--surface-2); }
.nav__sub img { border-radius: 7px; }

.nav__toggle { display: none; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: block; }
}

@media (max-width: 860px) {
  .nav { order: 3; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .burger { display: grid; gap: 4px; width: 18px; }
  .burger span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .nav__toggle[aria-expanded='true'] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded='true'] .burger span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded='true'] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 68px 0 auto; max-height: calc(100dvh - 68px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__item > a { width: 100%; min-height: 48px; font-size: 1.05rem; }
  .nav__item--apps > a::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; background: transparent; }
  .nav__cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: '/'; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 550; }

/* ---------- App sub-navigation ---------- */
.app-subnav { border-bottom: 1px solid var(--line); margin-top: 14px; }
.app-subnav__inner { display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.app-subnav__inner::-webkit-scrollbar { display: none; }
.app-subnav__brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 0; }
.app-subnav__brand img { border-radius: 8px; }
.app-subnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.app-subnav ul a {
  display: block; position: relative; padding: 16px 12px; white-space: nowrap;
  color: var(--muted); font-size: .92rem; font-weight: 550; text-decoration: none;
}
.app-subnav ul a:hover { color: var(--ink); }
.app-subnav ul a[aria-current='page'] { color: var(--ink); }
.app-subnav ul a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--app); }
@media (max-width: 640px) { .app-subnav__brand span { display: none; } }

/* ---------- Page head ---------- */
.page-head { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .lede { margin-inline: auto; }
.section-head--left { text-align: left; margin-inline: 0; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .split, .two-col { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.25rem; margin-bottom: .6em; }
.card > :last-child { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb--1 { width: 520px; height: 520px; background: var(--brand); top: -200px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb--2 { width: 420px; height: 420px; background: var(--brand-3); bottom: -220px; left: -140px; opacity: .3; animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .6;
}
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.motto { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 1.05rem; }
.motto li { display: flex; align-items: baseline; gap: 8px; }
.motto span { font-size: .72rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.icon-orbit { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
.icon-orbit::before, .icon-orbit::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px dashed var(--line-2);
}
.icon-orbit::before { inset: 8%; }
.icon-orbit::after { inset: 28%; border-style: solid; opacity: .6; }
.icon-orbit__core {
  position: absolute; inset: 38%; display: grid; place-items: center;
  border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.icon-orbit__item {
  position: absolute; width: 27%; display: grid; justify-items: center; gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.icon-orbit__item img {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 24%;
  box-shadow: 0 18px 40px -14px color-mix(in oklab, var(--app) 70%, transparent), var(--shadow);
}
.icon-orbit__item span { font-size: .78rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.icon-orbit__item--0 { top: 0; left: 36.5%; }
.icon-orbit__item--1 { top: 36%; right: 0; animation-delay: -1.5s; }
.icon-orbit__item--2 { bottom: -4%; left: 36.5%; animation-delay: -3s; }
.icon-orbit__item--3 { top: 36%; left: 0; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 360px; width: 100%; margin-inline: auto; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: 0; }
.container.stats { max-width: calc(var(--container) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin-top: clamp(24px, 4vw, 48px); }
.stat { background: var(--surface); padding: 24px; display: grid; gap: 4px; }
.stat strong { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- App cards (home) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.app-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 15% 0%, var(--app-soft), transparent 70%);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--app) 40%, var(--line)); }
.app-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.app-card__link:focus-visible { outline-offset: -3px; }
.app-card__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.app-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.app-card__tagline { color: var(--app-text); font-weight: 600; margin-bottom: 10px; }
.app-card p:not(.app-card__tagline) { color: var(--ink-2); }
.app-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--app-text); }
.app-card__more svg { transition: transform .2s var(--ease); }
.app-card:hover .app-card__more svg { transform: translateX(4px); }
.app-icon { border-radius: 23%; box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--app) 60%, transparent), var(--shadow-sm); flex: none; }

/* ---------- Status badges & store buttons ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px;
  font-size: .78rem; font-weight: 650; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status--live { color: var(--good); background: color-mix(in oklab, var(--good) 10%, transparent); border-color: color-mix(in oklab, var(--good) 30%, transparent); }
.status--live .status__dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 25%, transparent); }
.status--review { color: var(--warn); background: color-mix(in oklab, var(--warn) 10%, transparent); border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.status--review .status__dot { background: var(--warn); }
.status--soon .status__dot { background: var(--brand); }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 12px; }
.store-btn {
  display: inline-grid; padding: 9px 20px 10px; border-radius: 12px; min-height: 52px; align-content: center;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.store-btn__small { font-size: .7rem; line-height: 1.1; opacity: .85; }
.store-btn__big { font-size: 1.15rem; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 12px;
  border: 1px dashed var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .95rem; background: var(--surface);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--app); position: relative; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--app); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- Principles & loop ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.principle > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--brand); background: color-mix(in oklab, var(--brand) 12%, transparent); margin-bottom: 18px; }
.principle p { color: var(--muted); margin: 0; font-size: .95rem; }

.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.loop li { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.loop p { color: var(--muted); margin: 0; }
.loop h3 { margin-bottom: 4px; }
.loop__n {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
  font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.loop li:nth-child(2) .loop__n { background: linear-gradient(135deg, var(--brand-2), #c05cff); }
.loop li:nth-child(3) .loop__n { background: linear-gradient(135deg, var(--brand-3), var(--brand)); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: radial-gradient(ellipse at 90% 0%, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(120deg, #2c3aa8, var(--brand-2) 60%, #5a3fd0);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 48ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- App hero ---------- */
.app-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; isolation: isolate; }
.app-hero__glow {
  position: absolute; z-index: -1; inset: -30% -10% auto 30%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--app) 35%, transparent), transparent);
  filter: blur(40px); opacity: .7; pointer-events: none;
}
.app-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-hero__id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-hero__tagline { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 650; color: var(--app-text); margin: -4px 0 14px; letter-spacing: -.01em; }
@media (max-width: 900px) { .app-hero__inner { grid-template-columns: 1fr; } }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 20px 0; }
.phone {
  margin: 0; width: min(38%, 220px); flex: none;
  border-radius: 34px; padding: 8px; background: #0d0f15;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, var(--shadow-lg);
}
.phone img { width: 100%; height: auto; border-radius: 27px; }
.phone--0 { z-index: 2; }
.phone--1 { transform: translateX(-12%) rotate(4deg) translateY(16px); z-index: 1; opacity: .96; }
.phone--2 { transform: translateX(-24%) rotate(8deg) translateY(36px); opacity: .9; }
.phones .phone--0 { transform: rotate(-3deg); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative; padding: 26px 26px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
.feature::before { content: ''; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--app); margin-bottom: 18px; }
.feature:hover { border-color: color-mix(in oklab, var(--app) 40%, var(--line)); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.tag-cloud li { padding: 10px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 550; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.quick-link {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.quick-link:hover { border-color: color-mix(in oklab, var(--app) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.quick-link svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--app-soft); color: var(--app-text); }
.quick-link strong { display: block; }
.quick-link span span, .quick-link > span { font-size: .9rem; color: var(--muted); }
.quick-link strong { color: var(--ink); font-size: 1rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; color: var(--good); margin-top: 3px; }

/* ---------- Illustrations: Memra ---------- */
.memra-demo {
  display: grid; gap: 12px; max-width: 400px; margin-inline: auto; padding: 18px; border-radius: 30px;
  background: color-mix(in oklab, var(--surface) 88%, var(--app)); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.memra-demo__search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.mem { display: grid; gap: 3px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.mem strong { color: var(--ink); font-size: .98rem; }
.mem__kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--app-text); }
.mem__tags { display: flex; gap: 6px; margin-top: 6px; }
.mem__tags i { font-style: normal; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--app-soft); color: var(--app-text); font-weight: 600; }
.mem__photo { height: 60px; border-radius: 10px; margin-top: 6px; background: linear-gradient(135deg, #8fb3ff, #b7a4ff 50%, #ffd1a8); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 4px; }
.wave i { width: 4px; border-radius: 3px; background: var(--app); animation: wave 1.2s ease-in-out infinite; height: 40%; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n + 1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 50% { height: 100%; } }

/* ---------- Illustrations: FightUrPhobia (calm, trigger-free) ---------- */
.verdict-demo {
  display: grid; gap: 10px; max-width: 420px; margin-inline: auto; padding: 18px; border-radius: 30px;
  background: linear-gradient(160deg, #7c6cfa, #5b4bea 55%, #3a22b8); box-shadow: var(--shadow-lg); color: #fff;
}
.verdict-demo__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-weight: 700; }
.chip-sm { font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-weight: 600; }
.verdict { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(10, 10, 18, .35); }
.verdict div { display: grid; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.verdict strong { color: #fff; font-size: .95rem; }
.verdict__poster { grid-row: span 2; width: 44px; height: 60px; border-radius: 8px; }
.p1 { background: linear-gradient(160deg, #9be7c4, #3fa27e); }
.p2 { background: linear-gradient(160deg, #a9d3ff, #4d7fd6); }
.p3 { background: linear-gradient(160deg, #c7b8ff, #6e5bd6); }
.p4 { background: linear-gradient(160deg, #ffe0b0, #d79a55); }
.vbadge { justify-self: start; margin-top: 6px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.vbadge--clear { background: #c9f5e0; color: #0b5a3c; }
.vbadge--caution { background: #ffe8b8; color: #6b4400; }
.vbadge--none { background: rgba(255, 255, 255, .2); color: #fff; }

.attribution { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.attribution p { margin: 0 0 4px; }
.attribution img { margin-bottom: 10px; height: 16px; width: auto; }

/* ---------- Legal document ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 88px; align-items: start; }
.doc__toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .88rem; }
.doc__toc-title { font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a.is-active { color: var(--ink); border-left-color: var(--app); font-weight: 600; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; max-height: none; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
}
.prose { max-width: 72ch; font-size: 1.02rem; color: var(--ink-2); }
.prose--wide { max-width: 68ch; }
.prose section { padding-top: 8px; margin-bottom: 36px; }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin-bottom: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--app-text); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1em; background: var(--surface); }

.callout { padding: 20px 24px; border-radius: var(--radius); background: var(--app-soft); border: 1px solid color-mix(in oklab, var(--app) 25%, transparent); margin-bottom: 36px; color: var(--ink-2); }
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-size: 1.05rem !important; margin-bottom: .6em; color: var(--ink); }
.callout--info { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.faq__head h2 { margin: 0; font-size: 1.5rem; }
.search { position: relative; display: flex; align-items: center; min-width: min(300px, 100%); }
.search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
}
.search input:focus { outline: none; border-color: var(--app); box-shadow: 0 0 0 4px var(--app-soft); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: color-mix(in oklab, var(--app) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq__chev { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); position: relative; transition: transform .25s var(--ease), background .2s; }
.faq__chev::before { content: ''; position: absolute; left: 10px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--app-soft); }
.faq__answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq__empty { padding: 20px; text-align: center; color: var(--muted); }
mark { background: color-mix(in oklab, var(--app) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Contact card / emergency ---------- */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--app-soft), transparent 70%), var(--surface); border: 1px solid var(--line);
}
.contact-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.contact-card p { color: var(--muted); margin: 0; max-width: 56ch; }

.emergency { padding: 24px; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--bad) 35%, var(--line)); background: color-mix(in oklab, var(--bad) 6%, var(--surface)); }
.emergency h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.emergency h2 svg { color: var(--bad); }
.emergency__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 12px; }
.emergency__grid p { margin-bottom: 8px; color: var(--ink-2); }
@media (max-width: 700px) { .emergency__grid { grid-template-columns: 1fr; } }
.emergency--calm { border-color: color-mix(in oklab, var(--app) 30%, var(--line)); background: var(--app-soft); }
.emergency--calm h2 svg { color: var(--app-text); }
.emergency--calm p { margin: 0; color: var(--ink-2); }
.tel { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.tel:hover { text-decoration: underline; }
.tel--inline { display: inline; font-size: inherit; min-height: 0; font-weight: 750; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--app); color: var(--app-ink); font-weight: 700; font-size: .9rem;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .92rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--app); box-shadow: 0 0 0 4px var(--app-soft); }
.field [aria-invalid='true'] { border-color: var(--bad); }
.field [aria-invalid='true']:focus { box-shadow: 0 0 0 4px color-mix(in oklab, var(--bad) 18%, transparent); }
.field__hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field__error { margin: 0; font-size: .85rem; color: var(--bad); font-weight: 550; display: flex; gap: 6px; align-items: center; }
.field__error::before { content: '!'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__actions .meta { margin: 0; max-width: 40ch; }
.form__status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-weight: 550; }
.form__status.is-ok { background: color-mix(in oklab, var(--good) 12%, transparent); color: var(--good); }
.form__status.is-error { background: color-mix(in oklab, var(--bad) 10%, transparent); color: var(--bad); }
.form__status svg { flex: none; margin-top: 2px; }
.form__status p { margin: 0; color: var(--ink-2); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn .spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--ink-2); font: 600 .85rem var(--font); cursor: pointer; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding-bottom: 88px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__side { display: grid; gap: 20px; }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mail-list li { display: grid; }
.mail-list span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mail-list a { font-weight: 600; word-break: break-all; }
.mini-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-apps a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; }
.mini-apps a:hover { background: var(--surface-2); }
.mini-apps img { border-radius: 7px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 72px); padding-bottom: 96px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about .prose h2 { margin-top: 1.2em; }
.about .prose h2:first-child { margin-top: 0; }
.about__card { position: sticky; top: 96px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__mark { margin-bottom: 20px; }
.about__card dl { margin: 0; display: grid; gap: 16px; }
.about__card dt { font-size: .78rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.about__card dd { margin: 2px 0 0; font-weight: 550; }

/* ---------- Support hub & legal ---------- */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .support-grid { grid-template-columns: 1fr; } }
.support-tile {
  display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.support-tile img { border-radius: 23%; }
.support-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--app) 45%, var(--line)); text-decoration: none; }
.support-tile__name { font-weight: 700; font-size: 1.1rem; }
.support-tile__cta { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 600; }
.support-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 96px; }
@media (max-width: 760px) { .support-extra { grid-template-columns: 1fr; } }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-weight: 600; }

.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.legal-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table__app { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.legal-table__app img { border-radius: 7px; }
.section + .container .meta, .legal-table + .meta { margin-top: 16px; }
@media (max-width: 720px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .legal-table th, .legal-table td { border: 0; padding: 6px 12px; }
  .legal-table th { grid-column: 1 / -1; }
}

/* ---------- Utility pages (consent, auth) ---------- */
.utility { max-width: 560px; padding-top: clamp(32px, 7vw, 72px); padding-bottom: 96px; }
.utility__brand { display: flex; align-items: center; gap: 12px; margin: 0 0 18px 4px; font-weight: 750; font-size: 1.1rem; }
.utility__brand img { border-radius: 10px; }
.utility__card { box-shadow: var(--shadow); padding: clamp(24px, 5vw, 36px); }
.utility__card:focus { outline: none; }
.utility__card h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.utility__foot { text-align: center; margin-top: 18px; }
.child { color: var(--app-text); font-weight: 750; }
.status-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.status-icon svg { width: 24px; height: 24px; }
.status-icon.good { background: color-mix(in oklab, var(--good) 15%, transparent); color: var(--good); }
.status-icon.bad { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--app); animation: spin .8s linear infinite; margin: 6px 0 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(56px, 10vw, 120px); max-width: 720px; }
.notfound__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0 0 12px; }
.notfound__code { background: linear-gradient(120deg, var(--brand), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .lede { margin-inline: auto; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: color-mix(in oklab, var(--app) 50%, var(--line)); text-decoration: none; }
.chip img { border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 64px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 14px 0; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-all; }
.footer-col__title { font-size: .95rem; margin-bottom: 12px; letter-spacing: -.01em; }
.footer-col__title a { color: var(--ink); text-decoration: none; }
.footer-col ul, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col ul a, .footer-bottom a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.footer-col ul a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Motion ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .app-subnav, .crumbs, .doc__toc, .faq__head .search, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { display: block; }
  .faq__item { break-inside: avoid; }
  .faq__answer { display: block !important; }
}
