/* ============================================================
   59 MINUTES PRINT — Design System · "Paper & Ink"
   Light-first: warm paper white, ink-black slabs, brand yellow.
   Display: Clash Display · Body: Inter (tabular nums for timers)
   Class API unchanged from v1 — views don't need edits.
   ============================================================ */

/* ------------------------------------------------------------
   1 · Tokens
   ------------------------------------------------------------ */
:root {
  /* Paper scale (backgrounds, lightest → deepest) */
  --paper-0: #FAFAF6;       /* page background — warm paper white */
  --paper-1: #FFFFFF;       /* cards, raised sheets */
  --paper-2: #F1EFE8;       /* subtle wells, alternating sections */
  --paper-3: #E6E4DA;       /* borders, dividers */
  --paper-4: #D2D0C6;       /* stronger strokes */

  /* Ink (the black of the logo — used as deliberate slabs) */
  --ink: #0D0D0D;
  --ink-soft: #1A1A1A;
  --ink-border: rgba(13, 13, 13, 0.10);

  /* Brand */
  --brand: #FFC400;
  --brand-hot: #FFD84D;     /* hover / highlight */
  --brand-deep: #E5B000;    /* pressed / borders on light */
  --brand-glow: rgba(255, 196, 0, 0.45);
  --brand-glow-soft: rgba(255, 196, 0, 0.16);

  /* Text (ink on paper) */
  --text-hi: #0D0D0D;
  --text-mid: #454540;
  --text-low: #8A8880;
  --text-on-brand: #0D0D0D;
  --text-on-ink: #F5F5F2;   /* text sitting on ink slabs */

  /* Status */
  --ok: #1FA65A;
  --warn: #D98E00;
  --bad: #D94F4F;

  /* Type */
  --font-display: 'Clash Display', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Scale (fluid) — hero tightened from v1 */
  --text-hero: clamp(2.35rem, 6.5vw, 5.5rem);
  --text-h1: clamp(2.25rem, 5vw, 3.75rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --text-h3: clamp(1.3rem, 2.2vw, 1.6rem);
  --text-lead: clamp(1.05rem, 1.5vw, 1.2rem);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 350ms;
  --dur-slow: 700ms;

  /* Paper shadows (soft, warm — no dark-theme glows) */
  --shadow-sm: 0 1px 2px rgba(13,13,13,0.05), 0 2px 8px rgba(13,13,13,0.04);
  --shadow-md: 0 4px 12px rgba(13,13,13,0.07), 0 12px 32px rgba(13,13,13,0.06);
  --shadow-lg: 0 12px 24px rgba(13,13,13,0.10), 0 24px 56px rgba(13,13,13,0.08);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ------------------------------------------------------------
   2 · Base
   ------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-0);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--text-on-brand); }

h1, h2, h3, h4,
.display-hero, .display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.display-hero { font-size: var(--text-hero); font-weight: 700; }
.display-1    { font-size: var(--text-h1);   font-weight: 700; }
.display-2    { font-size: var(--text-h2);   font-weight: 600; }
.display-3    { font-size: var(--text-h3);   font-weight: 600; }
.lead         { font-size: var(--text-lead); color: var(--text-mid); }

/* Preflight zeroes <p> margins; restore a sane default (body-scoped to win) */
body p { margin: 0 0 1em; }

/* Speed italic — echoes the logo's forward lean */
.speed-italic { font-style: italic; letter-spacing: -0.01em; }

/* Highlighter — yellow marker sweep behind a word (brand infusion on light) */
.mark-brand {
  background: linear-gradient(180deg, transparent 55%, var(--brand) 55%, var(--brand) 92%, transparent 92%);
  padding-inline: 0.06em;
}

/* Timer digits — tabular so numbers don't jitter while counting */
.digits {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-hi);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

/* body-scoped so it always beats Tailwind CDN's runtime-generated .container */
body .container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a { color: var(--text-hi); text-decoration: none; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-nav :focus-visible, .ink-tile :focus-visible { outline-color: var(--brand); }

/* ------------------------------------------------------------
   3 · Buttons (tactile: lift on hover, sink on press)
       Primary = brand yellow · Ink = black slab · Ghost = outline
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-hot);
  color: var(--text-on-brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px var(--brand-glow), var(--shadow-md);
}

/* Ink slab button — the black of the logo as a UI element */
.btn-ink {
  background: var(--ink);
  color: var(--text-on-ink);
  box-shadow: var(--shadow-sm);
}
.btn-ink:hover {
  background: var(--ink-soft);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--paper-4);
}
.btn-ghost:hover {
  color: var(--text-hi);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg { padding: 1.2rem 2.75rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.875rem; }

.btn .btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   4 · Cards — white sheets on paper
   ------------------------------------------------------------ */
.card {
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--brand-glow-soft);
}

/* Glassmorphism — light frost */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.glass-brand {
  background: rgba(255, 196, 0, 0.10);
  border-color: rgba(229, 176, 0, 0.35);
}

/* Ink tile — the signature dark slab (logo lives here on light pages) */
.ink-tile {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.ink-tile h1, .ink-tile h2, .ink-tile h3, .ink-tile h4,
.ink-tile .display-hero, .ink-tile .display-1,
.ink-tile .display-2, .ink-tile .display-3 { color: var(--text-on-ink); }
.ink-tile p { color: rgba(245, 245, 242, 0.75); }
.ink-tile a { color: var(--brand); }
.ink-tile a:hover { color: var(--brand-hot); }
.ink-tile .label { color: rgba(245, 245, 242, 0.55); }

/* Floating card — gentle idle levitation */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ------------------------------------------------------------
   5 · The glow line (site signature — unchanged behaviour)
   ------------------------------------------------------------ */
.glow-line {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.glow-line::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 1px 10px 1px var(--brand-glow);
  animation: glow-travel 3.2s var(--ease-out) infinite;
}
@keyframes glow-travel {
  0%   { left: -30%; }
  100% { left: 105%; }
}

/* Divider version for section breaks */
.glow-divider {
  position: relative;
  height: 2px;
  background: var(--paper-3);
  overflow: hidden;
  border-radius: 2px;
}
.glow-divider::after {
  content: '';
  position: absolute;
  top: 0; left: -20%;
  width: 20%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand-deep), transparent);
  animation: glow-travel 4s linear infinite;
}
.ink-tile .glow-divider { background: rgba(245,245,242,0.12); }

/* ------------------------------------------------------------
   6 · Speed lines (from the logo mark)
   ------------------------------------------------------------ */
.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.speed-lines span {
  position: absolute;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  animation: speed-dash 2.6s linear infinite;
}
.speed-lines span:nth-child(1) { top: 18%; width: 180px; animation-delay: 0s;   }
.speed-lines span:nth-child(2) { top: 34%; width: 260px; animation-delay: 0.5s; }
.speed-lines span:nth-child(3) { top: 55%; width: 140px; animation-delay: 1.1s; }
.speed-lines span:nth-child(4) { top: 72%; width: 220px; animation-delay: 1.7s; }
.speed-lines span:nth-child(5) { top: 88%; width: 160px; animation-delay: 2.2s; }
@keyframes speed-dash {
  0%   { left: -20%; opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { left: 110%; opacity: 0; }
}

/* ------------------------------------------------------------
   7 · Delivery speed selector (Uber-style chips)
   ------------------------------------------------------------ */
.speed-select { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .speed-select { grid-template-columns: repeat(4, 1fr); } }

.speed-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition:
    transform var(--dur-fast) var(--ease-snap),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.speed-chip:hover { transform: translateY(-3px); border-color: var(--paper-4); box-shadow: var(--shadow-sm); }
.speed-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--brand-glow-soft);
}
.speed-chip .chip-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--text-hi); font-size: 0.95rem;
}
.speed-chip .chip-badge { font-size: 0.72rem; font-weight: 600; color: var(--text-low); }
.speed-chip[aria-pressed="true"] .chip-label { color: var(--text-on-ink); }
.speed-chip[aria-pressed="true"] .chip-badge { color: var(--brand); }

/* ------------------------------------------------------------
   8 · Badges & status pills
   ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--paper-3);
  color: var(--text-mid);
  background: var(--paper-1);
}
.badge-brand { background: var(--brand-glow-soft); border-color: var(--brand-deep); color: #7A5E00; }
.badge-ink   { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.badge-ok    { background: rgba(31,166,90,0.10);  border-color: rgba(31,166,90,0.35);  color: var(--ok); }
.badge-warn  { background: rgba(217,142,0,0.10);  border-color: rgba(217,142,0,0.35);  color: var(--warn); }
.badge-bad   { background: rgba(217,79,79,0.10);  border-color: rgba(217,79,79,0.35);  color: var(--bad); }

/* Pulsing dot for live / urgent states */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
  50%      { box-shadow: 0 0 0 6px rgba(255,196,0,0); }
}

/* ------------------------------------------------------------
   9 · Forms
   ------------------------------------------------------------ */
.input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--paper-1);
  border: 1px solid var(--paper-4);
  border-radius: var(--r-md);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-low); }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-glow-soft);
}
.label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   10 · Stopwatch component (SVG hand is rotated by JS)
   ------------------------------------------------------------ */
.stopwatch { position: relative; display: inline-block; }
.stopwatch svg { display: block; width: 100%; height: auto; }
.stopwatch .sw-hand { transform-origin: 50% 50%; }

/* ------------------------------------------------------------
   11 · Reveal-on-scroll defaults (GSAP toggles these)
   ------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   12 · Utility
   ------------------------------------------------------------ */
.text-hi    { color: var(--text-hi); }
.text-low   { color: var(--text-low); }
.text-brand { color: var(--brand-deep); }
.ink-tile .text-brand, .btn-ink .text-brand { color: var(--brand); }
.bg-ink-1   { background: var(--paper-2); }   /* alternating section wash */
.bg-ink-2   { background: var(--paper-1); }

.section { padding-block: clamp(4rem, 10vw, 7rem); }

.grain::before {
  /* Subtle paper texture so large light areas feel tactile */
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   13 · Reduced motion — respect it everywhere
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   14 · v1.2 additions — ink navbar, hero choreography, marquee
   ============================================================ */

/* ---- Ink navbar ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-nav .nav-link {
  position: relative;
  color: rgba(245, 245, 242, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding-block: 0.35rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.site-nav .nav-link:hover { color: #FFFFFF; }
.site-nav .nav-link:hover::after { transform: scaleX(1); }
.site-nav .btn-ghost {
  color: rgba(245, 245, 242, 0.9);
  border-color: rgba(245, 245, 242, 0.25);
}
.site-nav .btn-ghost:hover { color: #FFF; border-color: var(--brand); }

/* ---- Line reveal (hero text) — JS animates .line-inner up into view ---- */
.line { display: block; overflow: hidden; }
.line .lead { margin: 0; }
.line .line-inner {
  display: block;
  transform: translateY(112%);
  will-change: transform;
}
.no-js .line .line-inner { transform: none; }

/* ---- Highlighter sweep — bar paints in behind the words ---- */
.mark-sweep { position: relative; display: inline-block; white-space: nowrap; }
.mark-sweep > i {
  position: absolute;
  left: -0.06em; right: -0.06em;
  top: 52%; bottom: 4%;
  background: var(--brand);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 0;
}
.mark-sweep > span { position: relative; z-index: 1; }
.no-js .mark-sweep > i { transform: scaleX(1); }

/* ---- Paper stack — sheets sliding onto the desk (hero right) ---- */
.paper-stack {
  position: relative;
  height: clamp(320px, 40vw, 440px);
}
.paper-stack::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(closest-side, var(--brand-glow-soft), transparent 70%);
  z-index: 0;
}
.paper-card {
  position: absolute;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  will-change: transform;
}
/* faux printed content: bars + a yellow accent block */
.paper-card .pc-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--paper-3);
  margin: 0 18px 10px;
}
.paper-card .pc-bar.brand { background: var(--brand); width: 45%; }
.paper-card .pc-head {
  height: 34%;
  background: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding-inline: 18px;
}
.paper-card .pc-head .pc-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
}
/* resting poses (JS animates them in, float uses these as base) */
.paper-a { width: 58%; height: 74%; left: 0;   top: 6%;  transform: rotate(-6deg); z-index: 1; }
.paper-b { width: 52%; height: 62%; right: 4%; top: 0;   transform: rotate(4deg);  z-index: 2; }
.paper-c { width: 46%; height: 54%; left: 24%; bottom: 0; transform: rotate(-2deg); z-index: 3; }

/* stopwatch coin overlapping the stack */
.sw-coin {
  position: absolute;
  right: -6px; bottom: 8%;
  width: clamp(96px, 10vw, 132px);
  z-index: 4;
  filter: drop-shadow(0 12px 24px rgba(13,13,13,0.18));
}

/* ---- Marquee — product ticker strip ---- */
.marquee {
  overflow: hidden;
  background: var(--brand);
  transform: rotate(-1deg) scale(1.02);
  border-block: 2px solid var(--ink);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding: 0.85rem 0;
  white-space: nowrap;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: '•'; font-style: normal; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .line .line-inner { transform: none; }
  .mark-sweep > i { transform: scaleX(1); }
}

/* ============================================================
   15 · Stage 2 — landing page sections
   ============================================================ */

/* ---- Instant quote / category grid ---- */
.quote-card { padding: clamp(1.75rem, 4vw, 3rem); }
.quote-search { position: relative; }
.quote-search .input {
  padding: 1.15rem 1.4rem 1.15rem 3.25rem;
  font-size: 1.05rem;
  border-radius: var(--r-pill);
}
.quote-search svg {
  position: absolute;
  left: 1.25rem; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--text-low);
  pointer-events: none;
}

.cat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-fast) var(--ease-snap),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--brand-glow-soft);
  color: var(--text-hi);
}
.cat-card .cat-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper-2);
  border-radius: 12px;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-snap);
}
.cat-card:hover .cat-icon { background: var(--brand); transform: rotate(-6deg) scale(1.06); }
.cat-card .cat-name { font-weight: 600; color: var(--text-hi); font-size: 0.95rem; }
.cat-card .cat-desc { font-size: 0.8rem; color: var(--text-low); }
.cat-card .cat-go {
  margin-top: auto;
  font-size: 0.8rem; font-weight: 600;
  color: var(--brand-deep);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ---- How it works timeline ---- */
.steps {
  position: relative;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .steps::before {
    content: '';
    position: absolute;
    top: 26px; left: 8%; right: 8%;
    height: 2px;
    background: var(--paper-3);
  }
  .steps .steps-draw {
    position: absolute;
    top: 26px; left: 8%; right: 8%;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
  }
}
.step { position: relative; text-align: left; }
@media (min-width: 900px) { .step { text-align: center; } }
.step-num {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  display: inline-grid; place-items: center;
  background: var(--paper-0);
  border: 2px solid var(--paper-4);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-hi);
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.step:hover .step-num { border-color: var(--ink); background: var(--brand); }
.step-title { font-weight: 600; color: var(--text-hi); margin-top: 0.9rem; font-size: 0.95rem; }
.step-desc { font-size: 0.82rem; color: var(--text-low); margin-top: 0.25rem; }

/* ---- ETA readout in the speed showcase ---- */
.eta-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-hi);
}
.eta-chip .pulse-dot { background: var(--ok); box-shadow: none; animation: none; }

/* ---- Trust stats ---- */
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: var(--text-hi);
  line-height: 1;
}
.stat-value em { font-style: normal; color: var(--brand-deep); }
.stat-label { font-size: 0.85rem; color: var(--text-low); margin-top: 0.5rem; }

/* ---- Product showcase (scroll-snap row) ---- */
.showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(250px, 72vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-4) transparent;
}
.showcase::-webkit-scrollbar { height: 6px; }
.showcase::-webkit-scrollbar-thumb { background: var(--paper-4); border-radius: 3px; }
.showcase-item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.showcase-item:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--brand); box-shadow: var(--shadow-md); }
.showcase-item:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.showcase-preview {
  height: 130px;
  background: var(--paper-2);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--paper-3);
}
.showcase-preview .cat-icon { width: 56px; height: 56px; background: var(--paper-1); }
.showcase-body { padding: 1.1rem 1.25rem 1.25rem; }
.showcase-name { font-weight: 600; color: var(--text-hi); font-size: 0.95rem; }
.showcase-from { font-size: 0.8rem; color: var(--text-low); margin-top: 0.2rem; }

/* ---- Review stream (auto-scrolling) ---- */
.stream { overflow: hidden; position: relative; }
.stream::before, .stream::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 60px; z-index: 2;
  pointer-events: none;
}
.stream::before { left: 0;  background: linear-gradient(90deg, var(--paper-2), transparent); }
.stream::after  { right: 0; background: linear-gradient(-90deg, var(--paper-2), transparent); }
.stream-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.stream:hover .stream-track { animation-play-state: paused; }
.review-card {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
  font-family: var(--font-display);
}
.review-stars { color: var(--brand-deep); letter-spacing: 2px; font-size: 0.85rem; }
.review-text { font-size: 0.9rem; color: var(--text-mid); margin: 0.9rem 0 0; }

/* ---- FAQ accordion ---- */
.faq-item {
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item.is-open { border-color: var(--brand); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none; border: 0;
  font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 600;
  color: var(--text-hi);
  text-align: left;
  cursor: pointer;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--text-hi);
  font-weight: 600;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--brand); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.4rem 1.25rem; margin: 0; font-size: 0.9rem; color: var(--text-mid); }

/* ---- Final CTA ---- */
.cta-final {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-final .display-hero { margin-bottom: 1.75rem; }
.cta-final .mark-brand { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .stream-track { animation: none; }
  .steps .steps-draw { transform: scaleX(1); }
}

/* ============================================================
   16 · v1.3 — Brand warmth & mobile ergonomics restyle
   (Later rules override earlier ones at equal specificity.)
   ============================================================ */

:root {
  /* Warm the whole canvas — cream, not gallery-white */
  --paper-0: #FCF8ED;
  --paper-1: #FFFFFF;
  --paper-2: #F7F0DC;
  --paper-3: #ECE4CC;
  --paper-4: #DCD2B4;

  /* Yellow as a surface, not just an accent */
  --brand-tint: #FFF1BF;     /* icon squares, chips, highlights */
  --brand-tint-2: #FFF8E1;   /* section washes, card gradients */
}

/* Eyebrows become brand pills — instantly scannable, instantly yellow */
.eyebrow {
  background: var(--brand);
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: none; }
.ink-tile .eyebrow { box-shadow: none; }

/* Section washes get a warm gradient instead of flat gray-beige */
.bg-ink-1 { background: linear-gradient(180deg, var(--paper-2), var(--brand-tint-2)); }

/* Softer section rhythm on phones */
.section { padding-block: clamp(2.75rem, 9vw, 7rem); }

/* ---- Hero: yellow atmosphere + thumb-friendly CTAs ---- */
[data-hero]::before {
  content: '';
  position: absolute;
  top: -20%; left: -15%;
  width: 60%; height: 90%;
  background: radial-gradient(closest-side, var(--brand-glow-soft), transparent 72%);
  pointer-events: none;
}
@media (max-width: 520px) {
  [data-hero] .btn { width: 100%; justify-content: center; }
}

/* ---- Quote card: warm sheet with a brand edge ---- */
.quote-card {
  background: linear-gradient(180deg, #FFFFFF, var(--brand-tint-2));
  border-top: 4px solid var(--brand);
}
@media (max-width: 640px) { .quote-card { padding: 1.25rem; } }
.quote-search .input { background: #FFFFFF; }

/* ---- Category cards: compact horizontal rows, mobile-first ---- */
.cat-grid { gap: 0.7rem; }
.cat-card {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
}
.cat-card .cat-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--brand-tint);
  border-radius: 11px;
}
.cat-card .cat-name { font-size: 0.88rem; }
.cat-card .cat-desc { font-size: 0.72rem; }
.cat-card .cat-go { margin: 0 0 0 auto; flex-shrink: 0; }
@media (max-width: 767px) {
  .cat-card .cat-desc, .cat-card .cat-go { display: none; }
  .cat-card { padding: 0.75rem 0.85rem; }
}

/* ---- Steps: yellow numbers + a proper mobile rail ---- */
.step-num {
  background: var(--brand-tint);
  border-color: var(--brand);
}
.step:hover .step-num { background: var(--brand); border-color: var(--ink); }
@media (max-width: 899px) {
  .steps { position: relative; gap: 1.6rem; }
  .steps::before {
    content: '';
    position: absolute;
    left: 25px; top: 10px; bottom: 10px;
    width: 2px;
    background: var(--paper-3);
  }
  .steps .steps-draw { display: none; }
  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .step-num { grid-row: 1 / 3; }
  .step-title { margin-top: 0.35rem; }
  .step-desc { grid-column: 2; }
}

/* ---- Speed chips: 2-up on phones instead of a tall single column ---- */
.speed-select { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .speed-select { grid-template-columns: repeat(4, 1fr); } }

.eta-chip { background: var(--brand-tint); border-color: var(--brand); }

/* ---- Showcase: color rhythm across the row ---- */
.showcase-item:nth-child(3n+1) .showcase-preview { background: var(--brand-tint); }
.showcase-item:nth-child(3n+2) .showcase-preview { background: var(--paper-2); }
.showcase-item:nth-child(3n)   .showcase-preview { background: var(--ink); }
.showcase-item:nth-child(3n)   .showcase-preview .cat-icon { background: var(--brand); color: var(--ink); }
.showcase { grid-auto-columns: min(220px, 62vw); }

/* ---- Reviews & FAQ: warm the interactive states ---- */
.review-avatar { box-shadow: 0 0 0 3px var(--brand); }
.faq-q .faq-icon { background: var(--brand-tint); }
.faq-item.is-open { background: var(--brand-tint-2); }

/* ---- Stats slab: yellow seam on the ink ---- */
.ink-tile { border: 1px solid rgba(255, 196, 0, 0.25); }

/* ---- Marquee: give it a shadow so it reads as a physical ribbon ---- */
.marquee { box-shadow: var(--shadow-md); }

/* ---- v1.3.1 · Category grid mobile alignment ---- */
.cat-card { align-items: center; }
.cat-card > span:nth-child(2) { min-width: 0; }           /* let text shrink, not overflow */
.cat-card .cat-name { line-height: 1.25; }
@media (max-width: 767px) {
  .cat-grid { gap: 0.6rem; grid-auto-rows: 1fr; }          /* equal row heights */
  .cat-card { min-height: 60px; padding: 0.7rem 0.8rem; gap: 0.7rem; }
  .cat-card .cat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .cat-card .cat-name { font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================================
   17 · Stage 3 — catalogue & product configurator
   ============================================================ */

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.filter-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-4);
  background: var(--paper-1);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--ink); color: var(--text-hi); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--brand); }

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.product-grid .showcase-item { width: auto; }

/* ---- Product hero preview ---- */
.product-hero {
  position: relative;
  background: linear-gradient(160deg, var(--brand-tint), var(--brand));
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-hero .speed-lines span { background: linear-gradient(90deg, transparent, rgba(13,13,13,0.25), transparent); }
.product-sheet {
  position: relative;
  width: min(320px, 80%);
  height: 240px;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
.product-hero-icon {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 58px; height: 58px;
  background: var(--ink);
  color: var(--brand);
  border-radius: 16px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}

/* ---- Configurator panel ---- */
.config-panel { padding: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 1024px) { .config-panel { position: sticky; top: 88px; } }

.opt-group { margin-bottom: 1.4rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--paper-1);
  border: 1px solid var(--paper-4);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-snap);
}
.opt-chip small { font-weight: 500; color: var(--text-low); font-size: 0.72rem; }
.opt-chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.opt-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-on-ink);
}
.opt-chip[aria-pressed="true"] small { color: var(--brand); }

.qty-stepper { display: flex; align-items: stretch; gap: 0.5rem; max-width: 220px; }
.qty-stepper .input { text-align: center; padding: 0.7rem 0.5rem; -moz-appearance: textfield; }
.qty-stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-stepper button {
  width: 46px;
  border: 1px solid var(--paper-4);
  border-radius: var(--r-md);
  background: var(--brand-tint);
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-snap);
}
.qty-stepper button:hover { background: var(--brand); transform: translateY(-1px); }
.qty-stepper button:active { transform: translateY(1px); }

.tier-hint { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.72rem; color: var(--text-low); margin: 0.6rem 0 0; }
.tier-hint span { white-space: nowrap; }

.speed-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.speed-chip:disabled:hover { transform: none; box-shadow: none; border-color: var(--paper-3); }

.price-figure { transition: opacity var(--dur-fast) var(--ease-out); }
.price-figure.is-busy { opacity: 0.45; }
