/* =====================================================================
   GOLDEN KEY — COMPONENTS
   Только токены из tokens.css. Порядок: reset → типографика → layout →
   кнопки → поверхности → списки → контролы → навигация → шиты → утилиты.
   ===================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; /* Inter: однородная «a», цифры как у SF */
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: var(--font-mono); font-size: .88em; color: var(--label); background: var(--fill-4); padding: .1em .35em; border-radius: 5px; letter-spacing: 0; }
::selection { background: var(--gold-tint-2); color: var(--label); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.sq-stroke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sq[data-sq-stroke]:not(.sq-has-stroke) { box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- ANIMATION (видео-петли маскота, assets/js/anim.js) ---------- */
.anim { display: block; background: transparent; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; object-fit: contain; }

/* ---------- ICONS (Framework7 = SF Symbols-подобные) ---------- */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.125em; }
.i-sm { font-size: 16px; } .i-md { font-size: 20px; } .i-lg { font-size: 24px; } .i-xl { font-size: 28px; }

/* ---------- TYPOGRAPHY ---------- */
.t-display   { font: var(--w-bold) var(--t-display); letter-spacing: var(--t-display-ls); text-wrap: balance; }
.t-title-xl  { font: var(--w-bold) var(--t-title-xl); letter-spacing: var(--t-title-xl-ls); text-wrap: balance; }
.t-large     { font-size: var(--fs-large-title); line-height: var(--lh-large-title); letter-spacing: var(--ls-large-title); font-weight: var(--w-bold); }
.t-title-1   { font-size: var(--fs-title-1); line-height: var(--lh-title-1); letter-spacing: var(--ls-title-1); font-weight: var(--w-bold); }
.t-title-2   { font-size: var(--fs-title-2); line-height: var(--lh-title-2); letter-spacing: var(--ls-title-2); font-weight: var(--w-bold); }
.t-title-3   { font-size: var(--fs-title-3); line-height: var(--lh-title-3); letter-spacing: var(--ls-title-3); font-weight: var(--w-semibold); }
.t-headline  { font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--w-semibold); }
.t-body      { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); }
.t-callout   { font-size: var(--fs-callout); line-height: var(--lh-callout); letter-spacing: var(--ls-callout); }
.t-subhead   { font-size: var(--fs-subhead); line-height: var(--lh-subhead); letter-spacing: var(--ls-subhead); }
.t-footnote  { font-size: var(--fs-footnote); line-height: var(--lh-footnote); letter-spacing: var(--ls-footnote); }
.t-caption   { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.t-lead      { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: -0.015em; color: var(--label-2); text-wrap: pretty; }
.t-eyebrow   { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); color: var(--gold-text); letter-spacing: 0; }
.t-num       { font-variant-numeric: tabular-nums; }
.t-mono      { font-family: var(--font-mono); letter-spacing: 0; }
.c-2 { color: var(--label-2); } .c-3 { color: var(--label-3); } .c-gold { color: var(--gold-text); }
.c-green { color: var(--green); } .c-red { color: var(--red); }
.gold-text { /* акцентное слово в заголовке — плоский бренд-жёлтый */
  color: var(--gold);
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--page-margin) * 2); margin: 0 auto; padding: 0 var(--page-margin); }
.container-text { max-width: calc(var(--container-text) + var(--page-margin) * 2); }
.container-app { max-width: calc(var(--container-app) + var(--page-margin) * 2); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.center { text-align: center; } .grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- BUTTONS ----------
   Одна .btn-primary на экран. Размеры: lg 56 (hero / главное действие),
   md 50 (стандарт iOS), sm 36, xs 30 (в навигации). */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); min-width: var(--tap); padding: 0 22px;
  border-radius: var(--r-md);
  font-size: var(--fs-headline); font-weight: var(--w-semibold); letter-spacing: var(--ls-headline);
  white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform var(--d-press) var(--ease-ios), background var(--d-fast), opacity var(--d-fast), filter var(--d-fast);
}
.btn:active { transform: scale(var(--press-scale)); transition-duration: 60ms; }
.btn .i { font-size: 1.1em; }
.btn img { width: 22px; height: 22px; flex: none; }
.btn-lg { --h: 56px; padding: 0 28px; border-radius: 16px; font-size: 18px; }
.btn-sm { --h: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--fs-subhead); }
.btn-xs { --h: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-footnote); }
.btn-block { display: flex; width: 100%; }
.btn-pill { border-radius: var(--r-pill); }

.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:active { background: var(--gold-pressed); }
.btn-tinted  { background: var(--gold-tint); color: var(--gold-text); }
.btn-tinted:active { background: var(--gold-tint-2); }
.btn-gray    { background: var(--fill-3); color: var(--label); }
.btn-gray:active { background: var(--fill-1); }
.btn-plain   { color: var(--gold-text); padding: 0 8px; height: auto; min-height: var(--tap); }
.btn-plain:active { opacity: 0.55; transform: none; }
.btn-white   { background: #fff; color: #000; }
.btn-destructive { background: var(--red-tint); color: var(--red); }
.btn[disabled], .btn.is-disabled { opacity: 0.35; pointer-events: none; box-shadow: none; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--gold-hover); }
  .btn-tinted:hover  { background: var(--gold-tint-2); }
  .btn-gray:hover    { background: var(--fill-2); }
  .btn-plain:hover   { opacity: 0.8; }
}
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--on-gold) transparent var(--on-gold) var(--on-gold);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* «Ссылка ›» — вторичное действие в стиле apple.com */
.link-more { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-text); font-weight: var(--w-medium); min-height: var(--tap); }
.link-more .i { font-size: 0.8em; transition: transform var(--d-fast) var(--ease-out); }
@media (hover: hover) { .link-more:hover .i { transform: translateX(3px); } .link-more:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- SURFACES ---------- */
.card { background: var(--surface-1); border-radius: var(--r-lg); padding: var(--s-5); position: relative; }
.card-xl { border-radius: var(--r-xl); padding: var(--s-8); }
.card-inset { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-4); }
.card-gold {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 196, 20, 0.22), rgba(255, 196, 20, 0) 60%),
    var(--surface-1);
}
.card-press { transition: transform var(--d-base) var(--ease-ios); }
.card-press:active { transform: scale(var(--press-scale-card)); }

/* Тайл иконки (как иконки в Настройках iOS) */
.icon-tile {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--gold-tint); color: var(--gold-text); font-size: 20px;
}
.icon-tile-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 32px; }
.icon-tile-xl { width: 64px; height: 64px; border-radius: 17px; font-size: 38px; }
.icon-tile.is-gold { background: var(--gold); color: var(--on-gold); }
.icon-tile.is-gray { background: var(--surface-3); color: var(--label); }
.icon-tile.is-green { background: var(--green-tint); color: var(--green); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--fs-footnote); font-weight: var(--w-semibold); letter-spacing: 0;
  background: var(--fill-3); color: var(--label-2); white-space: nowrap;
}
.badge-gold  { background: var(--gold-tint); color: var(--gold-text); }
.badge-solid { background: var(--gold); color: var(--on-gold); }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-red   { background: var(--red-tint); color: var(--red); }
.badge-orange{ background: var(--orange-tint); color: var(--orange); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot-live { box-shadow: 0 0 0 0 currentColor; animation: live 2.4s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }

/* ---------- GROUPED INSET LIST (как «Настройки» iOS) ---------- */
.list-header { padding: 0 var(--s-4) 7px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-transform: none; }
.list-footer { padding: 7px var(--s-4) 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.list { background: var(--surface-1); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  min-height: 52px; padding: 10px var(--s-4); width: 100%; text-align: left;
  transition: background var(--d-fast);
}
.list-row + .list-row::before, .list-row + details > .list-row::before, details + details > .list-row::before, details + .list-row::before {
  content: ""; position: absolute; top: 0; right: 0; left: var(--sep-inset, var(--s-4)); height: 0.5px; background: var(--separator);
}
.list.has-icons { --sep-inset: 58px; }
.list-row .title { flex: 1; min-width: 0; }
.list-row .title small { display: block; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); margin-top: 1px; }
.list-row .value { color: var(--label-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row .chev { color: var(--label-3); font-size: 13px; }
a.list-row:active, button.list-row:active, summary.list-row:active { background: var(--surface-2); }
@media (hover: hover) { a.list-row:hover, button.list-row:hover, summary.list-row:hover { background: rgba(255, 255, 255, 0.03); } }
.list-row.is-destructive { color: var(--red); justify-content: center; }

/* Accordion в списке (FAQ) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details .chev-down { color: var(--label-3); font-size: 14px; transition: transform var(--d-base) var(--ease-ios); }
details[open] .chev-down { transform: rotate(180deg); color: var(--gold-text); }
details .answer { padding: 0 var(--s-4) var(--s-5); color: var(--label-2); font-size: var(--fs-callout); line-height: 1.5; letter-spacing: var(--ls-callout); max-width: 62ch; }
details .answer a { color: var(--gold-text); }

/* ---------- TOGGLE (51×31) ---------- */
.toggle { position: relative; width: 51px; height: 31px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle .track { position: absolute; inset: 0; border-radius: 16px; background: var(--fill-1); transition: background var(--d-base) var(--ease-ios); }
.toggle .thumb {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  transition: transform var(--d-base) var(--ease-spring);
}
.toggle input:checked ~ .track { background: var(--gold); }
.toggle input:checked ~ .thumb { transform: translateX(20px); }
.toggle input:focus-visible ~ .track { box-shadow: var(--focus-ring); }

/* ---------- SEGMENTED CONTROL ---------- */
.segmented {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 2px; border-radius: 10px; background: var(--fill-3); isolation: isolate;
}
.segmented button {
  position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 8px;
  font-size: var(--fs-footnote); font-weight: var(--w-medium); color: var(--label); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: opacity var(--d-fast);
}
.segmented button[aria-selected="true"] { font-weight: var(--w-semibold); }
.segmented button:active:not([aria-selected="true"]) { opacity: .6; }
.segmented .thumb {
  position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 0; border-radius: 8px;
  background: var(--surface-3); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  transition: transform var(--d-base) var(--ease-spring), width var(--d-base) var(--ease-spring);
}
.segmented-lg button { height: 40px; font-size: var(--fs-subhead); padding: 0 18px; }
.segmented-lg { border-radius: 12px; } .segmented-lg button, .segmented-lg .thumb { border-radius: 10px; }

/* ---------- INPUTS ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-footnote); color: var(--label-2); padding-left: 4px; }
.input {
  height: 52px; width: 100%; padding: 0 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 0; outline: none; font-size: var(--fs-body);
  transition: box-shadow var(--d-fast);
}
.input::placeholder { color: var(--label-3); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--gold); }
.input.is-error { box-shadow: inset 0 0 0 1.5px var(--red); }
.field .hint { font-size: var(--fs-footnote); color: var(--label-2); padding-left: 4px; }
.field .hint.is-error { color: var(--red); }

/* Поле-ссылка с копированием */
.copy-field {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 16px;
  background: var(--surface-2); border-radius: var(--r-md); min-width: 0;
}
.copy-field .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 14px; color: var(--label-2); }

/* ---------- NAV BAR (стекло) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  transition: background var(--d-fast), box-shadow var(--d-fast);
}
.nav.is-scrolled, .nav.is-solid {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: var(--blur-chrome); backdrop-filter: var(--blur-chrome);
}
/* «Scroll edge»: вместо резкой линии — продолжение размытия и затемнения, плавно уходящее в ноль (как iOS 26) */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
  opacity: 0; transition: opacity var(--d-fast);
}
.nav.is-scrolled::after, .nav.is-solid::after { opacity: 1; }
.nav .container { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.nav-links { display: none; gap: var(--s-6); font-size: var(--fs-footnote); color: var(--label-2); }
.nav-links a { min-height: var(--tap); display: inline-flex; align-items: center; transition: color var(--d-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--label); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
@media (min-width: 834px) { .nav-links { display: flex; } }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; fill: currentColor; }
.brand-name { font-size: 17px; font-weight: var(--w-bold); letter-spacing: -0.02em; }
.brand-name span { color: var(--label-2); font-weight: var(--w-semibold); }

/* ---------- TAB BAR (мобильный, кабинет) ----------
   Плавающая капсула как в iOS 26: не лежит на дне, а висит с отступом --bar-gap
   (панель браузера снизу тоже плавает и прячется при скролле). Выбранная вкладка — капсула-подсветка.
   Без «жидкого стекла»: плотная тёмная поверхность + тонкий блик + тень. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none;
  padding: 0 var(--s-4) calc(var(--bar-gap) + env(safe-area-inset-bottom));
}
.tabbar::before { /* плавное затемнение контента под капсулой */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% + 36px); pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,0) 100%);
}
.tabbar nav {
  position: relative; pointer-events: auto; height: var(--tabbar-h); max-width: 440px; margin: 0 auto; padding: 5px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  border-radius: var(--r-pill); background: var(--bar-surface);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.14), inset 0 0 0 0.5px rgba(255,255,255,.07), 0 12px 32px rgba(0,0,0,.55);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: var(--w-medium); letter-spacing: 0.01em; color: var(--label-2); white-space: nowrap;
  transition: background var(--d-fast), color var(--d-fast), transform var(--d-press) var(--ease-ios);
}
.tabbar a:active { transform: scale(.94); }
.tabbar a .i { font-size: 23px; }
.tabbar a[aria-current="page"] { color: var(--gold-text); background: var(--fill-3); }
@media (min-width: 834px) { .tabbar { display: none; } }

/* ---------- SHEET / MODAL ----------
   Мобильный: шит снизу с граббером. ≥734px: центрированная модалка. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; background: var(--overlay);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity var(--d-sheet) var(--ease-ios);
}
.sheet {
  position: fixed; z-index: 101; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto;
  background: var(--surface-sheet); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 8px var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform var(--d-sheet) var(--ease-ios);
  box-shadow: var(--shadow-sheet);
}
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-1); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-4); min-height: 32px; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-3); color: var(--label-2); display: grid; place-items: center; font-size: 12px; position: relative; }
.sheet-close::after { content: ""; position: absolute; inset: -7px; } /* зона касания 44 */
.is-sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet.is-open { transform: none; }
@media (min-width: 734px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(440px, calc(100vw - 48px));
    border-radius: var(--r-2xl); padding: var(--s-6) var(--s-8) var(--s-8);
    transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none;
    transition: transform var(--d-sheet) var(--ease-ios), opacity var(--d-fast);
  }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet .grabber { display: none; }
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 14px; border-radius: var(--r-pill);
  background: var(--material-regular); -webkit-backdrop-filter: var(--blur-regular); backdrop-filter: var(--blur-regular);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.12), 0 10px 40px rgba(0,0,0,.5);
  font-size: var(--fs-subhead); font-weight: var(--w-semibold);
  transform: translate(-50%, 140%); opacity: 0; transition: transform var(--d-sheet) var(--ease-ios), opacity var(--d-fast);
}
.toast .i { color: var(--green); font-size: 20px; }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.has-tabbar .toast { bottom: calc(var(--tabbar-h) + var(--bar-gap) + 14px + env(safe-area-inset-bottom)); }

/* ---------- PROGRESS ---------- */
.progress { height: 6px; border-radius: 3px; background: var(--fill-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

/* ---------- STEP NUMBER ---------- */
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 15px; font-weight: var(--w-bold); background: var(--gold-tint); color: var(--gold-text); font-variant-numeric: tabular-nums;
}
.step-num.is-done { background: var(--green); color: #000; }
.step-num.is-active { background: var(--gold); color: var(--on-gold); }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; } .reveal-d2 { transition-delay: 160ms; } .reveal-d3 { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .nav.is-solid { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar nav { background: var(--surface-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::after { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { background: var(--surface-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
