@font-face { font-family: 'Space Grotesk'; src: url(/fonts/space-grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Seg'; src: url(/fonts/dseg7.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'SG Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 96%; descent-override: 26%; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#f2f3f1, #0f1113);
  --card: light-dark(#fbfbfa, #16191c);
  --raised: light-dark(#e8eae6, #1f2327);
  --text: light-dark(#15181b, #e9ecee);
  --text-2: light-dark(#474f57, #a7aeb5);
  --text-3: light-dark(#5f6870, #8c949c);
  --line: light-dark(rgb(21 24 27 / .1), rgb(233 236 238 / .09));
  --line-2: light-dark(rgb(21 24 27 / .18), rgb(233 236 238 / .16));
  --btn: light-dark(#15181b, #c8db45);
  --btn-text: light-dark(#f7f8f6, #161c06);
  --btn-hover: light-dark(#2b3035, #d6e75c);
  --lcd: light-dark(#c5d83f, #111509);
  --lcd-ink: light-dark(#1b220b, #c8db45);
  --lcd-ghost: light-dark(rgb(27 34 11 / .09), rgb(200 219 69 / .08));
  --lcd-frame: light-dark(#2a2f33, #23282c);
  --lcd-frame-text: light-dark(#c9ced3, #a7aeb5);
  --link: light-dark(#3f5000, #c8db45);
  --lamp-off: light-dark(#cfd3cf, #2a2f33);
  --lamp-green: #34c46a;
  --lamp-orange: #f2933a;
  --ok: light-dark(#1f7a3e, #5fcf8a);
  --warn: light-dark(#8a5a00, #e8b04a);
  --u-body: light-dark(#e3e5e1, #262b30);
  --u-face: light-dark(#f4f5f3, #2f353a);
  --u-slot: light-dark(#babfba, #14171a);
  --u-dark: light-dark(#8f969c, #4a5259);
  --u-shadow: light-dark(rgb(21 24 27 / .08), rgb(0 0 0 / .35));
  --radius: 10px;
  --radius-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 16px;
  --font: 'Space Grotesk', 'SG Fallback', system-ui, sans-serif;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
h3 { font-size: 18px; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 16px; text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -48px; background: var(--btn); color: var(--btn-text); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--text-3); }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.num { font-variant-numeric: tabular-nums; }

/* Segment display: lit digits over ghost 8s */
.seg { font-family: 'Seg', monospace; font-weight: 700; font-style: normal; position: relative; display: inline-block; line-height: 1; letter-spacing: 0.06em; }
.seg[data-ghost]::before { content: attr(data-ghost); position: absolute; inset: 0; color: var(--lcd-ghost); pointer-events: none; }
.seg > span { position: relative; }
.chip { display: inline-flex; align-items: center; background: var(--lcd); color: var(--lcd-ink); border-radius: 4px; padding: 3px 6px; font-size: 12px; }
.chip .seg { font-size: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; margin-right: auto; white-space: nowrap; }
.brand .mark { width: 30px; height: 22px; border-radius: 5px; background: var(--lcd-frame); display: grid; place-items: center; }
.brand .mark i { display: block; width: 22px; height: 14px; border-radius: 2px; background: var(--lcd); }
.brand small { color: var(--text-3); font-size: 17px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--raised); color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); background: var(--raised); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.top .quote-link { display: none; }
@media (min-width: 1080px) { .nav { display: flex; } .menu-btn { display: none; } .top .quote-link { display: inline-flex; } }
.menu[popover] { margin: 0; inset: 64px 0 auto auto; width: min(320px, 100vw - 16px); border: 1px solid var(--line-2); border-radius: var(--radius-card); background: var(--card); color: var(--text); padding: 8px; margin-right: 8px; }
.menu a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--text); text-decoration: none; }
.menu a:hover { background: var(--raised); }
@media (prefers-reduced-motion: no-preference) {
  .menu[popover] { transition: opacity .18s var(--ease), transform .18s var(--ease), display .18s allow-discrete, overlay .18s allow-discrete; opacity: 0; transform: translateY(-6px); }
  .menu[popover]:popover-open { opacity: 1; transform: none; }
  @starting-style { .menu[popover]:popover-open { opacity: 0; transform: translateY(-6px); } }
}

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.sec-head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: 32px; }
.sec-head p { color: var(--text-2); margin: 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lede { margin: 20px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notice { font-size: 13px; color: var(--text-3); margin-top: 24px; max-width: 34rem; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* The device: LCD panel */
.device { background: var(--lcd-frame); border-radius: 20px; padding: 16px; color: var(--lcd-frame-text); box-shadow: 0 8px 24px rgb(0 0 0 / .08); }
.lcd { background: var(--lcd); color: var(--lcd-ink); border-radius: 8px; padding: 16px 18px; box-shadow: inset 0 2px 8px rgb(0 0 0 / .22); }
.lcd-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.02em; }
.lcd-row { display: flex; align-items: center; gap: 16px; margin: 8px 0 4px; }
.lcd-input { font-family: 'Seg', monospace; font-weight: 700; font-size: 96px; line-height: 1.05; width: 3.2ch; background: transparent; border: 0; padding: 0; color: var(--lcd-ink); caret-color: var(--lcd-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.lcd-input::placeholder { color: var(--lcd-ghost); opacity: 1; }
.lcd-input:focus-visible { outline: 2px dashed var(--lcd-ink); outline-offset: 4px; }
.lcd-field { position: relative; }
.lcd-field::before { content: '88'; position: absolute; left: 0; top: 0; font: 700 96px/1.05 'Seg', monospace; letter-spacing: 0.06em; color: var(--lcd-ghost); pointer-events: none; }
.lcd-meaning { font-size: 15px; line-height: 1.35; min-height: 2.7em; font-weight: 500; }
.lcd-meaning small { display: block; font-weight: 400; font-size: 12px; opacity: .8; margin-top: 2px; }
.lamps { display: flex; gap: 16px; margin: 14px 2px 0; font-size: 12px; flex-wrap: wrap; }
.lamp { display: inline-flex; align-items: center; gap: 6px; }
.lamp i { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp-off); transition: background-color .08s linear; }
.lamp.on.green i { background: var(--lamp-green); }
.lamp.on.orange i { background: var(--lamp-orange); }
.lamp b { font-weight: 500; color: inherit; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick button, .quick a { font: 500 13px/1 var(--font); color: var(--lcd-frame-text); background: transparent; border: 1px solid rgb(201 206 211 / .25); border-radius: 6px; padding: 7px 10px; cursor: pointer; text-decoration: none; transition: background-color .15s var(--ease); }
.quick button:hover, .quick a:hover { background: rgb(255 255 255 / .06); }
.quick .seg { font-size: 12px; }
.device-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }
.device-foot a { color: var(--lcd-frame-text); }
.groups { display: grid; gap: 10px; margin-top: 4px; }
.group { border-top: 1px solid rgb(27 34 11 / .18); padding-top: 8px; }
:root[data-theme='dark'] .group { border-top-color: rgb(200 219 69 / .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .group { border-top-color: rgb(200 219 69 / .18); } }

/* Product types */
.types { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .types { grid-template-columns: 1.4fr 1fr 1fr; } .types .wide { grid-row: span 2; } }
.type { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 12px; color: var(--text); text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.type { position: relative; }
.type:hover { border-color: var(--line-2); }
.type h3 a { color: var(--text); text-decoration: none; }
.type h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.type h3 a:focus-visible { outline: none; }
.type:has(h3 a:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.type .cite a { position: relative; z-index: 1; }
.type h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.type p { color: var(--text-2); font-size: 15px; margin: 0; }
.type .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.type .art { background: var(--bg); border-radius: 10px; padding: 12px; }
.wide .art { padding: 32px 16px; }
.art svg { width: 100%; height: auto; }
.u-body { fill: var(--u-body); } .u-face { fill: var(--u-face); } .u-slot { fill: var(--u-slot); } .u-dark { fill: var(--u-dark); }
.u-shadow { fill: var(--u-shadow); } .u-ceiling { fill: var(--raised); } .u-knob { fill: var(--u-dark); }
.u-line { fill: none; stroke: var(--u-dark); stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.u-lcd { fill: var(--lcd); } .u-seg { font: 700 12px 'Seg', monospace; fill: var(--lcd-ink); letter-spacing: 0.5px; } .u-ghost { fill: var(--lcd-ghost); }
.u-lamp { fill: var(--lamp-off); } .u-lamp.a { fill: var(--lamp-green); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--line-2); padding-top: 16px; }
.step .seg { font-size: 28px; color: var(--text); margin-bottom: 12px; }
.step .seg::before { color: var(--line); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Split layout for tools and prose */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; }
@media (min-width: 640px) { .panel { padding: 24px; } }

/* Forms */
label, .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input[type='text'], input[type='search'], input[type='tel'], select, textarea { width: 100%; min-height: 44px; font: 400 16px/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; transition: border-color .15s var(--ease); }
textarea { field-sizing: content; min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.model-input { font-weight: 500 !important; letter-spacing: 0.06em; text-transform: uppercase; font-size: 20px !important; }
.decoder-ex { margin-top: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { margin: 0; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 400; font-size: 15px; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.choices span:hover { background: var(--raised); }
.choices input:checked + span { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.choices input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font: 500 20px/1 var(--font); cursor: pointer; }
.stepper button:hover { background: var(--raised); }
.stepper output { min-width: 56px; text-align: center; font: 700 22px/1 'Seg', monospace; }

/* Decoder output */
.parts { display: grid; gap: 8px; margin-top: 16px; }
.part { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: var(--radius); font-size: 15px; }
.part code { font: 500 16px/1 var(--font); letter-spacing: 0.04em; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.documented { border-color: transparent; background: var(--lcd); color: var(--lcd-ink); }
.big-result { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.big-result .lcd { padding: 10px 14px; }
.big-result .seg { font-size: 40px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--text-2); font-size: 13px; background: var(--card); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td .model { font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
tbody tr[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 20px; align-items: end; }
.count { font-size: 14px; color: var(--text-3); }

/* Remote */
.remote-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .remote-wrap { grid-template-columns: 320px 1fr; gap: 56px; align-items: start; } .remote-side { position: sticky; top: 96px; } }
.remote { width: 100%; max-width: 300px; margin: 0 auto; background: light-dark(#e6e7e2, #d9dad4); color: #1b1e21; border-radius: 40px 40px 28px 28px; padding: 22px 18px 26px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .08); }
.remote .lcd { padding: 10px 12px; min-height: 104px; }
.r-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }
.r-temp { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.r-temp .seg { font-size: 44px; }
.r-sub { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; margin-top: 2px; }
.r-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.r-key { min-height: 40px; border: 0; border-radius: 10px; background: #cbccc5; color: #1b1e21; font: 500 11px/1.1 var(--font); cursor: pointer; padding: 4px; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); transition: background-color .12s var(--ease), transform .1s var(--ease); }
.r-key:hover { background: #bfc0b8; }
.r-key:active, .r-key.pressed { transform: translateY(1px); box-shadow: none; }
.r-key[aria-pressed='true'] { background: #1b1e21; color: #e6e7e2; }
.r-power { display: block; width: 64px; height: 64px; margin: 18px auto 0; border-radius: 50%; border: 0; background: #23272b; color: #e6e7e2; font: 500 11px/1 var(--font); cursor: pointer; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .4); }
.r-power:active { transform: translateY(1px); }
.r-power.on { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .4), 0 0 0 3px var(--lamp-green); }
.explain { min-height: 120px; }
.explain .src { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.r-hint { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 12px; }
.dim .seg > span, .dim .r-sub, .dim .r-top { opacity: 0; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 20px; color: var(--text-2); max-width: 44rem; }
@media (prefers-reduced-motion: no-preference) { .faq details::details-content { transition: height .3s var(--ease), content-visibility .3s allow-discrete; height: 0; overflow: clip; } .faq details[open]::details-content { height: auto; } :root { interpolate-size: allow-keywords; } }

/* Prose pages */
.page-head { padding: 48px 0 32px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 40px; } }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-3); }
.prose { max-width: 44rem; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.cite { font-size: 12px; vertical-align: super; line-height: 0; margin-left: 2px; }
.cite a { text-decoration: none; color: var(--text-3); }
.sources { font-size: 14px; color: var(--text-2); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.callout { border: 1px solid var(--line-2); border-radius: var(--radius-card); padding: 16px 20px; margin: 24px 0; background: var(--card); }
.callout strong { font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 24px 0; border-left: 1px solid var(--line-2); }
.timeline li { padding: 0 0 20px 24px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--lcd); border: 1px solid var(--lcd-frame); }
.timeline .when { font-weight: 500; display: block; }

/* Quote */
.quote-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; } .ticket-wrap { position: sticky; top: 96px; } }
.ticket { white-space: pre-wrap; font: 400 15px/1.6 var(--font); background: var(--bg); border-radius: var(--radius); padding: 16px; min-height: 160px; margin: 0 0 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.status { font-size: 14px; color: var(--text-2); margin-top: 12px; min-height: 1.4em; }

/* CTA band and footer */
.cta { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot h2 { font-size: 14px; letter-spacing: 0; margin-bottom: 12px; color: var(--text); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--text-2); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.theme-label { font-size: 13px; }

/* Consent */
.consent { position: fixed; inset: auto 12px 12px auto; max-width: 380px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-card); padding: 16px; z-index: 40; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.consent .actions { margin-top: 12px; }

/* Entrance: one short fade and rise */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .45s var(--ease) both; }
  .rise.d2 { animation-delay: .06s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (max-width: 400px) { .lcd-input, .lcd-field::before { font-size: 64px; } .part { grid-template-columns: 64px 1fr; } .part .tag { grid-column: 2; justify-self: start; } }
@media (max-width: 300px) { .lcd-input, .lcd-field::before { font-size: 48px; } }

/* Spacing fixes after browser review */
.page-head .lede { margin-top: 16px; }
.page-head .actions { margin-top: 24px; }
.panel > h2 { font-size: 22px; margin-bottom: 12px; }
.explain h2 { font-size: 22px; margin-bottom: 8px; }
.explain + .actions { margin: 16px 0 40px; }
.bm { margin-bottom: 10px; }
.bm small { display: block; font-size: 13px; }
.groups .group:first-child { border-top: 0; padding-top: 0; }
.brand .mark i { background: #c5d83f; }
.icon-btn, .top .btn { flex-shrink: 0; }
.brand { min-width: 0; }
@media (max-width: 360px) { .top .wrap { gap: 8px; } .brand, .brand small { font-size: 15px; } .brand .mark { display: none; } }
