/* ATHRTY component system: one system consumed by the public pages.
   Tokens, type, header, buttons, cards, industry tiles, plan cards, gates,
   checkout, start flow, planner, demo, menu, footer, motion.
   Design law: obsidian / charcoal / off-white / electric teal, glass over
   dark neutrals, editorial display type + monospace for money and data.
   Dark is the authored default; light is a first-class theme. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-raise: #101215;
  --ink: #f2f0ea;
  --muted: #a9aeb6;
  --faint: #7d838d;
  --line: rgba(235, 240, 244, 0.13);
  --line-strong: rgba(235, 240, 244, 0.24);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-raise: rgba(255, 255, 255, 0.075);
  --teal: #17e0bd;
  --teal-ink: #06231d;
  --teal-tint: rgba(23, 224, 189, 0.16);
  --teal-line: rgba(23, 224, 189, 0.5);
  --focus: #17e0bd;
  --danger: #ff9d8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font: 16px/1.55 var(--font-ui);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f2ee;
  --bg-raise: #eceae4;
  --ink: #14161a;
  --muted: #565d66;
  --faint: #7d838d;
  --line: rgba(16, 18, 22, 0.14);
  --line-strong: rgba(16, 18, 22, 0.3);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-raise: rgba(255, 255, 255, 0.9);
  --teal: #0a7a67;
  --teal-ink: #ffffff;
  --teal-tint: rgba(10, 122, 103, 0.12);
  --teal-line: rgba(10, 122, 103, 0.55);
  --focus: #0a7a67;
  --danger: #a33327;
  --shadow: 0 24px 55px rgba(22, 30, 28, 0.14);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
::selection { background: var(--teal); color: var(--teal-ink); }

h1, h2, .display { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 7.2vw, 92px); line-height: 1.0; }
h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.08; }
h3 { font-family: var(--font-ui); font-size: 19px; letter-spacing: -0.015em; }
p { color: var(--muted); }
.mono, .money, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
small, .note { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Header (component: ath-header) ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  max-width: none; width: 100%;
  padding: 12px clamp(18px, 4vw, 64px);
  min-height: 72px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top .brand { font-family: var(--font-ui); font-size: 18px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); gap: 10px; }
.top .brand small { font-size: 11px; font-weight: 550; color: var(--muted); letter-spacing: 0.02em; }
.mark { background: var(--ink); color: var(--bg); border-radius: 9px; width: 34px; height: 34px; font-family: var(--font-display); font-weight: 700; }
.top nav { gap: 6px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px;
  border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.top nav a:hover { color: var(--ink); background: var(--glass); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Icon buttons (component: ath-icon-btn) */
.ath-icon-btn {
  appearance: none; display: inline-grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); color: var(--ink); cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ath-icon-btn:hover { background: var(--glass-raise); border-color: var(--line-strong); }
.ath-icon-btn svg { width: 21px; height: 21px; }
.ath-icon-btn .bars { transition: opacity 0.18s ease; }
.ath-icon-btn .xmark { opacity: 0; transition: opacity 0.18s ease; }
.ath-icon-btn[aria-expanded="true"] .bars { opacity: 0; }
.ath-icon-btn[aria-expanded="true"] .xmark { opacity: 1; }
.ath-icon-btn[hidden] { display: none; }
.ath-signin-btn { border-color: var(--teal-line); background: var(--teal-tint); color: var(--ink); }
.ath-signin-btn:hover { background: var(--teal-tint); border-color: var(--teal); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons (one system) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink);
  font: 600 15px/1.2 var(--font-ui); letter-spacing: 0.005em;
  cursor: pointer; text-align: center; max-width: 100%;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { background: var(--glass-raise); border-color: var(--line-strong); transform: translateY(-1px); }
.button.primary {
  background: var(--teal-tint); border-color: var(--teal-line); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.25);
}
.button.primary:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 24%, transparent); }
:root[data-theme="light"] .button.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button.standout {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  font-weight: 750; box-shadow: var(--shadow);
}
.button.standout:hover { background: var(--ink); transform: translateY(-2px); }
.button.compact { min-height: 44px; padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.button svg { width: 17px; height: 17px; flex: none; }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.actions .button { flex: 0 1 auto; }

/* ---------- Layout + cards (component: ath-card) ---------- */
.section { max-width: 1320px; margin: auto; padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 64px); border-top: 0; display: grid; gap: 28px; }
.section-lead { display: grid; gap: 12px; max-width: 760px; }
.commercial-hero {
  max-width: 1320px; margin: auto; display: grid; gap: 24px;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 64px) 8px;
}
.commercial-hero h1 { font-size: clamp(42px, 7.2vw, 92px); line-height: 1.0; }
.commercial-hero > p { max-width: 62ch; font-size: clamp(17px, 2vw, 21px); }
.commercial-hero > *, .section > *, .ath-bottom > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal-line); background: var(--teal-tint);
  padding: 8px 12px; border-radius: 999px;
}
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards article, .ath-card {
  display: grid; gap: 12px; align-content: start; min-width: 0;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cards article:hover, .ath-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--glass-raise); }
.cards article .screen-name, .feature-number {
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal);
}
.ath-icon-chip {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 13px; border: 1px solid var(--teal-line); background: var(--teal-tint); color: var(--teal);
}
.ath-icon-chip svg { width: 23px; height: 23px; }
.band { background: transparent; }
.band .ath-card { padding: clamp(24px, 4vw, 44px); }

/* Get Started prompt (component: ath-prompt) */
.ath-prompt {
  display: flex; align-items: center; gap: 12px; width: min(620px, 100%); min-width: 0;
  min-height: 58px; padding: 8px 8px 8px 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--glass); color: var(--muted);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font: 500 15px var(--font-ui); text-align: left; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ath-prompt:hover { border-color: var(--teal-line); background: var(--glass-raise); transform: translateY(-1px); }
.ath-prompt .prompt-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath-prompt .prompt-go {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 42px; padding: 9px 16px; border-radius: 999px;
  background: var(--teal-tint); border: 1px solid var(--teal-line); color: var(--ink);
  font: 650 13.5px var(--font-ui);
}
.ath-prompt svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* ---------- Industry tiles (component: ath-tile) ---------- */
.industry-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.industry-links a {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px;
  min-height: 84px; padding: 16px 18px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.industry-links a:hover { transform: translateY(-2px); border-color: var(--teal-line); background: var(--glass-raise); }
.industry-links a .tile-name { font-weight: 680; font-size: 15.5px; color: var(--ink); line-height: 1.25; }
.industry-links a .tile-note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 3px; line-height: 1.35; }

/* ---------- Product sheet rows ---------- */
.product-sheet { display: grid; gap: 12px; }
.product-sheet article {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 22px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.product-sheet article > div { display: grid; gap: 5px; }
.product-sheet article strong { font-size: 16.5px; color: var(--ink); }
.product-sheet .feature-number { padding-top: 14px; }

/* ---------- Plan cards + checkout (component: ath-plan, ath-checkout) ---------- */
.package-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .package-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.package-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25);
}
.package-card.featured { border-color: var(--teal-line); }
.package-card h3 { font-size: 20px; }
.package-card .plan-for { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.package-card .price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.package-card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.package-card .credits-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); }
.package-card ul { padding-left: 18px; margin: 2px 0 6px; color: var(--muted); font-size: 14px; display: grid; gap: 7px; }
.package-card .button { margin-top: auto; width: 100%; }
.bundle-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bundle-chip {
  appearance: none; min-height: 44px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font: 600 13.5px var(--font-mono);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bundle-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.mini-row { display: grid; gap: 12px; }
@media (min-width: 760px) { .mini-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-card {
  display: grid; gap: 8px; align-content: start; padding: 18px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
}
.mini-card .price { font-family: var(--font-mono); font-size: 21px; font-weight: 600; }
.mini-card p { font-size: 13.5px; }
.mini-card .button { margin-top: 4px; }

/* ---------- Gates (component: ath-gate) ---------- */
.ath-gate {
  display: grid; gap: 14px; align-content: start; min-width: 0; position: relative;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25);
}
.ath-gate .gate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gate-state {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
}
.gate-state svg { width: 12px; height: 12px; }
.ath-gate h3 { font-size: 20px; }
.ath-gate .gate-price { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.ath-gate .gate-price span { color: var(--teal); }
.ath-gate .button { margin-top: auto; width: 100%; }
.gate-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .gate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Price table (component: ath-price-table) */
.price-rows { display: grid; }
.price-row {
  display: grid; grid-template-columns: minmax(130px, 1.3fr) auto auto; gap: 6px 20px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .pr-name { font-weight: 680; font-size: 16px; }
.price-row .pr-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.price-row .pr-price { font-family: var(--font-mono); font-size: 16.5px; white-space: nowrap; text-align: right; }
.price-row .pr-price small { display: block; color: var(--teal); font-size: 11.5px; margin-top: 2px; }
.price-row .button { justify-self: end; }
@media (max-width: 640px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .button { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Retractables (component: ath-collapse) ---------- */
.ath-collapse { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); overflow: hidden; }
.ath-collapse > .collapse-head {
  appearance: none; width: 100%; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 14px 22px; background: none; border: 0; color: var(--ink);
  font: 650 16.5px var(--font-ui); text-align: left; cursor: pointer;
}
.ath-collapse > .collapse-head .chev { margin-left: auto; color: var(--teal); transition: transform 0.3s ease; display: grid; place-items: center; }
.ath-collapse > .collapse-head .chev svg { width: 19px; height: 19px; }
.ath-collapse[data-open="true"] > .collapse-head .chev { transform: rotate(180deg); }
.ath-collapse .collapse-region { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s cubic-bezier(0.22, 0.8, 0.24, 1); }
.ath-collapse[data-open="true"] .collapse-region { grid-template-rows: 1fr; }
.ath-collapse .collapse-inner { overflow: hidden; min-height: 0; }
.ath-collapse .collapse-body { padding: 4px 22px 24px; display: grid; gap: 18px; }

/* ---------- Gated steps (component: ath-steps) ---------- */
.ath-steps { display: grid; gap: 20px; }
.ath-steps .steps-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.step-count { font: 600 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.ath-progress { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ath-progress span { display: block; height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.35s ease; }
.ath-step { display: grid; gap: 16px; }
.ath-step[hidden] { display: none; }
.option-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option-card {
  display: grid; gap: 6px; padding: 18px; min-height: 96px; align-content: start;
  border: 1px solid var(--line); border-radius: 14px; background: var(--glass);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.option-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.option-card strong { font-size: 16.5px; display: flex; align-items: center; gap: 10px; }
.option-card span { font-size: 13.5px; color: var(--muted); }
.option-card[aria-pressed="true"], .option-card.selected { border-color: var(--teal); background: var(--teal-tint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 10px 17px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font: 600 14px var(--font-ui);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal); color: var(--ink); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 650; font-size: 14px; }
.field input[type="text"], .field input[type="email"] {
  min-height: 50px; padding: 11px 14px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; background: var(--bg-raise); color: var(--ink);
}
.field-error { font-size: 13px; color: var(--danger); }
.consent-row { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.steps-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.confirmation { display: grid; gap: 12px; border: 1px solid var(--teal-line); background: var(--teal-tint); border-radius: 14px; padding: 20px; }
.confirmation p { color: var(--ink); }
.confirmation .ref { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Planner module ---------- */
.planner-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.planner-day {
  min-height: 92px; padding: 10px; border-radius: 12px; display: grid; gap: 6px; align-content: start;
  border: 1px dashed var(--line-strong); color: var(--faint); font-size: 11.5px;
}
.planner-day.filled { border: 1px solid var(--teal-line); background: var(--teal-tint); color: var(--ink); }
.planner-day .dow { font: 600 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.planner-day strong { font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.planner-day .rm { justify-self: start; background: none; border: 0; color: var(--muted); font: 600 11px var(--font-ui); cursor: pointer; padding: 2px 0; min-height: 24px; }
@media (max-width: 760px) { .planner-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .planner-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.recipe-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.recipe-card { display: grid; gap: 9px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.recipe-card .cost { font-family: var(--font-mono); font-size: 13px; color: var(--teal); }
.recipe-card p { font-size: 13.5px; }
.recipe-card .button { margin-top: auto; }
.totals-bar {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--bg-raise);
  font-family: var(--font-mono); font-size: 14px;
}
.totals-bar b { color: var(--teal); font-weight: 600; }

/* ---------- Menu (component: ath-menu) ---------- */
.ath-menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; max-width: 100%; max-height: 100%;
  width: min(440px, 100vw); height: 100dvh; box-sizing: border-box;
  border: 0; border-left: 1px solid var(--line-strong); border-radius: 22px 0 0 22px;
  background: color-mix(in srgb, var(--bg-raise) 88%, transparent);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  color: var(--ink); padding: 24px; overflow: auto; overscroll-behavior: contain;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
}
.ath-menu::backdrop { background: rgba(0, 0, 0, 0.55); }
.ath-menu[open] { animation: ath-menu-in 0.38s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
.ath-menu[open]::backdrop { animation: ath-fade-in 0.3s ease both; }
.ath-menu.closing { animation: ath-menu-out 0.26s ease-in both; }
.ath-menu.closing::backdrop { animation: ath-fade-out 0.24s ease both; }
@keyframes ath-menu-in { from { transform: translateX(56px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ath-menu-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(56px); opacity: 0; } }
@keyframes ath-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ath-fade-out { from { opacity: 1; } to { opacity: 0; } }
.ath-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ath-menu-head h2 { font-size: 34px; text-align: right; }
.ath-menu-close {
  appearance: none; min-height: 44px; padding: 10px 17px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink); font: 600 13.5px var(--font-ui);
}
.ath-menu-links { display: grid; gap: 6px; padding: 20px 0; }
.ath-menu-links a {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 60px; padding: 12px 16px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.ath-menu-links a[aria-current="page"], .ath-menu-links a:hover { background: var(--glass-raise); box-shadow: inset -3px 0 var(--teal); }
.ath-menu-links strong { font-size: 17px; }
.ath-menu-links small { color: var(--muted); font-size: 12px; }
.ath-menu[open] .ath-menu-links a { animation: ath-rise 0.45s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
.ath-menu[open] .ath-menu-links a:nth-child(1) { animation-delay: 0.05s; }
.ath-menu[open] .ath-menu-links a:nth-child(2) { animation-delay: 0.1s; }
.ath-menu[open] .ath-menu-links a:nth-child(3) { animation-delay: 0.15s; }
.ath-menu[open] .ath-menu-links a:nth-child(4) { animation-delay: 0.2s; }
.ath-menu[open] .ath-menu-links a:nth-child(5) { animation-delay: 0.25s; }
.ath-menu[open] .ath-menu-links a:nth-child(6) { animation-delay: 0.3s; }
.ath-menu[open] .ath-menu-links a:nth-child(7) { animation-delay: 0.35s; }
@keyframes ath-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ath-menu .button.primary { width: 100%; }

/* ---------- Demo (component: product-demo, restyled) ---------- */
.demo-stage { max-width: 1320px; margin: auto; padding: 26px clamp(18px, 4vw, 64px) 8px; }
.product-demo {
  display: grid; grid-template-columns: 176px minmax(0, 1fr); min-width: 0;
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); color: var(--ink);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.demo-side { display: grid; align-content: start; gap: 5px; background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--ink); padding: 18px 10px; font-size: 13px; }
.demo-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; min-width: 0; }
.demo-brand strong { font-size: 14.5px; letter-spacing: 0.01em; }
.demo-brand small { color: var(--muted); font-size: 10px; display: block; }
.demo-logo { width: 34px; height: 34px; flex: none; }
.demo-tab {
  display: flex; align-items: center; gap: 9px; text-align: left; width: 100%;
  color: var(--muted); border: 0; background: none; padding: 10px 9px; border-radius: 10px;
  font: inherit; min-height: 44px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--glass-raise); color: var(--ink); box-shadow: inset -2px 0 var(--teal); }
.demo-tab svg { width: 19px; height: 19px; flex: none; }
.demo-main { display: grid; align-content: start; gap: 18px; padding: clamp(15px, 2.6vw, 30px); min-width: 0; background: transparent; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.preview-top small { font-size: 11px; color: var(--muted); }
.demo-heading { display: grid; gap: 5px; }
.demo-heading h3 { font-family: var(--font-display); font-size: clamp(23px, 3vw, 34px); font-weight: 560; letter-spacing: -0.02em; }
.demo-main p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.demo-body { display: grid; gap: 14px; min-width: 0; }
.demo-feature-grid, .demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-feature, .demo-kpi, .demo-compose {
  min-width: 0; display: grid; align-content: start; gap: 9px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--glass-raise); overflow-wrap: anywhere;
}
.demo-feature > strong { font-size: 14px; line-height: 1.25; }
.demo-kpi strong { font-family: var(--font-mono); font-size: 25px; line-height: 1; font-weight: 600; }
.demo-kpi small, .demo-feature small { font-size: 11px; color: var(--muted); }
.demo-credits { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--teal-line); border-radius: 14px; background: var(--teal-tint); }
.demo-credits .cr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.demo-credits .cr-nums { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.demo-credits .cr-nums b { font-size: 19px; font-weight: 600; display: block; }
.demo-credits .cr-ledger { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.demo-art { aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: clamp(10px, 1.8vw, 18px); border-radius: 9px; overflow: hidden; color: #eef4f2; background: #14201d; }
.demo-art.sand { background: #ddd2ba; color: #23241f; }
.demo-art.olive { background: #2c3e35; color: #f0e9d6; }
.demo-art svg.artwork { width: 100%; height: auto; max-height: 42%; flex: 1; min-height: 20px; }
.art-brand { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; }
.art-brand .art-logo { width: 17px; height: 17px; }
.demo-art strong { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 32px); font-weight: 560; letter-spacing: -0.02em; line-height: 1.02; }
.demo-art small { font-size: 10px; line-height: 1.25; color: inherit; }
.demo-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; align-items: center; }
.demo-state { font: 600 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 4px 7px; border-radius: 6px; }
.demo-state.approved { color: var(--teal); border-color: var(--teal-line); }
.demo-state.skipped { color: var(--faint); }
.demo-caption { font-size: 12.5px !important; line-height: 1.45; }
.demo-button, .demo-reset {
  font: 600 12.5px var(--font-ui); min-height: 44px; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; color: var(--ink); background: var(--glass); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.demo-button:hover, .demo-reset:hover { border-color: var(--line-strong); background: var(--glass-raise); }
.demo-button.primary { background: var(--teal-tint); border-color: var(--teal-line); color: var(--ink); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-actions button { flex: 1; }
.demo-edit { font-size: 12.5px; }
.demo-edit summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--muted); }
.demo-compose textarea, .demo-edit textarea {
  width: 100%; min-height: 96px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px;
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg-raise);
}
.demo-day { display: grid; gap: 6px; align-content: start; min-width: 0; }
.demo-chart { display: grid; gap: 14px; }
.demo-chart-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 26px; gap: 10px; align-items: center; font-size: 12px; }
.demo-track { background: var(--line); height: 12px; border-radius: 6px; overflow: hidden; }
.demo-track span { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width 0.4s ease; }
.demo-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.demo-review small { max-width: 62ch; font-size: 11px; color: var(--muted); }
.demo-tab:focus-visible, .demo-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 850px) { .product-demo { grid-template-columns: 140px minmax(0, 1fr); } .demo-art { padding: 10px; } .demo-feature { padding: 10px; } .demo-feature-grid { gap: 8px; } }
@media (max-width: 650px) {
  .product-demo { grid-template-columns: 1fr; }
  .demo-side { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 10px; display: grid; }
  .demo-brand { grid-column: 1 / -1; padding: 0 4px 6px; }
  .demo-tab { display: grid; justify-items: center; text-align: center; font-size: 10px; gap: 3px; padding: 5px 1px; min-width: 0; }
  .demo-feature-grid, .demo-kpis { grid-template-columns: 1fr; }
  .demo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-kpi { padding: 9px; } .demo-kpi strong { font-size: 19px; } .demo-kpi small { font-size: 9.5px; }
}

/* ---------- Bottom of page: checkout + actions ---------- */
.ath-bottom { max-width: 1320px; margin: auto; padding: 8px clamp(18px, 4vw, 64px) clamp(44px, 6vw, 72px); display: grid; gap: 26px; }
.ath-bottom-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ath-bottom-actions .ba-copy { display: grid; gap: 4px; }
.ath-bottom-actions .ba-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.commercial-footer { display: block; max-width: none; padding: 0; background: var(--bg-raise); color: var(--ink); border-top: 1px solid var(--line); }
.foot-inner { max-width: 1320px; margin: auto; padding: 48px clamp(18px, 4vw, 64px) 26px; display: block; }
.foot-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-intro > div { display: grid; gap: 14px; }
.foot-intro h2 { font-size: clamp(30px, 4.6vw, 54px); }
.commercial-footer p, .commercial-footer small { color: var(--muted); }
.foot-cta { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); display: grid; gap: 12px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 20px 0; }
.foot-links nav { display: grid; gap: 2px; }
.foot-links a { min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-inner > small { display: block; overflow-wrap: anywhere; }
.foot-inner .brand { width: fit-content; color: var(--ink); font-weight: 800; letter-spacing: 0.04em; }

/* ---------- Industry page (rendered by bl55-industries.js) ---------- */
.industry-page { max-width: 1320px !important; margin-inline: auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 64px) !important; display: grid; gap: 18px; }
.industry-page > h1 { font-size: clamp(38px, 5.6vw, 72px); }
.industry-page .card { border-radius: 18px; padding: 24px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.industry-page .card p, .industry-page .card li { color: var(--muted); }
.industry-index { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-index a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.industry-index a[aria-current="page"] { color: var(--ink); border-color: var(--teal); background: var(--teal-tint); }

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.8, 0.24, 1); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive shell ---------- */
@media (max-width: 1050px) { .top nav { gap: 2px; } }
@media (max-width: 860px) { .top nav { display: none; } }
@media (max-width: 640px) {
  h1 { font-size: clamp(26px, 7.4vw, 42px); line-height: 1.05; }
  .commercial-hero h1 { font-size: clamp(26px, 7.4vw, 42px); line-height: 1.05; }
  .top { padding: 10px 14px; gap: 8px; min-height: 64px; }
  .top .brand { font-size: 15.5px; gap: 7px; }
  .top .brand small { font-size: 9.5px; }
  .mark { width: 29px; height: 29px; }
  .ath-icon-btn { width: 44px; height: 44px; }
  .ath-menu { border-radius: 0; padding: 20px; }
  .commercial-hero { padding-top: 40px; }
  .foot-intro, .foot-links { grid-template-columns: 1fr; }
  .ath-prompt { min-height: 54px; padding-left: 16px; }
  .ath-prompt .prompt-go { padding: 8px 12px; }
}
@media (max-width: 380px) { .top .brand small { display: none; } .demo-tab { font-size: 9px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}