/* ==========================================================================
   ConectaNYC — "Nueva Cuadra / Urban Bold"
   Navy = NYC anchor · Gold (taxi) + Coral (LatAm warmth) = the bridge.
   Mobile-first. Never set layout via inline style= (see learnings.md).
   ========================================================================== */

:root {
  /* Brand palette (from conectanyc-design-brief.md) */
  --navy: #10203a;          /* base background */
  --navy-deep: #0c1a30;     /* footer, deeper bands */
  --card: #17294a;          /* cards, elevated panels */
  --card-border: #23385c;   /* card outlines */
  --divider: #223250;       /* section rules */
  --ghost: #4a5a78;         /* secondary button outline */
  --gold: #f9c94b;          /* logo, primary CTA, stat highlights */
  --gold-hover: #ffd76e;
  --coral: #ff7a59;         /* secondary accent, icon blocks, hero word */
  --cream: #f4f1ea;         /* primary text on dark */
  --muted-1: #cdd3dd;       /* nav links, long-form body */
  --muted-2: #b9c0cd;       /* ledes */
  --muted-3: #97a1b3;       /* labels */
  --muted-4: #8b93a5;       /* footer text */
  --on-accent: #10203a;     /* text on gold/coral */

  /* Cream band (light section) tokens */
  --paper: #f4f1ea;
  --paper-card: #fbf9f4;
  --paper-border: #e2dccd;
  --ink: #10203a;
  --ink-muted: #4a5568;
  --coral-ink: #b8431f;     /* coral for text on cream (AA) */

  --grad: linear-gradient(150deg, #ff7a59 0%, #f9c94b 100%);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1160px;
  --gutter: 16px;
  --section-y: 64px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 960px) {
  :root { --section-y: 96px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}
h1 { font-size: clamp(2.3rem, 4.2vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
strong { font-weight: 600; color: var(--cream); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
::selection { background: var(--gold); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 800px; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; margin-right: 0.4em; }
.icon-btn { width: 18px; height: 18px; }
.icon-star { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold); }

.icon-block {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--coral);
  color: var(--on-accent);
}
.icon-block .icon { width: 22px; height: 22px; stroke-width: 2; }
.icon-block-sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-block-sm .icon { width: 19px; height: 19px; }
.icon-block-xs { width: 32px; height: 32px; border-radius: 9px; }
.icon-block-xs .icon { width: 16px; height: 16px; }
.icon-block-lg { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px; }
.icon-block-lg .icon { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.3rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--on-accent); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--ghost); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover { background: #1a2f52; }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 0.6rem 1rem; min-height: 42px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  display: inline-flex; align-items: center;
  color: var(--gold); font-weight: 600; text-decoration: none;
  font-family: var(--font-display);
}
.text-link .icon-inline { order: 2; margin: 0 0 0 0.4em; transition: transform 0.18s ease; }
.text-link:hover .icon-inline { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 32, 58, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--divider); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
/* El Puente lockup (vector). Height drives size; width follows the 939:200 artboard. */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 8px; }
.logo-img { display: block; height: 38px; width: auto; }
@media (min-width: 600px) { .logo-img { height: 46px; } }
.logo-footer .logo-img { height: 52px; }

.main-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy);
  border-bottom: 1px solid var(--divider);
  padding: 8px var(--gutter) 24px;
}
.site-header.is-open .main-nav { display: block; }
.main-nav ul { list-style: none; }
.main-nav a:not(.btn) {
  display: block; padding: 14px 4px;
  color: var(--muted-1); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  border-bottom: 1px solid var(--divider);
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--cream); }
.main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--coral); padding-left: 14px; }
.nav-cta-mobile { margin-top: 20px; width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--muted-3); text-decoration: none;
  padding: 7px 12px; min-height: 36px;
  border: 1px solid var(--ghost); border-radius: 999px;
}
.lang-toggle .is-active { color: var(--cream); }
.lang-toggle .lang-sep { color: var(--ghost); }
.lang-toggle:hover { border-color: var(--cream); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; color: var(--cream);
  border: 1px solid var(--ghost); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (min-width: 560px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1000px) {
  .header-inner { min-height: 80px; gap: 28px; }
  .main-nav {
    display: block; position: static;
    background: none; border: 0; padding: 0;
    margin: 0 auto;
  }
  .main-nav ul { display: flex; gap: 30px; }
  .main-nav a:not(.btn) { padding: 6px 0; border: 0; font-size: 0.98rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); padding-left: 0; }
  .nav-cta-mobile, .nav-toggle { display: none; }
  .header-actions { margin-left: 0; gap: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }
.section-alt { background: var(--navy-deep); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { margin-top: 16px; color: var(--muted-2); font-size: 1.1rem; line-height: 1.65; }
.section-foot { margin-top: 32px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.lede { margin-top: 20px; color: var(--muted-2); font-size: 1.15rem; line-height: 1.65; max-width: 62ch; }
.body-lg { color: var(--muted-1); font-size: 1.1rem; line-height: 1.7; margin-top: 14px; }
.fine-print { margin-top: 18px; font-size: 0.85rem; color: var(--muted-3); }
.h-sub { font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); margin-bottom: 22px; }
.h-note { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.block-space { margin-top: 56px; }
.rule { border: 0; border-top: 1px solid var(--divider); margin: 40px 0; }

/* Cream band */
.section-cream { background: var(--paper); color: var(--ink); }
.section-cream h2, .section-cream h3, .section-cream strong { color: var(--ink); }
.section-cream .eyebrow { color: var(--coral-ink); }
.section-cream .section-lede, .section-cream p { color: var(--ink-muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 22px; }
}
.grid-gap-lg { gap: 40px; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .split-center { align-items: center; }
}

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.card h3 { margin-top: 8px; }
.card p { color: var(--muted-2); font-size: 0.97rem; line-height: 1.6; }
.card-link:hover { border-color: var(--coral); transform: translateY(-3px); }
.card-more {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--gold);
}
.card-more .icon-inline { order: 2; margin: 0 0 0 0.4em; transition: transform 0.18s ease; }
.card-link:hover .card-more .icon-inline { transform: translateX(3px); }
.mini-list { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.mini-list li { color: var(--muted-1); font-size: 0.92rem; padding-left: 16px; position: relative; }
.mini-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.panel-title { font-size: 1.15rem; display: flex; align-items: center; color: var(--cream); margin-bottom: 18px; }
.panel-title .icon-inline { color: var(--coral); }
.panel-row { display: grid; gap: 18px; align-items: center; }
.panel-row p { color: var(--muted-2); }
.panel-row .h-sub { margin-bottom: 8px; }
@media (min-width: 800px) {
  .panel-row { grid-template-columns: auto 1fr auto; gap: 26px; padding: 32px; }
}

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(249, 201, 75, 0.45);
  border-radius: 999px; padding: 3px 10px;
}
.tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  color: var(--coral); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Lists */
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted-1); }
.check-list .icon { width: 20px; height: 20px; color: var(--coral); margin-top: 2px; stroke-width: 2.4; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 9px 16px;
  color: var(--muted-1); font-size: 0.95rem;
}
.chips .icon-inline { color: var(--coral); }
.chips-lg li { padding: 12px 18px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 2.6vw + 1rem, 3.05rem); max-width: 14ch; }
@media (min-width: 960px) { .hero h1 { max-width: none; } }
.accent { color: var(--coral); }
@media (min-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.hero-visual {
  position: relative;
  background: var(--grad);
  border-radius: 20px;
  padding: 22px 22px 70px;
  box-shadow: var(--shadow);
  min-height: 340px;
}
@media (min-width: 600px) {
  .hero-visual { padding: 30px 30px 78px; }
}
.dash {
  background: var(--navy);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 40px -20px rgba(16, 32, 58, 0.8);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dash-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--cream); display: inline-flex; align-items: center; }
.dash-title .icon-inline { color: var(--coral); }
.dash-body { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; }
.gauge { position: relative; width: 104px; height: 104px; }
.gauge-svg { width: 100%; height: 100%; }
.gauge-track { fill: none; stroke: rgba(249, 201, 75, 0.16); stroke-width: 10; }
.gauge-fill { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; }
.gauge-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-value strong { font-family: var(--font-body); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--cream); }
.gauge-value span { font-size: 0.68rem; color: var(--muted-3); margin-top: 3px; }
.dash-bars { list-style: none; display: grid; gap: 9px; }
.dash-bars li { display: grid; grid-template-columns: 62px 1fr 24px; gap: 8px; align-items: center; font-size: 0.78rem; }
.dash-bar-label { color: var(--muted-2); white-space: nowrap; }
.dash-bar-value { color: var(--cream); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Meter (single series: gold fill on a lighter gold track) */
.meter { display: block; height: 8px; border-radius: 4px; background: rgba(249, 201, 75, 0.16); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: var(--v, 0%); background: var(--gold); border-radius: 0 4px 4px 0; }

.ai-card {
  position: relative;
  margin: -6px 0 0 auto;
  width: min(100%, 360px);
  transform: translateY(14px);
  background: var(--cream);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -18px rgba(16, 32, 58, 0.7);
}
.ai-q {
  font-size: 0.8rem; color: var(--ink-muted);
  background: #e9e4d8; border-radius: 10px; padding: 7px 10px;
  margin-bottom: 10px; width: fit-content; max-width: 100%;
}
.ai-a { display: flex; gap: 10px; font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.ai-a strong { color: var(--ink); }
.ai-badge {
  flex: none; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
}
.ai-badge .icon { width: 15px; height: 15px; }
.ai-src {
  display: flex; align-items: center; width: fit-content;
  margin-top: 8px; font-size: 0.72rem; font-weight: 600;
  color: var(--coral-ink); background: rgba(255, 122, 89, 0.14);
  border-radius: 999px; padding: 3px 9px;
}
.float-tag {
  position: absolute; left: 22px; bottom: 20px;
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 0.86rem;
  border-radius: 999px; padding: 8px 14px;
}
@media (min-width: 600px) {
  .float-tag { left: 30px; bottom: 26px; }
}

/* ---------- Stat bar ---------- */
.stat-bar { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.stats { list-style: none; display: grid; grid-template-columns: 1fr; }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 8px; }
.stats li + li { border-top: 1px solid var(--divider); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--gold); }
.stat-num-text {
  font-size: clamp(1rem, 0.45vw + 0.8rem, 1.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 24ch;
}
.stat-label { font-size: 0.9rem; color: var(--muted-3); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li { padding: 30px 12px; }
  .stats li + li { border-top: 0; border-left: 1px solid var(--divider); }
}

/* ---------- SEO + GEO mocks ---------- */
.mock {
  background: var(--navy);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
}
.mock-searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 9px 14px;
  font-size: 0.9rem; color: var(--cream);
  margin-bottom: 12px;
}
.mock-searchbar .icon { width: 17px; height: 17px; color: var(--muted-3); }
.mock-results { list-style: none; display: grid; gap: 8px; }
.mock-results li {
  display: grid; grid-template-columns: 28px 1fr auto; column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--card-border);
}
.mock-results li.is-you { border-color: var(--gold); background: rgba(249, 201, 75, 0.08); }
.pin-dot { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--muted-3); }
.is-you .pin-dot { background: var(--coral); color: var(--on-accent); }
.pin-dot .icon { width: 15px; height: 15px; }
.result-name { font-weight: 600; font-size: 0.92rem; color: var(--cream); }
.result-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--cream); font-weight: 600; }
.result-meta { grid-column: 2 / 4; font-size: 0.78rem; color: var(--muted-3); }

.mock-ai { display: grid; gap: 10px; }
.mock-bubble { font-size: 0.9rem; line-height: 1.55; border-radius: 12px; padding: 11px 14px; max-width: 92%; }
.mock-bubble-user { justify-self: end; background: var(--card); color: var(--cream); border: 1px solid var(--card-border); }
.mock-bubble-ai { display: flex; gap: 10px; background: var(--cream); color: var(--ink); }
.mock-bubble-ai strong { color: var(--ink); }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 18px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.tier-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.tier-top { display: flex; align-items: center; justify-content: space-between; }
.tier-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.tier-tag { color: var(--muted-2); }
.tier-card h3 { font-size: 1.45rem; margin-top: 10px; }
.tier-card:nth-child(2) { border-color: rgba(249, 201, 75, 0.35); }
.tier-card:nth-child(3) { background: linear-gradient(180deg, #1b3056 0%, var(--card) 100%); }

.tier-details { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .tier-details { grid-template-columns: repeat(3, 1fr); }
}
.tier-detail {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-margin-top: 100px;
}
.tier-detail:nth-child(2) { border-color: rgba(249, 201, 75, 0.35); }
.tier-detail-head { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.tier-detail-head h2 { font-size: 1.6rem; }
.tier-detail-head .tier-tag { font-size: 0.95rem; margin-top: 4px; }
.tier-meta { color: var(--muted-1); font-size: 0.97rem; }
.tier-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-3); margin-top: 6px; }
.tier-detail .check-list { margin-top: 0; }
.tier-outcome {
  margin-top: auto;
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(249, 201, 75, 0.08);
  border: 1px solid rgba(249, 201, 75, 0.3);
  border-radius: 12px; padding: 14px;
  color: var(--muted-1); font-size: 0.95rem;
}

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--card-border); }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--card); font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--card-border); text-align: center; }
.compare thead th { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--cream); background: var(--navy); }
.compare thead th:first-child, .compare tbody th { text-align: left; }
.compare tbody th { font-weight: 500; color: var(--muted-1); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 122, 89, 0.16); color: var(--coral); }
.tick .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.dash-mark { display: inline-grid; place-items: center; color: var(--ghost); }
.dash-mark .icon { width: 18px; height: 18px; }
.cell-text { font-size: 0.88rem; font-weight: 600; color: var(--gold); }

/* Quiz */
.quiz { display: grid; gap: 18px; }
.quiz-q {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); padding: 20px; margin: 0;
}
.quiz-q legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; padding: 0 6px; color: var(--cream); }
.quiz-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-accent); font-size: 0.9rem; }
.quiz-opts { clear: both; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.quiz-opt { position: relative; cursor: pointer; }
.quiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-opt span {
  display: inline-block; padding: 10px 16px; min-height: 44px;
  border: 1.5px solid var(--ghost); border-radius: 999px;
  color: var(--muted-1); font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.quiz-opt:hover span { border-color: var(--cream); }
.quiz-opt input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 700; }
.quiz-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.quiz .btn { justify-self: start; }
.quiz-result:empty { display: none; }
.quiz-result {
  border-radius: var(--radius); padding: 22px;
  background: var(--grad); color: var(--on-accent);
}
.quiz-result p { color: var(--on-accent); }
.quiz-result strong, .quiz-result h3 { color: var(--on-accent); }
.quiz-result h3 { font-size: 1.5rem; margin: 4px 0 8px; }
.quiz-result .btn-row { margin-top: 16px; }
.quiz-result .quiz-msg { font-weight: 600; }

/* ---------- Steps & dimensions ---------- */
.steps { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li div { display: flex; flex-direction: column; gap: 2px; }
.steps strong { font-family: var(--font-display); font-size: 1.05rem; }
.steps span:not(.step-num) { color: var(--ink-muted); }
.steps-dark span:not(.step-num) { color: var(--muted-2); }
.step-num {
  flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.section-cream .step-num { background: var(--navy); color: var(--gold); }

.dims-card {
  align-self: start;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.dims-card h3 { margin-bottom: 14px; font-size: 1.25rem; }
.dims { list-style: none; display: grid; grid-template-columns: 1fr; }
.dims li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--paper-border);
  color: var(--ink); font-weight: 500;
}
.dims li:last-child { border-bottom: 0; }
.dim-num { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--coral-ink); min-width: 24px; }
@media (min-width: 600px) {
  .dims { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .dims li:nth-last-child(2) { border-bottom: 0; }
}

.step-cards { list-style: none; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .step-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .step-cards { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.step-card p { color: var(--muted-2); font-size: 0.96rem; }

.dim-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
.dim-card { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; }
.dim-card .dim-num { color: var(--gold); padding-top: 10px; }
.dim-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.dim-card p { color: var(--muted-2); font-size: 0.94rem; }

/* Scorecard (single-series meter list; values printed as text) */
.scorecard { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .scorecard { grid-template-columns: 1.5fr 1fr; } }
.scorecard-main, .scorecard-side { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; }
.scorecard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.scorecard-name { font-family: var(--font-display); font-weight: 700; display: inline-flex; align-items: center; }
.scorecard-name .icon-inline { color: var(--coral); }
.scorecard-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); }
.scorecard-total-label { color: var(--muted-2); }
.scorecard-total-value { color: var(--muted-2); }
.scorecard-total-value strong { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--cream); margin-right: 4px; }
.score-table { width: 100%; border-collapse: collapse; }
.score-table th, .score-table td { padding: 9px 0; text-align: left; font-size: 0.92rem; }
.score-table th { font-weight: 500; color: var(--muted-1); padding-right: 14px; width: 46%; }
.score-meter { width: 44%; padding-right: 14px; }
.score-value { width: 10%; text-align: right; font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; }
.scorecard-side h3 { margin-bottom: 14px; }
@media (max-width: 479px) {
  .score-table th { width: 58%; }
  .score-meter { width: 30%; }
}

.get-list { list-style: none; display: grid; gap: 14px; }
.get-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper-card); border: 1px solid var(--paper-border);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--ink); font-weight: 500;
}

/* ---------- Features (service pages) ---------- */
.features { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { color: var(--muted-2); font-size: 0.93rem; line-height: 1.55; }

.feature-list { list-style: none; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted-2); }

.layout-aside { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
  .aside-card { position: sticky; top: 104px; }
}
.aside-card {
  background: var(--grad); color: var(--on-accent);
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.aside-card .h-note, .aside-card p { color: var(--on-accent); }
.aside-card .btn-primary { background: var(--navy); color: var(--cream); }
.aside-card .btn-primary:hover { background: #1a2f52; }
.aside-card .text-link { color: var(--on-accent); }

.note-box {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid rgba(249, 201, 75, 0.4);
  background: rgba(249, 201, 75, 0.06);
  border-radius: var(--radius); padding: 22px;
}
.note-box p { color: var(--muted-1); }
.note-box .icon-block { background: var(--gold); }

/* ---------- Bilingual quote ---------- */
.bi-quote {
  margin: 0; position: relative;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px 26px;
  display: grid; gap: 18px;
}
.bi-quote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 1.5vw + 1rem, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--cream); }
.bi-quote p:last-of-type { color: var(--gold); }
.bi-tag {
  display: inline-block; vertical-align: 0.3em; margin-right: 10px;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--navy); background: var(--coral); border-radius: 6px; padding: 3px 7px;
}
.bi-bridge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); border: 1px solid var(--card-border); color: var(--coral); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--cream);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--coral); transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--ghost); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p { color: var(--muted-1); line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad); color: var(--on-accent);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  display: grid; gap: 22px; align-items: center;
}
.cta-band h2 { color: var(--on-accent); font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
.cta-band p { color: var(--on-accent); margin-top: 10px; max-width: 58ch; font-size: 1.05rem; }
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 48px 52px; gap: 40px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 40px 0 48px; border-bottom: 1px solid var(--divider); }
@media (min-width: 960px) { .page-hero { padding: 56px 0 64px; } }
.page-hero-inner { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem); }
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--muted-3); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--ghost); }
.breadcrumbs a { color: var(--muted-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--cream); }
.page-hero-404 { border-bottom: 0; padding: 72px 0 96px; }

/* ---------- Contact ---------- */
.contact-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; scroll-margin-top: 100px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted-1); }
.contact-card .btn { margin-top: 12px; }
.contact-card a:not(.btn) { color: var(--gold); }
.contact-card:target { border-color: var(--gold); }
.pending { display: inline-flex; align-items: center; color: var(--gold); font-style: italic; font-size: 0.93rem; }

/* ---------- About ---------- */
.swatches { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.swatches li { display: flex; gap: 14px; align-items: center; }
.swatches li div { display: flex; flex-direction: column; }
.swatches span:not(.swatch) { color: var(--muted-2); font-size: 0.95rem; }
.swatch { width: 48px; height: 48px; border-radius: 12px; flex: none; border: 1px solid var(--card-border); }
.swatch-navy { background: var(--navy); border-color: var(--ghost); }
.swatch-gold { background: var(--gold); }
.swatch-coral { background: var(--coral); }

/* ---------- Blog ---------- */
.post-card-top { display: flex; align-items: center; justify-content: space-between; }
.post-meta { font-size: 0.86rem; color: var(--muted-3); display: inline-flex; align-items: center; flex-wrap: wrap; }
.post-hero .post-meta { margin-top: 20px; }
.post-hero .post-meta .icon-inline { color: var(--coral); }
.prose { font-size: 1.08rem; line-height: 1.78; color: var(--muted-1); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1vw + 1rem, 1.85rem); margin-top: 2.1em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.55em; }
.prose li::marker { color: var(--coral); font-weight: 700; }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-hover); }
.post-intro { font-size: 1.2rem; color: var(--cream); line-height: 1.7; }
.post-checklist { list-style: none; padding-left: 0 !important; }
.post-checklist li { position: relative; padding-left: 30px; }
.post-checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.35em;
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid var(--coral);
}
.prose-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--card); font-size: 0.97rem; line-height: 1.5; }
.prose-table th, .prose-table td { padding: 12px 14px; border-bottom: 1px solid var(--card-border); text-align: left; vertical-align: top; }
.prose-table thead th { font-family: var(--font-display); color: var(--cream); background: var(--navy); }
.prose-table tbody th { color: var(--cream); font-weight: 600; }
.prose-table tbody tr:last-child th, .prose-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--divider); padding-top: 56px; color: var(--muted-4); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer-brand p { margin-top: 14px; max-width: 34ch; line-height: 1.6; font-size: 0.95rem; }
.footer-title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted-2); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; }
.footer-contact .icon-inline { color: var(--coral); margin: 3px 0 0; flex: none; }
.footer-contact strong { color: var(--muted-1); font-weight: 600; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  position: relative;
  padding-top: 22px; padding-bottom: 26px;
  font-size: 0.9rem;
}

.footer-bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--divider); }
.split > .panel { align-self: start; }

/* Wide tables on phones: keep the row label pinned while the rest scrolls */
.compare tbody th, .compare thead th:first-child,
.prose-table tbody th, .prose-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.compare tbody th, .prose-table tbody th { background: var(--card); }
.compare thead th:first-child, .prose-table thead th:first-child { background: var(--navy); }
.scroll-hint { display: none; margin-top: 10px; font-size: 0.85rem; color: var(--muted-3); }
@media (max-width: 679px) {
  .compare { min-width: 560px; font-size: 0.9rem; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare tbody th { min-width: 170px; box-shadow: 1px 0 0 var(--card-border); }
  .scroll-hint { display: block; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Forced colors / print ---------- */
@media (forced-colors: active) {
  .meter { border: 1px solid CanvasText; }
  .meter-fill { background: Highlight; }
  .icon-block { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
