/* SocialAppFix.com design system — tokens, base, components.
   Documented in docs/phase-02/PHASE-02-DESIGN-SYSTEM.md */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  /* colour */
  --brand: #0B5CFF;
  --brand-strong: #0846C7;
  --brand-ink: #062F86;
  --brand-wash: #EEF4FF;
  --brand-wash-2: #DCE8FF;
  --ink: #0B1630;
  --text: #24324B;
  --muted: #56647D;
  --line: #E3E9F3;
  --line-strong: #C9D3E3;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --success: #0E7A4F; --success-wash: #E9F8F1; --success-line: #BCE7D2;
  --warning: #8A5A00; --warning-wash: #FFF6E0; --warning-line: #F5DD9E;
  --danger: #B42318; --danger-wash: #FEEFEE; --danger-line: #F7C6C2;
  --info: #0846C7; --info-wash: #EEF4FF; --info-line: #C8D9FF;
  --footer: #0E1A33; --footer-text: #C3CCDD; --footer-line: #23314F;
  --focus: #0B5CFF;
  /* type */
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.25rem;
  --fs-h3: clamp(1.15rem, 1rem + .6vw, 1.35rem);
  --fs-h2: clamp(1.45rem, 1.15rem + 1.3vw, 2rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.8vw, 3.35rem);
  /* space (4px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  /* shape */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11,22,48,.05), 0 2px 8px rgba(11,22,48,.05);
  --shadow-2: 0 2px 4px rgba(11,22,48,.05), 0 12px 32px rgba(11,22,48,.10);
  /* layout */
  --container: 1200px; --prose: 760px; --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --header-h: 68px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.6; color: var(--text); background: var(--surface); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex: none; vertical-align: middle; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 var(--s3); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s4); }
a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--brand-wash-2); }
strong { color: var(--ink); font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: var(--s3); color: #fff; }
.ui { font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 .35em; white-space: nowrap; font-size: .95em; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.lede { font-size: var(--fs-lg); color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ---------- buttons ---------- */
.btn { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: .6rem 1.15rem;
  border-radius: var(--r-pill); border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--fs-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { --btn-bg: var(--surface-2); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-line: var(--brand); box-shadow: 0 4px 14px rgba(11,92,255,.25); }
.btn-primary:hover { --btn-bg: var(--brand-strong); --btn-line: var(--brand-strong); color: #fff; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-line: #fff; }
.btn-light:hover { --btn-bg: var(--brand-wash); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; --btn-fg: var(--brand-strong); }
.btn-ghost:hover { --btn-bg: var(--brand-wash); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.icon-btn:hover { background: var(--brand-wash); color: var(--brand-strong); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.wordmark-tld { color: var(--brand); }
.primary-nav { margin-left: auto; order: 3; }
.header-actions { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-list { list-style: none; margin: 0; padding: var(--s3) var(--gutter) var(--s5); position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); display: none; }
.js .nav-list[data-open="true"], .no-js .nav-list { display: block; }
.no-js .menu-toggle { display: none; }
.nav-list a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-list a:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-wash); }
.nav-cta-mobile { margin-top: var(--s3); }
.nav-cta-mobile a.btn { color: #fff; justify-content: center; }
.nav-cta-mobile a.btn:hover { background: var(--brand-strong); }

@media (min-width: 1024px) {
  .primary-nav { order: 0; margin-left: auto; margin-right: auto; }
  .menu-toggle { display: none; }
  .nav-list, .js .nav-list[data-open="true"], .no-js .nav-list { display: flex; position: static; padding: 0; box-shadow: none; border: 0; gap: var(--s1); background: none; }
  .nav-list a { min-height: 40px; padding: 0 .85rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text); position: relative; background: none !important; }
  .nav-list a:hover { color: var(--brand-strong); }
  .nav-list a[aria-current="page"] { color: var(--brand-strong); }
  .nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -14px; height: 3px; border-radius: 3px; background: var(--brand); }
  .nav-cta-mobile { display: none; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
}

/* ---------- sections & layout ---------- */
.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-tight { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.page-hero { background: linear-gradient(180deg, var(--brand-wash) 0%, #fff 100%); border-bottom: 1px solid var(--line); padding-block: var(--s6) var(--s6); }
.page-hero h1 { margin-bottom: var(--s3); }
.page-hero .lede { margin-bottom: 0; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 85% 10%, #DDE9FF 0%, rgba(221,233,255,0) 60%), linear-gradient(180deg, #F2F6FF 0%, #F7F9FE 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: var(--s6); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--s6); }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: var(--s4); }
.hero h1 .accent { color: var(--brand); display: block; }
.hero .lede { margin-bottom: var(--s5); }
.hero-search { max-width: 600px; }
.hero-hints { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); font-size: var(--fs-xs); color: var(--muted); align-items: center; }
.hero-hints a { color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .7rem; text-decoration: none; }
.hero-hints a:hover { border-color: var(--brand); color: var(--brand-strong); }
.hero-art { position: relative; height: 340px; display: none; }
@media (min-width: 1024px) { .hero-art { display: block; height: 380px; } }
.phone { position: absolute; left: 50%; top: 50%; width: 168px; height: 320px; transform: translate(-50%,-50%); border-radius: 30px; background: #fff; border: 7px solid #0E1A33; box-shadow: 0 30px 60px rgba(11,22,48,.22); display: grid; place-items: center; text-align: center; padding: var(--s4); }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 56px; height: 14px; transform: translateX(-50%); background: #0E1A33; border-radius: 10px; }
.phone .logo-mark { margin: 0 auto var(--s3); }
.phone-name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.2; }
.phone-name span { color: var(--brand); }
.phone-tag { font-size: .72rem; color: var(--muted); margin-top: var(--s2); line-height: 1.4; }
.float-tile { position: absolute; }
.float-tile .app-tile { box-shadow: var(--shadow-2); }
.ray { position: absolute; width: 46px; height: 5px; border-radius: 4px; background: #B9CFFF; }
@media (prefers-reduced-motion: no-preference) {
  .float-tile { animation: bob 6s ease-in-out infinite; }
  .float-tile:nth-child(2n) { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}

/* popular apps strip */
.app-strip { padding-block: 0 var(--s6); }
.app-strip h2 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s3); color: var(--ink); }
.chip-row { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); scrollbar-width: thin; list-style: none; margin: 0; padding-left: 0; }
.chip-row li { flex: none; }
.app-chip { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .35rem .9rem .35rem .4rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-1); }
a.app-chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.app-chip.is-soon { color: var(--muted); box-shadow: none; background: rgba(255,255,255,.6); }
.app-chip .soon { font-weight: 400; font-size: .72rem; color: var(--muted); }

/* ---------- app tile & cards ---------- */
.app-tile { display: inline-grid; place-items: center; flex: none; background: var(--tile); color: var(--tile-ink); font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; border-radius: 12px; border: 1px solid rgba(11,22,48,.06); }
.app-tile-sm { width: 40px; height: 40px; font-size: .95rem; border-radius: 10px; }
.app-tile-md { width: 52px; height: 52px; font-size: 1.15rem; }
.app-tile-lg { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 18px; }
.app-tile-xs { width: 34px; height: 34px; font-size: .8rem; border-radius: 9px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); }
.app-card { display: flex; flex-direction: column; gap: var(--s3); height: 100%; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-card:hover { border-color: var(--brand-wash-2); box-shadow: var(--shadow-2); }
.app-card h3 { margin: var(--s2) 0 0; font-size: var(--fs-lg); }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card h3 a:focus-visible { outline: none; }
.app-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.app-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.app-card .card-foot { margin-top: auto; padding-top: var(--s2); font-weight: 600; font-size: var(--fs-sm); color: var(--brand-strong); display: inline-flex; align-items: center; gap: .35rem; }
.app-card.is-soon { background: var(--surface-2); box-shadow: none; }
.app-card.is-soon .card-foot { color: var(--muted); }

/* category cards */
.cat-card { display: flex; gap: var(--s4); align-items: flex-start; }
.cat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-strong); flex: none; }
.cat-card h3 { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.cat-card p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s2); }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.cat-card li a { font-size: var(--fs-sm); font-weight: 600; }

/* guide rows */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.guide-row-link { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.guide-row-link:hover { border-color: var(--brand-wash-2); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; }
.guide-row-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.guide-row-title { font-weight: 600; color: var(--ink); line-height: 1.35; }
.guide-row-link:hover .guide-row-title { color: var(--brand-strong); text-decoration: underline; }
.guide-row-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.guide-row-tags { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s1); color: var(--muted); font-size: .75rem; flex-wrap: wrap; }
.guide-row-chev { color: var(--muted); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-brand { background: var(--brand-wash); color: var(--brand-strong); border-color: var(--info-line); }
.badge-success { background: var(--success-wash); color: var(--success); border-color: var(--success-line); }
.badge-warning { background: var(--warning-wash); color: var(--warning); border-color: var(--warning-line); }
.badge-danger { background: var(--danger-wash); color: var(--danger); border-color: var(--danger-line); }

/* ---------- search ---------- */
.search-form { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: 0 6px 24px rgba(11,22,48,.08); padding: 6px; }
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,92,255,.18), 0 6px 24px rgba(11,22,48,.08); }
.search-icon { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 var(--fs-md) var(--font-body); color: var(--ink); padding: .7rem .5rem .7rem 46px; min-height: 48px; }
.search-input:focus { outline: none; }
.search-input::placeholder { color: #7D8AA3; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-submit { flex: none; }
.search-md .search-input { min-height: 44px; }
.search-results-meta { margin: var(--s4) 0; color: var(--muted); font-size: var(--fs-sm); min-height: 1.6em; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.result-type { font-size: .75rem; }
.search-empty { text-align: left; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: var(--s3) 0 0; }
.suggest-chips a, .suggest-chips button { display: inline-flex; min-height: 40px; align-items: center; padding: 0 .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 var(--fs-xs) var(--font-body); text-decoration: none; cursor: pointer; }
.suggest-chips a:hover, .suggest-chips button:hover { border-color: var(--brand); color: var(--brand-strong); }
mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- callouts ---------- */
.callout { --c-fg: var(--info); --c-bg: var(--info-wash); --c-line: var(--info-line);
  display: flex; gap: var(--s3); padding: var(--s4) var(--s4); border: 1px solid var(--c-line); border-left: 4px solid var(--c-fg); background: var(--c-bg); border-radius: var(--r-md); margin: var(--s5) 0; }
.callout-icon { color: var(--c-fg); padding-top: 2px; flex: none; }
.callout-body { min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 600; color: var(--ink); margin-bottom: var(--s1); }
.callout p { margin-bottom: var(--s2); }
.callout ul { margin: var(--s2) 0 0; padding-left: 1.2rem; }
.callout-tip { --c-fg: var(--success); --c-bg: var(--success-wash); --c-line: var(--success-line); }
.callout-success { --c-fg: var(--success); --c-bg: var(--success-wash); --c-line: var(--success-line); }
.callout-caution { --c-fg: var(--warning); --c-bg: var(--warning-wash); --c-line: var(--warning-line); }
.callout-warning { --c-fg: var(--danger); --c-bg: var(--danger-wash); --c-line: var(--danger-line); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 var(--s4); padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; }
.breadcrumbs li + li::before { content: "\203A"; color: var(--line-strong); font-size: 1rem; line-height: 1; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-strong); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- home: how it works, finder promo, tips ---------- */
.steps-row { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }
.steps-row li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); position: relative; }
.steps-row li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .95rem var(--font-display); margin-bottom: var(--s3); }
.steps-row h3 { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.steps-row p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.split { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .split { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.promo { background: linear-gradient(135deg, #EEF4FF, #F5F8FF); border: 1px solid var(--info-line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); display: grid; gap: var(--s5); }
@media (min-width: 640px) { .promo { grid-template-columns: 1fr auto; align-items: center; } }
.promo h2 { margin-bottom: var(--s2); }
.promo p { color: var(--text); margin-bottom: var(--s4); }
.promo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.promo-steps li { display: flex; align-items: center; gap: var(--s2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .45rem .8rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); box-shadow: var(--shadow-1); }
.promo-steps .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; }
.promo-steps li:last-child .n { background: var(--success); }
.tips { background: var(--success-wash); border: 1px solid var(--success-line); border-radius: var(--r-lg); padding: var(--s5); }
.tips h2 { font-size: var(--fs-xl); display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.tips h2 .icon { color: var(--success); }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.check-list li { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-sm); }
.check-list li .icon { color: var(--success); margin-top: 3px; }
.trust-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: var(--s3); }
.trust-item .cat-icon { background: #fff; border: 1px solid var(--line); }
.trust-item h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s1); }
.trust-item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: var(--s3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); font-weight: 600; color: var(--ink); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-a { padding: 0 var(--s5) var(--s4); }
.faq .faq-a > :last-child { margin-bottom: 0; }
.faq h3 { font: inherit; color: inherit; margin: 0; }

/* ---------- article ---------- */
.article-hero { background: linear-gradient(180deg, var(--brand-wash) 0%, #fff 100%); border-bottom: 1px solid var(--line); padding-block: var(--s5) var(--s6); }
.article-hero h1 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.85rem); max-width: 22ch; }
.article-hero .lede { max-width: 68ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s4); }
.article-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.article-layout { display: grid; gap: var(--s6); padding-block: var(--s6) var(--s8); }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, var(--prose)) 280px; justify-content: space-between; } }
.article-aside { order: -1; }
@media (min-width: 1100px) { .article-aside { order: 0; } .aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.prose { min-width: 0; font-size: 1.0625rem; line-height: 1.72; }
.prose h2 { margin-top: var(--s7); padding-top: var(--s2); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--muted); }
.answer-box { background: #fff; border: 1px solid var(--info-line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); position: relative; }
.answer-box::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.answer-box h2 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; margin: 0 0 var(--s2); padding: 0; color: var(--brand-strong); display: flex; gap: var(--s2); align-items: center; }
.answer-box p:last-child { margin-bottom: 0; }
.triage { margin-top: var(--s5); }
.triage-q { font-weight: 600; color: var(--ink); margin-bottom: var(--s2); }
.triage-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--s2); }
@media (min-width: 640px) { .triage-list { grid-template-columns: 1fr 1fr; } }
.triage-list li { margin: 0 !important; }
.triage-list a { display: flex; gap: var(--s2); align-items: center; justify-content: space-between; height: 100%; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.triage-list a:hover { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-strong); }
.symptom-list { list-style: none; padding: 0 !important; display: grid; gap: var(--s2); }
.symptom-list li { display: flex; gap: var(--s2); margin: 0 !important; }
.symptom-list .icon { color: var(--brand); margin-top: 5px; }
.applies { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.platform-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: .8rem; font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: var(--s4) 0 var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }

.cause-list { list-style: none; padding: 0 !important; display: grid; gap: var(--s3); counter-reset: none; }
.cause-list li { margin: 0 !important; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cause-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
.cause-head strong { font-size: 1rem; }
.cause-list p { margin: 0; font-size: var(--fs-sm); }

.quick-checks { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.quick-checks h2 { margin-top: 0 !important; font-size: var(--fs-xl); }
.quick-checks .check-list li { font-size: 1rem; }

.fix { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin: 0 0 var(--s5); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.fix-head { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5) var(--s5) var(--s3); }
.fix-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font: 700 1rem var(--font-display); }
.fix h3 { margin: 0 0 var(--s2); font-size: var(--fs-h3); padding-top: 6px; }
.fix-meta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fix-body { padding: 0 var(--s5) var(--s5); }
.fix-why { color: var(--text); }
.fix-why strong { color: var(--ink); }
.fix-verify { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3) var(--s4); background: var(--success-wash); border-radius: var(--r-sm); font-size: var(--fs-sm); margin-top: var(--s4); }
.fix-verify .icon { color: var(--success); margin-top: 3px; }
.fix-verify p { margin: 0; }
.fix-note { font-size: var(--fs-sm); color: var(--muted); margin: var(--s3) 0 0; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: var(--s3) 0 0 !important; display: grid; gap: var(--s2); }
.steps > li { counter-increment: step; position: relative; padding: .15rem 0 .15rem 2.6rem; margin: 0 !important; min-height: 2rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-strong); border: 1px solid var(--info-line); font: 700 .82rem var(--font-body); }

/* device tabs */
.device-tabs { margin-top: var(--s3); }
.tablist { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand-strong); border-bottom-color: var(--brand); }
.tabpanel { padding-top: var(--s3); }
.tabpanel-title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin: var(--s4) 0 var(--s1); display: flex; align-items: center; gap: .4rem; }
.js .device-tabs .tabpanel-title { display: none; }
.no-js .device-tabs .tablist { display: none; }

/* error glossary */
.error-list { display: grid; gap: var(--s3); }
.error-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); background: #fff; }
.error-msg { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92rem; background: #0E1A33; color: #E8EEF9; padding: .5rem .75rem; border-radius: 8px; display: block; margin-bottom: var(--s3); overflow-wrap: anywhere; }
.error-item dl { margin: 0; display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.error-item dt { font-weight: 600; color: var(--ink); }
.error-item dd { margin: 0; }

/* official route */
.official { border: 1px solid var(--info-line); background: var(--info-wash); border-radius: var(--r-lg); padding: var(--s5); }
.official h2 { margin-top: 0 !important; font-size: var(--fs-xl); display: flex; align-items: center; gap: var(--s2); }
.official-list { list-style: none; padding: 0 !important; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.official-list li { margin: 0 !important; }
.official-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: .8rem 1rem; background: #fff; border: 1px solid var(--info-line); border-radius: var(--r-md); font-weight: 600; text-decoration: none; }
.official-list a:hover { border-color: var(--brand); }
.official-list .src { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
a.ext::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .25em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat; vertical-align: baseline; opacity: .8; }

/* TOC */
.toc { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s4); font-weight: 600; color: var(--ink); min-height: 48px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { transition: transform .2s; color: var(--muted); }
.toc[open] summary .icon { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 var(--s3) var(--s4); display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.toc a { display: block; padding: .45rem .7rem; border-radius: 8px; font-size: var(--fs-sm); color: var(--text); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { background: var(--surface-2); color: var(--brand-strong); }
.toc a[aria-current="true"] { color: var(--brand-strong); background: var(--brand-wash); border-left-color: var(--brand); font-weight: 600; }
.aside-card { margin-top: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--fs-sm); }
.aside-card h2 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; margin: 0 0 var(--s2); }
.aside-card p { margin-bottom: var(--s3); color: var(--muted); }

/* feedback */
.feedback { margin-top: var(--s7); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.feedback h2 { font-size: var(--fs-xl); margin: 0 0 var(--s3) !important; padding: 0 !important; }
.feedback-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.feedback-actions .btn[aria-pressed="true"] { --btn-bg: var(--brand-wash); --btn-line: var(--brand); --btn-fg: var(--brand-strong); }
.feedback-result { margin-top: var(--s4); }
.feedback-result[hidden] { display: none; }
.feedback-note { font-size: var(--fs-xs); color: var(--muted); margin: var(--s3) 0 0; }

/* sources */
.sources { font-size: var(--fs-sm); }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: var(--s3); }
.sources .src-meta { display: block; color: var(--muted); font-size: var(--fs-xs); }
.review-box { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: var(--fs-sm); margin-top: var(--s5); }
.review-box .icon { color: var(--success); margin-top: 2px; }
.review-box p { margin: 0; }
.changelog { font-size: var(--fs-sm); }
.indep-note { font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s6); }

/* related */
.related { margin-top: var(--s6); }

/* router (pillar) */
.router { display: grid; gap: var(--s3); list-style: none; padding: 0 !important; }
@media (min-width: 640px) { .router { grid-template-columns: 1fr 1fr; } }
.router li { margin: 0 !important; }
.router a { display: flex; gap: var(--s3); align-items: flex-start; height: 100%; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-decoration: none; color: var(--text); }
.router a:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.router .cat-icon { width: 38px; height: 38px; }
.router strong { display: block; color: var(--ink); line-height: 1.35; margin-bottom: 2px; }
.router a:hover strong { color: var(--brand-strong); text-decoration: underline; }
.router span.d { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; display: block; }

/* ---------- fix finder ---------- */
.finder { max-width: 860px; }
.finder-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow-2); }
.finder-progress { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.progress-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .2s; }
.finder fieldset { border: 0; padding: 0; margin: 0; }
.finder legend { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; color: var(--ink); margin-bottom: var(--s2); padding: 0; line-height: 1.3; }
.finder-help { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s4); }
.choices { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .choices.two-col { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); line-height: 1.35; }
.choice label .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.choice .radio-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.choice input:checked + label { border-color: var(--brand); background: var(--brand-wash); }
.choice input:checked + label .radio-dot { border-color: var(--brand); }
.choice input:checked + label .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.choice input:checked + label::after { content: "Selected"; margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--brand-strong); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice label:hover { border-color: var(--brand-wash-2); }
.finder-nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.finder-error { color: var(--danger); font-weight: 600; font-size: var(--fs-sm); margin-top: var(--s3); display: flex; gap: var(--s2); align-items: center; }
.finder-error[hidden] { display: none; }
.finder-result h2 { font-size: var(--fs-h2); }
.result-reason { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s4); font-size: var(--fs-sm); }
.result-reason ul { margin: var(--s2) 0 0; padding-left: 1.2rem; }
.answers-summary { font-size: var(--fs-sm); }
.answers-summary dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); margin: var(--s2) 0 0; }
.answers-summary dt { color: var(--muted); }
.answers-summary dd { margin: 0; font-weight: 600; color: var(--ink); }
.answers-summary button { font: inherit; color: var(--brand-strong); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); margin-top: 0; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s6); padding-block: var(--s7) var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr .8fr .8fr .8fr 1.3fr; } .footer-brand { grid-column: auto; } }
.brand-invert { color: #fff; }
.brand-invert:hover { color: #fff; }
.brand-invert .wordmark-tld { color: #8DB2FF; }
.footer-tagline { margin: var(--s3) 0 var(--s4); color: #fff; }
.footer-indep { display: flex; gap: var(--s2); font-size: var(--fs-xs); line-height: 1.55; color: var(--footer-text); max-width: 46ch; }
.footer-indep .icon { margin-top: 3px; }
.footer-title { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: #fff; margin-bottom: var(--s3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer-col a { color: var(--footer-text); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-report p { font-size: var(--fs-xs); }
.footer-report .btn { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-block: var(--s4) var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-safety { display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- misc pages ---------- */
.legal { max-width: var(--prose); padding-block: var(--s6) var(--s8); }
.legal h2 { margin-top: var(--s6); }
.legal ul { padding-left: 1.3rem; }
.notfound { text-align: center; padding-block: var(--s9); max-width: 640px; }
.notfound .code { font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display); color: var(--brand-wash-2); margin-bottom: var(--s3); }
.notfound .search-form { margin: var(--s5) 0; text-align: left; }
.empty-state { text-align: center; padding: var(--s6) var(--s5); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); }
.empty-state .icon { margin: 0 auto var(--s3); color: var(--muted); }
.empty-state p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--brand-wash-2); border-top-color: var(--brand); display: inline-block; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.ds-swatch { border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; font-size: var(--fs-xs); }
.ds-swatch span { display: block; height: 64px; }
.ds-swatch p { margin: 0; padding: .5rem .7rem; }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.ds-section { margin-bottom: var(--s7); }
.ds-section > h2 { border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.input { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .6rem .8rem; font: inherit; color: var(--ink); background: #fff; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,92,255,.18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field { display: grid; gap: var(--s1); max-width: 420px; }
.field label { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; display: flex; gap: .3rem; align-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; }

@media print {
  .site-header, .site-footer, .article-aside, .feedback, .skip-link, .hero-art { display: none !important; }
  .js .device-tabs .tabpanel { display: block !important; }
  .js .device-tabs .tabpanel-title { display: flex; }
  a { color: inherit; }
  .fix { break-inside: avoid; }
}

/* split-column promo stays single column; phone label fits */
@media (min-width: 640px) { .split .promo { grid-template-columns: 1fr; } .split .promo-steps { grid-template-columns: repeat(3, auto); justify-content: start; } }
.phone { width: 190px; }
.phone-name { font-size: .88rem; }

/* small-screen header + hero width safety */
.hero-inner > *, .split > *, .article-layout > * { min-width: 0; }
.search-input { width: 100%; }
@media (max-width: 479px) {
  .header-inner { gap: var(--s2); }
  .menu-toggle { padding: 0 .7rem; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wordmark { font-size: 1.12rem; }
  .brand .logo-mark { width: 30px; height: 30px; }
  .search-submit { padding-inline: .9rem; }
}
@media (max-width: 1099px) { .article-aside .aside-card { display: none; } }
