/* EmpireVault Auctions marketing site.
   The look follows empirevault.com: a pale mint hero, teal buttons, dark navy
   gradient bands, white rounded cards and pill badges.
   Colours and fonts are defined here and nowhere else.
   Anything hidden until the script reveals it is scoped under html.js, so a
   visitor without scripts sees every section (bin/check enforces this). */

:root {
  --mint: #f0fdfa;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: #5eead4;
  --navy: #0a1628;
  --navy-2: #132744;
  --ink: #0f172a;
  --body: #334155;
  --muted: #475569;
  --line: #cbd5e1;
  --line-soft: #e2e8f0;
  --surface: #ffffff;
  --wash: #f8fafc;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --blue: #1d4ed8;
  --blue-soft: #dbeafe;
  --blue-wash: #eff6ff;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-button: 6px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px -16px rgba(15, 23, 42, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 68px;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 600; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 800px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-button);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.5); }
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 158px; height: auto; display: block; }
.brand-product {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--teal-dark);
  padding-left: 10px; border-left: 2px solid var(--teal-soft); line-height: 1.2;
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  position: relative; padding: 8px 12px; border-radius: var(--radius-button);
  color: var(--ink); font-weight: 500; font-size: 0.95rem; text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-button); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line-soft); background: var(--surface); }
.mobile-menu nav { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-menu a:not(.btn) {
  padding: 12px 4px; color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a[aria-current="page"] { color: var(--teal-dark); }
.mobile-menu .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .site-header .site-nav, .site-header .header-cta { display: none; }
  /* Without scripts the menu is simply open below the header, and the header
     scrolls away with the page instead of staying pinned over it. */
  .mobile-menu { display: block; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .toc { top: 0; }
  /* With scripts, an open menu taller than the screen scrolls inside itself. */
  html.js .mobile-menu.is-open { max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  html.js .mobile-menu { display: none; }
  html.js .mobile-menu.is-open { display: block; }
  html.js .menu-toggle { display: inline-flex; }
  html.js .mobile-menu [data-menu-item] {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    transition-delay: calc(var(--i, 0) * 50ms);
  }
  html.js .mobile-menu.is-shown [data-menu-item] { opacity: 1; transform: none; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---------- Buttons, pills, tags ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-button); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal-dark); color: #fff; box-shadow: 0 8px 18px -10px rgba(13, 148, 136, 0.9); }
.btn-primary:hover { background: #115e59; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--teal-dark); border-color: var(--teal); }
.btn-secondary:hover { background: var(--mint); color: var(--teal-dark); }
.btn-small { padding: 8px 16px; font-size: 0.92rem; }
.band-navy .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.band-navy .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker {
  color: var(--teal-dark); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}
.band-navy .kicker { color: var(--teal-soft); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink); font-size: 0.85rem; font-weight: 500;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); }
.tag-built, .tag-planned, .tag-later {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag-built { background: #ccfbf1; color: var(--teal-dark); }
.tag-planned { background: var(--blue-soft); color: var(--blue); }
.tag-later { background: var(--line-soft); color: var(--muted); }

/* ---------- Bands and section furniture ---------- */

.band-white, .band-mint, .band-wash, .band-navy { padding-block: clamp(56px, 8vw, 96px); }
.band-mint { background: var(--mint); }
.band-wash { background: var(--wash); }
.band-navy { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #cbd5e1; }
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy strong { color: #fff; }
.band-navy a:not(.btn) { color: var(--teal-soft); }
.band-navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(20, 184, 166, 0.18), transparent 70%),
    radial-gradient(500px 280px at 0% 100%, rgba(94, 234, 212, 0.08), transparent 70%);
}
.band-navy > .wrap { position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.band-navy .section-head p:not(.kicker) { color: #cbd5e1; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--body); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.more-link:hover::after { transform: translateX(4px); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; }
.card[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.card-link:hover, .card[data-tilt]:hover { box-shadow: var(--shadow-lift); border-color: var(--teal-soft); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-bottom: 16px; border-radius: 10px; background: var(--mint); color: var(--teal-dark);
}
.card-icon svg { width: 24px; height: 24px; }
.card-list { display: grid; gap: 8px; margin: 12px 0 16px; font-size: 0.93rem; }
.card-list li { position: relative; padding-left: 22px; }
.card-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.card-navy { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.card-navy p { color: #cbd5e1; }

/* ---------- Heroes ---------- */

.hero { position: relative; overflow: hidden; background: var(--mint); padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero-backdrop {
  position: absolute; inset: -20% -10% -10%; pointer-events: none;
  background:
    radial-gradient(520px 360px at 88% 12%, rgba(20, 184, 166, 0.22), transparent 70%),
    radial-gradient(420px 320px at 4% 92%, rgba(94, 234, 212, 0.28), transparent 70%);
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(13, 148, 136, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { max-width: 560px; margin-bottom: 26px; }
.hero .btn-row { margin-bottom: 22px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { position: relative; overflow: hidden; background: var(--mint); padding-block: clamp(40px, 6vw, 72px); }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero .lede { max-width: 720px; }

/* ---------- Call to action band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Numbers ---------- */

.stat { padding: 24px; border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.stat-figure { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-family: var(--font-display); color: #fff; }
.stat-number { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--teal-soft); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 1rem; font-weight: 500; color: #e2e8f0; }
.stat h3 { margin-bottom: 6px; font-size: 1.05rem; }
.stat p { font-size: 0.93rem; }

/* ---------- Steps ---------- */

.steps { position: relative; display: grid; gap: 8px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-soft);
}
html.js [data-steps]::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--teal);
  transform: scaleY(var(--progress, 1)); transform-origin: top; transition: transform 0.5s var(--ease);
}
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-block: 14px; counter-increment: step; }
.step-marker {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--font-display); font-weight: 700; border: 2px solid var(--teal);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step-marker::before { content: counter(step); }
.step h3 { margin: 8px 0 6px; }
.step-who { display: block; margin-bottom: 2px; color: var(--teal-dark); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html.js [data-steps] .step-marker { background: var(--surface); color: var(--muted); border-color: var(--line); }
html.js [data-steps] .step.is-active .step-marker { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.16); }
html.js [data-steps] .step-body { opacity: 0.78; transition: opacity 0.5s; }
html.js [data-steps] .step.is-active .step-body { opacity: 1; }

.steps-across { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.steps-across::before, html.js .steps-across[data-steps]::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
html.js .steps-across[data-steps]::after { transform: scaleX(var(--progress, 1)); transform-origin: left; }
.steps-across .step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 0; }
.steps-across .step p { font-size: 0.93rem; }
@media (max-width: 900px) {
  .steps-across { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps-across::before, html.js .steps-across[data-steps]::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  html.js .steps-across[data-steps]::after { transform: scaleY(var(--progress, 1)); transform-origin: top; }
  .steps-across .step { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-block: 14px; }
}

/* ---------- Home: the lot card that plays by itself ---------- */

.lot-stage { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.lot-stage::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal)); opacity: 0.35;
}
.lot-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; box-shadow: var(--shadow-lift);
}
.lot-card-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
.lot-live { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 600; }
.lot-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); animation: lot-pulse 1.6s ease-out infinite; }
.lot-caption { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.lot-picture { display: flex; align-items: center; justify-content: center; padding: 14px 18px 6px; background: linear-gradient(180deg, var(--wash), var(--surface)); color: #94a3b8; }
.lot-picture svg { width: 100%; max-width: 300px; height: auto; }
.lot-body { padding: 14px 18px 18px; }
.lot-number { color: var(--teal-dark); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.lot-title { margin-bottom: 14px; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.lot-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-radius: 10px; background: var(--navy); }
.lot-label { color: #94a3b8; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lot-price, .lot-clock { color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lot-clock { color: var(--teal-soft); }
.lot-price.is-bumped { animation: lot-bump 0.5s var(--ease); }
.lot-clock.is-extended { animation: lot-extend 0.9s var(--ease); }
.lot-note {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--amber-soft); color: var(--amber);
  font-size: 0.82rem; font-weight: 600; transition: opacity 0.4s, transform 0.4s var(--ease);
}
html.js .lot-note.is-hidden { opacity: 0; transform: translateY(-4px); }
.lot-bids { display: grid; margin-top: 12px; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.lot-bids li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.lot-bids li:first-child { color: var(--ink); font-weight: 600; }
.lot-bids li.is-new { animation: lot-row 0.5s var(--ease); }
@keyframes lot-pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); } }
@keyframes lot-bump { 0% { transform: translateY(8px); color: var(--teal-soft); } 100% { transform: none; color: #fff; } }
@keyframes lot-extend { 0% { transform: scale(1); } 35% { transform: scale(1.14); color: #fde68a; } 100% { transform: scale(1); } }
@keyframes lot-row { 0% { transform: translateY(-8px); background: var(--mint); } 100% { transform: none; background: transparent; } }

/* ---------- Home: section furniture ---------- */

.section-foot { margin-top: clamp(24px, 3vw, 36px); }
.section-foot-center { text-align: center; }
.feature-card { display: block; color: var(--body); text-decoration: none; }
.feature-card:hover { color: var(--body); }
.feature-card .card-list { margin-bottom: 0; }
.card > [class^="tag-"] { margin-bottom: 12px; }

.connect { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); gap: 0; align-items: center; }
.connect-link { position: relative; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.connect-link svg { width: 100%; height: 40px; }
.connect-link .pill { position: absolute; border-color: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
@media (max-width: 800px) {
  .connect { grid-template-columns: minmax(0, 1fr); }
  .connect-link { height: 72px; }
  .connect-link svg { width: 72px; transform: rotate(90deg); }
}

/* "Not a fit" lists: a dash where the other list has a tick. */
.card-list-no li::before { top: 0.72em; width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--muted); transform: none; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px;
  color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--teal-dark); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.faq-item p { padding: 0 2px 20px; max-width: 64ch; }

/* ---------- Inner pages ---------- */

.toc { position: sticky; top: var(--header-height); z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.toc-inner { display: flex; gap: 8px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc a {
  flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink); font-size: 0.88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.toc a:hover, .toc a.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.feature-group { scroll-margin-top: calc(var(--header-height) + 56px); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .lede { margin-top: 14px; }
.split .card-list { font-size: 1rem; margin-bottom: 0; }
.connect-stack { grid-template-columns: minmax(0, 1fr); }
.connect-stack .connect-link { height: 72px; }
.connect-stack .connect-link svg { width: 72px; transform: rotate(90deg); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.steps-long { gap: 0; }
.steps-long .step { padding-block: 22px; }
.steps-long h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.steps-long .card-list { margin-bottom: 0; font-size: 0.97rem; }

.sent { display: grid; gap: 12px; margin: 20px 0 0; }
.sent div { padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--wash); }
.sent dt { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.sent dd { margin: 0; font-size: 0.96rem; }
.mini-steps { display: grid; gap: 14px; margin-top: 20px; counter-reset: mini; }
.mini-steps li { position: relative; padding-left: 46px; counter-increment: mini; }
.mini-steps li::before {
  content: counter(mini); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal-dark);
  font-family: var(--font-display); font-weight: 700;
}
.grid-2 > div > .lede { margin-top: 12px; }
.callout { padding: clamp(24px, 4vw, 40px); text-align: center; background: var(--mint); border-color: var(--teal-soft); box-shadow: none; }
.callout h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.callout p + p { margin-top: 14px; }

/* ---------- Roadmap ---------- */

.roadmap-hero h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(2rem, 4.6vw, 3rem); }
.roadmap-hero .lede { max-width: 760px; color: #cbd5e1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.board-col { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.board-now .board-head { background: var(--mint); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.board-next .board-head { background: var(--blue-wash); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.board-later .board-head { background: var(--wash); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.board-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line-soft); }
.board-head h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.board-head p { font-size: 0.93rem; color: var(--muted); }
.road-list { padding: 8px 20px 16px; }
.road-list li { padding: 11px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
.road-list li:first-child { border-top: 0; }
.road-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.86rem; font-weight: 400; line-height: 1.5; }
@media (max-width: 900px) { .board { grid-template-columns: minmax(0, 1fr); } }

.told-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.told { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.told th { padding: 14px 18px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; text-align: left; }
.told td { padding: 13px 18px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.told td:first-child { color: var(--muted); }
.told td:nth-child(2) { color: var(--ink); font-weight: 500; }
.told td:last-child { white-space: nowrap; }
.told tbody tr:nth-child(even) { background: var(--wash); }
@media (max-width: 720px) {
  .told thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .told, .told tbody, .told tr, .told td { display: block; }
  .told tr { padding: 14px 16px; border-top: 1px solid var(--line-soft); }
  .told tbody tr:first-child { border-top: 0; }
  .told td { padding: 2px 0; border: 0; }
  .told td:first-child::before { content: "Before: "; font-weight: 600; }
  .told td:last-child { margin-top: 8px; }
}
.fineprint { max-width: 760px; margin: 32px auto 0; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* ---------- Long-form text: About and the policies ---------- */

.prose { display: grid; gap: 28px; }
.prose h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.prose p + p { margin-top: 12px; }
.policy { overflow-wrap: break-word; }
.policy h2 { margin: 40px 0 12px; padding-top: 8px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); scroll-margin-top: calc(var(--header-height) + 16px); }
.policy h3 { margin: 26px 0 8px; }
.policy p { margin: 0 0 14px; }
.policy ul, .policy ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.policy ol { list-style: decimal; }
.policy li { margin-bottom: 6px; }
.policy table { display: block; width: 100%; margin: 0 0 18px; border-collapse: collapse; overflow-x: auto; font-size: 0.93rem; }
.policy th, .policy td { padding: 10px 12px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.policy th { background: var(--wash); color: var(--ink); }
.policy code { padding: 1px 5px; border-radius: 4px; background: var(--wash); font-size: 0.9em; }
.notice { display: grid; gap: 6px; margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--teal-soft); border-radius: 10px; background: var(--mint); font-size: 0.95rem; }
.notice a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Demonstration page ---------- */

.demo-address { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Demonstration form ---------- */

.demo-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
  max-width: 720px; margin-top: 30px; padding: clamp(20px, 3vw, 30px);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.field-optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #94a3b8; border-radius: var(--radius-button);
  background: var(--surface); color: var(--ink); font: inherit; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; border-color: var(--teal-dark); }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field-error { min-height: 0; color: #b91c1c; font-size: 0.88rem; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.88rem; }
/* A field for spam programs only: off the screen, out of the tab order. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.demo-submit .demo-address { margin-top: 0; }
.demo-assure { color: var(--muted); font-size: 0.92rem; }
.demo-status { color: #b91c1c; font-weight: 500; }
.demo-status:empty { display: none; }
.demo-done {
  max-width: 720px; margin-top: 30px; padding: clamp(20px, 3vw, 30px);
  background: var(--surface); border: 1px solid var(--teal-soft); border-radius: var(--radius-card);
}
.demo-done h2 { margin-bottom: 8px; font-size: 1.5rem; }
.demo-nojs { margin-top: 26px; font-size: 1.05rem; }
.demo-form[hidden], .demo-done[hidden] { display: none; }
/* The form needs the script; without it the address above is the way in. */
html:not(.js) .demo-form { display: none; }
html.js .demo-nojs { display: none; }
@media (max-width: 640px) { .demo-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chat ---------- */

.chat-open {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: var(--radius-pill); background: var(--teal-dark); color: #fff; cursor: pointer;
  font: 600 0.98rem/1 var(--font-body); box-shadow: var(--shadow-lift);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.chat-open:hover { background: #115e59; transform: translateY(-2px); }
.chat-open[hidden], .chat-panel[hidden] { display: none; }
/* The back-to-top button sits above the chat button. */
html.js .back-to-top { bottom: 86px; }
html.chat-is-open .back-to-top { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 24px);
  height: 560px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.5);
  animation: chat-in 0.3s var(--ease);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #cbd5e1;
}
.chat-title { display: grid; gap: 2px; }
.chat-title strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.chat-title span { font-size: 0.8rem; color: var(--teal-soft); }
.chat-close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.12); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--mint); }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 0.94rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg-them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg-me { align-self: flex-end; background: var(--teal-dark); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-error { border-color: #fca5a5; color: #7f1d1d; }
.chat-msg-waiting { display: inline-flex; gap: 5px; padding-block: 15px; }
.chat-msg-waiting span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: chat-dot 1.2s infinite ease-in-out; }
.chat-msg-waiting span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg-waiting span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--mint); }
.chat-starters[hidden] { display: none; }
.chat-starter {
  padding: 8px 12px; border: 1px solid var(--teal); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--teal-dark); font: 500 0.85rem/1.2 var(--font-body); cursor: pointer;
}
.chat-starter:hover { background: #ccfbf1; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.chat-input {
  flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #94a3b8; border-radius: var(--radius-button);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
}
.chat-input:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; border-color: var(--teal-dark); }
.chat-send {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border: 0; border-radius: var(--radius-button); background: var(--teal-dark); color: #fff; cursor: pointer;
}
.chat-send:disabled { background: #94a3b8; cursor: default; }
.chat-foot { padding: 0 14px 12px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
@media (max-width: 720px) {
  .chat-open { right: 14px; bottom: 14px; width: 54px; height: 54px; min-height: 0; padding: 0; justify-content: center; }
  .chat-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.js .back-to-top { right: 19px; bottom: 80px; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: auto; top: 8px; max-height: none; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #94a3b8; padding-block: 56px 28px; font-size: 0.93rem; }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-wordmark { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-wordmark span { color: var(--teal-soft); font-weight: 500; }
.footer-brand p:last-child { max-width: 380px; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-heading { color: #fff; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--teal-soft); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
.footer-legal a { text-decoration: underline; }
@media (max-width: 720px) { .site-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--teal-dark); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lift); transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.2s;
}
.back-to-top:hover { background: var(--teal-dark); }
html.js .back-to-top { display: inline-flex; opacity: 0; transform: translateY(12px); pointer-events: none; }
html.js .back-to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Motion: reveal on scroll ---------- */

html.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.reveal-left { transform: translateX(-28px); }
html.js .reveal.reveal-scale { transform: scale(0.96); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

.draw-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .draw-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
html.js .is-visible .draw-line, html.js .draw-line.is-visible { stroke-dashoffset: 0; }

/* ---------- Not found ---------- */

.notfound { text-align: center; padding-block: clamp(72px, 12vw, 140px); }
.notfound-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--teal-soft); }
.notfound h1 { margin: 8px 0 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Reduce motion: nothing moves, everything is shown ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js .mobile-menu [data-menu-item] { opacity: 1; transform: none; }
  html.js .draw-line { stroke-dashoffset: 0; }
  html.js [data-steps] .step-body { opacity: 1; }
  html.js [data-steps] .step-marker { background: var(--teal); color: #fff; border-color: var(--teal); }
  .scroll-progress { display: none; }
}
