/* AndroFlight — site styles
   Paper, ink, night navy and flight orange. Newsreader for headings, Instrument Sans for everything else. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taka";
  src: url("../fonts/taka-sign.woff2") format("woff2");
  font-weight: 400 700;
  unicode-range: U+09F3;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f4f0;
  --paper-2: #ecebe4;
  --paper-3: #e3e1d8;
  --card: #fbfaf8;
  --ink: #1a1916;
  --ink-2: #45433e;
  --muted: #6b6860;
  --faint: #959289;
  --line: #e2e0d8;
  --line-2: #ccc9bf;
  --navy: #1a2332;
  --navy-2: #222d3f;
  --on-navy: #f1efe9;
  --on-navy-muted: #a9b1be;
  --orange: #c8502a;
  --orange-hover: #b04422;
  --orange-ink: #a5411f;
  --orange-tint: #f6e5dd;
  --ok: #2c6a43;
  --ok-tint: #e1ede4;
  --warn: #85570b;
  --warn-tint: #f3e9d4;
  --danger: #b42318;
  --danger-tint: #fbe8e6;
  --grid: rgba(26, 25, 22, 0.055);
  --scrim: rgba(14, 19, 26, 0.42);
  --shadow-float: 0 24px 60px -24px rgba(20, 22, 28, 0.28), 0 2px 6px rgba(20, 22, 28, 0.05);
  --shadow-drawer: -28px 0 70px -20px rgba(16, 18, 24, 0.3);

  --serif: "Newsreader", "Taka", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Taka", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
  --header-h: 68px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0e131a;
  --paper-2: #151c25;
  --paper-3: #1c2531;
  --card: #141b24;
  --ink: #eeece6;
  --ink-2: #cdcac2;
  --muted: #9aa1ab;
  --faint: #6c7480;
  --line: #232d3a;
  --line-2: #344051;
  --navy: #0a0e14;
  --navy-2: #121821;
  --on-navy: #eeece6;
  --on-navy-muted: #8e97a4;
  --orange: #c8502a;
  --orange-hover: #d95d33;
  --orange-ink: #f08a5d;
  --orange-tint: #2c1c15;
  --ok: #78c597;
  --ok-tint: #13251a;
  --warn: #e2b55a;
  --warn-tint: #2a2313;
  --danger: #f2867a;
  --danger-tint: #2d1614;
  --grid: rgba(238, 236, 230, 0.05);
  --scrim: rgba(3, 6, 10, 0.6);
  --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-drawer: -28px 0 70px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e131a;
    --paper-2: #151c25;
    --paper-3: #1c2531;
    --card: #141b24;
    --ink: #eeece6;
    --ink-2: #cdcac2;
    --muted: #9aa1ab;
    --faint: #6c7480;
    --line: #232d3a;
    --line-2: #344051;
    --navy: #0a0e14;
    --navy-2: #121821;
    --on-navy: #eeece6;
    --on-navy-muted: #8e97a4;
    --orange: #c8502a;
    --orange-hover: #d95d33;
    --orange-ink: #f08a5d;
    --orange-tint: #2c1c15;
    --ok: #78c597;
    --ok-tint: #13251a;
    --warn: #e2b55a;
    --warn-tint: #2a2313;
    --danger: #f2867a;
    --danger-tint: #2d1614;
    --grid: rgba(238, 236, 230, 0.05);
    --scrim: rgba(3, 6, 10, 0.6);
    --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-drawer: -28px 0 70px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
figure, blockquote, dl, dd { margin: 0; }
fieldset { min-width: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hydrated values stay hidden for a moment until site.js fills them in from config.js */
.js [data-price], .js [data-price-min], .js [data-stock], .js [data-cfg] {
  visibility: hidden;
  animation: af-reveal 0s linear 1.2s forwards;
}
.af-ready [data-price], .af-ready [data-price-min], .af-ready [data-stock], .af-ready [data-cfg] {
  visibility: visible;
  animation: none;
}
@keyframes af-reveal { to { visibility: visible; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.display, .h1, .h2, .h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 1.6rem + 4.1vw, 4.5rem); line-height: 1.03; letter-spacing: -0.022em; }
.h1 { font-size: clamp(2.5rem, 1.75rem + 3vw, 3.875rem); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 1.55rem + 1.8vw, 2.875rem); line-height: 1.1; letter-spacing: -0.016em; }
.h3 { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); line-height: 1.22; letter-spacing: -0.01em; }
.title { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.003em; }
.lead { font-size: clamp(1.125rem, 1.04rem + .38vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.small { font-size: .9375rem; }
.fine { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.num, .price { font-variant-numeric: tabular-nums; }
.kicker { font-size: .9375rem; color: var(--muted); margin-bottom: 14px; }
code, kbd, .mono { font-family: var(--mono); font-size: .875em; }
code { background: var(--paper-2); padding: .12em .4em; border-radius: 6px; }

.link, .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .15s, text-decoration-color .15s;
}
.link:hover, .prose a:hover { color: var(--orange-ink); text-decoration-color: currentColor; }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.012em; margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; margin: 1.8em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--faint); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-narrow > * { max-width: 820px; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section + .section { padding-top: 0; }
.section.tint, .section.tint + .section, .section + .section.tint,
.section.band, .section.band + .section { padding-top: clamp(72px, 9vw, 128px); }
.pt-0, .section.pt-0 { padding-top: 0 !important; }
.tint { background: var(--paper-2); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; } }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 1rem/1.1 var(--sans); letter-spacing: 0;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--paper-2); border-color: var(--faint); }
.btn-paper { background: var(--on-navy); color: var(--navy); }
.btn-paper:hover { background: #fff; }
.btn-ghost-navy { background: transparent; color: var(--on-navy); border-color: rgba(241, 239, 233, .28); }
.btn-ghost-navy:hover { border-color: rgba(241, 239, 233, .6); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: .9375rem; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-busy { opacity: .75; cursor: progress; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--muted); font: 500 .8125rem/1.2 var(--sans);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2);
}
.link-btn:hover { color: var(--ink); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.arrow-link svg { transition: transform .15s; }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link:hover { color: var(--orange-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em;
}
.brand svg { width: 30px; height: 30px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.brand:hover svg { transform: rotate(12deg); }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink-2); cursor: pointer;
  font: 500 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link .chev { transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-actions .btn { margin-left: 8px; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--orange); color: #fff;
  font: 700 11px/18px var(--sans); text-align: center; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}

/* Products menu */
.menu {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 70;
  width: 580px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-float);
  animation: menu-in .18s ease-out;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-link {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.menu-link:hover { background: var(--paper-2); }
.menu-thumb {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2);
}
.menu-link:hover .menu-thumb { background: var(--paper-3); }
.menu-thumb svg { width: 30px; height: 30px; }
.menu-title { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.menu-desc { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 6px; padding: 12px 10px 4px; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}

/* Mobile menu */
.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: 55;
  background: var(--paper); border-top: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 4px var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.m-group { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.m-label { font-size: .8125rem; color: var(--muted); margin: 4px 0 4px; }
.m-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 500;
}
.m-link small { font-size: .875rem; font-weight: 400; color: var(--muted); }
.m-link[aria-current="page"] { color: var(--orange-ink); }
.m-actions { display: grid; gap: 10px; padding-top: 20px; }
.m-theme { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .nav, .header-actions .shop-cta { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 981px) { .mobile-menu { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: clamp(56px, 7vw, 88px) 0 28px; }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer-brand .brand { color: var(--on-navy); }
.footer-tag { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--on-navy); margin: 18px 0 14px; max-width: 16ch; letter-spacing: -0.01em; }
.footer-contact { display: grid; gap: 6px; font-size: .9375rem; }
.footer-contact a { color: var(--on-navy); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col h2 { font: 600 .9375rem/1.3 var(--sans); color: var(--on-navy); margin: 4px 0 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--on-navy-muted); text-decoration: none; font-size: .9375rem; transition: color .15s; }
.footer-col a:hover { color: var(--on-navy); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 22px;
  border-top: 1px solid rgba(241, 239, 233, .12); font-size: .8125rem;
}
.footer-bottom a { color: inherit; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero-copy .display { max-width: 12.5ch; }
.hero-copy .lead { margin-top: 26px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media .media { aspect-ratio: 5 / 4; border-radius: var(--r-xl); }
.hero-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.hero-caption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .display { max-width: 13ch; }
}
@media (max-width: 520px) {
  .hero-actions .btn, .page-hero .row .btn-lg { flex: 1 1 100%; }
}

.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(36px, 5.5vw, 76px) clamp(36px, 4.5vw, 64px); }
.page-hero .h1 { max-width: 17ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .row { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.program-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 600; font-size: .9375rem; letter-spacing: .04em; color: var(--ink-2); }
.program-mark::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.program-mark.on-navy { color: var(--on-navy-muted); }

/* ---------- Chips and stage track ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
  font: 500 .8125rem/1 var(--sans); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-tint); color: var(--ok); }
.chip-warn { background: var(--warn-tint); color: var(--warn); }
.chip-danger { background: var(--danger-tint); color: var(--danger); }
.chip-plain::before { display: none; }

.stage { display: inline-flex; gap: 3px; vertical-align: middle; }
.stage i { display: block; width: 17px; height: 6px; border-radius: 2px; background: var(--line-2); transition: background-color .35s ease; }
.stage[data-n="1"] i:nth-child(-n+1),
.stage[data-n="2"] i:nth-child(-n+2),
.stage[data-n="3"] i:nth-child(-n+3),
.stage[data-n="4"] i:nth-child(-n+4) { background: var(--ink-2); }
.stage[data-tone="ok"][data-n] i:nth-child(-n+4) { background: var(--ok); }
.stage[data-tone="warn"][data-n="3"] i:nth-child(-n+3) { background: var(--warn); }
.stage-label { font-weight: 500; }

/* ---------- Status board ---------- */
.board { border-top: 1.5px solid var(--ink); }
.board-group { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 12px; font: 600 .9375rem/1.3 var(--sans); color: var(--ink); }
.board-group span { font-weight: 400; color: var(--muted); }
.board-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 1.2fr) 150px;
  grid-template-areas: "name kind stage action";
  align-items: center; gap: 20px;
  position: relative;
  margin: 0 -14px; padding: 18px 14px;
  border-radius: 10px;
  color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.board-row::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--line); }
.board-row:hover::after { opacity: 0; }
.board-row:hover { background: var(--paper-2); }
.board-name { grid-area: name; font-family: var(--serif); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.15; letter-spacing: -0.012em; }
.board-kind { grid-area: kind; color: var(--muted); }
.board-stage { grid-area: stage; display: flex; align-items: center; gap: 12px; }
.stage-slot { flex: none; width: 77px; display: inline-flex; align-items: center; }
.board-action { grid-area: action; justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-action svg { color: var(--faint); transition: transform .15s, color .15s; }
.board-row:hover .board-action svg { transform: translateX(3px); color: var(--ink); }
.board-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.board-note .stage { margin-right: 6px; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); margin-left: 4px; }
@media (max-width: 860px) {
  .board-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name action" "kind kind" "stage stage";
    gap: 4px 16px; padding: 16px 14px;
  }
  .board-kind { font-size: .9375rem; }
  .board-stage { margin-top: 8px; font-size: .9375rem; }
}
/* One-time fill when the board scrolls into view */
.board.will-fill .stage i { background: var(--line-2) !important; }
.board.is-filled .stage i { transition-delay: calc(var(--d, 0) * 1ms); }

/* ---------- Media and line art ---------- */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg);
  background-color: var(--paper-2);
  color: var(--ink-2);
}
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.is-missing > img { display: none; }
.media-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.media-art svg { width: 78%; height: auto; max-height: 86%; }
.media.square { aspect-ratio: 1 / 1; }
.art { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art * { vector-effect: non-scaling-stroke; }
.art .a { stroke: var(--orange); }
.art .af { fill: var(--orange); stroke: none; }
.art .f { fill: currentColor; stroke: none; }
.art .soft { opacity: .45; }
.art .dash { stroke-dasharray: 3 5; }
.art .thin { stroke-width: 1; }
.art .bold { stroke-width: 2.4; }
.media.on-navy { background-color: var(--navy-2); color: var(--on-navy); }
.media.on-navy .media-art { --grid: rgba(241, 239, 233, .06); }

/* ---------- Catalog / product tiles ---------- */
.catalog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.4vw, 32px); }
.tile { grid-column: span 2; display: grid; align-content: start; gap: 18px; }
.tile.half { grid-column: span 3; }
.tile.feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tile-media { display: block; text-decoration: none; }
.tile.feature .media { aspect-ratio: 16 / 11; border-radius: var(--r-xl); }
.tile-body { display: grid; gap: 10px; align-content: start; }
.tile-kind { font-size: .9375rem; color: var(--muted); }
.tile-name { font-family: var(--serif); font-size: clamp(1.625rem, 1.45rem + .7vw, 2rem); line-height: 1.12; letter-spacing: -0.014em; }
.tile.feature .tile-name { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.tile-name a { text-decoration: none; }
.tile-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.tile-desc { color: var(--ink-2); max-width: 34em; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.tile-price { font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 980px) {
  .tile, .tile.half { grid-column: span 3; }
}
@media (max-width: 700px) {
  .catalog { grid-template-columns: 1fr; }
  .tile, .tile.half, .tile.feature { grid-column: 1 / -1; }
  .tile.feature { grid-template-columns: 1fr; }
}

/* Shop filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font: 500 .9375rem/1 var(--sans); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--faint); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(44px, 5vw, 64px) clamp(20px, 2.4vw, 32px); }
.shop-grid .tile { grid-column: auto; }
.mini-config { display: grid; gap: 10px; }
.mini-config .seg-grid { gap: 6px; }
.mini-config .seg-opt span { min-height: 42px; padding: 6px 8px; border-radius: 10px; }
.mini-config .seg-opt b { font-size: .9375rem; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .media { aspect-ratio: 1 / 1; border-radius: var(--r-xl); }
.thumbs { display: flex; gap: 10px; }
.thumb {
  position: relative; width: 78px; height: 78px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink-2);
  cursor: pointer;
}
.thumb .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.thumb .media-art svg { width: 80%; }
.thumb[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.buybox { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.buybox .kind { font-size: .9375rem; color: var(--muted); margin-bottom: -10px; }
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.price-lg { font: 600 1.875rem/1 var(--sans); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1; }
.buy-notes { display: grid; gap: 12px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); list-style: none; }
.buy-notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.buy-notes svg { margin-top: 3px; color: var(--muted); }
.keyspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.keyspecs div { display: grid; gap: 2px; }
.keyspecs dt { font-size: .8125rem; color: var(--muted); }
.keyspecs dd { margin: 0; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
}

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.buybar.is-visible { transform: none; }
.buybar-info { min-width: 0; flex: 1; line-height: 1.25; }
.buybar-info b { display: block; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-info span { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 901px) { .buybar { display: none; } }

/* Segmented choices (battery configurator) */
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); }
.seg-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.seg-opt { position: relative; display: block; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span {
  display: grid; place-items: center; align-content: center; gap: 2px;
  min-height: 62px; padding: 8px; text-align: center;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.seg-opt b { font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.seg-opt small { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-opt:hover span { border-color: var(--faint); }
.seg-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.config-result { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.config-result div { display: grid; gap: 2px; }
.config-result dt { font-size: .8125rem; color: var(--muted); }
.config-result dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Quantity stepper */
.qty {
  display: inline-flex; align-items: stretch; flex: none;
  height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card);
}
.qty button {
  width: 42px; border: 0; background: none; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; border-radius: 11px;
}
.qty button:hover { background: var(--paper-2); }
.qty button:disabled { color: var(--faint); cursor: default; background: none; }
.qty input {
  width: 38px; border: 0; padding: 0; background: transparent; text-align: center;
  font: 600 1rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline: none; }
.qty:focus-within { border-color: var(--ink-2); }
.qty-sm { height: 36px; border-radius: 10px; }
.qty-sm button { width: 32px; border-radius: 9px; }
.qty-sm input { width: 30px; font-size: .9375rem; }

/* ---------- Datasheet ---------- */
.ds { border-top: 1.5px solid var(--ink); }
.ds-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ds-title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.008em; }
.ds-rows { margin: 0; }
.ds-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.ds-row:first-child { border-top: 0; padding-top: 2px; }
.ds-row dt { color: var(--muted); }
.ds-row dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .ds-group { grid-template-columns: 1fr; } }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); list-style: none; padding: 0; }
.features li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.features h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: 6px; }
.features p { color: var(--ink-2); max-width: 34em; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .features.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features, .features.three { grid-template-columns: 1fr; } }

/* Numbered steps (used only for real sequences) */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-content: start; padding: 24px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 1.875rem; line-height: 1; color: var(--orange-ink); font-variant-numeric: lining-nums tabular-nums; }
.steps h3 { font: 600 1.0625rem/1.4 var(--sans); margin: 2px 0 6px; }
.steps p { color: var(--ink-2); max-width: 62ch; }
.steps p + p { margin-top: 8px; }
.steps.compact > li { padding: 18px 0; }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.steps-row > li { grid-template-columns: 1fr; row-gap: 14px; border-top: 1.5px solid var(--ink); }
@media (max-width: 860px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } .steps-row > li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 0; border-top-width: 1px; } }

/* Q&A */
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 500 1.0625rem/1.45 var(--sans); color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--orange-ink); }
.pm { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: transform .25s ease, background-color .15s; }
.qa[open] .pm { transform: rotate(45deg); background: var(--paper-2); }
.qa-body { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 70ch; }
.qa-body p + p { margin-top: 10px; }
.qa-group + .qa-group { margin-top: clamp(40px, 5vw, 64px); }
.qa-group > h2 { margin-bottom: 18px; }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.panel-tint { background: var(--paper-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.callout { display: grid; gap: 10px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); background: var(--orange-tint); }
.callout p { color: var(--ink-2); }
.proof {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
}
.proof .serif { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; }
.proof-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }

/* Navy band */
.band { background: var(--navy); color: var(--on-navy); }
.band .lead { color: var(--on-navy-muted); }
.band .h2, .band .h1 { color: var(--on-navy); }
.band .kicker { color: var(--on-navy-muted); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* Program pair (home) */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.program { display: grid; gap: 18px; align-content: start; }
.program .media { aspect-ratio: 16 / 10; }
.program h3 { margin-top: 6px; }
.program p { color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) { .programs { grid-template-columns: 1fr; } }

/* Buying facts strip */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); list-style: none; padding: 0; }
.facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 20px; border-top: 1px solid var(--line); }
.facts svg { color: var(--ink-2); margin-top: 2px; }
.facts b { display: block; font-weight: 600; margin-bottom: 2px; }
.facts span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Spec mini list (home F4 section) */
.spec-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 28px 0 0; }
.spec-mini div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.spec-mini dt { font-size: .8125rem; color: var(--muted); }
.spec-mini dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .spec-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Compare table and simple tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1.5px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font: 600 .8125rem/1.3 var(--sans); color: var(--muted); padding-top: 12px; padding-bottom: 12px; white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table td.r, .table th.r { text-align: right; padding-right: 0; }
.table tbody tr { transition: background-color .15s; }
.table .btn { white-space: nowrap; }
.table-compare th[scope="row"] { color: var(--muted); font-weight: 400; width: 28%; }
.table-compare thead th { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); }
.table .cell-sub { display: none; }
@media (max-width: 680px) {
  .table-stack thead { display: none; }
  .table-stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table-stack th, .table-stack td { padding: 0; border: 0; }
  .table-stack .cell-spec { display: none; }
  .table-stack tbody th { grid-column: 1; grid-row: 1; }
  .table-stack .cell-sub { display: block; grid-column: 1; grid-row: 2; font-size: .875rem; color: var(--muted); }
  .table-stack .cell-price { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  .table-stack .cell-act { grid-column: 2; grid-row: 2; text-align: right; }
}

/* Downloads */
.downloads { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.downloads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.downloads b { font-weight: 600; display: block; }
.downloads span { font-size: .875rem; color: var(--muted); }

/* Video grid */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 24px; }
.video { display: grid; gap: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--navy-2); color: var(--on-navy); }
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.video-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(14, 19, 26, .72); display: grid; place-items: center; transition: background-color .15s, transform .15s; }
.video-play:hover span { background: var(--orange); transform: scale(1.05); }
.video-soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--on-navy-muted); font-size: .9375rem; }
.video p { font-size: .9375rem; color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .label { font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); }
.input, .field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card); color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { display: flex; gap: 6px; align-items: center; font-size: .8125rem; line-height: 1.4; color: var(--danger); }
.hint { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; color: var(--ink-2); min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; border-radius: 12px; background: var(--danger-tint); color: var(--ink); }
.form-status.is-error a { color: inherit; }
.form-success { padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); background: var(--ok-tint); }
.form-success h3 { font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; margin-bottom: 8px; color: var(--ink); }
.form-success p { color: var(--ink-2); }
.form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); }
.form-intro { display: grid; gap: 12px; align-content: start; }
.form-aside { display: grid; gap: 18px; align-content: start; }

/* Radio and checkbox cards */
.choices { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); }
.choice {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 3px 12px; align-items: start;
  padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--faint); }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid var(--faint); background: var(--card);
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s;
}
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .15s; }
.choice input:checked { border-color: var(--orange); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.choice-title { font-weight: 600; line-height: 1.35; }
.choice-desc { grid-column: 2 / -1; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.choice-meta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choices.inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); opacity: 0; transition: opacity .25s ease; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: var(--shadow-drawer);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.01em; }
.drawer-head h2 span { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin-left: 6px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 12px; }
.drawer-foot { display: grid; gap: 10px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.drawer-foot .sum-row { font-size: 1.0625rem; }
.drawer-foot .sum-row strong { font-size: 1.1875rem; }
.cart-line { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { position: relative; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; }
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-thumb svg { width: 46px; height: 46px; }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.cart-line-name { font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.cart-line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-sub { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.cart-line-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart-empty { display: grid; justify-items: center; gap: 14px; padding: 56px 8px; text-align: center; }
.cart-empty .serif { font-size: 1.5rem; line-height: 1.2; }
.cart-empty p { color: var(--muted); max-width: 26ch; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row span { color: var(--ink-2); }
.sum-row.total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.125rem; }
.sum-row.total span { color: var(--ink); }
.sum-row small { font-size: .8125rem; color: var(--muted); font-weight: 400; }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-float); font-size: .9375rem; animation: toast-in .25s ease-out; }
.toast button { background: none; border: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.co-section { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.co-section:first-of-type { border-top: 1.5px solid var(--ink); }
.co-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.co-head .n { font-family: var(--serif); font-size: 1.625rem; line-height: 1; color: var(--orange-ink); font-variant-numeric: lining-nums; }
.co-head h2 { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.01em; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); }
.summary h2 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.summary .cart-line { padding: 14px 0; }
.summary .cart-line:first-child { padding-top: 4px; }
.summary-totals { display: grid; gap: 8px; }
.pay-panel { display: grid; gap: 16px; margin-top: 2px; padding: 18px; border-radius: 14px; background: var(--paper-2); }
.pay-panel ol { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.pay-number { font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.place-order { display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.place-order .sum-row { font-size: 1.125rem; font-weight: 600; }
.or-wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 920px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

/* Order confirmation */
.ticket { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px dashed var(--line-2); }
.ticket .id { font: 600 clamp(1.5rem, 1.2rem + 1vw, 1.875rem)/1.1 var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ticket-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-content: center; gap: 20px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .buybar, .drawer, .scrim, .mobile-menu, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}
