/* ==========================================================================
   HookupSwipe design system
   Prototype only. Not the site scaffold: the build gate in
   docs/restoration/02-BUILDMAP.md section 8 is still closed.
   ========================================================================== */

:root {
  /* brand */
  --pink:        #ff2e63;
  --pink-dark:   #e01d4f;
  --pink-soft:   #fff0f4;
  --pink-tint:   #ffe3ec;

  /* ink */
  --navy:        #10162b;
  --navy-2:      #1e2540;
  --ink:         #2c3448;
  --muted:       #6b7488;
  --muted-2:     #8b93a5;

  /* surface */
  --bg:          #ffffff;
  --bg-soft:     #fafbfd;
  --border:      #e9ebf1;
  --border-2:    #f1f3f7;

  /* status */
  --gold:        #ffb020;
  --green:       #15a34a;

  /* shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(16, 22, 43, .05);
  --shadow:    0 4px 16px rgba(16, 22, 43, .07);
  --shadow-lg: 0 18px 48px rgba(16, 22, 43, .10);

  --maxw: 1320px;
  --nav-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

/* The HTML hidden attribute is only a UA-stylesheet display:none, so ANY author
   display declaration beats it. .search-overlay{display:flex} therefore rendered
   the dialog over the homepage on load. This makes hidden mean hidden. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Keyboard focus must always be visible. Hover-only affordances fail a11y. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--pink); background: var(--pink-soft); }
.main-nav a .caret { font-size: 10px; opacity: .55; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid var(--pink-tint);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.search-button:hover { background: var(--pink-tint); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 420px at 88% 14%, rgba(255, 46, 99, .085) 0%, transparent 68%),
    radial-gradient(340px 300px at 96% 60%, rgba(13, 125, 112, .05) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 44px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 36px;
}

.hero-ambient {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 620px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
}
.hero-ambient svg { width: 100%; height: 100%; opacity: .065; }
.hero-inner { position: relative; z-index: 1; }

.hero-copy { max-width: 720px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(31px, 3.7vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--pink); }

.hero-description {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 520px;
}

/* trust strip */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin-bottom: 18px;
  max-width: 640px;
}
.trust-item { display: flex; gap: 12px; }
.trust-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--pink);
  background: var(--pink-soft);
  border-radius: var(--r-sm);
}
.trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.trust-item small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted-2);
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.button-primary {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 6px 18px rgba(255, 46, 99, .3);
}
.button-primary:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 46, 99, .34);
}
.button-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover { border-color: var(--muted-2); }

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-section {
  position: relative;
  z-index: 2;
  margin-top: -14px;
  padding-bottom: 26px;
}

.comparison-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 24px 16px;
  flex-wrap: wrap;
}
.comparison-header h2 {
  margin: 0 0 5px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.comparison-header p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 560px;
}
.updated {
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* Wide tables scroll inside their own container so the page body never does. */
.table-wrapper { overflow-x: auto; }

.comparison-table {
  width: 100%;
  min-width: 1300px;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table td {
  padding: 9px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-2);
  font-size: 14.5px;
  color: var(--ink);
}
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr { transition: background .15s; }
.comparison-table tbody tr:hover { background: #fcfcfe; }

.c-rank { width: 44px; }
.rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--pink);
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.comparison-table tr:nth-of-type(n+4) .rank { background: var(--navy); }
.rank.is-none {
  color: var(--muted-2);
  background: none;
  font-weight: 700;
}

.c-bestfor { font-weight: 600; color: var(--navy); }
.c-cta { width: 150px; }

.site-info { display: flex; align-items: center; gap: 12px; }
/* fixed box + contain: a real licensed logo can drop in with no CSS change and
   nothing ever gets stretched to fit */
.site-logo {
  flex-shrink: 0;
  width: 74px;
  height: 42px;
  object-fit: contain;
  border-radius: 7px;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.group-head td {
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  flex-shrink: 0;
  width: 78px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.site-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-info strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
}
.site-info small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.comparison-table td small { display: block; margin-top: 1px; font-size: 11.5px;
  line-height: 1.35; color: var(--muted-2); }

.visit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 118px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(255, 46, 99, .26);
  transition: background .15s, transform .15s;
}
.visit-button:hover { background: var(--pink-dark); transform: translateY(-1px); }
.review-link {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pink);
  text-align: center;
}
.review-link:hover { text-decoration: underline; }

.view-all-row {
  padding: 14px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.view-all-row a { font-size: 14.5px; font-weight: 700; color: var(--pink); }
.view-all-row a:hover { text-decoration: underline; }

/* ==========================================================================
   DISCOVERY CARDS
   ========================================================================== */

.quick-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 56px;
}

.quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.quick-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.quick-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
}
.quick-card li + li { border-top: 1px solid var(--border-2); }
.quick-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink);
  transition: color .15s;
}
.quick-card li a span { color: var(--muted-2); transition: transform .15s, color .15s; }
.quick-card li a:hover { color: var(--pink); }
.quick-card li a:hover span { color: var(--pink); transform: translateX(3px); }

.match-card {
  color: #fff;
  background: linear-gradient(150deg, #171d33 0%, #262f4f 100%);
  border-color: transparent;
}
.match-card h3 { color: #fff; }
.match-card p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
}
.match-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border-radius: var(--r-sm);
  transition: background .15s, transform .15s;
}
.match-button:hover { background: var(--pink-dark); transform: translateY(-1px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 44px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-inner > div:first-child { max-width: 420px; }
.footer-inner p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--pink); }

/* ==========================================================================
   REVIEW MODE
   Dev-only overlay. Highlights every claim on the page that the site has not
   yet earned the right to make. See buildmap section 6 (no fabricated
   testing) and section 10. Remove this block before any real build.
   ========================================================================== */

.review-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.review-toggle:hover { background: var(--navy-2); }

body.review-mode [data-claim] {
  position: relative;
  outline: 2px dashed #d9480f;
  outline-offset: 3px;
  background: rgba(255, 176, 32, .13);
  border-radius: 4px;
}
body.review-mode [data-claim]::after {
  content: attr(data-claim);
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translateY(-5px);
  z-index: 60;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  color: #fff;
  background: #d9480f;
  border-radius: 4px;
  pointer-events: none;
}
body.review-mode .review-banner { display: block; }
.review-banner {
  display: none;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: #7a3600;
  background: #fff4e0;
  border-bottom: 1px solid #ffd9a0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .quick-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 9px 9px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .comparison-section { margin-top: 0; padding-top: 26px; }
}

@media (max-width: 620px) {
  .container { padding-inline: 16px; }
  .hero-inner { padding-top: 40px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-section { grid-template-columns: minmax(0, 1fr); }
  .comparison-header { padding: 22px 20px 18px; }
  .hero-buttons .button { width: 100%; }
  /* 16px minimum on any input, or iOS zooms and it reads as a broken layout */
  input, select, textarea { font-size: 16px; }
}

/* ==========================================================================
   PLATFORM INTELLIGENCE PANEL
   Replaces the decorative hero photo. It is an instrument, so it has to read
   honestly when a counter is empty: "not started" is a different fact from 0.
   ========================================================================== */

/* ==========================================================================
   PLATFORM TRACKER STRIP
   Subordinate to the headline and primary CTA by construction: narrow column,
   near-white surface, hairline mint border. Green is spent only on the live
   dot and the counts that are actually verified, so it reads as instrumentation
   rather than as a second brand colour competing with the pink.
   ========================================================================== */

.tracker {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 34px rgba(16, 22, 43, .10), 0 2px 6px rgba(16, 22, 43, .04);
}

/* header strip: pink LIVE, navy wordmark, both uppercase and letterspaced */
.tracker-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 15px 20px 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.tracker-live { color: var(--pink); letter-spacing: .1em; }
.tracker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, .15);
  animation: tracker-pulse 2.4s ease-in-out infinite;
}
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 46, 99, .15); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 46, 99, .05); }
}
@media (prefers-reduced-motion: reduce) { .tracker-dot { animation: none; } }

.tracker-stats { margin: 0; padding: 0 20px; }
.tracker-stats li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-2);
}
.tracker-stats li:last-child { border-bottom: 0; }
.t-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
/* the unstarted counters read as a rule, not a dash: a dash says "none" where
   the truth is "not checked" */
.t-num.is-pending .nil { width: 20px; height: 3px; opacity: .55; }
.t-label { font-size: 13.5px; color: var(--ink); }

.tracker-latest {
  padding: 14px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.tracker-latest p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--navy);
}
.tracker-latest-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tracker-link {
  display: block;
  padding: 13px 20px;
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pink);
}
.tracker-link:hover { text-decoration: underline; }

/* ==========================================================================
   VERIFICATION STATES
   The point of the table: a checked fact and an unchecked one must never look
   the same. Verified is solid, pending is muted and explicitly labelled.
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-verified { color: #0f7a3d; background: #e6f7ee; border: 1px solid #bfe9d3; }
.badge-live     { color: #0f7a3d; background: #e6f7ee; border: 1px solid #bfe9d3; }
.badge-closed   { color: #9a2020; background: #fdeaea; border: 1px solid #f6c9c9; }
.badge-moved    { color: #8a5300; background: #fff3e0; border: 1px solid #ffdfae; }

.owner-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.tick {
  display: inline-block;
  margin-left: 3px;
  font-weight: 900;
  color: var(--green);
}

.cell-pending { font-size: 13.5px; color: var(--muted-2); font-style: italic; }
.cell-claimed { font-size: 13.5px; color: var(--ink); }
.cell-na      { font-size: 13.5px; color: var(--muted-2); }
.cell-warn    { font-size: 13px; font-weight: 600; color: #9a2020; }

/* ownership band */
.owner-band td {
  padding: 9px 14px;
  background: linear-gradient(90deg, #fff5f8 0%, #fffafc 62%, #fff 100%);
  border-top: 1px solid var(--pink-tint);
  border-bottom: 1px solid var(--pink-tint);
}
.owner-band-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--pink);
  vertical-align: middle;
}
.owner-band strong { font-size: 13.5px; color: var(--navy); }
.owner-band-note {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.owner-band-link {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-dark);
  white-space: nowrap;
}
.owner-band-link:hover { text-decoration: underline; }

/* rows inside the ownership band get a pink spine so the grouping reads */
.comparison-table tr.in-band td:first-child { box-shadow: inset 3px 0 0 var(--pink-tint); }
.comparison-table tr.is-band-end td { border-bottom: 1px solid var(--pink-tint); }

.row-closed { background: #fcfcfd; }
.row-closed .site-info strong { color: var(--muted); }
.site-logo.is-closed {
  color: var(--muted-2);
  background: var(--bg-soft);
  border-style: dashed;
}

/* disabled affordances must not look clickable */
.visit-button.is-disabled,
.review-link.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  background: var(--border-2);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.review-link.is-disabled {
  display: block;
  margin-top: 8px;
  padding: 0;
  background: none;
  font-size: 12.5px;
  font-style: italic;
}

@media (max-width: 980px) {
  .tracker { max-width: 100%; }
}

/* ==========================================================================
   INNER PAGES
   Shared shell for /how-we-test/, /status/ and the review template.
   ========================================================================== */

.page-head {
  padding: 34px 0 26px;
  background:
    radial-gradient(520px 380px at 88% 10%, rgba(255, 46, 99, .07) 0%, transparent 68%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--pink); }
.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy);
  max-width: 780px;
}
.page-lede {
  margin: 0;
  max-width: 680px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-body { padding: 34px 0 64px; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.prose { max-width: 760px; }
.prose h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 24px 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
}
.prose p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.68; color: var(--ink); }
.prose ul { margin: 0 0 16px; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-tint);
  box-shadow: inset 0 0 0 2px var(--pink);
}
.prose a { color: var(--pink-dark); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--navy); }

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pink);
  border-radius: var(--r-sm);
}
.callout strong { color: var(--navy); }
.callout--warn {
  color: #7a3600;
  background: #fff8ec;
  border-color: #ffdfae;
  border-left-color: #d9841f;
}
.callout--warn strong { color: #7a3600; }

/* --------------------------------------------------------------- side rail */
.rail { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.rail-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.rail-card h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-2);
}
.rail-list li:last-child { border-bottom: 0; }
.rail-list dt, .rail-list .k { color: var(--muted); }
.rail-list .v { font-weight: 700; color: var(--navy); text-align: right; }
.rail-list .v small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted-2); }

/* ==========================================================================
   VERIFICATION LEDGER
   The thing that makes a review defensible: every claim carries its state.
   ========================================================================== */

.ledger {
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.ledger-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}
.ledger-count { font-size: 12px; color: var(--muted-2); }
.ledger-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-2);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-mark { font-size: 14px; font-weight: 900; line-height: 1.4; }
.ledger-mark.is-yes { color: var(--green); }
.ledger-mark.is-no  { color: var(--muted-2); }
.ledger-k { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.ledger-v { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.ledger-when {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 3px;
}

/* ==========================================================================
   PLATFORM HEADER (review pages)
   ========================================================================== */

.platform-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.platform-head img {
  width: 108px;
  height: 62px;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.platform-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ==========================================================================
   STATUS TIMELINE
   ========================================================================== */

.timeline { position: relative; margin: 0; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
}
.timeline li.is-closed::before { border-color: #d98080; }
.timeline li.is-moved::before  { border-color: #e0a44a; }
.timeline li.is-live::before   { border-color: var(--green); }
.timeline-when {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.timeline-what { font-size: 15px; font-weight: 700; color: var(--navy); }
.timeline-note { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   PROTOTYPE BAR  (dev only, strip before build)
   ========================================================================== */

.proto-bar {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(16, 22, 43, .93);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.proto-bar a {
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .68);
  border-radius: 999px;
}
.proto-bar a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.proto-bar a[aria-current] { color: var(--navy); background: #fff; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .proto-bar { display: none; }
}

.rail-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted-2);
}
.rail-note a { color: var(--pink-dark); font-weight: 600; }
.rail-list a.k { color: var(--ink); font-weight: 600; }
.rail-list a.k:hover { color: var(--pink); }

/* A "no data yet" cell must not be an em dash: the rendered glyph breaks the
   house dash ban, and a dash reads as "none" when the truth is "not checked".
   Draw the mark in CSS and give it a real accessible name. */
.nil {
  display: inline-block;
  width: 14px;
  height: 2px;
  vertical-align: middle;
  background: currentColor;
  opacity: .38;
  border-radius: 1px;
}
.t-num .nil { width: 17px; height: 3px; }

/* ==========================================================================
   MOBILE NAV DRAWER + SEARCH
   The old mobile nav was a full-width overflow-x:auto strip, which is what
   made the page feel like it swayed sideways under a thumb. Replaced with a
   drawer that opens from a hamburger placed BEFORE the logo.
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-right: 2px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle-bars::before { content: ""; transform: translateY(-6px); }
.nav-toggle-bars::after  { content: ""; transform: translateY(4px); }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after  { transform: rotate(-45deg) translateY(-1px); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(16, 22, 43, .42);
  backdrop-filter: blur(2px);
}

/* search trigger: a real icon button, not a glyph in a circle */
.search-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.search-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.search-button:hover { color: var(--pink); border-color: var(--pink-tint); background: var(--pink-soft); }

/* ------------------------------------------------------------ search dialog */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(16, 22, 43, .38);
  backdrop-filter: blur(3px);
}
.search-panel {
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 26px 70px rgba(16, 22, 43, .28);
  overflow: hidden;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-field svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round;
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: var(--font);
  font-size: 16px;           /* under 16px and iOS zooms on focus */
  color: var(--navy);
  background: none;
}
.search-field input::placeholder { color: var(--muted-2); }
.search-field button {
  flex-shrink: 0;
  padding: 4px 9px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}
.search-results { overflow-y: auto; padding: 6px; }
.search-hint, .search-empty {
  margin: 0;
  padding: 18px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.search-hit {
  display: block;
  padding: 11px 12px;
  border-radius: var(--r-sm);
}
.search-hit:hover, .search-hit:focus-visible { background: var(--pink-soft); }
.search-hit-t { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.search-hit-d {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.search-hit-u { display: block; margin-top: 3px; font-size: 11.5px; color: var(--pink-dark); }
.search-results mark { background: var(--pink-tint); color: inherit; border-radius: 2px; }

body.search-open, body.nav-open { overflow: hidden; }

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }

  .header-inner { height: 62px; gap: 10px; flex-wrap: nowrap; padding-inline: 16px; }
  .logo img { height: 34px; }

  /* drawer, not a sideways-scrolling strip */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: min(82vw, 320px);
    height: 100dvh;
    margin: 0;
    padding: 74px 14px 20px;
    display: block;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--border);
    box-shadow: 6px 0 30px rgba(16, 22, 43, .12);
    transform: translateX(-102%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  }
  body.nav-open .main-nav { transform: none; }
  .main-nav a {
    display: block;
    padding: 13px 12px;
    font-size: 15.5px;
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--border-2);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .caret { display: none; }
  .header-actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav { transition: none; }
}
