/* Chairtime launch site. Tokens follow docs/site/BRIEF.md and the app's src/styles.css. */

:root {
  --bg: #f5efe4; /* paper cream */
  --surface: #fffaf1; /* cards */
  --surface-sunken: #ece4d5; /* bands, rows */
  --ink: #1d1a17; /* text */
  --ink-muted: #5e564c; /* secondary text */
  --line: #ddd2bf; /* hairlines */
  --line-strong: #c3b59d;
  --red: #c0262d; /* barber-pole red: primary CTA, busy chairs */
  --red-hover: #a51f25;
  --red-ink: #ffffff;
  --red-soft: #f6dcd8;
  --navy: #1f3a5f; /* wait numbers, links */
  --navy-soft: #dbe3ee; /* guard chips */
  --hero: #1f3a5f; /* navy slab fill */
  --hero-ink: #ffffff;
  --hero-muted: rgb(255 255 255 / 0.78);
  --green: #2f6b3f; /* free chair */
  --green-soft: #dcebdc;
  --focus: #1f3a5f;

  --shadow-md: 0 2px 4px rgb(29 26 23 / 0.06), 0 6px 16px rgb(29 26 23 / 0.08);
  --shadow-lg: 0 4px 8px rgb(29 26 23 / 0.08), 0 20px 48px rgb(29 26 23 / 0.18);

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(72px, 12vw, 160px);
  --stripes: repeating-linear-gradient(
    -45deg,
    var(--red) 0 10px,
    var(--surface) 10px 20px,
    var(--navy) 20px 30px,
    var(--surface) 30px 40px
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #211f1c;
    --surface-sunken: #121110;
    --ink: #f3ece0;
    --ink-muted: #b3a998;
    --line: #37332e;
    --line-strong: #4d4740;
    --red: #e5484d;
    --red-hover: #ec6166;
    --red-ink: #1b1a18;
    --red-soft: #43211f;
    --navy: #8fb0dc;
    --navy-soft: #23303f;
    --hero: #1c3050;
    --hero-ink: #f3ece0;
    --hero-muted: rgb(243 236 224 / 0.72);
    --green: #7cc48e;
    --green-soft: #1f3324;
    --focus: #8fb0dc;

    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 6px 16px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.35), 0 20px 48px rgb(0 0 0 / 0.5);
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.stripe-band {
  height: 6px;
  background: var(--stripes);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.dot-green {
  background: var(--green);
}

.dot-red {
  width: 8px;
  height: 8px;
  background: var(--red);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow-red {
  color: var(--red);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head-centre {
  justify-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-text {
  max-width: 56ch;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    border-color 160ms var(--ease);
}

.btn-primary {
  background-color: var(--red);
  color: var(--red-ink);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 6px 18px -6px rgb(192 38 45 / 0.55);
}

.btn-primary:hover {
  background-color: var(--red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background-color: color-mix(in srgb, var(--ink) 5%, transparent);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Logo ---------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.lockup-small .wordmark {
  font-size: 1.125rem;
}

.pole {
  flex: none;
  overflow: visible;
}

@keyframes pole-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pole-stripes {
    animation: pole-drift 6s linear infinite;
  }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.topbar-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.topbar.is-scrolled .topbar-stripe {
  opacity: 1;
}

.topnav {
  display: none;
  gap: 32px;
}

.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.topnav a:hover,
.topnav a:active {
  color: var(--ink);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.topbar-cta {
  min-height: 44px;
  padding: 10px 18px;
}

.label-long {
  display: none;
}

@media (min-width: 900px) {
  .topnav {
    display: flex;
  }
  .label-long {
    display: inline;
  }
  .label-short {
    display: none;
  }
  .topbar-cta {
    padding: 14px 22px;
  }
}

/* ---------- 1. Hero ---------- */

.hero {
  display: grid;
  gap: 56px;
  padding-block: clamp(40px, 8vw, 96px) var(--section-gap);
}

.hero-copy {
  display: grid;
  gap: 24px;
  align-content: center;
  min-width: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0;
}

.br-desk {
  display: none;
}

.hero-sub {
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
}

.small-print {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

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

.desk {
  position: relative;
}

.slab {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 0.12), transparent 55%),
    var(--hero);
  color: var(--hero-ink);
  box-shadow:
    0 4px 8px rgb(29 26 23 / 0.08),
    0 30px 60px -20px rgb(31 58 95 / 0.45);
}

.slab::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--stripes);
}

.desk-slab {
  padding-bottom: 60px;
}

.slab-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.slab-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--hero-ink);
  white-space: nowrap;
}

.desk-chairs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: -20px;
}

.chair-card {
  min-width: 0;
  padding: 16px 16px 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.chair-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.chair-name {
  margin-top: 8px;
  font-weight: 600;
}

.chair-svc {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.chair-left {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.next-up {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.next-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

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

.pills li {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: min(88vh, 860px);
    padding-top: 48px;
  }
  .hero-title {
    font-size: clamp(3.25rem, 7vw, 8.5rem);
  }
  .br-desk {
    display: inline;
  }
  .desk {
    padding-right: 24px;
  }
  .desk-chairs {
    margin-top: -32px;
    margin-left: 24px;
    margin-right: -24px;
  }
  .next-up {
    margin-left: -8px;
    margin-right: 56px;
  }
}

/* Hero entrance: slab first, chairs 120 ms later, then the count-up in main.js. */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .desk-slab {
    animation: rise-in 480ms var(--ease) both;
  }
  html.js .desk-chairs {
    animation: rise-in 480ms var(--ease) 120ms both;
  }
  html.js .next-up {
    animation: rise-in 480ms var(--ease) 240ms both;
  }
}

/* ---------- 2. The door question ---------- */

.band {
  padding-block: var(--section-gap);
}

.band-sunken {
  background: var(--surface-sunken);
}

.door {
  margin-bottom: var(--section-gap);
}

.quotes {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
}

@media (min-width: 760px) {
  .quote:nth-child(2) {
    padding-left: 15%;
  }
  .quote:nth-child(3) {
    padding-left: 30%;
  }
}

.door-text {
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.door-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 3. How the wait works ---------- */

.how {
  margin-bottom: var(--section-gap);
}

.steps {
  display: grid;
  gap: 40px;
  counter-reset: none;
}

.step {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.step-text {
  max-width: 44ch;
  color: var(--ink-muted);
}

.step .diagram {
  margin-top: 8px;
}

.stage-col {
  display: none;
}

.how-caption {
  margin-top: 32px;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* The timeline diagram: 0 to 70 minutes across the full plot width. */
.diagram {
  --pad: 16px;
  --top: 96px;
  --axis: 30px;
  position: relative;
  padding: var(--top) var(--pad) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.diagram::before {
  /* the NOW line */
  content: "";
  position: absolute;
  left: var(--pad);
  top: calc(var(--top) - 6px);
  bottom: calc(var(--axis) - 4px);
  width: 2px;
  margin-left: -1px;
  background: var(--red);
}

.lane + .lane {
  margin-top: 14px;
}

.lane-label {
  margin-bottom: 6px;
  padding-left: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.track {
  position: relative;
  height: 48px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px calc(100% / 7)
  );
  background-size: 100% 100%;
}

.bar {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 48px;
  left: calc(var(--s) / 70 * 100%);
  width: calc((var(--e) - var(--s)) / 70 * 100%);
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: var(--ink);
  transition:
    transform 520ms var(--ease),
    opacity 520ms var(--ease);
}

.bar-seated {
  background: var(--navy-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy) 25%, transparent);
}

.bar-queued {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--red);
}

.bar-svc {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.bar-late {
  transition-delay: 200ms;
}

.flag {
  position: absolute;
  top: -6px;
  left: calc(var(--at) / 70 * 100%);
  width: 2px;
  height: 60px;
  margin-left: -1px;
  background: var(--green);
  transition: opacity 520ms var(--ease);
}

.flag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  border-left: 9px solid var(--green);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.axis {
  position: static;
  height: var(--axis);
  margin-top: 6px;
}

.axis span {
  position: absolute;
  bottom: 6px;
  left: calc(var(--pad) + var(--at) / 70 * (100% - 2 * var(--pad)));
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.axis span:nth-child(2) {
  transform: translateX(-2px);
}

.axis span:last-child {
  transform: translateX(-100%);
}

.axis .now {
  left: var(--pad);
  top: calc(var(--top) - 26px);
  bottom: auto;
  transform: none;
  padding-left: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.answer {
  position: absolute;
  top: 10px;
  bottom: calc(var(--axis) - 4px);
  left: calc(var(--pad) + 45 / 70 * (100% - 2 * var(--pad)));
  border-left: 2px dashed var(--red);
  margin-left: -1px;
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
}

.answer-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 4px 14px 6px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 0.12), transparent 55%),
    var(--hero);
  color: var(--hero-ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgb(31 58 95 / 0.55);
}

/* What each step shows: everything not listed for the step is hidden. */
.diagram[data-step="1"] [data-show]:not([data-show~="1"]),
.diagram[data-step="2"] [data-show]:not([data-show~="2"]),
.diagram[data-step="3"] [data-show]:not([data-show~="3"]),
.diagram[data-step="4"] [data-show]:not([data-show~="4"]) {
  opacity: 0;
}

.diagram[data-step="1"] .bar[data-show]:not([data-show~="1"]),
.diagram[data-step="2"] .bar[data-show]:not([data-show~="2"]),
.diagram[data-step="3"] .bar[data-show]:not([data-show~="3"]) {
  transform: translateX(-32px);
}

.diagram:not([data-step="4"]) .answer {
  transform: translateY(-8px);
}

@media (max-width: 639px) {
  .bar-svc {
    display: none;
  }
}

@media (max-width: 479px) {
  .axis-unit {
    display: none;
  }
  .bar {
    padding: 0 6px;
    font-size: 0.75rem;
  }
  .answer-badge {
    font-size: 2.5rem;
  }
  .diagram {
    --top: 88px;
  }
}

/* Only step 4 shows the badge, so stacked steps 1-3 keep just the NOW label's room. */
.step .diagram:not([data-step="4"]) {
  --top: 44px;
}

/* Desktop with JS and motion: the sticky, scroll-linked stage. */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  html.js .how-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
  }
  html.js .steps {
    gap: 0;
  }
  html.js .step {
    min-height: 70vh;
    align-content: center;
    padding-block: 24px;
  }
  html.js .step .diagram {
    display: none;
  }
  html.js .step-title,
  html.js .step-text {
    transition: opacity 320ms var(--ease);
  }
  html.js .step:not(.is-current) .step-title,
  html.js .step:not(.is-current) .step-text {
    opacity: 0.4;
  }
  html.js .stage-col {
    display: block;
    height: 100%;
  }
  html.js .stage {
    position: sticky;
    top: 96px;
    padding-top: calc(35vh - 160px);
  }
  html.js .stage .diagram {
    --pad: 28px;
    --top: 104px;
    padding-bottom: 8px;
  }
}

@media (min-width: 1000px) {
  .steps {
    gap: 56px;
  }
}

/* ---------- 4. The regulars card ---------- */

.regulars {
  display: grid;
  gap: 40px;
  margin-bottom: var(--section-gap);
}

.regulars .section-head {
  margin-bottom: 0;
  align-content: center;
}

.regulars-text {
  max-width: 50ch;
}

.regular-col {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.regular-card {
  position: relative;
  overflow: hidden;
  padding: 34px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.regular-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--stripes);
}

.regular-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.regular-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regular-phone {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.facts {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 20px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}

.facts dd {
  min-width: 0;
}

.facts .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.guards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--navy-soft);
}

.guard-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.guard-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.regular-note {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

@media (min-width: 560px) {
  .facts > div {
    grid-template-columns: 140px 1fr;
  }
  .guards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .guard {
    flex-direction: column;
    gap: 2px;
  }
}

@media (min-width: 1000px) {
  .regulars {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
  }
}

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .regular-card {
    rotate: -1.5deg;
    transition: rotate 300ms var(--ease);
  }
  .regular-card:hover {
    rotate: 0deg;
  }
}

/* ---------- 5. Features ---------- */

.features {
  margin-bottom: var(--section-gap);
}

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.feature h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--ink-muted);
}

.icon {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .icon-red {
  stroke: var(--red);
}

.icon-num {
  fill: var(--red);
  stroke: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
}

@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    border-color: var(--line-strong);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature:hover {
    transform: translateY(-2px);
  }
}

/* ---------- 6. Try it ---------- */

.try .section-head {
  margin-bottom: 28px;
}

.try-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.try-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: var(--bg);
}

.device {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 19;
  margin-inline: auto;
  padding: 10px;
  border-radius: 36px;
  background: #1d1a17;
  box-shadow:
    var(--shadow-lg),
    0 40px 80px -30px rgb(29 26 23 / 0.35);
}

.device-camera {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #3a3530;
}

.device-screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: var(--bg);
}

@media (min-width: 760px) {
  .device {
    width: 100%;
    max-width: 1080px;
    aspect-ratio: 16 / 10;
    padding: 14px;
    border-radius: 28px;
  }
  .device-camera {
    top: 4px;
  }
  .device-screen {
    border-radius: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  .device {
    box-shadow:
      0 0 0 1px #4d4740,
      var(--shadow-lg),
      0 40px 80px -30px rgb(0 0 0 / 0.5);
  }
}

.try-foot {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 36px;
  text-align: center;
}

.muted-line {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ---------- 7. Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-ink);
}

.closing > .stripe-band {
  position: absolute;
  inset: 0 0 auto;
}

.closing-pole {
  position: absolute;
  right: -70px;
  top: 50%;
  height: 320px;
  width: 224px;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}

.closing-inner {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-block: clamp(80px, 12vw, 140px);
}

.closing-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.closing-text {
  max-width: 44ch;
  font-size: 1.125rem;
  color: var(--hero-muted);
}

.closing-small {
  font-size: 0.875rem;
  color: var(--hero-muted);
}

.closing .btn-primary {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 10px 24px -8px rgb(0 0 0 / 0.45);
}

.closing :focus-visible {
  outline-color: var(--hero-ink);
}

/* ---------- 8. Footer ---------- */

.footer {
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 24px;
  padding-top: 40px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition:
    color 160ms var(--ease),
    text-decoration-color 160ms var(--ease);
}

.footer-links a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

.footer-links a:active {
  color: var(--red-hover);
}

.footer-legal {
  padding-block: 24px 40px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Reveal on scroll (only with JS and motion allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 480ms var(--ease),
      transform 480ms var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  html.js .guard[data-reveal] {
    transform: scale(0.9);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
