/* ============================================================
   hassanmansour.com — design system
   Palette, type and spacing tokens live here. Change once,
   changes everywhere.
   ============================================================ */

/* ---------- fonts (self-hosted, SIL OFL): Fraunces, Archivo, JetBrains Mono ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colours, type and spacing come from css/tokens.css (the Measured brand tokens).
     The names below are this site's own; each one points at a brand token. */
  --ink: var(--brand-text);            /* navy: text, dark bands */
  --paper: var(--brand-bg);            /* off-white page */
  --white: var(--brand-surface);       /* cards */
  --signal: var(--brand-action);       /* buttons and links */
  --signal-deep: color-mix(in srgb, var(--brand-action) 84%, var(--brand-bg));  /* hover */
  --tint: color-mix(in srgb, var(--brand-action) 7%, var(--brand-bg));          /* chips, icon tiles */
  --sand: color-mix(in srgb, var(--brand-line) 45%, var(--brand-bg));           /* quiet section band */
  --line: var(--brand-line);
  --mut: var(--brand-text-muted);
  --sage: var(--brand-success);
  --sage-tint: color-mix(in srgb, var(--brand-success) 12%, var(--brand-surface));
  --ok: var(--brand-success);

  /* On navy grounds: the dark-mode values of the measured theme in tokens.json.
     tokens.css only exposes them for a whole page in dark mode, so they are copied here. */
  --on-dark: #F4F3EF;
  --d-surface: #1C2540;
  --d-muted: #A9B0C3;
  --d-line: #2B3552;
  --d-line-strong: #7882A0;
  --d-focus: #9DB2FF;
  --d-success: #7FCFA4;
  --ink-soft: var(--d-surface);

  /* font families (--font-display, --font-body, --font-mono) come from tokens.css */
  --radius: var(--radius-lg);
  --radius-sm: var(--radius-md);
  --shadow: 0 1px 2px rgba(19, 26, 46, 0.05), 0 10px 32px -14px rgba(19, 26, 46, 0.14);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 650; line-height: 1.3; }

p { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--mut); max-width: 44rem; }
.muted { color: var(--mut); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--mut); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--signal); }
.nav-cta {
  background: var(--signal);
  color: var(--on-dark) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--signal-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--signal); color: var(--on-dark); }
.btn-primary:hover { background: var(--signal-deep); color: var(--on-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-dark); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding-block: 84px 76px; /* block only — keep .container's side gutters */
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note {
  font-size: 0.9rem;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* signature element: the ship log */
.shiplog {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  overflow: hidden;
}
.shiplog-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--d-muted);
  font-size: 0.78rem;
}
.shiplog-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.shiplog ul { list-style: none; margin: 0; padding: 18px; display: grid; gap: 14px; }
.shiplog li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; }
.shiplog .st { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.st.live { background: var(--d-success); }
.st.build { background: var(--d-muted); }
.st.next { background: var(--d-muted); }
.shiplog b { color: var(--on-dark); font-weight: 500; }
.shiplog small { color: var(--d-muted); display: block; margin-top: 2px; font-size: 0.78rem; }

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 46rem; margin-bottom: 44px; }

.band-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.band-dark h2 { color: var(--on-dark); }
.band-dark .lead, .band-dark .muted { color: var(--d-muted); }

/* ---------- cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 14px; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--signal);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
}
.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* path cards on home */
.path-card { display: flex; flex-direction: column; gap: 6px; }
.path-card .lead { font-size: 1rem; margin-bottom: 14px; }
.path-card ul { margin: 0 0 20px; padding-left: 20px; color: var(--mut); }
.path-card li { margin-bottom: 6px; }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- checklist ---------- */

.checklist { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--signal);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* ---------- process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--mut); font-size: 0.95rem; margin: 0; }

/* ---------- pricing ---------- */

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 8px 0 2px;
}
.price-card .per { color: var(--mut); font-size: 0.9rem; margin-bottom: 18px; }
.price-card ul { margin: 0 0 24px; padding-left: 20px; color: var(--mut); }
.price-card li { margin-bottom: 7px; }
.price-card .btn { margin-top: auto; }
.price-featured { border-color: var(--signal); border-width: 2px; }
.badge {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--signal);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; max-width: 46rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::after { content: "+"; color: var(--signal); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--mut); }

/* ---------- blog ---------- */

.post-list { display: grid; gap: 22px; }
.post-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: grid;
  gap: 6px;
  transition: border-color 0.15s ease;
}
.post-item:hover { border-color: var(--signal); }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--signal); }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mut);
  display: flex;
  gap: 14px;
}
.post-tag { color: var(--signal); }

.article { max-width: 44rem; margin: 0 auto; }
.article h2 { margin-top: 1.8em; font-size: 1.5rem; }
.article ul, .article ol { margin-bottom: 1.2em; }
.article li { margin-bottom: 0.4em; }
.article blockquote {
  border-left: 3px solid var(--signal);
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  color: var(--mut);
}

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; max-width: 40rem; }
.form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 8px; }
.form input, .form select, .form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px var(--tint);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--mut); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--brand-danger); }

/* ---------- embeds (Calendly) ---------- */

.embed-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 660px;
}

/* ---------- cta band ---------- */

.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--d-muted);
  padding: 56px 0 36px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer .brand { color: var(--on-dark); margin-bottom: 10px; display: inline-flex; }
.site-footer h2 {
  line-height: 1.4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--d-muted); /* ≥ 7:1 on --ink */
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--d-muted); }
.site-footer a:hover { color: var(--on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding-block: 72px 20px; max-width: 48rem; }

/* ---------- headshot ---------- */

/* Initials show until /images/headshot.jpg exists (main.js hides a failed img). */
.headshot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--signal) 0%, var(--ink) 100%);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.headshot::before {
  content: "HM";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  color: rgba(255,255,255,0.9);
}
.headshot img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.headshot-sm { width: 44px; height: 44px; aspect-ratio: 1; border-radius: 50%; flex: none; box-shadow: none; }
.headshot-sm::before { font-size: 0.9rem; }

.byline { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--mut); margin-bottom: 18px; }
.byline b { color: var(--ink); font-weight: 600; display: block; }

/* ---------- chips ---------- */

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--signal-deep);
}
.band-dark .chips li { background: rgba(255,255,255,0.08); color: var(--d-muted); }

/* ---------- projects ---------- */

.project-card { display: flex; flex-direction: column; }
.project-card h3 { margin-top: 12px; }
.project-card p { flex: 1; }
.status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--sage-tint); color: var(--sage); }
.status.build { background: var(--tint); color: var(--ink); }
.status.next { background: transparent; color: var(--mut); box-shadow: inset 0 0 0 1px var(--brand-line-strong); }

/* ---------- feature card (full-width highlight) ---------- */

.feature-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  border: 2px solid var(--signal);
  margin-bottom: 26px;
}
.feature-card .checklist { margin: 0; }
.tag-new {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--signal);
  color: var(--on-dark);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- inline form (waitlist) ---------- */

.form-inline { display: flex; flex-wrap: wrap; gap: 12px; max-width: 36rem; }
.form-inline input {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.form-inline input:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.form-inline .form-status, .form-inline .form-note { flex-basis: 100%; margin: 0; }
.band-dark .form-note { color: var(--d-muted); }

/* ---------- language toggle ---------- */

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.8rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- legal pages ---------- */

.article h3 { margin-top: 1.4em; }
.article table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 0.95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

@media (max-width: 960px) {
  .feature-card { grid-template-columns: 1fr; }
}

/* ---------- reveal animation ---------- */

/* Hidden only when JS is running (html.js is set in <head>), so no-JS visitors see everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--stagger, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-note .dot, .st.live { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 56px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   POLISH — calm, static details. The only ongoing animation on
   the site is one pulsing live dot in the ship log.
   ============================================================ */

/* ---------- ambient light: two soft static blobs, no blur filter ---------- */

body { position: relative; isolation: isolate; }
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    none;
}

/* ---------- ship log ---------- */

.shiplog { box-shadow: 0 24px 60px -30px rgba(19, 26, 46, 0.45); }
.shiplog .prompt { color: var(--d-muted); padding: 16px 18px 0; }
.shiplog .done { padding: 0 18px 16px; color: var(--d-muted); font-size: 0.78rem; }
.shiplog ul { padding-top: 14px; }
.st.live { animation: none; }
.shiplog li:first-child .st.live { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- icons (Lucide, one stroke style) ---------- */

.i {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- cards: quiet hover ---------- */

.card, .post-item { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover, .post-item:hover { border-color: var(--brand-line-strong); }
.card-dark { background: var(--ink-soft); border-color: rgba(255, 255, 255, 0.09); }
.card-dark h3 { color: var(--on-dark); }
.card-dark:hover { border-color: rgba(255, 255, 255, 0.2); }
.card-dark .icon { background: rgba(244, 243, 239, 0.08); color: var(--on-dark); }

/* ---------- door flows: three steps, left to right ---------- */

.flow {
  list-style: none;
  margin: 6px 0 22px;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.flow li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink);
}
.flow-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--signal);
}
.flow li:last-child .flow-icon { background: var(--sage-tint); border-color: transparent; color: var(--sage); }
.flow li + li::before {
  /* connector from the previous step's icon to this one */
  content: "";
  position: absolute;
  top: 21px;
  right: calc(50% + 27px);
  width: calc(100% - 46px);
  border-top: 1.5px dashed var(--brand-line-strong);
}

/* ---------- credentials (inside "why trust me") ---------- */

.cred-grid {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred-grid li { background: var(--ink); padding: 22px 22px 20px; display: grid; gap: 4px; }
.cred-grid b { color: var(--on-dark); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.cred-grid span { color: var(--d-muted); font-size: 0.88rem; line-height: 1.45; }

/* ---------- labels on dark bands: cobalt is too dark on --ink ---------- */

.band-dark .eyebrow { color: var(--d-muted); }
.band-dark .eyebrow::before { background: var(--d-muted); }

/* ---------- text link next to a primary button ---------- */

.text-link { align-self: center; font-weight: 600; color: var(--signal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.band-dark .text-link { color: var(--d-muted); }
.band-dark .text-link:hover { color: var(--on-dark); }

/* ---------- warmth: ivory paper, sand bands, sage for positive signals ---------- */

.section-warm {
  background: var(--sand);
}
.section-warm .card, .section-warm .step { background: var(--white); }

.checklist li::before { background: var(--sage-tint); color: var(--sage); }
.band-dark .checklist li::before { background: rgba(127, 209, 163, 0.16); color: var(--d-success); }

/* status palette: live = sage, beta = sky, ready = violet, build = amber */
.status.live { background: var(--sage-tint); color: var(--sage); }
.status.beta { background: var(--sage-tint); color: var(--sage); }
.status.build { background: var(--tint); color: var(--ink); }
.st.beta { background: var(--d-success); }
.st.ready { background: var(--on-dark); }

/* ---------- avatar: static ring + availability dot ---------- */

.avatar {
  position: relative;
  flex: none;
  display: inline-grid;
  padding: 2px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.avatar .headshot-sm { width: 56px; height: 56px; box-shadow: none; }
.avatar::after {
  content: "";
  position: absolute;
  right: 0; bottom: 1px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--paper);
}
.byline b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.headshot:not(.headshot-sm)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

::selection { background: rgba(19, 26, 46, 0.16); }

@media (max-width: 960px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  /* one soft blob on phones */
  body::before { height: 640px; background: none; }
  .flow { padding: 14px 6px; }
  .flow li { font-size: 0.8rem; }
}
@media (max-width: 420px) {
  .cred-grid { grid-template-columns: 1fr; }
}

/* ---------- case study card (selected work) ---------- */

.case-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 26px;
}
.case-card h3 { font-size: 1.5rem; }
.case-facts {
  margin: 0;
  display: grid;
  gap: 2px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
}
.case-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.case-facts div:last-child { border-bottom: 0; }
.case-facts dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mut); padding-top: 3px; }
.case-facts dd { margin: 0; font-weight: 500; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.status { max-width: 100%; }

@media (max-width: 960px) {
  .case-card { grid-template-columns: 1fr; }
}

.book-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
[hidden] { display: none !important; }

.next-steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: 16px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--mut); }
.next-steps li::before {
  content: counter(ns);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--sage-tint);
  color: var(--sage);
}
.next-steps b { color: var(--ink); font-weight: 600; }

/* white buttons on white price cards need their own surface */
.price-card .btn-light { background: var(--tint); color: var(--signal-deep); }
.price-card .btn-light:hover { background: var(--line); }

.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

.flow-label { margin: 4px 0 8px; font-size: 0.8rem; font-weight: 600; color: var(--mut); }
.flow { margin-top: 0; }

/* ---------- the book: colours taken from the cover ---------- */

.band-book {
  --book-green: #11463A;
  --book-gold: #E0B865;
  background: radial-gradient(800px 500px at 20% 30%, #1D5F51, transparent 70%), var(--book-green);
  color: #F2EAD8;
}
.band-book h2, .band-book h1 { color: #F2EAD8; }
.band-book .gold { color: var(--book-gold); }
.band-book .eyebrow { color: var(--book-gold); }
.band-book .eyebrow::before { background: var(--book-gold); }
.band-book .lead, .band-book .muted { color: #C3CDBF; }
.band-book .text-link { color: #F2EAD8; }
.book-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.book-cover { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.book-cover img { width: 100%; height: auto; }
.book-sub { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--book-gold); margin-bottom: 18px; }
.book-quote { font-style: italic; color: #F2EAD8; border-left: 2px solid var(--book-gold); padding-left: 16px; margin: 6px 0 26px; }
.btn-gold { background: var(--book-gold); color: #0A2C25; }
.btn-gold:hover { background: color-mix(in srgb, var(--book-gold) 86%, #fff); color: #0A2C25; }
.toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.toc h3 { font-size: 1rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 22px; color: var(--mut); display: grid; gap: 6px; font-size: 0.95rem; }
.toc .part-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--signal); display: block; margin-bottom: 4px; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-cover { max-width: 340px; }
  .toc { grid-template-columns: 1fr; }
}
.book-hero { padding-block: 72px; }
.post-source { font-size: 0.9rem; color: var(--mut); margin-top: -4px; }
.post-note { font-size: 0.92rem; color: var(--mut); background: var(--sand); border-radius: var(--radius-sm); padding: 14px 18px; }
.article code { font-family: var(--font-mono); font-size: 0.88em; background: var(--sand); padding: 1px 6px; border-radius: 5px; }

/* ---------- toolkit (why trust me) ---------- */
.stack-note { margin: -4px 0 18px; font-size: 0.95rem; }
.stack-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.stack-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--d-success); margin-bottom: 10px; }
.stack-more { margin: 18px 0 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--d-muted); }
@media (max-width: 960px) { .stack-groups { grid-template-columns: 1fr; } }

/* ============================================================
   PHASE 2 — accessibility fixes and the Sprint / Workshops pages
   ============================================================ */

/* skip link: hidden until it receives keyboard focus */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

/* grids never force sideways scroll on narrow phones */
.grid-2, .grid-3 { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.grid-3 { --cols: 3; }
.grid-2 > *, .grid-3 > *, .book-grid > *, .case-card > *, .hero > *, .feature-card > * { min-width: 0; }
.form input, .form select, .form textarea { min-width: 0; }
@media (max-width: 960px) { .grid-3 { --cols: 2; } }
@media (max-width: 680px) { .grid-2, .grid-3 { --cols: 1; } }

/* links inside running text are underlined, not just coloured */
main p a:not([class]), main li a:not([class]), main dd a:not([class]), .faq a, .form-note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* blog index post titles are h2 (heading order), styled like the old h3 */
.post-item h2 { font-size: 1.22rem; line-height: 1.3; margin: 0; }
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--signal); }

/* the menu collapses before the labels would wrap onto two lines */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- homepage: three doors ---------- */
.doors .path-card .lead { font-size: 0.98rem; }
.door-secondary { margin: -6px 0 0; font-size: 0.9rem; }
.door-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal); letter-spacing: 0.04em; }
.path-card.door-learner { background: var(--white); box-shadow: none; }

/* ---------- building in public ---------- */
.bip-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.status.soon { background: var(--tint); color: var(--ink); }
@media (max-width: 960px) { .bip-card { grid-template-columns: 1fr; } }

/* ---------- facts list (format, audience, pricing) ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--white); padding: 18px 20px; }
.facts dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--mut); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.facts dd small { display: block; font-weight: 400; color: var(--mut); font-size: 0.86rem; margin-top: 2px; }

/* ---------- numbered agenda and sprint timeline ---------- */
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: ag; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.agenda li { counter-increment: ag; position: relative; padding: 18px 20px 18px 66px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.agenda li::before { content: counter(ag, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--signal); }
.agenda b { display: block; font-weight: 600; }
.agenda span { color: var(--mut); font-size: 0.93rem; }
@media (max-width: 680px) { .agenda { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline .when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); padding-top: 3px; }
.timeline h3 { margin: 0 0 4px; font-size: 1.08rem; }
.timeline p { margin: 0; color: var(--mut); }
.timeline li.optional { background: transparent; border-style: dashed; }
@media (max-width: 680px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- invite form: two columns on wide screens ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: none; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid .form-status, .form-grid .form-note { grid-column: 1 / -1; margin: 0; }
.form .optional-mark { font-weight: 400; color: var(--mut); font-size: 0.85rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* testimonial block: rendered only when filled in (see speaking.html) */
.testimonial { font-size: 1.15rem; line-height: 1.6; max-width: 46rem; }
.testimonial cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.92rem; color: var(--mut); }
.headshot picture { display: contents; }
.case-facts div { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); }
@media (max-width: 420px) {
  .case-facts { padding: 4px 16px; }
  .case-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.article a:not([class]), main blockquote a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ============================================================
   PHASE 3 — design polish: one spacing and type scale, one primary
   action per page, phone header with "Book a call", focus on dark.
   Colours are unchanged.
   ============================================================ */

/* spacing scale (phones use the tighter values below) */
:root { --s-section: var(--space-16); --s-section-tight: var(--space-12); --s-head: var(--space-12); --s-card: var(--space-8); }
.section { padding-block: var(--s-section); }
.section-tight { padding-block: var(--s-section-tight); }
.section-head { margin-bottom: var(--s-head); }
.card { padding: var(--s-card); }

/* type scale: the homepage headline leads; inner pages sit one step below */
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.post-hero { max-width: 44rem; margin-inline: auto; }
.post-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.post-hero .post-meta { margin-bottom: 16px; }
.h-card { font-size: 1.5rem; margin-bottom: 8px; }
.small { font-size: 0.9rem; }
.mb-0 { margin-bottom: 0; }
.eyebrow-muted { color: var(--mut); }
.eyebrow-muted::before { background: var(--mut); }
.align-center { align-items: center; }
.align-start { align-items: start; }
.page-hero .hero-actions { margin-top: 26px; }

/* readable line length in wide containers */
.timeline p, .book-cta .muted, .door-secondary { max-width: 68ch; }

/* dark surfaces */
.step-dark { background: var(--ink-soft); border-color: rgba(255, 255, 255, 0.09); }
.step-dark h3 { color: var(--on-dark); }
.card-dark .btn { margin-top: 10px; }
.site-footer .brand-name span { color: var(--d-muted); }

/* focus stays visible on dark backgrounds (cobalt on ink is too faint) */
.band-dark :focus-visible, .band-book :focus-visible, .site-footer :focus-visible,
.shiplog :focus-visible, .card-dark :focus-visible { outline-color: var(--d-focus); }

/* secondary action on the book band: outline, so "Book a call" stays the main one */
.btn-gold-outline { background: transparent; color: var(--book-gold, #E0B865); border-color: var(--book-gold, #E0B865); }
.btn-gold-outline:hover { background: var(--book-gold, #E0B865); color: #0A2C25; }

/* homepage doors: same anatomy in each card, buttons line up at the bottom */
.doors .path-card { gap: 4px; }
.doors .path-card ul { margin: 2px 0 22px; }
.doors .flow { margin-bottom: 18px; }
.doors .grid-3 { align-items: stretch; }

/* header on phones and tablets: brand · Book a call · menu */
.nav-cta-bar { display: none; }
.cta-short { display: none; }
@media (max-width: 1080px) {
  .nav-cta-bar { display: inline-flex; margin-left: auto; margin-right: 10px; padding: 8px 14px; font-size: 0.88rem; }
  .nav-links .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .brand { font-size: 1rem; }
  .nav-cta-bar { padding: 7px 12px; font-size: 0.82rem; margin-right: 8px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { padding: 7px 9px; }
}

/* phones: tighter rhythm, more room inside cards */
@media (max-width: 680px) {
  :root { --s-section: 56px; --s-section-tight: 44px; --s-head: 30px; --s-card: 22px; }
  .page-hero { padding-block: 44px 8px; }
  .hero { padding-block: 40px 48px; }
  .nav-links { box-shadow: 0 18px 30px -20px rgba(19, 26, 46, 0.35); }
}
.doors .door-secondary { margin: -8px 0 18px; }

/* building in public: the builds before the current one */
.bip-card > * { min-width: 0; }
.bip-trail { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bip-trail-label { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--mut); }
.bip-trail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.bip-chip:hover { border-color: var(--signal); color: var(--signal-deep); }
.bip-chip small { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--mut); }
.bip-chip .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
/* in-page links land below the sticky header, not under it */
[id] { scroll-margin-top: 88px; }
section[id] { scroll-margin-top: 68px; }
@media (max-width: 480px) {
  .bip-trail ul { flex-direction: column; width: 100%; }
  .bip-chip { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; border-radius: 12px; }
  .bip-chip small { margin-left: auto; }
}

/* links that open another site say so */
.card-link[target="_blank"]::after { content: "↗"; }
.card-link[target="_blank"]:hover::after { transform: translate(2px, -2px); }

/* copy-the-email button on the contact page */
.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  padding: 5px 10px;
  margin-left: 4px;
  vertical-align: 0.15em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--mut);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--signal); color: var(--signal-deep); }
.copy-btn.copied { border-color: var(--sage); color: var(--sage); }

/* a form that is sending can't be sent twice */
form[data-form] button[type="submit"]:disabled { opacity: 0.65; cursor: progress; }

/* touch screens: bigger hit areas without moving anything */
@media (pointer: coarse) {
  .card-link, .text-link { padding-block: 7px; margin-block: -7px; }
  .nav-toggle, .nav-cta-bar { min-height: 40px; }
  .copy-btn { padding: 8px 12px; }
}

/* ============================================================
   Brief Checker (brief-checker.html, fr/verificateur-de-consigne.html)
   ============================================================ */
.bc-form { max-width: 46rem; }
.bc-form textarea { min-height: 190px; font-size: 1rem; line-height: 1.55; }
.bc-form .form-note { margin: 0; }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bc-clear { background: none; border: 0; padding: 10px 4px; font: inherit; cursor: pointer; }
.bc-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--mut); }
.bc-results { margin-top: 36px; display: grid; gap: 22px; }
.bc-score, .bc-guard, .bc-line, .bc-pane { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.bc-score h2 { margin: 0 0 14px; }
.bc-score h2:focus { outline: none; }
.bc-score h2:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; border-radius: 4px; }
.bc-meter { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bc-meter li { border-top: 6px solid var(--line); padding-top: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--mut); overflow-wrap: anywhere; }
.bc-meter li.on { border-top-color: var(--sage); color: var(--ink); }
.bc-score p:last-child { margin-bottom: 0; }
.bc-guard { border-left: 6px solid var(--brand-danger); }
.bc-guard h3 { margin: 0 0 6px; font-size: 1.05rem; }
.bc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bc-line { border-left: 6px solid var(--sage); }
.bc-line.is-missing { border-left-color: var(--brand-line-strong); }
.bc-line-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.bc-line h3 { margin: 0; font-size: 1.12rem; }
.bc-badge { font-family: var(--font-mono); font-size: 0.76rem; padding: 4px 10px; border-radius: 999px; background: var(--sage-tint); color: var(--sage); }
.bc-line.is-missing .bc-badge { background: var(--tint); color: var(--ink); }
.bc-badge::before { content: "✓ "; }
.bc-line.is-missing .bc-badge::before { content: "＋ "; }
.bc-ask { margin: 4px 0 10px; color: var(--mut); }
.bc-cues { font-family: var(--font-mono); font-size: 0.82rem; color: var(--mut); margin: 0 0 10px; overflow-wrap: anywhere; }
.bc-line p { max-width: 68ch; }
.bc-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.bc-pane h3 { margin: 0 0 12px; font-size: 1.02rem; }
.bc-pane-after { border-color: var(--sage); }
.bc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 14px; line-height: 1.6; }
.bc-mark { background: var(--sage-tint); color: inherit; border-bottom: 2px solid var(--sage); padding: 0 2px; border-radius: 3px; }
.bc-copy-status { margin-left: 12px; font-size: 0.9rem; color: var(--mut); }
@media (max-width: 760px) {
  .bc-compare { grid-template-columns: 1fr; }
  .bc-score, .bc-guard, .bc-line, .bc-pane { padding: 18px; }
  .bc-count { margin-left: 0; flex-basis: 100%; }
  .bc-meter li { font-size: 0; padding-top: 0; } /* labels repeat in the list below */
  .bc-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---- home: Measured family ---- */
.family-more { margin: 26px 0 0; }
.project-card .small { margin-top: 4px; }
.book-facts { margin-bottom: 34px; }

/* ---- Measured brand: details ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
a:not([class]) { text-underline-offset: 3px; }
/* a measured number is set in mono, in the result colour (brand guide, section 2) */
.measured-n { font-family: var(--font-mono); color: var(--brand-result-text); }
/* light cards that sit on a navy band keep light-ground text colours
   (the session prices were near-white on white before this) */
.band-dark .card:not(.card-dark) { color: var(--ink); }
.band-dark .card:not(.card-dark) .eyebrow { color: var(--signal); }
.band-dark .card:not(.card-dark) .eyebrow::before { background: var(--signal); }
.band-dark .card:not(.card-dark) .muted { color: var(--mut); }
.step-dark p { color: var(--d-muted); }
/* on navy, the main button turns light so it still reads as a button */
.band-dark .btn-primary, .band-dark .btn-primary:hover { background: var(--on-dark); color: var(--ink); }
.band-dark .btn-primary:hover { background: var(--d-muted); }
.band-dark .card:not(.card-dark) .btn-primary { background: var(--signal); color: var(--on-dark); }
.band-dark .card:not(.card-dark) .btn-primary:hover { background: var(--signal-deep); }
/* the current page in the menu is marked by an underline, not by colour alone */
.nav-links a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
