/* =========================================================================
   OtoCep — Landing
   Aesthetic: Editorial / driver's-manual. Warm paper, deep ink, single red.
   Type: Futura (Jost fallback) — geometrik sans-serif
   ========================================================================= */

:root {
  --paper:    #F5F5F5;
  --paper-2:  #FFFFFF;
  --paper-3:  #EFEFEF;
  --paper-soft: #E8E8E8;
  --ink:      #0A0A0A;
  --ink-2:    #1A1A1A;
  --mute:     #6B7280;
  --mute-2:   #9CA3AF;
  --line:     rgba(0, 0, 0, 0.08);
  --line-2:   rgba(0, 0, 0, 0.04);
  --red:      #DC2626;
  --red-2:    #B91C1C;
  --red-soft: rgba(220, 38, 38, 0.08);

  --font-display: "Futura", "Futura PT", "Jost", "Trebuchet MS", Arial, sans-serif;
  --font-body:    "Futura", "Futura PT", "Jost", "Trebuchet MS", Arial, sans-serif;
  --font-mono:    "Futura", "Futura PT", "Jost", ui-monospace, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container: 1240px;
  --container-pad: 28px;

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --paper:    #0A0A0A;
  --paper-2:  #141414;
  --paper-3:  #1F1F1F;
  --paper-soft: #2A2A2A;
  --ink:      #F5F5F5;
  --ink-2:    #E5E5E5;
  --mute:     #9CA3AF;
  --mute-2:   #6B7280;
  --line:     rgba(255, 255, 255, 0.08);
  --line-2:   rgba(255, 255, 255, 0.04);
  --red:      #DC2626;
  --red-2:    #7F1D1D;
  --red-soft: rgba(220, 38, 38, 0.12);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

::selection { background: var(--red); color: var(--paper); }

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* Grain overlay — barely-there texture */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
html[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.10;
}

/* Cursor dot — desktop only */
.cursor-dot {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  z-index: 99;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 220ms var(--ease);
  mix-blend-mode: difference;
}
@media (pointer: fine) {
  .cursor-dot.is-active { transform: translate(-50%, -50%) scale(1); }
  .cursor-dot.is-hot { transform: translate(-50%, -50%) scale(3.2); background: var(--ink); }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.caps {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.caps--mute { color: var(--mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow__sep {
  width: 4px; height: 4px;
  background: var(--mute);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: 12px; }
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover { background: var(--red); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-3); }
.btn__brand { display: inline-flex; align-items: center; gap: 8px; }
.btn__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  transition: transform 240ms var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px var(--container-pad);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
  position: relative;
}
.brand__word {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.brand__tr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.topbar__nav {
  display: inline-flex;
  gap: 28px;
  justify-content: center;
}
.topbar__nav a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mute);
  position: relative;
  padding: 4px 0;
  transition: color 220ms var(--ease);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 240ms var(--ease), left 240ms var(--ease);
}
.topbar__nav a:hover::after { width: 100%; left: 0; }
.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.theme-toggle { display: inline-flex; align-items: center; }
.theme-toggle__track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 360ms var(--ease);
}
html[data-theme="dark"] .theme-toggle__thumb { transform: translateX(28px); background: var(--red); }
.theme-toggle__sun, .theme-toggle__moon { z-index: 1; }

.topbar__ticker {
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  animation: tick 38s linear infinite;
  padding-left: 28px;
}
.ticker i {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--red);
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 96px var(--container-pad);
  opacity: 0.45;
}
.hero__lines span {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.hero__inner {
  position: relative;
  z-index: 1;
}

/* Edge marginalia like a book page */
.hero__edge {
  position: absolute;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__edge--left { left: var(--container-pad); }
.hero__edge--right { right: var(--container-pad); }
.hero__edge-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0;
}
.hero__edge-rot { color: var(--mute-2); }
@media (max-width: 880px) { .hero__edge { display: none; } }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
}

/* Headline */
.hero__headline {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 28px 0 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__italic {
  font-style: italic;
  font-weight: 360;
  color: var(--ink);
  position: relative;
  padding: 0 6px;
}
.hero__italic::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  bottom: 4px;
  height: 6px;
  background: var(--red);
  z-index: -1;
  opacity: 0.18;
  transform: skewX(-12deg);
}
.hero__dot {
  display: inline-block;
  color: var(--red);
  transform: translateY(-0.08em);
}

.hero__lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 540px;
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}
.hero__lede strong { font-weight: 700; }

.hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

/* Odometer */
.hero__odo {
  display: inline-flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 var(--line-2);
}
.odo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.odo__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.odo__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.odo__num--text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.odo__sep {
  width: 1px;
  background: var(--line);
}

/* Device */
.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.device {
  position: relative;
  width: 320px;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.18));
}
.device__frame {
  position: relative;
  background: #050505;
  border-radius: 48px;
  padding: 12px;
  border: 1.5px solid #1f1f1f;
}
.device__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #050505;
  border-radius: 14px;
  z-index: 3;
}
.device__screen {
  border-radius: 38px;
  overflow: hidden;
  background: #0A0A0A;
  aspect-ratio: 9 / 19;
}
.screen {
  background: #0A0A0A;
  color: #F5F5F5;
  height: 100%;
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-body);
}
.screen__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  padding: 8px 6px 2px;
}
.screen__icons { letter-spacing: 0.05em; }
.screen__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4px;
}
.screen__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.screen__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 180px;
}
.screen__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2A2A2A, #0A0A0A);
  color: #DC2626;
  display: grid;
  place-items: center;
  font-size: 9px;
  border: 1px solid #2a2a2a;
}
.screen__hero {
  background: linear-gradient(135deg, #2A2A2A, #0A0A0A);
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.screen__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at -20% -10%, rgba(220, 38, 38, 0.18), transparent 60%),
    radial-gradient(80% 60% at 120% 120%, rgba(255,255,255,0.06), transparent 60%);
}
.screen__hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.screen__hero-icon { font-size: 20px; color: #fff; }
.screen__hero-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.screen__hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  padding-top: 4px;
}
.screen__hero-stats > div {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.screen__hero-stats span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.screen__hero-stats strong {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.screen__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}
.screen__card {
  background: #1F1F1F;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen__card--soft { background: #161616; }
.screen__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}
.screen__chip {
  width: 8px; height: 8px;
  border-radius: 2px;
}
.screen__chip--red { background: #DC2626; }
.screen__chip--amber { background: #C8A75A; }
.screen__card-title { flex: 1; }
.screen__price, .screen__days {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 6px;
}
.screen__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.screen__bullets li {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}
.screen__bullets li::before {
  content: "• ";
  color: rgba(255,255,255,0.4);
}
.screen__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}
.screen__tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #141414;
  border-radius: 18px 18px 0 0;
  padding: 14px 8px 18px;
  margin-left: -6px;
  margin-right: -6px;
}
.screen__tab {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
}
.screen__tab.is-active { color: #fff; }

.device__caption {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.device__callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.device__callout-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}
.device__callout--a {
  top: 18%;
  left: -42px;
  transform: translateX(-100%);
}
.device__callout--b {
  bottom: 30%;
  right: -42px;
  transform: translateX(100%);
}
.device__callout--a::after,
.device__callout--b::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--ink);
}
.device__callout--a::after { right: -36px; }
.device__callout--b::after { left: -36px; }
@media (max-width: 1100px) {
  .device__callout { display: none; }
}

.hero__base {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__base-line {
  height: 1px;
  background: var(--line);
}
.hero__base-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================================
   MANIFESTO
   ========================================================================= */
.manifesto {
  background: var(--paper-2);
  color: var(--ink);
  padding: 0 0 96px;
  margin-top: 32px;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--paper);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-style: italic;
  font-weight: 360;
  color: var(--ink);
  animation: tick 44s linear infinite;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.marquee__track i {
  color: var(--red);
  font-style: normal;
  font-size: 0.5em;
  vertical-align: middle;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-top: 80px;
}
@media (max-width: 880px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
}
.manifesto__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}

.manifesto__text {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.manifesto__text em {
  font-style: italic;
  color: var(--red);
}
.manifesto__sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mute);
}

/* =========================================================================
   FEATURES / CHAPTERS
   ========================================================================= */
.features { padding: 128px 0 64px; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 96px;
  max-width: 780px;
}
.section-head--center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 20;
}
.section-head__sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mute);
  margin: 0;
  max-width: 580px;
}

.chapter {
  display: grid;
  grid-template-columns: 96px 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  opacity: 1;
}
.chapter:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 980px) {
  .chapter {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    gap: 32px 24px;
  }
  .chapter__art { grid-column: 1 / -1; }
}
.chapter--reverse .chapter__body { order: 2; }
.chapter--reverse .chapter__art { order: 1; }
@media (max-width: 980px) {
  .chapter--reverse .chapter__body { order: initial; }
  .chapter--reverse .chapter__art { order: initial; }
}

.chapter__num {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}
.chapter__num em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0;
  margin-top: 6px;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.chapter__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 480px;
}
.chapter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}
.chapter__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mute);
}
.chapter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--red);
}

.chapter__art {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Chapter art — Garage */
.chapter__art--garage {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  justify-content: center;
}
.garage-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: transform 320ms var(--ease);
}
.chapter__art--garage:hover .garage-card { transform: translateX(4px); }
.garage-card--1 { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.garage-card__icon { font-size: 22px; opacity: 0.85; }
.garage-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  flex: 1;
}
.garage-card__plate {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.garage-card--1 .garage-card__plate { color: rgba(255,255,255,0.55); }

/* Chapter art — Parts */
.chapter__art--parts {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}
.parts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.parts__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.parts__count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}
.parts__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper-3);
  border-radius: 10px;
  font-size: 14px;
}
.parts__row span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  width: 24px;
}
.parts__row i {
  margin-left: auto;
  color: var(--red);
  font-style: normal;
}
.parts__chips {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.parts__chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--mute);
}
.parts__chip--active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.parts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.parts__grid span {
  font-size: 12.5px;
  padding: 8px 10px;
  background: var(--paper-3);
  border-radius: 8px;
  color: var(--ink);
}
.parts__pill--on {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Chapter art — Scan */
.chapter__art--scan {
  gap: 18px;
  flex-direction: row;
}
@media (max-width: 600px) { .chapter__art--scan { flex-direction: column; } }
.scan {
  display: flex;
  gap: 18px;
  align-items: stretch;
}
.scan__receipt {
  position: relative;
  background: #FFFFFF;
  padding: 22px 18px;
  width: 130px;
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: rotate(-5deg);
  flex-shrink: 0;
}
.scan__rline {
  height: 4px;
  background: var(--ink);
  border-radius: 2px;
  margin: 6px 0;
  opacity: 0.75;
}
.scan__rline--wide { width: 100%; height: 6px; opacity: 1; }
.scan__rline--mid { width: 60%; }
.scan__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(220, 38, 38, 0.32), transparent);
  animation: beam 2.4s var(--ease) infinite;
}
@keyframes beam {
  0%, 100% { transform: translateY(-100%); }
  50%      { transform: translateY(100%); }
}
.scan__panel {
  flex: 1;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scan__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.scan__dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.scan__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.scan__row span { color: var(--mute); }
.scan__row strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}
.scan__match {
  margin-top: 8px;
  background: var(--red-soft);
  color: var(--red);
  border-left: 3px solid var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 6px;
}

/* Chapter art — Docs */
.chapter__art--docs {
  flex-direction: column;
  gap: 14px;
}
.docs { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.docs__card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.docs__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.docs__icon {
  width: 36px; height: 36px;
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink);
}
.docs__row strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
}
.docs__row span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.docs__file {
  background: var(--paper);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.docs__eye { color: var(--red); }
.docs__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.docs__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.docs__status--warn { color: var(--red); }
.docs__status--warn .docs__dot { background: var(--red); }
.docs__status--ok { color: var(--mute); }
.docs__status--ok .docs__dot { background: var(--mute); }
.docs__date { margin-left: auto; color: var(--mute); }

/* Chapter art — Report */
.chapter__art--report { flex-direction: column; justify-content: flex-start; }
.report {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.report__bignum {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.report__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.report__bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 120px;
  margin-top: 24px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.report__bars span {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  transition: transform 320ms var(--ease);
}
.report__bars-this {
  background: var(--red) !important;
  border-color: var(--red) !important;
}
.chapter__art--report:hover .report__bars span { transform: translateY(-2px); }
.report__legend {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 10px;
}

/* Chapter art — Theme */
.chapter__art--theme {
  background: linear-gradient(135deg, var(--paper-2) 50%, var(--ink) 50%);
}
.theme-pair {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.theme-pair__chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
}
.theme-pair__chip--light {
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid var(--line);
}
.theme-pair__chip--dark {
  background: #0A0A0A;
  color: #F5F5F5;
  border: 1px solid #1f1f1f;
}
.theme-pair__chip--sys {
  background: linear-gradient(90deg, var(--paper-3) 50%, #0A0A0A 50%);
  color: var(--ink);
  border: 1px solid var(--line);
  position: relative;
}
.theme-pair__chip--sys span:last-child {
  background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-pair__sun, .theme-pair__moon, .theme-pair__sys { font-size: 22px; }
.theme-pair__sun { color: var(--red); }
.theme-pair__moon { color: #DC2626; }

/* =========================================================================
   DEEP
   ========================================================================= */
.deep {
  padding: 128px 0;
  border-top: 1px solid var(--line);
}
.deep__board {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
}
@media (max-width: 980px) {
  .deep__board { grid-template-columns: 1fr; gap: 24px; }
}
.deep__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.alert {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--red);
}
.alert--soft { border-left-color: var(--ink); }
.alert__icon {
  width: 32px; height: 32px;
  background: var(--paper-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  flex-shrink: 0;
}
.alert--soft .alert__icon { color: var(--ink); }
.alert div { display: flex; flex-direction: column; gap: 2px; }
.alert strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.alert span { font-size: 13px; color: var(--mute); }

.deep__col--mid {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  gap: 32px;
}
.big-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.big-stat:first-child { border-top: 0; padding-top: 0; }
.big-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.big-stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  font-weight: 380;
  letter-spacing: -0.025em;
}
.big-stat__num--red { color: var(--red); font-style: italic; }
.big-stat__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.quick {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px;
}
.quick__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 220ms var(--ease);
}
.quick__row:hover { background: var(--paper-3); }
.quick__row + .quick__row { border-top: 1px solid var(--line); }
.quick__row i {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--mute);
}

/* =========================================================================
   SPECS
   ========================================================================= */
.specs {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.specs__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.specs__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.specs__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .specs__list { grid-template-columns: 1fr; }
}
.specs__list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  gap: 16px;
}
.specs__list > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
@media (max-width: 720px) {
  .specs__list > div:nth-child(odd) { border-right: 0; }
}
.specs__list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.specs__list dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-body);
}

/* =========================================================================
   CTA / DOWNLOAD
   ========================================================================= */
.cta { padding: 128px 0; }
.cta__box {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1px 1.2fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(220, 38, 38, 0.10), transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(10, 10, 10, 0.04), transparent 60%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .cta__box { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .cta__divider { display: none; }
}
.cta__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.cta__side .caps { color: var(--mute); }
.cta__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.cta__price-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.cta__divider {
  background: var(--line);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.cta__sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--mute);
  margin: 0;
  max-width: 460px;
}
.cta__buttons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cta__box .btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.cta__box .btn--solid:hover { background: var(--red); color: var(--paper); }
.cta__box .btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.cta__box .btn--ghost:hover { border-color: var(--ink); background: var(--paper-3); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { padding: 96px 0 128px; }
.faq__list {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: 24px;
  align-items: baseline;
  transition: background-color 220ms var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--paper-2); }
.faq__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.faq__q {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}
.faq__sign {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink);
  transition: transform 280ms var(--ease);
  justify-self: end;
}
.faq__item[open] .faq__sign { transform: rotate(45deg); color: var(--red); }
.faq__a {
  padding: 0 0 32px 104px;
  max-width: 760px;
}
@media (max-width: 720px) {
  .faq__item summary { grid-template-columns: 48px 1fr 32px; gap: 12px; }
  .faq__a { padding-left: 60px; }
}
.faq__a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mute);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}
.footer__inner {
  display: grid;
  gap: 56px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__cols > div .caps--mute {
  margin-bottom: 6px;
  color: var(--mute);
}
.footer__cols a {
  font-size: 14px;
  color: var(--ink);
  transition: color 220ms var(--ease);
}
.footer__cols a:hover { color: var(--red); }
.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================================
   Reveal animations
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 200ms; }

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

/* ---------- Misc ---------- */
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__row { grid-template-columns: 1fr auto; }
  .hero { padding-top: 56px; }
  .features { padding: 80px 0 32px; }
  .deep { padding: 80px 0; }
  .cta { padding: 80px 0; }
  .hero__device { min-height: 0; }
  .device { width: 280px; }
}
