/* ==========================================================================
   Shoku — marketing site design system
   "The Industrial Gallerist": dark, editorial, tonal layering, no hard lines.
   No framework. Custom properties drive every surface, type and spacing
   decision so the system stays consistent as sections are added.
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, picture, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ---- Tokens -------------------------------------------------------------
   Values are lifted directly from DESIGN.md. One deliberate deviation:
   the spec's "active chip" pair (secondary-container #924c00 / on-secondary
   #4b2400) measures ~2.1:1 contrast, well under WCAG AA — see the Selection
   Chips component below for how that's resolved without abandoning the
   warm-amber "active" motif.
   ------------------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* Surfaces — physical stack of materials, darkest to lightest */
  --surface: #0e0e0e;
  --surface-container-lowest: #0a0a0a;
  --surface-container-low: #131313;
  --surface-container: #1a1a1a;
  --surface-container-high: #202020;
  --surface-container-highest: #262626;
  --surface-variant: #1f1c1a;

  /* Text */
  --on-surface: #f3f0ed;
  --on-surface-variant: #adaaaa;
  --on-surface-dim: #8c8987; /* ≥5.3:1 on every surface tone used below — kept clear of the 4.5:1 AA floor */

  /* Brand */
  --primary: #ff9153;
  --primary-container: #ff7a23;
  --on-primary: #180d05;
  --tertiary: #ffcd72;
  --error: #ff7351;
  --secondary-container: #924c00;

  /* Ghost border / outline */
  --outline-variant: #484847;
  --ghost-border: rgba(72, 72, 71, 0.15);
  --ghost-border-strong: rgba(72, 72, 71, 0.28);

  /* Elevation tint (never pure black) */
  --shadow-tint: 20, 12, 6;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing scale — up to 24 (6rem) per DESIGN.md */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — 0.5rem is the floor, nothing is ever square */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  --container-width: 78rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ---------------------------------------------------------------- */
body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  overflow-x: clip;
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 1000;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-10); }
}

/* ---- Grain overlay -------------------------------------------------------
   A fixed, low-opacity SVG-noise layer gives the flat dark surfaces a
   tactile, machined texture instead of reading as flat digital black. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ----------------------------------------------------------- */
.display-xl, .display-lg, .display, .headline-sm {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.display-xl { font-size: clamp(2.75rem, 5vw + 1.5rem, 5.5rem); }
.display-lg { font-size: clamp(2.25rem, 3.6vw + 1.25rem, 3.75rem); }
.display    { font-size: clamp(1.9rem, 2.4vw + 1.1rem, 2.75rem); }
.headline-sm{ font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  color: var(--on-surface-variant);
  max-width: 42rem;
  line-height: 1.6;
}

.label-sm, .label-md {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  font-weight: 600;
}
.label-sm { font-size: 0.75rem; }
.label-md { font-size: 0.8125rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0.6rem 0.05rem rgba(255, 145, 83, 0.65);
}

.hl { color: var(--primary); font-style: normal; }

a.link-inline {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 0.2em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 145, 83, 0.4);
}
a.link-inline:hover { text-decoration-color: var(--primary); }

.tabnum { font-variant-numeric: tabular-nums; }

/* ---- Section shells -------------------------------------------------------- */
section { position: relative; padding-block: var(--space-24); }
@media (max-width: 640px) { section { padding-block: var(--space-16); } }

.shell-low { background: var(--surface-container-low); }

.section-head { max-width: 44rem; margin-bottom: var(--space-16); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---- Ambient glow ----------------------------------------------------------
   Soft radial washes of brand color standing in for "atmosphere" — never a
   hard-edged shape, always additive light behind content. */
.glow { position: absolute; pointer-events: none; z-index: 0; }
.glow--primary {
  background: radial-gradient(circle, rgba(255, 145, 83, 0.32) 0%, rgba(255, 122, 35, 0.12) 45%, transparent 72%);
}
.glow--tertiary {
  background: radial-gradient(circle, rgba(255, 205, 114, 0.22) 0%, transparent 70%);
}

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), background 0.2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: var(--surface-container-highest);
  color: var(--on-surface);
  box-shadow: inset 0 0 0 1px var(--ghost-border-strong);
}
.btn-secondary:hover { background: var(--surface-container-high); box-shadow: inset 0 0 0 1px rgba(255, 145, 83, 0.35); }

.btn-tertiary {
  background: none;
  color: var(--primary);
  padding-inline: var(--space-2);
  font-weight: 700;
}
.btn-tertiary:hover { color: var(--tertiary); }

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ---- Nav (glassmorphism) ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: rgba(31, 28, 26, 0.001); /* keeps backdrop-filter compositing consistent pre-scroll */
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(31, 28, 26, 0.6);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding-block: var(--space-3);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.scrolled { background: rgba(19, 19, 19, 0.96); }
}

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  padding-block: var(--space-1);
}
.nav-links a:hover { color: var(--on-surface); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  flex: none;
}
.menu-btn:hover { background: var(--surface-container-highest); }
.menu-btn svg { width: 1.4rem; height: 1.4rem; }
/* Hamburger morphs to a close (X) glyph so the open state reads visually,
   not just via the aria-label swap in main.js. */
.menu-btn .icon-close { display: none; }
.nav[data-open="true"] .menu-btn .icon-open { display: none; }
.nav[data-open="true"] .menu-btn .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-container-highest);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: 0 24px 48px -12px rgba(var(--shadow-tint), 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav[data-open="true"] .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
  }
  .nav-links a:hover { background: var(--surface-container-high); }
  .nav-links .btn-primary { margin-top: var(--space-2); justify-content: center; }
  .menu-btn { display: inline-flex; }
}

/* ---- Chips (glass + selection) ------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--ghost-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}
.chip-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 0.5rem 0.1rem rgba(255, 205, 114, 0.7);
}

/* Trade-category selection chip. The spec's literal "active" pair
   (secondary-container/on-secondary) sits at ~2.1:1 contrast — too low for
   body text — so the warm-amber "selected" feeling is carried by a tinted
   glow + primary-toned border instead, keeping on-surface text throughout. */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.category-chip svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex: none; }
.category-chip:hover {
  background: rgba(146, 76, 0, 0.28);
  color: var(--on-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 83, 0.4);
  transform: translateY(-2px);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--ghost-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--on-surface);
  font-size: 0.875rem;
  font-weight: 600;
}
.glass-chip svg { width: 1.15rem; height: 1.15rem; color: var(--on-surface-variant); flex: none; }
.glass-chip b { color: var(--on-surface-variant); font-weight: 600; }

/* ---- Cards --------------------------------------------------------------------- */
.card {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.spec-card {
  background: var(--surface-container-highest);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 32px 64px -20px rgba(var(--shadow-tint), 0.6);
}

/* ---- Availability glow ----------------------------------------------------------
   Soft tertiary halo standing in for a status dot, per DESIGN.md §7. */
.avatar {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(160deg, #3a332c, #201b16);
  display: grid;
  place-items: center;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 50%;
  box-shadow: 0 0 0 0.09rem rgba(255, 205, 114, 0.55), 0 0 1rem 0.15rem rgba(255, 205, 114, 0.35);
}
.avatar svg { width: 1.25rem; height: 1.25rem; color: var(--tertiary); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: var(--space-20); overflow: clip; }
.hero-glow {
  width: min(64rem, 140vw);
  height: 42rem;
  top: -14rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-copy .chip { margin-bottom: var(--space-6); }
.hero-copy h1 { margin-bottom: var(--space-6); }
.hero-offset { display: inline-block; margin-left: clamp(0px, 6vw, 3.5rem); }

.hero-copy .lead { margin-bottom: var(--space-8); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-note { font-size: 0.875rem; color: var(--on-surface-dim); }
.hero-note b { color: var(--on-surface-variant); }
.hero-note .sep { margin-inline: var(--space-2); opacity: 0.5; }

.hero-stage {
  position: relative;
  min-height: 30rem;
}

.hero-stage .spec-card { position: absolute; width: 15.5rem; }

.spec-card--job {
  top: 0;
  left: 2rem;
  z-index: 2;
  transform: rotate(-3deg);
}
.spec-card--chat {
  top: 8.5rem;
  right: 0;
  z-index: 3;
  transform: rotate(2deg);
}
/* Specificity-matched to beat `.hero-stage .spec-card`'s default width. */
.hero-stage .spec-card--chat { width: 16.5rem; }
.spec-card--hold {
  bottom: 0.5rem;
  left: 3.5rem;
  z-index: 1;
  transform: rotate(-1.5deg);
}

.spec-label { display: block; margin-bottom: var(--space-2); }
.spec-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: var(--space-1); }
.spec-sub { font-size: 0.8125rem; color: var(--on-surface-variant); }

.trade-tag {
  display: inline-flex;
  margin-top: var(--space-3);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 145, 83, 0.14);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.spec-card--chat .quote-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.spec-card--chat .quote-amount {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.spec-card--chat .quote-amount span { color: var(--on-surface-variant); font-family: var(--font-body); font-weight: 600; font-size: 0.8125rem; display: block; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }

.spec-card--hold {
  background: linear-gradient(160deg, var(--surface-container-highest), #1c1712);
}
.spec-card--hold .hold-row { display: flex; align-items: center; gap: var(--space-3); }
.spec-card--hold .hold-icon {
  width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 205, 114, 0.16);
  color: var(--tertiary);
}
.spec-card--hold .hold-icon svg { width: 1.15rem; height: 1.15rem; }

/* ==========================================================================
   HOW IT WORKS — 4 asymmetric steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.step { position: relative; }
.step:nth-child(2) { margin-top: var(--space-12); }
.step:nth-child(4) { margin-top: var(--space-6); }
.step:nth-child(3) { margin-top: calc(-1 * var(--space-4)); }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--outline-variant);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.step p { color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(2), .step:nth-child(4) { margin-top: var(--space-10); }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-10); }
  .step:nth-child(n) { margin-top: 0 !important; }
}

/* ==========================================================================
   SPLIT SECTIONS — homeowners / contractors
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-reverse .split-visual { order: 2; }
.split-reverse .split-copy { order: 1; }

.split-copy .feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-block: var(--space-8);
}
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-4); }
.feature-list .ico {
  width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-container-high);
  color: var(--primary);
}
.feature-list .ico svg { width: 1.2rem; height: 1.2rem; }
.feature-list .ft-copy b { display: block; font-size: 0.9375rem; margin-bottom: 0.2rem; }
.feature-list .ft-copy span { font-size: 0.875rem; color: var(--on-surface-variant); }

.split-visual { position: relative; min-height: 24rem; }

/* Homeowner visual: single lifted card with an inset "job" summary */
.visual-frame {
  position: relative;
  background: var(--surface-container);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px -24px rgba(var(--shadow-tint), 0.55);
}
.visual-frame .frame-row + .frame-row { margin-top: var(--space-4); }
.frame-tile {
  background: var(--surface-container-high);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.frame-tile .t-label { font-size: 0.8125rem; color: var(--on-surface-variant); }
.frame-tile .t-value { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }

/* Contractor visual: two overlapping cards, offset for depth */
.overlap-stage { position: relative; min-height: 24rem; }
.overlap-stage .spec-card { position: absolute; }
.card--earnings {
  top: 0;
  left: 0;
  width: 16.5rem;
  z-index: 2;
}
.card--jobs {
  bottom: 0;
  right: 0;
  width: 17rem;
  z-index: 1;
  transform: rotate(1.5deg);
}
.card--earnings .earn-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-top: var(--space-2); }
.card--earnings .earn-payout {
  margin-top: var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.8125rem; color: var(--tertiary); font-weight: 600;
}
.card--earnings .earn-payout svg { width: 1rem; height: 1rem; }

.job-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-2); }
.job-row + .job-row { margin-top: var(--space-2); }
.job-row .job-name { font-size: 0.875rem; font-weight: 600; }
.job-row .job-dist { font-size: 0.75rem; color: var(--on-surface-variant); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--space-10); }
  .split-reverse .split-visual, .split-reverse .split-copy { order: initial; }
}

/* ==========================================================================
   TRUST / PAYMENTS
   ========================================================================== */
.trust-fact {
  position: relative;
  z-index: 1;
  max-width: 50rem;
}
.trust-fact h2 { margin-bottom: var(--space-6); }
.trust-fact .lead { max-width: 46rem; margin-bottom: var(--space-12); }

.trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.trust-card {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.trust-card .ico {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: rgba(255, 145, 83, 0.14);
  color: var(--primary);
  margin-bottom: var(--space-5);
}
.trust-card .ico svg { width: 1.4rem; height: 1.4rem; }
.trust-card h3 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.trust-card p { color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 720px) {
  .trust-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==========================================================================
   FINAL CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: clip;
  background: linear-gradient(160deg, var(--surface-container), var(--surface-container-low));
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-10);
  text-align: center;
}
.cta-band .glow--primary {
  width: 42rem; height: 26rem;
  top: -8rem; left: 50%;
  transform: translateX(-50%);
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::before { display: none; }
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .lead { margin-inline: auto; margin-bottom: var(--space-12); }

.app-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  max-width: 40rem;
  margin-inline: auto;
}
.app-group-label {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--on-surface);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  font-size: 0.9375rem;
}
.badge-row { display: flex; flex-direction: column; gap: var(--space-3); }

@media (max-width: 620px) {
  .app-badges { grid-template-columns: 1fr; gap: var(--space-8); }
  .cta-band { padding: var(--space-12) var(--space-6); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface-container-low);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}
.footer-brand p { color: var(--on-surface-variant); font-size: 0.9375rem; margin-top: var(--space-4); max-width: 24rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-surface-dim); margin-bottom: var(--space-4); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: var(--on-surface-variant); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--on-surface); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  /* No-Line Rule: the boundary above this bar is a tonal shift — one step
     down the surface stack from the footer's own surface-container-low —
     never a drawn rule, dashed or otherwise. */
  background: var(--surface-container-lowest);
}
.footer-bottom, .footer-bottom a { color: var(--on-surface-dim); font-size: 0.8125rem; }
.footer-bottom a:hover { color: var(--on-surface-variant); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ==========================================================================
   REVEAL ANIMATION
   Content is fully visible with no JS (this rule only fires once `js-enabled`
   is set on <html> by main.js); IntersectionObserver then flips `.in`.
   ========================================================================== */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-enabled .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   RESPONSIVE — down to 360px, never a horizontal scrollbar
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: var(--space-12); }
  .hero-stage .spec-card { position: static; width: 100%; transform: none !important; margin-bottom: var(--space-4); }
  .hero-stage .spec-card:last-child { margin-bottom: 0; }
  .overlap-stage { min-height: 0; }
  .overlap-stage .spec-card { position: static; width: 100%; transform: none !important; margin-bottom: var(--space-4); }
}

@media (max-width: 480px) {
  .hero-offset { margin-left: 0; display: block; }
  .btn-lg { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ==========================================================================
   LEGAL PAGES — privacy.html, terms.html
   Page-specific additions only: everything else on those pages (nav, footer,
   buttons, eyebrow, display type) reuses the rules above unchanged. This
   block just sets the page hero spacing and constrains body copy to a
   readable ~65ch measure with plain <h2>/<p>/<ul> styling.
   ========================================================================== */
.legal-hero { padding-top: var(--space-20); padding-bottom: var(--space-4); overflow: clip; }
/* A quiet corner wash — just enough to tie these text-heavy pages back to the
   same "Industrial Gallerist" atmosphere as the rest of the site, without
   competing with the body copy that follows. */
.legal-glow { width: 30rem; height: 22rem; top: -8rem; right: -10rem; opacity: 0.6; }
.legal-updated { color: var(--on-surface-dim); font-size: 0.875rem; margin-top: var(--space-4); }

.legal-content { max-width: 65ch; }
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin-top: var(--space-16);
  margin-bottom: var(--space-4);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.7; margin-bottom: var(--space-4); }
.legal-content ul { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.legal-content li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--primary);
}
.legal-content strong { color: var(--on-surface); font-weight: 600; }
