/* ==========================================================================
   TAXIC — Design System
   Rural loop-taxi delivery platform. Dark-first, gold accent, light theme ready.
   Load once per page: <link rel="stylesheet" href="/assets/css/taxic.css">
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Brand ------------------------------------------------------------------ */
  --gold:        #E5B93C;
  --gold-soft:   #F7DFA0;
  --gold-deep:   #A87C15;
  --green:       #059669;   /* settlement / success */
  --green-lit:   #2FBF71;
  --amber:       #D97706;   /* warning / attention */
  --red:         #E5484D;

  /* Surfaces (dark default) ------------------------------------------------ */
  --bg:          #0B0A08;
  --bg-alt:      #100E0A;
  --surface:     #16130D;
  --surface-2:   #1E1A12;
  --surface-3:   #282318;
  --line:        rgba(247, 232, 195, 0.10);
  --line-strong: rgba(247, 232, 195, 0.20);
  --wash:        rgba(247, 232, 195, 0.035);

  /* Ink -------------------------------------------------------------------- */
  --text:        #F7F3E9;
  --text-2:      #BEB5A2;
  --text-3:      #968D7B;  /* >= 4.5:1 on --surface-2, used for small labels */
  --accent-text: var(--gold);
  --on-accent:   #15130C;

  /* Effects ---------------------------------------------------------------- */
  --gold-ghost:  rgba(229, 185, 60, 0.10);
  --gold-edge:   rgba(229, 185, 60, 0.32);
  --shadow-1:    0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  --shadow-2:    0 2px 6px rgba(0, 0, 0, 0.45), 0 28px 60px -32px rgba(0, 0, 0, 0.95);
  --glow:        0 0 0 1px var(--gold-edge), 0 18px 50px -24px rgba(229, 185, 60, 0.45);

  /* Geometry --------------------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --maxw: 1200px;
  --maxw-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 68px;

  /* Type ------------------------------------------------------------------- */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1:  clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --step-2:  clamp(1.35rem, 1.22rem + 0.6vw, 1.7rem);
  --step-3:  clamp(1.7rem, 1.45rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-5:  clamp(2.5rem, 1.7rem + 3.8vw, 4.6rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Light theme -------------------------------------------------------------- */
:root[data-theme='light'] {
  --bg:          #FAF8F1;
  --bg-alt:      #F1EEE2;
  --surface:     #FFFFFF;
  --surface-2:   #F5F2E7;
  --surface-3:   #E9E5D6;
  --line:        rgba(23, 21, 16, 0.12);
  --line-strong: rgba(23, 21, 16, 0.26);
  --wash:        rgba(23, 21, 16, 0.02);

  --text:        #171510;
  --text-2:      #4E4B3F;
  --text-3:      #6D6A5E;  /* >= 4.5:1 on --surface-2, used for small labels */
  --accent-text: #87640F;
  --on-accent:   #15130C;

  --gold-ghost:  rgba(168, 124, 21, 0.10);
  --gold-edge:   rgba(168, 124, 21, 0.35);
  --shadow-1:    0 1px 2px rgba(24, 22, 12, 0.06), 0 10px 26px -18px rgba(24, 22, 12, 0.35);
  --shadow-2:    0 2px 6px rgba(24, 22, 12, 0.07), 0 26px 60px -34px rgba(24, 22, 12, 0.4);
  --glow:        0 0 0 1px var(--gold-edge), 0 18px 44px -26px rgba(168, 124, 21, 0.5);

  color-scheme: light;
}

/* Ink block — force the dark palette on a section inside a light page. */
.ink {
  --bg:          #0B0A08;
  --bg-alt:      #100E0A;
  --surface:     #16130D;
  --surface-2:   #1E1A12;
  --surface-3:   #282318;
  --line:        rgba(247, 232, 195, 0.10);
  --line-strong: rgba(247, 232, 195, 0.20);
  --wash:        rgba(247, 232, 195, 0.035);
  --text:        #F7F3E9;
  --text-2:      #BEB5A2;
  --text-3:      #968D7B;
  --accent-text: var(--gold);
  --gold-ghost:  rgba(229, 185, 60, 0.10);
  --gold-edge:   rgba(229, 185, 60, 0.32);
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> only selects a source — it must not introduce a layout box,
   so rules written against the inner <img> keep working unchanged. */
picture { display: contents; }

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

/* Optical tracking — large type needs a tighter fit than small type at the same
   nominal letter-spacing. Pairs with the --step-* scale in TOKENS. */
.display, .hero h1        { letter-spacing: -0.038em; line-height: 1.04; }
.title-xl, .page-head h1  { letter-spacing: -0.032em; line-height: 1.07; }
.title-lg                 { letter-spacing: -0.026em; line-height: 1.14; }
.title                    { letter-spacing: -0.018em; }
.title-sm                 { letter-spacing: -0.008em; line-height: 1.3; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold); color: var(--on-accent); }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--gold);
  color: var(--on-accent);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--wide { max-width: 1360px; }

.section { padding-block: clamp(4rem, 8.5vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }

.stack { display: flex; flex-direction: column; }
.stack-sm { gap: 0.6rem; }
.stack-md { gap: 1rem; }
.stack-lg { gap: 1.75rem; }

.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--center { justify-content: center; }

.center { text-align: center; margin-inline: auto; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY COMPONENTS
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before { display: none; }

.display   { font-size: var(--step-5); }
.title-xl  { font-size: var(--step-4); }
.title-lg  { font-size: var(--step-3); }
.title     { font-size: var(--step-2); }
.title-sm  { font-size: var(--step-1); }

.lede {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}

.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }
.gold  { color: var(--accent-text); }
.mono  { font-family: var(--font-mono); }
.num   { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.small { font-size: var(--step--1); }
.tiny  { font-size: 0.72rem; }

.prose { max-width: 70ch; }
.prose p + p { margin-top: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; margin-bottom: 0.85rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; margin-bottom: 0.6rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.15rem; color: var(--text-2); }
.prose li + li { margin-top: 0.45rem; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head__text { display: flex; flex-direction: column; gap: 0.7rem; }
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --------------------------------------------------------------------------
   5. ICONS
   -------------------------------------------------------------------------- */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.65rem; height: 1.65rem; }
.icon--xl { width: 2.1rem; height: 2.1rem; }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--gold-ghost);
  color: var(--accent-text);
  border: 1px solid var(--gold-edge);
  flex: none;
}
.icon-tile--plain {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease), opacity 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.05rem; height: 1.05rem; }

.btn--primary {
  background: linear-gradient(180deg, #EFC75A 0%, var(--gold) 55%, #D9A92E 100%);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 246, 214, 0.45) inset,
              0 10px 26px -16px rgba(229, 185, 60, 0.85);
}
.btn--primary:hover {
  filter: brightness(1.05) saturate(1.04);
  box-shadow: 0 1px 0 rgba(255, 246, 214, 0.55) inset,
              0 16px 34px -14px rgba(229, 185, 60, 0.9);
}

.btn--outline {
  border-color: var(--gold-edge);
  color: var(--accent-text);
  background: var(--gold-ghost);
}
.btn--outline:hover { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { background: var(--wash); border-color: var(--text-3); }

.btn--solid {
  background: var(--text);
  color: var(--bg);
}
.btn--solid:hover { opacity: 0.88; }

.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; border-radius: var(--r-xs); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 0.98rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.88rem;
}
.link-arrow .icon { transition: transform 0.22s var(--ease); width: 1rem; height: 1rem; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. BADGES / PILLS / TAGS
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--wash);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pill--gold { border-color: var(--gold-edge); background: var(--gold-ghost); color: var(--accent-text); }
.pill--green { border-color: rgba(47, 191, 113, 0.35); background: rgba(47, 191, 113, 0.1); color: var(--green-lit); }
.pill--amber { border-color: rgba(217, 119, 6, 0.35); background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.pill--solid { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-xs);
  background: var(--gold-ghost);
  border: 1px solid var(--gold-edge);
  color: var(--accent-text);
  align-self: flex-start;
}

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-lit); flex: none;
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18);
}
.dot--live { animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0.02); }
}

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(247, 232, 195, 0.045) inset;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card--hover:hover {
  border-color: var(--gold-edge);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(247, 232, 195, 0.07) inset, var(--shadow-2);
}
.card--flat { background: transparent; }
.card--wash { background: var(--wash); }
.card--pad-lg { padding: clamp(1.8rem, 3.5vw, 2.75rem); }
.card__title { font-size: var(--step-1); }
.card__body { color: var(--text-2); font-size: 0.94rem; }

.card--feature { gap: 1.15rem; }
.card--feature .card__title { font-size: 1.12rem; letter-spacing: -0.01em; }

/* Numbered step card */
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--gold-edge); transform: translateY(-3px); }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.step::after {
  content: attr(data-num);
  position: absolute;
  right: -0.4rem;
  bottom: -1.6rem;
  font-family: var(--font-mono);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  opacity: 0.045;
  pointer-events: none;
}

/* Media card with photo */
.media-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s var(--ease);
}
.media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.15) 0%, rgba(11, 10, 8, 0.55) 55%, rgba(11, 10, 8, 0.94) 100%);
}
.media-card:hover img { transform: scale(1.05); }
.media-card__body { padding: clamp(1.25rem, 2.5vw, 1.9rem); color: #fff; display: flex; flex-direction: column; gap: 0.4rem; }
.media-card__body h3 { font-size: 1.1rem; color: #fff; }
.media-card__body p { color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   9. STATS
   -------------------------------------------------------------------------- */

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat__value {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__value--gold { color: var(--accent-text); }
.stat__note { font-size: 0.76rem; color: var(--text-3); }

@media (max-width: 860px) { .stat-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stat-bar { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. HEADER / NAV
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #15130C;
  flex: none;
  box-shadow: 0 6px 18px -10px rgba(229, 185, 60, 0.9);
}
.brand__mark .icon { width: 19px; height: 19px; stroke-width: 2.2; }
.brand__name { font-size: 1.12rem; letter-spacing: 0.01em; }
.brand__name span { color: var(--accent-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-xs);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--wash); }
.nav__links a[aria-current='page'] { color: var(--accent-text); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  color: var(--text-2);
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--wash); }

.nav__toggle { display: none; }

.theme-toggle .icon--moon { display: none; }
:root[data-theme='light'] .theme-toggle .icon--moon { display: block; }
:root[data-theme='light'] .theme-toggle .icon--sun { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 899;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.drawer a[aria-current='page'] { color: var(--accent-text); }
.drawer .btn { margin-top: 1.5rem; border-bottom: 0; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__actions .btn--cta { display: none; }
}

/* --------------------------------------------------------------------------
   11. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 10, 8, 0.97) 0%, rgba(11, 10, 8, 0.91) 34%, rgba(11, 10, 8, 0.56) 64%, rgba(11, 10, 8, 0.40) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.72) 0%, transparent 28%, rgba(11, 10, 8, 0.88) 100%),
    radial-gradient(1100px 480px at 76% 28%, rgba(229, 185, 60, 0.11), transparent 68%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; max-width: 42rem; }
.hero h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 0.5rem; }
.hero__proof div { display: flex; flex-direction: column; }
.hero__proof dt { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(247, 243, 233, 0.55); }
.hero__proof dd { font-size: 1.15rem; font-weight: 800; margin: 0; }

.hero.ink, .hero .hero__copy { color: #F7F3E9; }
.hero .lede { color: rgba(247, 243, 233, 0.82); }

/* Live activity feed cards floating in the hero */
.feed { display: flex; flex-direction: column; gap: 0.75rem; }
.feed__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(247, 232, 195, 0.16);
  border-left: 2px solid var(--gold);
  background: rgba(16, 14, 10, 0.80);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  color: #fff;
  animation: feed-float 7s ease-in-out infinite alternate;
}
.feed__item:nth-child(2) { animation-delay: 1.4s; }
.feed__item:nth-child(3) { animation-delay: 2.8s; }
.feed__item:nth-child(4) { animation-delay: 4.2s; }
.feed__item .icon-tile { width: 36px; height: 36px; background: rgba(229, 185, 60, 0.14); border-color: rgba(229, 185, 60, 0.3); color: var(--gold); }
.feed__meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.feed__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; font-weight: 700; color: var(--gold); }
.feed__text { font-size: 0.83rem; color: rgba(255, 255, 255, 0.9); }

@keyframes feed-float {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(4px, -7px, 0); }
  100% { transform: translate3d(-3px, 4px, 0); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
}

/* Compact page header for interior pages */
.page-head {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 12% -10%, var(--gold-ghost), transparent 70%),
    var(--bg);
}
.page-head__inner { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.page-head h1 { font-size: var(--step-4); }

.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   12. FEATURE / SPLIT BLOCKS
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
}

.figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  position: relative;
}
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 8, 0.9));
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); font-size: 0.94rem; }
.check-list .icon { color: var(--accent-text); margin-top: 0.22rem; width: 1.05rem; height: 1.05rem; }
.check-list strong { color: var(--text); font-weight: 700; }

.kv-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.kv-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list dt, .kv-list .k { color: var(--text-2); }
.kv-list dd, .kv-list .v { margin: 0; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Timeline */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline li {
  position: relative;
  padding: 0 0 2rem 2.25rem;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.timeline p { font-size: 0.9rem; color: var(--text-2); }
.timeline__when { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); display: block; margin-bottom: 0.3rem; }

/* --------------------------------------------------------------------------
   13. TABLES
   -------------------------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  min-width: 640px;
}
table.data thead th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--wash); }
table.data td strong, table.data td b { color: var(--text); font-weight: 700; }
table.data .is-gold { color: var(--accent-text); font-weight: 700; }
table.data .is-pos { color: var(--green-lit); font-weight: 700; }
table.data .is-neg { color: var(--red); font-weight: 700; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field__hint { font-size: 0.72rem; color: var(--text-3); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-ghost);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}
.field__error { font-size: 0.72rem; color: var(--red); font-weight: 600; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* Range sliders */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  cursor: pointer;
  margin: 0.6rem 0 0.2rem;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  cursor: grab;
}
.range:disabled { opacity: 0.45; cursor: not-allowed; }

/* Callout / note */
.note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 0.86rem;
  color: var(--text-2);
}
.note .icon { color: var(--accent-text); margin-top: 0.15rem; flex: none; }
.note--gold { border-color: var(--gold-edge); background: var(--gold-ghost); }
.note--green { border-color: rgba(47, 191, 113, 0.3); background: rgba(47, 191, 113, 0.08); }
.note--green .icon { color: var(--green-lit); }

.code-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--gold-ghost);
  border: 1px dashed var(--gold-edge);
  border-radius: var(--r-xs);
  padding: 0.6rem 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent-text); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--text-2); font-size: 0.93rem; max-width: 72ch; }

/* --------------------------------------------------------------------------
   16. CTA BAND
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.75rem);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 55%, #FFF0C4 100%);
  color: var(--on-accent);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 88% 110%, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: var(--step-3); color: var(--on-accent); position: relative; z-index: 1; }
.cta-band p { color: rgba(21, 19, 12, 0.78); font-weight: 500; position: relative; z-index: 1; max-width: 46ch; }
.cta-band .stack, .cta-band form { position: relative; z-index: 1; }
.cta-band .btn--solid { background: #15130C; color: #FFF6DC; }
.cta-band .btn--solid:hover { background: #2A261A; opacity: 1; }
.cta-band .btn--ghost { border-color: rgba(21, 19, 12, 0.4); color: #15130C; }
.cta-band .btn--ghost:hover { background: rgba(21, 19, 12, 0.08); border-color: #15130C; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Form on gold */
.cta-band .field__label { color: rgba(21, 19, 12, 0.72); }
.cta-band .input, .cta-band .select, .cta-band .textarea {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(21, 19, 12, 0.28);
  color: #15130C;
}
.cta-band .input::placeholder { color: rgba(21, 19, 12, 0.42); }
.cta-band .input:focus, .cta-band .select:focus, .cta-band .textarea:focus {
  border-color: #15130C;
  box-shadow: 0 0 0 3px rgba(21, 19, 12, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.cta-band .field__error { color: #8A1515; }
.cta-band .form-note { color: rgba(21, 19, 12, 0.62); }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 34ch; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.87rem; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. MODAL + TOAST
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--gold-edge);
  border-radius: var(--r);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-2);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__card { transform: none; }
.modal__card h2 { font-size: 1.35rem; }
.modal__card p { color: var(--text-2); font-size: 0.9rem; }
.modal__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-ghost); border: 1px solid var(--gold-edge);
  color: var(--accent-text);
}
.modal__icon .icon { width: 26px; height: 26px; }

.toast-stack {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 2100;
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  font-size: 0.85rem;
  animation: toast-in 0.3s var(--ease);
}
.toast--ok .icon { color: var(--green-lit); }
.toast--err .icon { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.install-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2200;
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem 1.1rem;
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.install-banner.is-visible { opacity: 1; transform: translateY(0); }
.install-banner__icon {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.install-banner__body { flex: 1; min-width: 0; }
.install-banner__title { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.2rem; }
.install-banner__desc { font-size: 0.8rem; color: var(--text-2); margin: 0; line-height: 1.45; }
.install-banner__actions { flex: none; display: flex; align-items: center; gap: 0.4rem; }
.install-banner__close .icon { width: 18px; height: 18px; }
/* Dedicated so taxic.js (shared with the v2 template) never has to pick
   between .btn--primary (here) and .btn--gold (v2) - identical to what
   .btn.btn--primary.btn--sm rendered before this class existed. */
.install-banner__action {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.9rem; border-radius: var(--r-xs);
  background: linear-gradient(180deg, #EFC75A 0%, var(--gold) 55%, #D9A92E 100%);
  color: var(--on-accent);
  font-weight: 700; font-size: 0.8rem; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 246, 214, 0.45) inset, 0 10px 26px -16px rgba(229, 185, 60, 0.85);
}
.install-banner__action:hover { filter: brightness(1.05); }
@media (max-width: 480px) {
  .install-banner { flex-wrap: wrap; }
  .install-banner__actions { width: 100%; justify-content: flex-end; }
}

.footer-install-link {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-size: 0.87rem;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.footer-install-link:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   19. DECK (slide viewer)
   -------------------------------------------------------------------------- */

.deck { padding-block: clamp(1.5rem, 4vw, 3rem) 6rem; }
.deck__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  min-height: min(74vh, 640px);
}
.slide {
  display: none;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  min-height: min(74vh, 640px);
  flex-direction: column;
  gap: 1.5rem;
  animation: slide-in 0.45s var(--ease);
}
.slide.is-active { display: flex; }
@keyframes slide-in { from { opacity: 0; transform: translateY(14px); } }

.slide__head { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.slide__head h2 { font-size: var(--step-3); }
.slide__body { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); align-content: start; }
.slide__body--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .slide__body--2col { grid-template-columns: 1fr; } }

.deck__controls {
  position: sticky;
  bottom: 1rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}
.deck__dots { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.deck__dot {
  width: 26px; height: 5px; border-radius: var(--r-pill);
  background: var(--surface-3);
  transition: background 0.25s, width 0.25s;
}
.deck__dot[aria-current='true'] { background: var(--gold); width: 34px; }
.deck__count { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-3); min-width: 62px; text-align: center; }

.split-bar {
  display: flex;
  height: 34px;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.split-bar > span {
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  color: var(--on-accent);
  transition: width 0.5s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.split-bar .seg-merchant { background: var(--gold-soft); }
.split-bar .seg-driver { background: var(--gold); }
.split-bar .seg-platform { background: var(--gold-deep); color: #FFF6DC; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; }
.legend__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-2); }
.legend__swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* --------------------------------------------------------------------------
   20. MOTION
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
/* Hint the compositor only while an element is still waiting to animate in.
   Leaving will-change on permanently pins a GPU layer per element for the life
   of the page — on long pages that is dozens of layers that never get released. */
[data-reveal]:not(.is-in) { will-change: opacity, transform; }
[data-reveal='left']  { transform: translateX(-26px); }
[data-reveal='right'] { transform: translateX(26px); }
[data-reveal='fade']  { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Marquee strip */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee__item .icon { color: var(--accent-text); width: 0.95rem; height: 0.95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   21. MISC PATTERNS
   -------------------------------------------------------------------------- */

.qr {
  width: 92px; height: 92px;
  background: #fff;
  border-radius: var(--r-xs);
  padding: 6px;
  display: grid; place-items: center;
}
.qr svg { width: 100%; height: 100%; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.divider-label {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.divider-label::before, .divider-label::after {
  content: ''; height: 1px; background: var(--line); flex: 1;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.doc-card:hover { border-color: var(--gold-edge); transform: translateY(-2px); }
.doc-card h3 { font-size: 1rem; }
.doc-card p { font-size: 0.85rem; color: var(--text-2); flex: 1; }
.doc-card__links { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.doc-card__links a { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.doc-card__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-weight: 800;
}
.price-tag .cur { font-size: 0.85em; color: var(--text-3); }
.price-tag .amt { font-size: 2.1rem; letter-spacing: -0.03em; }

.avatar-quote { display: flex; gap: 1rem; align-items: center; padding-top: 0.5rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
  color: var(--accent-text); flex: none;
  border: 1px solid var(--line);
}

/* Error page */
.error-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   22. PRINT COLLATERAL
   -------------------------------------------------------------------------- */

.sheet {
  /* A print sheet is always light, whatever the site theme is set to. */
  --bg:          #FFFFFF;
  --bg-alt:      #F5F2E7;
  --surface:     #FFFFFF;
  --surface-2:   #F5F2E7;
  --surface-3:   #E9E5D6;
  --line:        rgba(23, 21, 16, 0.16);
  --line-strong: rgba(23, 21, 16, 0.3);
  --wash:        rgba(23, 21, 16, 0.03);
  --text:        #14130D;
  --text-2:      #4E4B3F;
  --text-3:      #75736A;
  --accent-text: #87640F;
  --gold-ghost:  rgba(168, 124, 21, 0.1);
  --gold-edge:   rgba(168, 124, 21, 0.35);
  color-scheme: light;

  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  margin: 2rem auto;
  padding: 16mm;
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sheet__rule { height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 2px; }
.sheet__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.7rem; color: var(--text-3); font-family: var(--font-mono); }

@media (max-width: 800px) {
  .sheet { padding: 1.5rem; min-height: 0; }
}

.print-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

@media print {
  .site-header, .site-footer, .print-bar, .drawer, .toast-stack, .install-banner, .deck__controls, .no-print { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .sheet { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; }
  a[href]::after { content: ''; }
  .slide { display: flex !important; page-break-after: always; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
