/* ============================================================
   ABD module pages — light product shell
   One shared system, eight accent palettes, eight live demos.
   ============================================================ */

:root {
  --ink: #1e2430;
  --ink-2: #343c49;
  --muted: #6d7481;
  --faint: #949a9f;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #f1ede3;
  --line: #ddd6c7;
  --line-2: #ece6da;
  --accent: #9a5b12;
  --accent-soft: #f5e4c7;
  --accent-wash: #fbf4e7;
  --accent-line: #e3cfad;
  --green: #14785c;
  --red: #b23b4b;
  --amber: #a26a12;
  --shadow: 0 22px 55px rgba(49, 41, 27, .11);
  --shadow-sm: 0 8px 24px rgba(49, 41, 27, .07);
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 58% 45% at 84% -8%, var(--accent-wash), transparent 67%),
    radial-gradient(ellipse 42% 34% at 6% 20%, #eef2f4, transparent 72%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(39, 48, 59, .16) .55px, transparent .7px);
  background-size: 25px 25px;
  opacity: .16;
}

body::after {
  content: "";
  position: fixed;
  top: 64px;
  right: -225px;
  z-index: 0;
  width: 520px;
  height: 520px;
  border: 1px dashed var(--accent-line);
  border-radius: 50%;
  opacity: .42;
  pointer-events: none;
}

::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

img, svg { display: block; max-width: 100%; }

.main { position: relative; z-index: 1; }

.wrap {
  width: min(1180px, calc(100% - 52px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 18px;
  z-index: 200;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 0;
  height: 2px;
  background: var(--accent);
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(221, 214, 199, .88);
  background: rgba(246, 243, 236, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 52px));
  height: 68px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 15px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  transform: rotate(-24deg);
  transition: transform .5s ease;
}

.brand:hover .brand-mark::before { transform: rotate(-4deg); }

.brand-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.brand-text b {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 13px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .2s ease;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 42px 0 78px;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.back-link,
.module-id {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link { transition: color .2s ease; }
.back-link:hover { color: var(--accent); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 5.5vw, 74px);
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.hero h1 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.1vw, 6.4rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.accent-word {
  color: var(--accent);
  font-style: italic;
}

.title-dot {
  color: var(--accent);
  font-style: italic;
}

.tagline {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.lede {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .35);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-wash);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  color: var(--ink-2);
  font-size: 10.5px;
}

.meta-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.meta-chip .dot.dev { background: var(--amber); }

.hero-parts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  max-width: 560px;
  margin-top: 10px;
}

.hero-parts span {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-parts p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.65;
}

.hero-orbit {
  position: absolute;
  top: 2px;
  right: -145px;
  z-index: 0;
  width: 450px;
  height: 450px;
  border: 1px dashed var(--accent-line);
  border-radius: 50%;
  opacity: .45;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}

.hero-orbit::before {
  top: 13%;
  left: 7%;
  width: 6px;
  height: 6px;
}

.hero-orbit::after {
  right: 12%;
  bottom: 18%;
  width: 3px;
  height: 3px;
  opacity: .55;
}

.demo-col {
  position: relative;
  z-index: 2;
  min-width: 0;
  scroll-margin-top: 86px;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-caption span:first-child { color: var(--accent); }

/* -------------------------------------------------------------- app shells */

.app-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #f1eee5;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 4px;
  margin-right: 3px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1cabb;
}

.window-title { flex: 1; color: var(--ink-2); }

.window-tag {
  padding: 3px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 6.5px;
}

.app-body { padding: 17px; }

.app-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-head h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.demo-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.5;
}

.demo-actions .demo-note { margin-left: auto; }

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-mini:hover { background: var(--accent); border-color: var(--accent); }

.btn-mini.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-mini.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.btn-mini:disabled { opacity: .55; cursor: wait; }

.btn-mini:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[type="checkbox"] { accent-color: var(--accent); }

/* -------------------------------------------------------------- TimeTax demo */

.focus-clock {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.task-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
}

.task-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 11.5px;
}

.task-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.task-list input { width: 14px; height: 14px; flex: 0 0 auto; }

.task-list input:checked + span {
  color: var(--faint);
  text-decoration: line-through;
}

.task-list b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.task-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- SafeTM demo */

.safe-top strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
}

.safe-top small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
}

.budget-meter {
  height: 6px;
  margin: 10px 0 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e4d7;
}

.budget-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .35s ease;
}

.expense-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #faf7f0;
}

.expense-form label,
.field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.expense-form input,
.expense-form select,
.field input,
.field select,
.crawl-url input,
.leader-input textarea,
.size-field input {
  width: 100%;
  min-height: 31px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.tx-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tx-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
}

.tx-list li span { color: var(--ink-2); }

.tx-list li b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.tx-list li small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

/* ---------------------------------------------------------------- Btick demo */

.app-dark {
  border-color: #293641;
  background: #101821;
  color: #e9f0f5;
  box-shadow: 0 24px 60px rgba(14, 25, 33, .24);
}

.app-dark .window-bar {
  border-color: #293641;
  background: #0a1118;
  color: #91a4b4;
}

.app-dark .window-title { color: #d7e3eb; }
.app-dark .window-dots i { background: #334552; }

.app-dark .window-tag {
  border-color: #3a4c5a;
  background: #182531;
  color: #ffb27a;
}

.app-dark .demo-note { color: #8fa3b4; }
.app-dark .demo-note.warn { color: #ff9aa5; }
.demo-note.warn { color: var(--red); }
.app-dark .app-body { padding: 0; }

.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 0;
}

.quote strong {
  color: #f2f7fa;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.quote span {
  margin-left: 7px;
  color: #5fd2a4;
  font-family: var(--mono);
  font-size: 8px;
}

.quote span.down { color: #ff8a95; }

.tf-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #293641;
  border-radius: 7px;
  background: #0a1118;
}

.tf-group button {
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8195a5;
  font-family: var(--mono);
  font-size: 7px;
  cursor: pointer;
}

.tf-group button.active { background: #293641; color: #fff; }

.bt-chart {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 160px;
  margin-top: 10px;
  padding: 12px 14px 4px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 100% 25%, 7.14% 100%;
}

.bt-candle {
  position: relative;
  flex: 1;
  min-width: 0;
}

.bt-candle::before {
  content: "";
  position: absolute;
  top: var(--top, 20%);
  left: 50%;
  width: 1px;
  height: var(--len, 40%);
  background: var(--col, #5fd2a4);
  transform: translateX(-50%);
}

.bt-candle::after {
  content: "";
  position: absolute;
  top: var(--body-top, 40%);
  left: 50%;
  width: 7px;
  max-width: 80%;
  height: var(--body-h, 12%);
  border-radius: 1px;
  background: var(--col, #5fd2a4);
  transform: translateX(-50%);
}

.order-panel {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding: 11px 14px 14px;
  border-top: 1px solid #293641;
}

.order-row {
  display: flex;
  align-items: end;
  gap: 9px;
}

.side-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #293641;
  border-radius: 7px;
  background: #0a1118;
}

.side-toggle button {
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8fa3b4;
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.side-toggle button.active { background: #293641; color: #fff; }

.size-field {
  display: grid;
  gap: 3px;
  color: #8fa3b4;
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.size-field input {
  min-height: 27px;
  border-color: #334552;
  background: #0a1118;
  color: #e9f0f5;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #9eb0be;
  font-family: var(--mono);
  font-size: 7.5px;
}

.check-row label { display: flex; align-items: center; gap: 5px; }
.check-row input { width: 12px; height: 12px; accent-color: #ffb27a; }

.app-dark .btn-mini {
  border-color: #ffb27a;
  background: #ffb27a;
  color: #101821;
}

.app-dark .btn-mini:hover { background: #ffc69b; border-color: #ffc69b; }

.order-log {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-log li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 5px 0;
  border-top: 1px solid #293641;
  color: #8fa3b4;
  font-family: var(--mono);
  font-size: 7.5px;
}

.order-log b { color: #e9f0f5; font-weight: 400; }

/* ---------------------------------------------------------------- Leader demo */

.leader-demo-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 13px;
}

.leader-input textarea {
  height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.leader-output {
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid var(--line-2);
}

.result-counts {
  display: flex;
  gap: 13px;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.result-counts b { color: var(--ink); font-weight: 500; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.35;
}

.data-table th {
  padding: 5px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: 0; }

.status-pill {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.ok { background: #dff3ea; color: #0d6f55; }
.status-pill.warn { background: #f8e4d6; color: #9b471e; }
.status-pill.muted { background: #ece9df; color: #6d6a60; }

/* -------------------------------------------------------------- Scraimler demo */

.crawl-url {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.crawl-url span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.crawl-url input {
  min-height: 32px;
  padding-left: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
}

.crawl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.crawl-chips span {
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #faf7f0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.crawl-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}

.progress-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e4d7;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .35s ease;
}

.crawl-log {
  height: 53px;
  margin-top: 8px;
  overflow: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.6;
}

.crawl-log p { margin: 0; }
.crawl-log p:last-child { color: var(--ink-2); }

/* --------------------------------------------------------------- Stiletto demo */

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doc-paper {
  min-height: 206px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 29px, rgba(221, 214, 199, .55) 30px, transparent 31px),
    #fffdf8;
  background-size: 100% 100%, 100% 26px;
}

.doc-paper h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  outline: none;
}

.doc-paper p {
  min-height: 19px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.7;
  outline: none;
}

.doc-paper p + p { margin-top: 7px; }

.doc-paper [contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: var(--faint);
}

.doc-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
}

/* --------------------------------------------------------------- PhoneSURG demo */

.phone-demo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

.floorplan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  min-height: 182px;
}

.room {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f4eb;
  color: var(--ink-2);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.room small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

.room:hover,
.room.active {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.signal-panel {
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid var(--line-2);
}

.signal-panel strong {
  display: block;
  margin: 1px 0 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.04em;
}

.signal-bar {
  height: 6px;
  margin-bottom: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e4d7;
}

.signal-bar i {
  display: block;
  width: 56%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .25s ease, background .25s ease;
}

.signal-bar i[data-level="mid"] { background: var(--amber); }
.signal-bar i[data-level="bad"] { background: var(--red); }

.stat-list {
  display: grid;
  gap: 4px;
  margin-bottom: 9px;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  font-size: 9px;
}

.stat-list dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.stat-list dd { color: var(--ink-2); }

.field-log {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}

.field-log > span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-log ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
}

.field-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ AforB demo */

.basket-list {
  display: grid;
  border-top: 1px solid var(--line-2);
}

.basket-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 10px;
  cursor: pointer;
}

.basket-list input { width: 13px; height: 13px; }

.basket-list small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  white-space: nowrap;
}

.store-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.store-card {
  position: relative;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf7f0;
}

.store-card span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.store-card strong {
  display: block;
  margin: 1px 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.store-card .best {
  display: none;
  color: var(--green);
  font-family: var(--mono);
  font-size: 6.5px;
  font-style: normal;
  text-transform: uppercase;
}

.store-card.winner { border-color: var(--accent-line); background: var(--accent-wash); }
.store-card.winner .best { display: block; }

.save-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
}

.save-line strong { color: var(--accent); font-weight: 500; }

/* ------------------------------------------------------------------ sections */

.section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.section-head {
  display: grid;
  grid-template-columns: 188px 1.08fr .82fr;
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 32px;
}

.section-label {
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.15vw, 3.65rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}

.section-head > p:last-child {
  justify-self: end;
  max-width: 415px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

/* --------------------------------------------------------------- snapshots */

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px;
}

.snap-card {
  grid-column: span 6;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.snap-card.wide { grid-column: span 12; }

/* -------------------------------------------------------------- preview deck */

.preview-shell {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.preview-badge.is-actual {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.preview-badge.is-prototype {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.screen-tabs:empty { display: none; }

.screen-tabs {
  display: flex;
  flex: 1 1 460px;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--accent-wash);
}

.screen-tab {
  flex: 1 1 86px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8.5px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.screen-tab:hover { color: var(--ink); }

.screen-tab span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.screen-tab small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.screen-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(40, 33, 22, .08);
}

.screen-tab[aria-selected="true"] span { color: var(--accent); }
.screen-tab[aria-selected="true"] small { color: var(--muted); }

.screen-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.preview-link {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.screen-deck {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px;
}

.screen-deck.is-ready { display: block; }
.screen-deck.is-ready .snap-card { display: none; }
.screen-deck.is-ready .snap-card.is-current { display: block; animation: module-pop .28s ease; }
.screen-deck.is-ready .snap-card.reveal { opacity: 1; transform: none; }

.preview-shell .screen-deck .snap-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.preview-shell .snap-card.wide { grid-column: span 12; }
.preview-shell .snap-label { margin-bottom: 10px; }

.capture-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #0b1014;
}

.capture-open {
  position: relative;
  display: block;
  width: 100%;
  max-height: 640px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #0b1014;
  cursor: zoom-in;
}

.capture-open::after {
  content: "Open full screen ↗";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(10, 16, 20, .78);
  color: #fff;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

.capture-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.capture-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.capture-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-top: 1px solid var(--line-2);
  background: #faf7f0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.capture-frame figcaption span:first-child { color: var(--ink-2); }

.screen-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 18px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.55;
}

.screen-status .status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.screen-status.is-active { color: var(--ink-2); }
.screen-status.is-active .status-dot { background: var(--accent); }

.preview-inspect { cursor: pointer; }
.preview-inspect:hover { background: var(--accent-wash); }
.preview-inspect.is-inspected { outline: 1px solid var(--accent); outline-offset: 1px; }
tr.preview-inspect:hover,
tr.preview-inspect.is-inspected { background: var(--accent-wash); }

.shot-dialog {
  width: min(96vw, 1800px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #f5f5f5;
}

.shot-dialog::backdrop {
  background: rgba(10, 16, 20, .84);
  backdrop-filter: blur(7px);
}

.shot-dialog-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: #0b1014;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.shot-dialog img {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  background: #0b1014;
}

.shot-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(10, 16, 20, .72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.shot-close:hover { background: var(--accent); border-color: var(--accent); }

.shot-caption {
  padding: 8px 12px;
  color: rgba(255, 255, 255, .68);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .screen-tabs { order: 3; flex-basis: 100%; }
  .preview-link { margin-left: 0; }
}

@media (max-width: 760px) {
  .preview-shell { padding: 9px; }
  .preview-toolbar { gap: 7px; }
  .screen-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .screen-tab { flex: 0 0 auto; }
  .preview-badge { font-size: 6px; }
  .capture-open { max-height: 300px; }
  .capture-open::after { font-size: 6px; }
}

.snap-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.snap-label span:first-child { color: var(--accent); }

.mini-window {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fbf9f3;
}

.mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-2);
  background: #f2eee5;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-pill {
  padding: 2px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 6.5px;
}

.mini-body { padding: 12px; }

.mini-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.mini-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.55;
}

/* calendar */

.week-head,
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.week-head {
  padding: 8px 9px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  text-align: center;
  text-transform: uppercase;
}

.week-grid { padding: 5px 9px 9px; }

.day {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 136px;
  padding: 4px;
  border-left: 1px solid var(--line-2);
}

.day:first-child { border-left: 0; }
.day.today { background: var(--accent-wash); }

.cal-block {
  display: block;
  padding: 5px 4px;
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 7.5px;
  line-height: 1.3;
}

.cal-block small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 5.5px;
}

.cal-block.soft { border-left-color: #9aabb8; background: #edf1f3; }
.cal-block.deep { border-left-color: var(--ink); background: #e9e4d8; }

/* bars and score rows */

.score-row,
.budget-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 8px;
}

.score-row span:first-child,
.budget-row span:first-child { color: var(--muted); }

.score-row b,
.budget-row b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  text-align: right;
}

.bar-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e4d8;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

/* review */

.review-note {
  position: relative;
  padding: 5px 4px 9px;
}

.review-mark {
  display: block;
  height: 18px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: .8;
}

.review-note p {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
}

.review-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.metric {
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #faf7f0;
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

/* accounts, budgets, projections */

.account-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.account-tile {
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #faf7f0;
}

.account-tile span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  text-transform: uppercase;
}

.account-tile strong {
  display: block;
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.account-tile small { color: var(--faint); font-size: 7px; }

.budget-list { display: grid; gap: 3px; }

.projection {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 105px;
  padding-top: 9px;
}

.proj {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.proj i {
  display: block;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: var(--accent-soft);
  border-top: 2px solid var(--accent);
}

.proj span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-align: center;
}

/* positions, journal, alerts */

.table-scroll { overflow-x: auto; }

.positions td:last-child,
.positions th:last-child { text-align: right; }

.up { color: var(--green); }
.down { color: var(--red); }

.journal-note {
  padding: 10px;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-wash);
}

.journal-note p {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.35;
}

.journal-note small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

.tag {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

.alert-list { display: grid; gap: 0; }

.alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 9px;
}

.alert-row:last-child { border-bottom: 0; }

.alert-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.alert-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

/* import, queue, review */

.import-box {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 9px;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #faf7f0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-align: center;
}

.field-stack { display: grid; gap: 6px; align-content: start; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #faf7f0;
  color: var(--muted);
  font-size: 8px;
}

.field-row b { color: var(--ink-2); font-weight: 500; }

.queue-list { display: grid; gap: 0; }

.queue-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 8.5px;
}

.queue-row:last-child { border-bottom: 0; }

.queue-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.review-person strong { display: block; font-size: 10px; }
.review-person small { color: var(--muted); font-family: var(--mono); font-size: 6.5px; }

/* recipe, board, comments */

.code-block {
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fbf9f3;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.65;
  white-space: pre;
}

.code-block .k { color: var(--accent); }
.code-block .s { color: #2e7a62; }
.code-block .m { color: #8b6b34; }

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.board-col {
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #faf7f0;
}

.board-col h4 {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-card {
  margin-bottom: 5px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface);
  font-size: 8px;
  line-height: 1.35;
}

.board-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
}

.comment-list { display: grid; gap: 7px; }

.comment {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
}

.comment .avatar {
  width: 20px;
  height: 20px;
  font-size: .7rem;
}

.comment p {
  color: var(--ink-2);
  font-size: 8px;
  line-height: 1.4;
}

.comment small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
}

/* phone cells, trend */

.cell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cell-stat {
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #faf7f0;
}

.cell-stat span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.cell-stat strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.trend {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  padding-top: 7px;
}

.trend i {
  display: block;
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: var(--accent-soft);
  border-top: 2px solid var(--accent);
}

/* aforb offers, summary */

.offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 8.5px;
}

.offer-row:last-child { border-bottom: 0; }

.offer-row b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.summary-item {
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #faf7f0;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

/* ---------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.feature-card h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.feature-card p {
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ profile */

.profile-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
  gap: clamp(32px, 7vw, 84px);
}

.profile-copy .section-label { margin-bottom: 18px; padding-top: 0; }

.profile-copy h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}

.profile-copy p:not(.section-label) {
  max-width: 430px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.profile-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.profile-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}

.profile-list dt {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-list dd {
  color: var(--ink-2);
  font-size: 11.8px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------- next */

.next { padding-bottom: 78px; }

.next-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 100% at 100% 100%, var(--accent-soft), transparent 70%),
    var(--accent-wash);
}

.next-card .section-label { margin-bottom: 12px; padding-top: 0; }

.next-card h2 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.next-card p:not(.section-label) {
  max-width: 440px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.next-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------- footer */

.footer {
  position: relative;
  z-index: 1;
  padding: 34px 0 22px;
  border-top: 1px solid var(--line);
  background: #f1ede3;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer .brand-text b { font-size: 10.5px; }

.footer-note {
  max-width: 270px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .28);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.footer-nav a:hover { border-color: var(--accent-line); background: var(--accent-wash); }

.footer-nav span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-nav b { font-size: 11px; font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 30px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- motion */

.reveal { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

@keyframes module-pop {
  0% { transform: scale(.98); opacity: .7; }
  100% { transform: scale(1); opacity: 1; }
}

.demo-pop { animation: module-pop .25s ease; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(3.2rem, 7.4vw, 5.6rem); }
  .section-head { grid-template-columns: 150px 1fr 1fr; }
  .expense-form { grid-template-columns: 1fr 1fr; }
  .expense-form .btn-mini { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .demo-col { width: min(620px, 100%); }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head > p:last-child { justify-self: start; max-width: 540px; }
  .snapshot-grid { gap: 13px; }
  .snap-card { grid-column: span 12; }
  .profile-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; }
  .feature-num { grid-row: span 2; margin: 3px 0 0; }
  .feature-card h3 { margin-bottom: 5px; }
  .feature-card p { grid-column: 2; }
}

@media (max-width: 760px) {
  .wrap,
  .nav-inner { width: calc(100% - 32px); }

  .nav-inner { height: 62px; }

  .menu-btn { display: block; }

  .nav-links {
    position: absolute;
    top: calc(100% + 7px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 9px 10px; border-radius: 7px; font-size: 12px; }
  .nav-links a:hover { background: var(--accent-wash); }

  .nav-status { display: none; }

  .hero { padding: 25px 0 58px; }
  .hero-topline { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-orbit { right: -290px; opacity: .3; }
  .tagline { font-size: 1.3rem; }
  .lede { font-size: 13.2px; }
  .actions .btn { flex: 1 1 100%; }

  .section { padding: 54px 0; }
  .section-head h2 { font-size: clamp(2.1rem, 9.5vw, 3.1rem); }

  .week-head, .week-grid { min-width: 580px; }
  .calendar-scroll { overflow-x: auto; }
  .leader-demo-grid,
  .phone-demo-grid { grid-template-columns: 1fr; }
  .leader-output { padding: 11px 0 0; border-top: 1px solid var(--line-2); border-left: 0; }
  .phone-demo-grid .signal-panel { padding: 11px 0 0; border-top: 1px solid var(--line-2); border-left: 0; }
  .expense-form { grid-template-columns: 1fr 1fr; }
  .account-row { grid-template-columns: 1fr; }
  .account-tile { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .account-tile strong { margin: 0; }
  .cell-grid { grid-template-columns: repeat(2, 1fr); }
  .import-box { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .basket-list small { display: none; }
  .next-card { padding: 24px; }
  .next-actions { width: 100%; }
  .next-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero-meta { gap: 5px; }
  .meta-chip { font-size: 9.5px; }
  .app-body { padding: 13px; }
  .window-bar { padding: 8px 10px; }
  .window-tag { display: none; }
  .demo-head h3 { font-size: 1.4rem; }
  .task-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .task-meta { display: none; }
  .expense-form { grid-template-columns: 1fr; }
  .expense-form .btn-mini { grid-column: auto; }
  .tx-list li { grid-template-columns: 1fr auto; }
  .tx-list li small { display: none; }
  .order-row { flex-wrap: wrap; }
  .check-row { font-size: 7px; }
  .bt-chart { height: 128px; }
  .chart-top { align-items: flex-start; }
  .floorplan { min-height: 155px; }
  .store-compare { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-nav { width: 100%; }
  .footer-nav a { flex: 1 1 130px; min-width: 0; }
  .footer-bottom { flex-direction: column; }
  .profile-list > div { grid-template-columns: 1fr; gap: 3px; }
}

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

/* ============================================================
   Per-module identities
   Each module gets its own palette, type pairing, texture and
   edge language. The shared shell stays; the character changes.
   ============================================================ */

/* TimeTax — paper planner, burnt amber, editorial serif */
.theme-timetax {
  --paper: #f3eee2;
  --surface: #fffdf6;
  --surface-2: #e9e2d2;
  --ink: #2a2318;
  --ink-2: #453b2b;
  --muted: #756a58;
  --faint: #9d917d;
  --line: #d9cdb7;
  --line-2: #e8dfcf;
  --accent: #a9571e;
  --accent-soft: #eed6bd;
  --accent-wash: #f8efe1;
  --accent-line: #ddc19f;
  --green: #416b52;
  --red: #a1423b;
  --amber: #a9571e;
  --shadow: 0 22px 50px rgba(70, 54, 32, .13);
  --shadow-sm: 0 8px 20px rgba(70, 54, 32, .08);
  --r: 12px;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 58% 42% at 84% -8%, var(--accent-wash), transparent 67%),
    var(--paper);
}

.theme-timetax::before {
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(89, 69, 39, .055) 31px 32px);
  background-size: 100% 32px;
  opacity: 1;
}

.theme-timetax .btn,
.theme-timetax .meta-chip { border-radius: 9px; }
.theme-timetax .snap-card { border-left: 3px solid var(--accent-line); }
.theme-timetax .hero-orbit { border-style: double; border-width: 3px; opacity: .3; }

/* SafeTM — quiet ledger, forest green, soft bank-note forms */
.theme-safetm {
  --paper: #eef4ee;
  --surface: #ffffff;
  --surface-2: #e3ede5;
  --ink: #12271f;
  --ink-2: #294038;
  --muted: #5f746c;
  --faint: #91a39b;
  --line: #cbdcd4;
  --line-2: #e0ece6;
  --accent: #0a6b57;
  --accent-soft: #d4ece2;
  --accent-wash: #e9f6f0;
  --accent-line: #afd8ca;
  --green: #0a6b57;
  --red: #a84138;
  --amber: #9a6a1f;
  --shadow: 0 24px 56px rgba(20, 63, 48, .12);
  --shadow-sm: 0 8px 22px rgba(20, 63, 48, .07);
  --r: 22px;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 64% 52% at 82% -5%, var(--accent-wash), transparent 68%),
    linear-gradient(160deg, #f5faf6 0%, var(--paper) 58%, #e9f1ea 100%);
}

.theme-safetm::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 20px, rgba(10, 107, 87, .045) 20px 21px);
  background-size: auto;
  opacity: 1;
}

.theme-safetm .accent-word,
.theme-safetm .title-dot { font-style: normal; }
.theme-safetm .snap-card { border-radius: 20px; }
.theme-safetm .snap-card,
.theme-safetm .feature-card { background: linear-gradient(180deg, #ffffff, #f6fbf8); }
.theme-safetm .hero-orbit { border-style: double; border-width: 4px; opacity: .24; }

/* Btick — trading terminal, graphite grid, orange tape */
.theme-btick {
  --paper: #eef1ee;
  --surface: #fafbf8;
  --surface-2: #e2e7e4;
  --ink: #111820;
  --ink-2: #26343d;
  --muted: #5b6a72;
  --faint: #8b989e;
  --line: #c6d0d2;
  --line-2: #dce4e4;
  --accent: #f05a28;
  --accent-soft: #ffdfd2;
  --accent-wash: #fff1ea;
  --accent-line: #f0b69f;
  --green: #087a55;
  --red: #c9413b;
  --amber: #b47316;
  --shadow: 0 22px 50px rgba(17, 24, 32, .16);
  --shadow-sm: 0 8px 20px rgba(17, 24, 32, .08);
  --r: 3px;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 62% 45% at 82% -8%, var(--accent-wash), transparent 65%),
    var(--paper);
}

.theme-btick::before {
  background-image:
    linear-gradient(rgba(17, 24, 32, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
}

.theme-btick .hero h1,
.theme-btick .section-head h2,
.theme-btick .profile-copy h2 {
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.theme-btick .btn,
.theme-btick .meta-chip,
.theme-btick .btn-mini,
.theme-btick .window-tag,
.theme-btick .status-pill,
.theme-btick .tag { border-radius: 2px; }
.theme-btick .btn { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.theme-btick .accent-word,
.theme-btick .title-dot { font-style: normal; }
.theme-btick .snap-card,
.theme-btick .feature-card { border-radius: 3px; border-top: 2px solid var(--accent); }
.theme-btick .mini-window { border-radius: 2px; }
.theme-btick .eyebrow-dot { border-radius: 1px; transform: rotate(45deg); }
.theme-btick .hero-orbit { border-radius: 10%; border-style: solid; opacity: .16; transform: rotate(-9deg); }
.theme-btick::after { border-radius: 10%; border-style: solid; opacity: .14; transform: rotate(18deg); }
.theme-btick .app-dark .btn-mini { border-color: var(--accent); background: var(--accent); color: #fff; }
.theme-btick .app-dark .btn-mini:hover { border-color: #ff8058; background: #ff8058; }

/* Leader — screening desk, cool violet, wide technical type */
.theme-leader {
  --paper: #f1effa;
  --surface: #fdfcff;
  --surface-2: #e8e3f5;
  --ink: #1b162c;
  --ink-2: #342d4c;
  --muted: #6b6383;
  --faint: #9c94b3;
  --line: #d5cde8;
  --line-2: #e8e2f4;
  --accent: #5b46c5;
  --accent-soft: #e7e0fb;
  --accent-wash: #f5f1ff;
  --accent-line: #cbbcf0;
  --green: #2c7158;
  --red: #a23e55;
  --amber: #9b6b1c;
  --shadow: 0 24px 55px rgba(52, 38, 101, .13);
  --shadow-sm: 0 8px 22px rgba(52, 38, 101, .07);
  --r: 10px;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Syne", "Trebuchet MS", sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 55% 45% at 12% 5%, #e7e0ff, transparent 68%),
    radial-gradient(ellipse 55% 38% at 92% -4%, var(--accent-wash), transparent 66%),
    var(--paper);
}

.theme-leader::before {
  background-image: radial-gradient(rgba(91, 70, 197, .18) .7px, transparent .9px);
  background-size: 18px 18px;
  opacity: .45;
}

.theme-leader .hero h1,
.theme-leader .section-head h2,
.theme-leader .profile-copy h2 { font-weight: 600; letter-spacing: -.055em; }
.theme-leader .btn { border-radius: 7px; }
.theme-leader .snap-card { border-radius: 12px; border-top: 2px solid var(--accent); }
.theme-leader .feature-card { border-radius: 12px; }
.theme-leader .eyebrow-dot { border-radius: 2px; }
.theme-leader .hero-orbit { border-style: dotted; border-width: 2px; opacity: .38; }
.theme-leader::after { border-style: dotted; border-width: 2px; opacity: .3; }
.theme-leader .accent-word { font-style: normal; }

/* Scraimler — crawler blueprint, deep teal, square data edges */
.theme-scraimler {
  --paper: #eaf5f6;
  --surface: #fbfefe;
  --surface-2: #dceff1;
  --ink: #0c2830;
  --ink-2: #23424a;
  --muted: #57727a;
  --faint: #89a1a7;
  --line: #c4dde2;
  --line-2: #dcecef;
  --accent: #087e8b;
  --accent-soft: #d0edf0;
  --accent-wash: #e8f7f9;
  --accent-line: #a8d7de;
  --green: #1d7959;
  --red: #b3484b;
  --amber: #a47016;
  --shadow: 0 20px 48px rgba(12, 47, 55, .12);
  --shadow-sm: 0 7px 18px rgba(12, 47, 55, .07);
  --r: 7px;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Sora", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 60% 46% at 86% -8%, #d9f4f7, transparent 68%),
    var(--paper);
}

.theme-scraimler::before {
  background-image:
    linear-gradient(rgba(8, 126, 139, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 126, 139, .1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .55;
}

.theme-scraimler .hero h1,
.theme-scraimler .section-head h2,
.theme-scraimler .profile-copy h2 { font-weight: 600; letter-spacing: -.05em; }
.theme-scraimler .btn { border-radius: 5px; }
.theme-scraimler .snap-card { border-radius: 8px; border-top: 2px solid var(--accent); }
.theme-scraimler .feature-card { border-radius: 8px; }
.theme-scraimler .app-window { box-shadow: 0 22px 50px rgba(12, 47, 55, .15); }
.theme-scraimler .accent-word { font-style: normal; }
.theme-scraimler .hero-orbit { border-style: dashed; border-radius: 4%; transform: rotate(7deg); opacity: .32; }

/* Stiletto — editorial studio, ink and blush, sharp serif */
.theme-stiletto {
  --paper: #fbf0f2;
  --surface: #fffbfc;
  --surface-2: #f4e2e7;
  --ink: #2b141c;
  --ink-2: #462b34;
  --muted: #7b5e67;
  --faint: #ab9099;
  --line: #e7ccd3;
  --line-2: #f2e1e6;
  --accent: #b01f45;
  --accent-soft: #f5d8e0;
  --accent-wash: #fdf0f4;
  --accent-line: #e4b3c1;
  --green: #406b56;
  --red: #b01f45;
  --amber: #9d661e;
  --shadow: 0 24px 55px rgba(75, 24, 39, .12);
  --shadow-sm: 0 8px 20px rgba(75, 24, 39, .07);
  --r: 4px;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", monospace;
  background:
    radial-gradient(ellipse 58% 44% at 88% -8%, var(--accent-wash), transparent 67%),
    var(--paper);
}

.theme-stiletto::before {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(176, 31, 69, .06) 29px 30px),
    linear-gradient(90deg, transparent 8%, rgba(176, 31, 69, .06) 8%, rgba(176, 31, 69, .06) calc(8% + 1px), transparent calc(8% + 1px));
  background-size: auto, 100% 100%;
  opacity: 1;
}

.theme-stiletto .hero h1,
.theme-stiletto .section-head h2,
.theme-stiletto .profile-copy h2 { font-weight: 400; letter-spacing: -.045em; }
.theme-stiletto .btn,
.theme-stiletto .meta-chip,
.theme-stiletto .btn-mini,
.theme-stiletto .status-pill,
.theme-stiletto .tag { border-radius: 2px; }
.theme-stiletto .snap-card { border-radius: 4px; border-top: 2px solid var(--accent); }
.theme-stiletto .feature-card { border-radius: 4px; }
.theme-stiletto .mini-window { border-radius: 3px; }
.theme-stiletto .footer { background: #f7e8ec; }
.theme-stiletto .hero-orbit { border-style: solid; border-width: 1px; opacity: .24; }

/* PhoneSURG — field instrument, safety orange, topographic lines */
.theme-phonesurg {
  --paper: #eef3ef;
  --surface: #fbfdfa;
  --surface-2: #e0eae3;
  --ink: #13221c;
  --ink-2: #2c4037;
  --muted: #5e7168;
  --faint: #8da098;
  --line: #c8d8cf;
  --line-2: #ddeae2;
  --accent: #c15a14;
  --accent-soft: #f3dbc7;
  --accent-wash: #fbf0e5;
  --accent-line: #e5c1a4;
  --green: #1d7455;
  --red: #b3453b;
  --amber: #a86a18;
  --shadow: 0 20px 46px rgba(18, 42, 32, .12);
  --shadow-sm: 0 7px 18px rgba(18, 42, 32, .07);
  --r: 2px;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Rajdhani", "Arial Narrow", sans-serif;
  --mono: "Share Tech Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 62% 48% at 85% -7%, #f8e7d8, transparent 66%),
    var(--paper);
}

.theme-phonesurg::before {
  background-image: repeating-radial-gradient(circle at 88% 9%, transparent 0 33px, rgba(193, 90, 20, .055) 33px 34px);
  background-size: auto;
  opacity: .85;
}

.theme-phonesurg .hero h1,
.theme-phonesurg .section-head h2,
.theme-phonesurg .profile-copy h2 {
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.theme-phonesurg .btn,
.theme-phonesurg .meta-chip,
.theme-phonesurg .btn-mini,
.theme-phonesurg .snap-card,
.theme-phonesurg .feature-card { border-radius: 2px; }
.theme-phonesurg .btn { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.theme-phonesurg .snap-card { border-left: 3px solid var(--accent); }
.theme-phonesurg .eyebrow-dot { border-radius: 1px; }
.theme-phonesurg .hero-orbit { border-style: double; border-width: 4px; opacity: .26; }
.theme-phonesurg::after { border-style: double; border-width: 3px; opacity: .24; }
.theme-phonesurg .accent-word { font-style: normal; }

/* AforB — Albert Heijn blue meets Jumbo yellow, shelf labels and bold retail type */
.theme-aforb {
  --paper: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #e9f3f7;
  --ink: #26313a;
  --ink-2: #354550;
  --muted: #61707a;
  --faint: #8b99a2;
  --line: #d5e2e9;
  --line-2: #e7eff3;
  --accent: #007ca6;
  --accent-soft: #b9edfb;
  --accent-wash: #e8f8fd;
  --accent-line: #a5e3f4;
  --ah: #00ade6;
  --ah-deep: #007ca6;
  --jumbo: #fcbf00;
  --jumbo-deep: #dda600;
  --jumbo-wash: #fff6d0;
  --green: #00812d;
  --red: #c4420c;
  --amber: #a56f00;
  --shadow: 0 26px 58px rgba(38, 49, 58, .14);
  --shadow-sm: 0 10px 24px rgba(38, 49, 58, .08);
  --r: 22px;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Archivo", "Trebuchet MS", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  background:
    radial-gradient(ellipse 52% 42% at 88% -4%, rgba(252, 191, 0, .36), transparent 66%),
    radial-gradient(ellipse 46% 36% at 3% 24%, rgba(0, 173, 230, .16), transparent 70%),
    var(--paper);
}

.theme-aforb ::selection { background: var(--jumbo); color: var(--ink); }

.theme-aforb::before {
  background-image:
    radial-gradient(rgba(0, 173, 230, .2) .65px, transparent .85px),
    radial-gradient(rgba(221, 166, 0, .18) .65px, transparent .85px);
  background-size: 30px 30px, 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: .44;
}

.theme-aforb::after {
  top: 52px;
  right: -300px;
  width: 680px;
  height: 680px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(0, 173, 230, .12) 0 50%, rgba(252, 191, 0, .24) 50% 100%);
  opacity: 1;
}

.theme-aforb .progress { height: 3px; background: linear-gradient(90deg, var(--ah), var(--jumbo)); }

.theme-aforb .module-id {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .06em;
}

.theme-aforb .back-link:hover { color: var(--accent); }

.theme-aforb .hero { padding-top: 34px; }
.theme-aforb .eyebrow {
  color: #4d5d67;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.theme-aforb .eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--jumbo);
  box-shadow: 0 0 0 4px var(--jumbo-wash);
}
.theme-aforb .hero h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 7.5vw, 6.9rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.075em;
}
.theme-aforb .accent-word {
  display: inline-block;
  padding: 0 .045em .025em;
  border-radius: .11em;
  background: var(--jumbo);
  color: var(--ink);
  font-style: normal;
  line-height: .92;
  transform: rotate(-1.4deg);
  box-shadow: 0 .055em 0 rgba(38, 49, 58, .14);
}
.theme-aforb .title-dot { color: var(--ah-deep); font-style: normal; }
.theme-aforb .tagline {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.045em;
}
.theme-aforb .lede { max-width: 560px; font-size: 14px; line-height: 1.75; }
.theme-aforb .actions { margin-bottom: 22px; }
.theme-aforb .btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}
.theme-aforb .btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 0 rgba(38, 49, 58, .12);
}
.theme-aforb .btn-primary:hover {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
  transform: translateY(1px);
}
.theme-aforb .btn-ghost {
  border-color: var(--jumbo-deep);
  background: var(--jumbo);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(38, 49, 58, .1);
}
.theme-aforb .btn-ghost:hover {
  border-color: var(--jumbo-deep);
  background: #ffd84d;
  color: var(--ink);
}
.theme-aforb .hero-meta { padding-top: 14px; border-top: 2px solid var(--jumbo); }
.theme-aforb .meta-chip { border-color: #cfe0e8; background: #fff; font-weight: 600; }
.theme-aforb .meta-chip .dot.dev { background: var(--jumbo-deep); }
.theme-aforb .hero-parts span {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .06em;
}
.theme-aforb .hero-parts p { color: var(--muted); font-family: var(--sans); font-size: 9.5px; font-weight: 500; }
.theme-aforb .hero-orbit {
  top: 0;
  right: -150px;
  width: 460px;
  height: 460px;
  border: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0 53%, rgba(252, 191, 0, .4) 54% 62%, transparent 63%);
  opacity: .55;
}
.theme-aforb .hero-orbit::before { top: 10%; left: 12%; width: 8px; height: 8px; background: var(--ah); }
.theme-aforb .hero-orbit::after { right: 14%; bottom: 13%; width: 6px; height: 6px; background: var(--jumbo-deep); opacity: 1; }

.theme-aforb .brand-mark {
  border: 0;
  border-radius: 9px;
  background: var(--jumbo);
  box-shadow: inset 0 -2px 0 var(--jumbo-deep);
}
.theme-aforb .brand-mark::before {
  top: 7px;
  left: 9px;
  width: 9px;
  height: 7px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  transform: none;
}
.theme-aforb .brand:hover .brand-mark::before { transform: none; }
.theme-aforb .brand-mark::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 7px;
  width: 15px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 1px 1px 4px 4px;
  background: rgba(255, 255, 255, .14);
}
.theme-aforb .brand-core { display: none; }
.theme-aforb .brand-text b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: none;
}
.theme-aforb .brand-text small { font-family: var(--sans); font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.theme-aforb .nav-links a { font-weight: 600; }
.theme-aforb .nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--jumbo);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.theme-aforb .nav-status i { width: 6px; height: 6px; background: var(--ah); }

.theme-aforb .demo-caption {
  color: #71808a;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}
.theme-aforb .demo-caption span:first-child { color: var(--ah-deep); }
.theme-aforb .app-window {
  border: 1px solid #cfe2ea;
  border-top: 6px solid var(--jumbo);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 58px rgba(38, 49, 58, .16);
}
.theme-aforb .window-bar {
  padding: 11px 14px;
  border-bottom: 0;
  background: var(--accent);
  color: #fff;
}
.theme-aforb .window-dots i { background: rgba(255, 255, 255, .48); }
.theme-aforb .window-dots i:first-child { background: var(--jumbo); }
.theme-aforb .window-title { color: #fff; font-family: var(--sans); font-weight: 700; letter-spacing: .08em; }
.theme-aforb .window-tag {
  border: 1px solid var(--jumbo);
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
}
.theme-aforb .app-body { padding: 14px; background: linear-gradient(180deg, #fff 0%, #f8fcfe 100%); }
.theme-aforb .basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--accent-wash);
}
.theme-aforb .basket-head .app-kicker {
  margin: 0 0 1px;
  color: var(--ah-deep);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}
.theme-aforb .basket-head strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.theme-aforb .basket-count {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 var(--jumbo-deep);
}
.theme-aforb .basket-list { border-top: 0; }
.theme-aforb .basket-list label {
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid #e3edf2;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
}
.theme-aforb .basket-list label:last-child { border-bottom: 0; }
.theme-aforb .basket-list label:hover { background: #f5fbfd; }
.theme-aforb .basket-list input { width: 15px; height: 15px; accent-color: var(--accent); }
.theme-aforb .basket-list small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
}
.theme-aforb .basket-list small i { color: #acb8bf; font-style: normal; font-weight: 500; }
.theme-aforb .basket-list .price-ah { color: var(--ah-deep); font-weight: 800; }
.theme-aforb .basket-list .price-jumbo {
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-weight: 800;
}
.theme-aforb .store-compare { gap: 9px; margin-top: 12px; }
.theme-aforb .store-card {
  min-height: 96px;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
}
.theme-aforb .store-card span { font-family: var(--sans); font-size: 7.5px; font-weight: 800; letter-spacing: .07em; }
.theme-aforb .store-card strong {
  margin: 2px 0 3px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
}
.theme-aforb .store-ah {
  background: var(--ah);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
}
.theme-aforb .store-ah span { color: rgba(6, 43, 58, .72); }
.theme-aforb .store-jumbo {
  background: var(--jumbo);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--jumbo-deep);
}
.theme-aforb .store-jumbo span { color: rgba(38, 49, 58, .68); }
.theme-aforb .store-card .best {
  display: none;
  align-items: center;
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .06em;
}
.theme-aforb .store-card.winner .best { display: inline-flex; }
.theme-aforb .store-ah .best { background: var(--ink); color: #fff; }
.theme-aforb .store-jumbo .best { background: var(--ink); color: var(--jumbo); }
.theme-aforb .store-ah.winner { background: var(--ah); box-shadow: inset 0 0 0 3px var(--ink), inset 0 -4px 0 rgba(0, 0, 0, .1); }
.theme-aforb .store-jumbo.winner { background: var(--jumbo); box-shadow: inset 0 0 0 3px var(--ink), inset 0 -4px 0 var(--jumbo-deep); }
.theme-aforb .save-line {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #ccdde5;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
}
.theme-aforb .save-line strong {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
}

.theme-aforb .section-head h2,
.theme-aforb .profile-copy h2 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.06em;
}
.theme-aforb .section-label {
  padding-top: 1px;
  padding-left: 9px;
  border-left: 4px solid var(--jumbo);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.theme-aforb .section-head > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.75; }

.theme-aforb .preview-shell {
  border: 1px solid var(--line);
  border-top: 5px solid var(--jumbo);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(38, 49, 58, .1);
}
.theme-aforb .preview-badge {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
}
.theme-aforb .preview-badge.is-prototype {
  border-color: #c6d6de;
  border-style: dashed;
  background: #f7fbfd;
  color: #455660;
}
.theme-aforb .preview-badge i { background: var(--jumbo-deep); }
.theme-aforb .screen-tabs {
  gap: 3px;
  padding: 4px;
  border-color: #ecd27d;
  border-radius: 999px;
  background: var(--jumbo-wash);
}
.theme-aforb .screen-tab {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
}
.theme-aforb .screen-tab:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.theme-aforb .screen-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 124, 166, .22);
}
.theme-aforb .screen-tab[aria-selected="true"] span { color: #fff; }
.theme-aforb .screen-tab[aria-selected="true"] small { color: #c7f0fa; }
.theme-aforb .screen-tab small { font-family: var(--sans); font-weight: 600; }
.theme-aforb .preview-link {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}
.theme-aforb .snap-label { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; }
.theme-aforb .snap-label span:first-child { color: var(--accent); }
.theme-aforb .mini-window { border-color: #d9e7ed; border-radius: 15px; background: #fff; }
.theme-aforb .mini-bar {
  border-color: #e2edf2;
  background: #eef8fc;
  color: #52646e;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .06em;
}
.theme-aforb .mini-pill {
  border-color: #efd47a;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
}
.theme-aforb .mini-body { padding: 14px; }
.theme-aforb .data-table th { font-family: var(--sans); font-weight: 700; }
.theme-aforb .data-table th.ah-col { padding-left: 7px; background: #f3fbfe; color: var(--ah-deep); }
.theme-aforb .data-table th.jumbo-col { padding-left: 7px; background: var(--jumbo-wash); color: #705300; }
.theme-aforb .data-table th.ah-col::before,
.theme-aforb .data-table th.jumbo-col::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}
.theme-aforb .data-table th.ah-col::before { background: var(--ah); }
.theme-aforb .data-table th.jumbo-col::before { background: var(--jumbo); }
.theme-aforb .data-table td.price-ah { color: var(--ah-deep); font-weight: 700; }
.theme-aforb .data-table td.price-jumbo { color: #705300; font-weight: 700; }
.theme-aforb .offer-row { padding: 9px 0; border-bottom-style: dashed; font-weight: 600; }
.theme-aforb .offer-row b {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 800;
}
.theme-aforb .summary-item {
  padding: 11px;
  border: 0;
  border-top: 4px solid var(--ah);
  border-radius: 10px;
  background: #f4fbfe;
}
.theme-aforb .summary-item:nth-child(2) { border-top-color: var(--jumbo); background: var(--jumbo-wash); }
.theme-aforb .summary-item strong { font-family: var(--serif); font-weight: 800; }

.theme-aforb .feature-grid { gap: 16px; }
.theme-aforb .feature-card {
  padding: 23px;
  border: 1px solid #d6e2e8;
  border-top: 4px solid var(--ah);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fcfe);
  box-shadow: 0 12px 30px rgba(38, 49, 58, .07);
}
.theme-aforb .feature-card:nth-child(2) { border-top-color: var(--jumbo); background: linear-gradient(180deg, #fff, #fffdf3); }
.theme-aforb .feature-card:nth-child(3) { border-top-color: var(--ink); }
.theme-aforb .feature-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ah);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1);
}
.theme-aforb .feature-card:nth-child(2) .feature-num { background: var(--jumbo); }
.theme-aforb .feature-card:nth-child(3) .feature-num { background: var(--ink); color: #fff; }
.theme-aforb .feature-card h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.theme-aforb .feature-card p { font-size: 12px; line-height: 1.7; }

.theme-aforb .profile-list {
  padding: 2px 18px;
  border-top: 4px solid var(--jumbo);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.theme-aforb .profile-list > div { padding: 14px 0; border-bottom: 1px solid #e4eef2; }
.theme-aforb .profile-list > div:last-child { border-bottom: 0; }
.theme-aforb .profile-list dt { color: var(--accent); font-family: var(--sans); font-weight: 700; letter-spacing: .08em; }
.theme-aforb .profile-list dd { font-weight: 500; }

.theme-aforb .footer {
  padding-top: 38px;
  border-top: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 5px 0 var(--jumbo);
}
.theme-aforb .footer .brand-text b { color: #fff; }
.theme-aforb .footer .brand-text small { color: #a9bac4; }
.theme-aforb .footer-note { color: #b9c8d0; }
.theme-aforb .footer-return {
  border-color: var(--jumbo);
  background: var(--jumbo);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
}
.theme-aforb .footer-return:hover { border-color: #ffd84d; background: #ffd84d; color: var(--ink); }
.theme-aforb .footer-bottom { border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .64); }
.theme-aforb .footer-bottom span:nth-child(2) { color: var(--jumbo); }

@media (max-width: 900px) {
  .theme-aforb .hero-orbit { right: -250px; top: 40px; opacity: .42; }
}

@media (max-width: 760px) {
  .theme-aforb .hero h1 { font-size: clamp(3.3rem, 16vw, 5.2rem); }
  .theme-aforb .tagline { font-size: 1.35rem; }
  .theme-aforb .module-id { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .theme-aforb .preview-shell { border-top-width: 4px; border-radius: 20px; }
  .theme-aforb .screen-tabs { border-radius: 14px; padding: 3px; }
  .theme-aforb .screen-tab { border-radius: 10px; }
  .theme-aforb .app-body { padding: 11px; }
  .theme-aforb .basket-head { padding: 8px 9px; }
  .theme-aforb .basket-list label { gap: 6px; padding: 7px 2px; font-size: 9.5px; }
  .theme-aforb .basket-list small { display: flex; gap: 2px; font-size: 7px; }
  .theme-aforb .basket-list .price-jumbo { padding: 1px 3px; }
  .theme-aforb .store-card { min-height: 86px; padding: 9px; }
  .theme-aforb .store-card strong { font-size: 1.35rem; }
  .theme-aforb .feature-card { padding: 19px; border-radius: 17px; }
}

@media (max-width: 520px) {
  .theme-aforb .hero-orbit { right: -260px; opacity: .34; }
  .theme-aforb .store-compare { grid-template-columns: 1fr 1fr; gap: 6px; }
  .theme-aforb .store-card { min-height: 82px; padding: 8px; border-radius: 13px; }
  .theme-aforb .store-card span { font-size: 6.5px; }
  .theme-aforb .store-card strong { font-size: 1.22rem; }
  .theme-aforb .store-card .best { padding: 1px 4px; font-size: 5.5px; }
  .theme-aforb .basket-list small { font-size: 6.5px; }
  .theme-aforb .basket-list .price-jumbo { padding: 1px 2px; }
  .theme-aforb .save-line { gap: 6px; font-size: 7px; }
  .theme-aforb .save-line strong { white-space: normal; text-align: right; }
  .theme-aforb .profile-list { padding: 2px 14px; }
  .theme-aforb .profile-list > div { grid-template-columns: 1fr; gap: 3px; }
  .theme-aforb .screen-tab { font-size: 8px; }
  .theme-aforb .screen-tab small { font-size: 5.5px; }
}

/* Footer return link replaces the old adjacent-module navigation. */
.footer-return {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.footer-return:hover { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent); }

.theme-btick .footer-return,
.theme-phonesurg .footer-return,
.theme-stiletto .footer-return { border-radius: 2px; }

/* Tint the shell itself, not only the content inside it. */
.module-page .nav {
  border-bottom-color: var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.module-page .footer { background: var(--surface-2); }

/* AforB keeps the supermarket-white header and dark checkout footer over the shared shell. */
.theme-aforb .nav {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: inset 0 -4px 0 var(--jumbo);
}

.theme-aforb .footer { background: var(--ink); }
