/*
 * Peak Programming: one stylesheet, no framework.
 * Built from the design tokens in BUILD-SPEC section 5 (not the old site's CSS).
 * Mobile first. Every section is visible with no JavaScript.
 */

/* ------------------------------------------------------------ fonts */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/Figtree-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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/Figtree-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;
}

/* ------------------------------------------------------------ tokens */

:root {
  --black: #0d0d0d;
  --raise: #161616;
  --paper: #f7f8f7;
  --ink: #191919;
  --ink-mute: #4a4a4a;
  --ink-line: #e2e4e2;
  --mute: rgba(247, 248, 247, .68);
  --dim: rgba(247, 248, 247, .5);
  --line: rgba(247, 248, 247, .12);
  --line-strong: rgba(247, 248, 247, .4);
  --radius: 18px;
  --pill: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --bar-h: 64px;
  --section-y: clamp(44px, 9vw, 128px);
  --todo: #ffe14d;

  /* Context colours: dark by default, swapped in light sections. */
  --fg: var(--paper);
  --fg-mute: var(--mute);
  --fg-dim: var(--dim);
  --bg: var(--black);
  --card: var(--raise);
  --border: var(--line);
  --btn-bg: var(--paper);
  --btn-fg: var(--black);
  --btn-line: var(--line-strong);
  --focus: var(--paper);
}

/* ------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Room for the mobile action bar so it never covers content. */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }

/* The grey second clause in headlines: never italic. */
h1 em, h2 em, h3 em, .display em { font-style: normal; color: var(--fg-dim); }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: .75em 1.25em;
  background: var(--paper);
  color: var(--black);
  border-radius: var(--pill);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section {
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

/* Below-the-fold sections are laid out only when they come near the screen (faster first paint). */
main > .section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section-light {
  --fg: var(--ink);
  --fg-mute: var(--ink-mute);
  --fg-dim: var(--ink-mute);
  --bg: var(--paper);
  --card: #fff;
  --border: var(--ink-line);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-line: rgba(25, 25, 25, .35);
  --focus: var(--ink);
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ------------------------------------------------------------ type patterns */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.25rem;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
/* Twin peaks (Carl, 26 Nov): the brand's two-mountain marker, drawn in the text colour. */
:root { --peaks: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 12%27%3E%3Cpath d=%27M0 12 7.5 3.2l3.6 4.4L15 0l9 12z%27/%3E%3C/svg%3E") center / contain no-repeat; }
.eyebrow::before { content: ""; flex: none; width: 2em; height: 1em; background: currentColor; -webkit-mask: var(--peaks); mask: var(--peaks); }

.display {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lead {
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--fg-mute);
}

.note { margin-top: 2rem; color: var(--fg-mute); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .8em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--btn-fg)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--btn-line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 44px; padding: .6em 1.2em; font-size: .78rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2rem 0 0;
}

/* ------------------------------------------------------------ header and nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(13, 13, 13, .82); backdrop-filter: blur(14px); }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; padding-block: 8px; }
.brand img { width: auto; height: 40px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .5em 1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* No JavaScript, small screens: the links sit under the logo as a list. */
.site-nav { width: 100%; padding-bottom: 16px; }

.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav-list a, .sub-menu summary {
  display: flex;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  padding: .4em .7em;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--mute);
  cursor: pointer;
}
.nav-list a:hover, .sub-menu summary:hover,
.nav-list a[aria-current="page"], .sub-menu summary.is-current { color: var(--paper); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; }

.sub-menu summary { list-style: none; }
.sub-menu summary::-webkit-details-marker { display: none; }
.sub-menu summary .icon { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.sub-menu[open] summary .icon { transform: rotate(180deg); }
.sub-list { list-style: none; padding: 4px 0 8px 12px; }

.nav-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* With JavaScript, small screens: links collapse behind the Menu button. */
@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a, .js .sub-menu summary { font-size: 1.1rem; padding-inline: 0; }
}

/* Large screens: one row. */
@media (min-width: 1080px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; width: auto; padding: 0; }
  .nav-list { flex-wrap: nowrap; }
  .nav-cta { margin: 0; flex-wrap: nowrap; }
  .has-sub { position: relative; }
  .sub-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: var(--raise);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  }
  .sub-list a { padding-inline: .8em; }
  .sub-list a:hover { background: rgba(247, 248, 247, .06); }
}

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

.hero { position: relative; overflow: hidden; background: var(--black); }

.hero-media { position: relative; aspect-ratio: 2 / 1; }
@media (min-width: 600px) and (max-width: 899px) { .hero-media { aspect-ratio: 16 / 9; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 30%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0) 45%, var(--black) 100%);
}

.hero-inner { position: relative; padding-block: 0 48px; }
/* Phones: the headline and the main button fit above the contact bar on the first screen. */
@media (max-width: 599px) {
  .hero .display { font-size: 2.15rem; }
  .hero .eyebrow { margin-bottom: .75rem; }
  .hero .actions { margin-top: 1.25rem; }
}

.hero .eyebrow { color: var(--paper); }
.hero .micro { margin: 1rem 0 0; font-size: .95rem; color: var(--mute); }

.capacity {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 1.25rem 0 0;
  padding: .45em 1em;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-size: .85rem;
  font-weight: 600;
}
.capacity-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--mute);
}
.proof strong { color: var(--paper); font-weight: 600; }
.stars { letter-spacing: .1em; color: var(--fg); }

@media (min-width: 900px) {
  .hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-media img { object-position: 70% 30%; }
  .hero-media::after {
    background:
      linear-gradient(to right, var(--black) 0%, rgba(13, 13, 13, .85) 38%, rgba(13, 13, 13, .1) 70%),
      linear-gradient(to top, var(--black) 0%, rgba(13, 13, 13, 0) 30%);
  }
  .hero-inner { padding-block: 96px; }
  .hero-inner > * { max-width: 660px; }
}

/* ------------------------------------------------------------ cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card-body > :last-child { margin-bottom: 0; }
.card-tag {
  margin-bottom: .6rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.card p { color: var(--fg-mute); }

/* Whole card clickable through one real link (keeps one tab stop per card). */
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

.path-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
/* Portrait photos whose faces sit high in the frame: crop from near the top, not the middle. */
img.focus-top { object-position: 50% 15%; }
.path-card:hover img { transform: scale(1.03); }
.path-card .price { margin-top: auto; padding-top: .5rem; color: var(--fg); }
.path-card .price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.more {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.more .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.path-card:hover .more .icon { transform: translateX(4px); }

.ways { margin-top: 2.5rem; }

/* ------------------------------------------------------------ CTA band */

.cta-band { border-top: 1px solid var(--line); }
.cta-inner { text-align: left; }
@media (min-width: 900px) {
  .cta-inner { text-align: center; }
  .cta-inner .eyebrow, .cta-inner .actions { justify-content: center; }
  .cta-inner .lead { margin-inline: auto; }
}

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

.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--mute);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .btn:hover { text-decoration: none; }
.site-footer .brand img { height: 52px; }

.footer-top { display: grid; gap: 40px; }
.footer-lede { max-width: 28rem; margin-top: 1rem; }
.footer-contact .btn { margin: .5rem 0 1rem; color: var(--black); }
.footer-contact p a { display: inline-flex; align-items: center; gap: .5em; min-height: 32px; color: var(--paper); }
.footer-contact .icon { width: 1.1em; height: 1.1em; }
.footer-note { font-size: .85rem; }

.footer-heading {
  margin: 0 0 .75rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-links ul { list-style: none; margin-bottom: 1.5rem; }
.footer-links li a { display: inline-block; padding-block: 6px; }

.footer-locations { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.locations { display: grid; gap: 24px; }
.location { font-style: normal; }
.location strong { display: block; color: var(--paper); font-weight: 600; }
.location a { display: inline-block; margin-top: .4rem; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (min-width: 600px) {
  .locations { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.1fr 2fr; gap: 64px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------ mobile action bar */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--black);
  border-top: 1px solid var(--line);
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(247, 248, 247, .04);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--paper);
}
/* Three equal buttons: none looks pre-selected (Carl, 25 Nov). */
.action:active { background: rgba(247, 248, 247, .14); }
.action .icon { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}


/* ------------------------------------------------------------ cookie consent (M11) */

.consent {
  position: fixed; z-index: 90; left: 8px; right: 8px;
  bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raise); color: var(--paper); box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  font-size: .92rem;
}
.consent p { margin: 0; color: var(--mute); }
.consent a { color: var(--paper); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 160px; }
@media (min-width: 768px) {
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 460px; }
}

/* ------------------------------------------------------------ chatbot (M8) */

.chat-launcher {
  /* Always in the header, never over the page: next to Menu up to 1079px (Carl, 25 Nov), and
     after Talk to Connor on wide screens (Carl, 26 Nov). chat.js puts it before the Menu button. */
  position: relative; margin-left: auto; z-index: 1;
  display: inline-flex; align-items: center; flex: none;
  min-height: 40px; padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--paper); color: var(--black);
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.chat-launcher:focus-visible, .chat-prompt button:focus-visible, .chat-panel :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chat-launcher[hidden] { display: none; }
/* Wide screens: in the header, in the place of the old "Get my plan" button, after Talk to Connor (Carl, 26 Nov). */
@media (min-width: 1080px) {
  .header-inner { justify-content: flex-start; }
  .site-nav { order: 2; margin-left: auto; }
  .chat-launcher { order: 3; margin-left: -14px; min-height: 44px; padding: .6em 1.2em; border-color: var(--paper); box-shadow: none; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
  .chat-launcher:hover { background: color-mix(in srgb, var(--paper) 88%, var(--black)); }
}
@media (max-width: 1079px) {
  .chat-launcher { border-color: var(--paper); box-shadow: none; }
  .header-inner { column-gap: 10px; }
}
/* Narrow phones: the Menu button shows its icon only, so the logo, chat button and menu fit one row. */
@media (max-width: 479px) {
  .js .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .js .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) {
  .brand img { height: 34px; }
  .chat-launcher { padding: 0 10px; font-size: .74rem; }
}
/* On mobile the proactive prompt is a dot on the button, not a bubble over the page. */
.chat-dot { position: absolute; top: -3px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--todo); box-shadow: 0 0 0 2px var(--black); }
.chat-dot[hidden] { display: none; }
.chat-prompt {
  position: fixed; right: 24px; top: calc(var(--header-h) + 80px); z-index: 70;
  display: flex; align-items: flex-start; gap: 4px; max-width: 280px;
  padding: 12px 8px 12px 16px; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.chat-prompt-text { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.chat-prompt-close, .chat-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-mute); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-panel {
  position: fixed; z-index: 80; left: 8px; right: 8px; top: 8px;
  bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45); overflow: hidden;
  --fg: var(--ink); --fg-mute: var(--ink-mute); --bg: var(--paper); --card: #fff; --border: var(--ink-line);
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-line: rgba(25, 25, 25, .35); --focus: var(--ink);
}
.chat-panel[hidden] { display: none; }
@media (min-width: 768px) {
  .chat-panel { left: auto; top: calc(var(--header-h) + 16px); right: 24px; bottom: auto; width: 380px; height: min(600px, calc(100vh - var(--header-h) - 40px)); }
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ink-line); }
.chat-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-who p { margin: 0; }
.chat-avatar-wrap { position: relative; flex: none; }
.chat-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat-ai-badge { position: absolute; right: -6px; bottom: -4px; padding: 1px 5px; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.chat-title { font-weight: 800; }
.chat-privacy { font-size: .78rem; color: var(--ink-mute); }
.chat-privacy a { color: inherit; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: .6em; }
.chat-assistant { align-self: flex-start; background: #eceeec; border-bottom-left-radius: 4px; }
.chat-assistant a { color: var(--ink); font-weight: 600; }
.chat-user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-typing { color: var(--ink-mute); letter-spacing: .2em; }
.chat-actions { padding: 0 16px 10px; }
.chat-actions .btn { width: 100%; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--ink-line); }
.chat-form[hidden] { display: none; }
.chat-input { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid #c9ccc9; border-radius: 22px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; resize: none; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.chat-send:disabled { opacity: .5; }
@media (max-width: 767px) { .chat-open body { overflow: hidden; } }

/* ------------------------------------------------------------ utilities */

.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;
}
.h3 { font-size: 1.3rem; }
.section-tight { padding-block: clamp(32px, 6vw, 72px); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split-head { display: grid; gap: 8px 48px; margin-bottom: 2rem; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1fr 1fr; align-items: end; } .split-head .lead { margin-bottom: .5em; } }
.split-media-img img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
@media (min-width: 900px) { .split-media { align-items: center; } }
.btn-block { width: 100%; }
.text-link { display: inline-block; margin-top: .75rem; font-size: .9rem; color: var(--fg-mute); }
.text-link:hover { color: var(--fg); }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs { border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding-block: 10px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--dim); }
.crumbs a { display: inline-block; padding-block: 4px; text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; }
.crumbs [aria-current] { display: inline-block; padding-block: 4px; color: var(--paper); }

/* ------------------------------------------------------------ inner page hero */

.page-hero { padding-block: clamp(32px, 8vw, 96px) clamp(28px, 6vw, 72px); }
.page-hero-inner { display: grid; gap: 40px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .micro { margin: 1rem 0 0; font-size: .95rem; color: var(--mute); }
.page-hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .page-hero.has-image .page-hero-inner { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 64px; }
  .page-hero-media img { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------ answer block and related links */

.answer {
  max-width: 52rem;
  padding: 24px 28px;
  border-left: 3px solid var(--paper);
  background: var(--raise);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.answer p { margin: 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
@media (max-width: 599px) {
  .answer { padding: 16px 18px; }
  .answer p { font-size: 1.02rem; }
}
.related-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 1.5rem 0 0; font-size: .95rem; color: var(--mute); }
.related-links span { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; align-self: center; }
.related-links a { color: var(--paper); margin-right: 10px; }

/* ------------------------------------------------------------ lists */

.ticks { list-style: none; display: grid; gap: .55em; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .9em; height: .5em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.ticks-lg { gap: .9em; font-size: 1.1rem; font-weight: 600; }
.card .ticks { margin: 1rem 0 1.5rem; color: var(--fg-mute); font-size: .95rem; }

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

.steps { list-style: none; margin-top: 2.5rem; }
.step { padding: 24px; }
.step h3 { margin-top: 1rem; }
.step p { margin: 0; color: var(--fg-mute); }
.step-num { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--fg-dim); }

/* ------------------------------------------------------------ offers and prices */

.tier-line {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .6em 1.1em;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-weight: 600;
}
.offer-group { margin-top: 3rem; }
.group-title { margin: 0 0 1.25rem; font-size: 1.1rem; letter-spacing: 0; }
.price-card { padding: 28px 24px; }
.price-card.is-featured { border: 2px solid var(--fg); }
.badge {
  align-self: flex-start;
  margin: 0 0 .75rem;
  padding: .3em .8em;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card .badge { color: var(--btn-fg); }
.price-name { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.price-amount { margin: .25rem 0 0; color: var(--fg-mute); }
.price-amount strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--fg); }
.price-actions { margin-top: auto; }
.extra-card { padding: 0; }
.extra-card .card-body, .extra-card { padding: 24px; }
.guarantee {
  margin: 2rem 0 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.guarantee blockquote { margin: 0; }
.guarantee blockquote p { margin: 0 0 .5rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.guarantee figcaption { color: var(--fg-mute); font-size: .9rem; }
.proof-guarantee { flex-basis: 100%; }

.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 800; }
/* Phones: tables marked .stack-sm turn each row into a small block, so nothing needs a sideways swipe
   (Carl, 25 Nov). Cells carry their column name in data-label. */
@media (max-width: 599px) {
  .stack-sm { overflow: visible; }
  .stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-sm table, .stack-sm tbody { display: block; }
  .stack-sm tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .stack-sm tr:last-child { border-bottom: 0; }
  .stack-sm tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .stack-sm td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .stack-sm td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); }
  .stack-1 tr { grid-template-columns: 1fr; }
  .stack-1 td::before { display: inline; margin-right: .5em; }
}
.compare-table thead th span { display: block; font-weight: 400; color: var(--fg-mute); font-size: .85rem; }
.compare-table tbody th { font-weight: 600; }
.compare-table td { color: var(--fg-mute); }
.yes { font-weight: 800; color: var(--fg); }
.no { color: var(--fg-dim); }

/* ------------------------------------------------------------ quotes and FAQs */

.quotes { margin-top: 2rem; }
.quote { margin: 0; padding: 24px; }
.quote blockquote { margin: .75rem 0 1rem; }
.quote blockquote p { color: var(--fg); font-size: 1.05rem; }
.quote figcaption { margin-top: auto; font-size: .9rem; color: var(--fg-mute); }
.quote figcaption strong { display: block; color: var(--fg); }

.faq-list { display: grid; gap: 8px 48px; margin-top: 2rem; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq { padding: 20px 0; border-top: 1px solid var(--border); }
.faq h3 { font-size: 1.15rem; margin-bottom: .5em; }
.faq p { margin: 0; color: var(--fg-mute); }

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

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5em 1.1em;
  border: 1px solid var(--btn-line);
  border-radius: var(--pill);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover, .chip[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ------------------------------------------------------------ home extras */

.bench-card h3, .tool-card h3 { font-size: 1.2rem; }
.finder-teaser { background: var(--raise); }
.finder-teaser .card-body { padding: clamp(28px, 5vw, 56px); }
.finder-teaser .eyebrow { color: var(--mute); }

/* ------------------------------------------------------------ about */

.creds { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .creds { grid-template-columns: repeat(4, 1fr); } }
.creds li { padding: 18px 20px; }
.creds strong { display: block; font-size: 1.3rem; font-weight: 800; }
.creds span { color: var(--mute); font-size: .9rem; }
.results-list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--border); }
.results-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.result-year { font-weight: 800; }
.result-event span { display: block; color: var(--fg-mute); font-size: .9rem; }
.result-placing { grid-column: 2; font-weight: 600; color: var(--fg-mute); }
@media (min-width: 700px) {
  .results-list li { grid-template-columns: 6rem 1fr auto; }
  .result-placing { grid-column: auto; text-align: right; }
}
.signature { font-weight: 800; font-size: 1.2rem; }

/* ------------------------------------------------------------ contact and login */

.contact-grid .card-body { gap: 0; }
.contact-line a { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.1rem; }
.address-block { font-style: normal; margin: .5rem 0 1rem; color: var(--fg-mute); }
.login-card .card-body { padding: clamp(28px, 5vw, 56px); }
.login-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.login-card h2 { margin-top: 2rem; }

/* ------------------------------------------------------------ results */

.case-metric { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--fg); }
.case-card blockquote { margin: 0; }

/* ------------------------------------------------------------ prose (blog posts, legal) */

.prose { font-size: 1.08rem; line-height: 1.7; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration-thickness: 1px; }
.prose > :first-child { margin-top: 0; }
.prose code { font-size: .9em; }
.legal .prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.post-meta { color: var(--mute); font-size: .95rem; }
.post-header { padding-block: clamp(40px, 7vw, 88px) 0; }
.post-header .eyebrow a { text-decoration: none; }
.post-header h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.post-hero { margin-block: 2rem 3rem; }
.post-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; border-radius: 14px; }
.post-cta {
  display: grid;
  gap: 12px;
  margin: 2.5em 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
}
.post-cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }
.post-cta .btn { justify-self: start; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card h3 { font-size: 1.2rem; }
.prose > :not(.post-figure):not(.post-cta) { max-width: 72ch; }

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

.form { display: grid; gap: 20px; }
.form[hidden] { display: none; } /* a sent quick form hides behind its thank-you state */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .field:first-child { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.optional { font-weight: 400; color: var(--fg-mute); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--btn-line);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-error { margin: 0; color: #b3261e; font-size: .9rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-hint { margin: 0; color: var(--fg-mute); font-size: .9rem; }
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-option { position: relative; }
.chip-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.1em;
  border: 1px solid var(--btn-line); border-radius: var(--pill); font-size: .95rem; font-weight: 600;
}
.chip-option input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--fg); }
.consent-note { margin: 0; font-size: .95rem; color: var(--fg-mute); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin: 0; font-weight: 600; }
.form-small { margin: 0; font-size: .85rem; color: var(--fg-mute); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; gap: 16px; justify-items: start; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.form-success-title { margin: 0; font-size: 1.2rem; font-weight: 700; }

/* Quick form in the CTA band, /start/ and audit forms */
.cta-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.cta-alt { margin-top: 1.5rem; color: var(--mute); font-size: .95rem; }
.cta-alt a { color: var(--paper); }
.cta-form, .form-card {
  --fg: var(--ink); --fg-mute: var(--ink-mute); --fg-dim: var(--ink-mute); --bg: #fff;
  --card: #fff; --border: var(--ink-line); --btn-bg: var(--ink); --btn-fg: var(--paper);
  --btn-line: rgba(25, 25, 25, .35); --focus: var(--ink);
  background: #fff; color: var(--ink); border-color: var(--ink-line);
}
.cta-form .card-body, .form-card .card-body { padding: clamp(20px, 4vw, 32px); gap: 20px; display: grid; }
.form-card { display: block; }
.quick-fields { grid-template-columns: 1fr 1fr; }
.quick-fields .field:first-child { grid-column: auto; }
@media (max-width: 480px) { .quick-fields { grid-template-columns: 1fr; } }
.quick-done { display: grid; gap: 14px; justify-items: start; }
.quick-done[hidden] { display: none; }
.quick-step2 { display: grid; gap: 16px; width: 100%; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.quick-step2 .h3 { margin: 0; }
.step2 .qualify, .qualify { display: grid; gap: 18px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; }
.event-date { display: grid; gap: 6px; margin-top: 10px; }
.event-date label { font-weight: 600; font-size: .9rem; }
.event-field:not(:has(input[value="yes"]:checked)) .event-date { display: none; }
.chip-option input:disabled + span { opacity: .45; }
.step2-form { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.field input[type="file"] { padding: 10px; min-height: 0; }

/* ------------------------------------------------------------ free tools */

.tool-hero { padding-bottom: 0; }
.tool-hero .answer { margin-top: 1.5rem; }
.tool-section { padding-top: 2rem; }
.tool {
  --fg: var(--ink); --fg-mute: var(--ink-mute); --fg-dim: var(--ink-mute); --bg: #fff;
  --card: #fff; --border: var(--ink-line); --btn-bg: var(--ink); --btn-fg: var(--paper);
  --btn-line: rgba(25, 25, 25, .35); --focus: var(--ink);
  display: block; padding: clamp(20px, 4vw, 36px); background: #fff; color: var(--ink); border-color: var(--ink-line);
}
.tool-form { display: grid; gap: 22px; }
.tool-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tool-grid-3 { grid-template-columns: repeat(3, 1fr); } .tool-grid-3 .field:first-child { grid-column: auto; } }
.tool select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--btn-line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.tool-area { margin: 0; padding: 0; border: 0; display: grid; gap: 18px; }
.tool-area > legend { margin-bottom: 4px; }
.tool-result { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--ink-line); display: grid; gap: 14px; }
.tool-result[hidden] { display: none; }
.tool-result:focus { outline: none; }
.result-kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.result-big { margin: 0; font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.result-big small { font-size: .4em; color: var(--ink-mute); letter-spacing: 0; }
.result-name { font-size: clamp(2rem, 6vw, 3rem); }
.result-sub { margin: 0; color: var(--ink-mute); }
.result-sub strong { color: var(--ink); }
.pct-table, .split-table { max-width: 420px; }
.pct-table th, .split-table th { font-weight: 600; }
.pct-table td, .split-table td { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pct-table thead th:last-child, .split-table thead th:last-child { text-align: right; }
.split-table { max-width: none; }
.split-run th { color: var(--ink-mute); font-weight: 400; }
.split-total th, .split-total td { font-weight: 800; border-top: 2px solid var(--ink); }
.area-bars { list-style: none; display: grid; gap: 10px; }
.area-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.area-name { font-weight: 600; }
.area-score { font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.area-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--ink-line); overflow: hidden; }
.area-bar span { display: block; height: 100%; background: var(--ink); }
.gap-list { padding-left: 1.3em; display: grid; gap: 8px; }
.next-step { margin: 0; padding: 16px 18px; border-radius: 14px; background: #f1f2f1; }
.next-step p { margin: 0; }
.tool-capture { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.tool-capture[hidden] { display: none; }
.tool-capture .h3 { margin: 0; }
.finder-pick { display: grid; gap: 10px; justify-items: start; }
.finder-inline .tool { border-color: var(--line); }
[data-sex-skip][hidden], [data-sex-options][hidden] { display: none; }

/* ------------------------------------------------------------ Benchmarks */

.level-pill { justify-self: start; margin: 0; padding: .35em 1em; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: .04em; }
.level-pill[hidden] { display: none; }
.card .level-pill { color: var(--paper); }
.bench-lines { list-style: none; display: grid; gap: 6px; padding: 0; }
.bench-lines li { padding-left: 1.2em; position: relative; }
.bench-lines li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1em; height: .55em; background: currentColor; -webkit-mask: var(--peaks); mask: var(--peaks); }
.weakest { margin: 0; padding: 14px 16px; border-radius: 14px; background: #f1f2f1; }
.weakest[hidden] { display: none; }
.bench-save { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.bench-save .h3 { margin: 0; }
.level-table th, .level-table td { padding: 12px 14px; }
@media (max-width: 479px) { .level-table th, .level-table td { padding: 12px 10px; font-size: .9rem; } }
.level-table tr.is-you th, .level-table tr.is-you td { font-weight: 800; color: var(--fg); }
.level-table tr.is-you th::after { content: " ← you"; content: " ← you" / " (your level)"; font-weight: 600; }
.steps-list { padding-left: 1.3em; display: grid; gap: 10px; font-size: 1.05rem; }
.my-tests { display: grid; gap: 16px; margin: 2rem 0 3rem; }
.my-test .result-big { font-size: 2.6rem; }
.history { margin-top: 12px; font-size: .95rem; }
.logout-form { margin-top: 1.5rem; }
.weakest-box { margin-top: 1.5rem; }

/* Share, challenge, head-to-head and leaderboards (M7) */
.level-pill-dark { background: var(--paper); color: var(--black); }
.badge-verified { display: inline-block; margin-left: .4em; padding: .1em .6em; border-radius: var(--pill); border: 1px solid currentColor; font-size: .75rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.share-preview { margin: 2rem 0; }
.share-preview img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.challenge-hero h1 em { font-style: normal; display: block; }
.bench-share { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.bench-share[hidden], .share-fallback[hidden], .challenge-form[hidden], .h2h[hidden], .h2h-board[hidden] { display: none; }
.bench-share .actions { margin: 0; }
.share-fallback { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #f1f2f1; }
.share-fallback p { margin: 0; }
.challenge-form { display: grid; gap: 12px; }
.challenge-form .h3 { margin: 0; }
.challenge-ready { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: #f1f2f1; }
.challenge-ready p { margin: 0; overflow-wrap: anywhere; }
.h2h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 16px; padding: 18px; border-radius: 14px; border: 2px solid var(--ink); }
.h2h p { margin: 0; }
.h2h-side { display: grid; gap: 2px; text-align: center; }
.h2h-name { font-weight: 700; }
.h2h-score { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h2h-level { color: var(--ink-mute); font-size: .9rem; }
.h2h-vs { color: var(--ink-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.h2h-line { grid-column: 1 / -1; text-align: center; font-size: 1.15rem; font-weight: 800; }
.h2h-board { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--ink-line); }
.h2h-board .h3 { margin: 0 0 8px; }
.mini-board { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.mini-board li { padding: 4px 0; }
.mini-board li strong { float: right; }
.mini-board .is-challenger span { font-weight: 700; }
.leaderboard-filters { margin-top: 2rem; display: grid; gap: 14px; }
.leaderboard-section { padding-top: 0; }
.challenge-hero .level-pill { margin-bottom: 1.2rem; }
.leaderboard-filters .form-grid { margin: 0; }
@media (min-width: 600px) { .tool-grid-4 { grid-template-columns: 1fr 1fr; } .tool-grid-4 .field:first-child { grid-column: auto; } }
@media (min-width: 900px) { .tool-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.leaderboard td:first-child, .leaderboard td:nth-child(3) { font-variant-numeric: tabular-nums; }
.leaderboard td:nth-child(3) { font-weight: 800; }
.leaderboard tbody th { font-weight: 600; }
.leaderboard tr.is-you th, .leaderboard tr.is-you td { background: var(--card); }
.leaderboard tr.is-you th::after { content: " (you)"; font-weight: 400; color: var(--fg-mute); }

/* ------------------------------------------------------------ TODO placeholders (local and staging only) */

.todo {
  display: inline;
  padding: .1em .4em;
  border-radius: 4px;
  outline: 2px dashed var(--ink);
  outline-offset: -2px;
  background: var(--todo);
  color: var(--ink);
  font-size: .85em;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.todo-line { margin: .5rem 0 0; font-size: .85rem; }

/* ------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .path-card:hover img { transform: none; }
}

/* ------------------------------------------------------------ mobile polish (Carl, 25 Nov) */

.nw { white-space: nowrap; }
h1, h2, .display, .eyebrow { text-wrap: balance; }
.tier-line { border-radius: 14px; }

/* Related links: each label stays with its link. */
.related-links .rl { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; }
.related-links .rl > span { flex: none; }
.related-links a { margin-right: 0; }

/* FAQs open one at a time instead of a long wall of text. */
.faq { padding: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--fg-mute); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq p { padding-bottom: 18px; }
.faq-list { gap: 0 48px; }
.faq-list .faq:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .faq-list .faq:nth-last-child(2) { border-bottom: 1px solid var(--border); } }

/* Footer: four groups in a 2 x 2 grid on phones, one row on wide screens. */
@media (min-width: 900px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links ul { margin-bottom: 0; }

.contact-line a, .footer-contact p a { overflow-wrap: anywhere; }

@media (max-width: 599px) {
  h1 { font-size: 2.05rem; }
  .lead { margin-bottom: 1.25rem; }
  .lead + * { margin-top: 0; }
  .split-head { margin-bottom: 1.25rem; }
  .split { gap: 20px; }
  .split > div > :last-child { margin-bottom: 0; }
  .ticks-lg { font-size: 1rem; gap: .7em; }
  .card .ticks { margin: .75rem 0 1.25rem; }
  /* Buttons stack full width, so hero and form buttons line up and long labels don't wrap. */
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn, .tool-form > .btn, .form-card .btn[type="submit"], .cta-form .btn[type="submit"] { width: 100%; }
  .btn { padding-inline: 1.1em; letter-spacing: .04em; }
  /* Cards and chips a little tighter. */
  .card-body { padding: 20px; }
  .card p { margin-bottom: .6rem; }
  .more { margin-top: .5rem; }
  .price-card { padding: 22px 20px; }
  .chip-option span { min-height: 40px; padding: .4em .9em; font-size: .9rem; }
  .tool-area > legend { font-weight: 800; padding: 0; }
  .tool-area { gap: 14px; }
  .check input { margin-left: 0; }
}

/* ------------------------------------------------------------ funnel update (Carl, 25 Nov): goal first */

/* Words waiting on Connor to confirm: shown as written, marked on local and staging builds only. */
.confirm { text-decoration: underline dotted 2px; text-decoration-color: var(--todo); text-underline-offset: .2em; }

/* Home hero: the goal picker. Phones: the headline and four goal cards fit on the first screen. */
.hero-goals h1.display { margin: 0 0 1.25rem; font-size: clamp(2rem, 6vw, 4.25rem); }
.hero-goals h1.display em { display: block; margin-top: .45em; font-size: .42em; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.goal-picker { margin: 0; }
.goal-cards { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; }
.goal-card {
  display: flex; flex-direction: column; gap: .3em; height: 100%;
  padding: 14px 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(13, 13, 13, .72);
  color: var(--paper); text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.goal-card:hover { border-color: var(--paper); transform: translateY(-1px); }
.goal-card[aria-current="true"] { background: var(--paper); color: var(--black); border-color: var(--paper); }
.goal-card[aria-current="true"] .goal-outcome { color: var(--ink-mute); }
.goal-label { font-size: 1.05rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.goal-outcome { font-size: .82rem; line-height: 1.35; color: var(--mute); }
.goal-unsure { margin: 14px 0 0; }
.goal-unsure a { display: inline-flex; align-items: center; gap: .4em; color: var(--paper); font-weight: 600; }
.goal-unsure .icon { width: 1.1em; height: 1.1em; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 1.25rem 0 0; font-size: .85rem; color: var(--fg-mute); }
.trust-strip strong { color: var(--fg); font-weight: 600; }
.trust-strip > span { white-space: nowrap; }
.trust-strip > span:not(:last-child)::after { content: "·"; margin-left: 12px; color: var(--fg-dim); }
@media (max-width: 599px) {
  .hero-goals .hero-media { aspect-ratio: 3 / 1; }
  .hero-goals .hero-inner { margin-top: -28px; padding-bottom: 36px; }
  .hero-goals .eyebrow { margin-bottom: .6rem; }
  .goal-card { padding: 12px 12px 13px; }
  .goal-label { font-size: .98rem; }
  .goal-outcome { font-size: .78rem; }
  .goal-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hero-goals .hero-inner > .goal-picker, .hero-goals .hero-inner > .trust-strip { max-width: none; }
  .goal-cards { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .goal-card { padding: 18px 18px 20px; }
  .goal-label { font-size: 1.15rem; }
}

/* Goal panels */
.goal-panel { border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.goal-panel h2:focus { outline: none; }
.goal-panel-grid { display: grid; gap: 32px; margin-top: 2rem; }
@media (min-width: 960px) { .goal-panel-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.goal-steps { counter-reset: step; list-style: none; display: grid; gap: 14px; margin: 1rem 0 0; padding: 0; }
.goal-steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: 1.05rem; line-height: 1.45; }
.goal-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1em;
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--line-strong); border-radius: 50%; font-size: .85rem; font-weight: 700;
}
.option-grid { display: grid; gap: 14px; margin-top: 1rem; }
@media (min-width: 600px) { .option-grid { grid-template-columns: repeat(2, 1fr); } .option-grid > :nth-child(3) { grid-column: 1 / -1; } }
.option-card { padding: 20px; }
.option-card.is-featured { border: 2px solid var(--fg); }
.option-headline { margin: 0 0 .5rem; font-weight: 600; color: var(--fg) !important; line-height: 1.35; }
.option-card .price-name { font-size: 1.25rem; }
.option-card .price-amount strong { font-size: 1.8rem; }
.option-note { margin: .4rem 0 0; font-size: .9rem; }
.effort { margin: 1.25rem 0 0; font-size: 1.05rem; color: var(--fg); }
.capacity-line { display: flex; gap: .7em; align-items: baseline; margin: .9rem 0 0; color: var(--fg-mute); }
.capacity-line .capacity-dot { flex: none; transform: translateY(-.1em); }
.capacity-line strong { color: var(--fg); }
.goal-proof { margin-top: 3rem; }
.goal-proof .quotes { margin-top: 1rem; }
.proof-line { margin: 1.25rem 0 0; color: var(--fg-mute); }
.proof-line a { color: var(--fg); }
.goal-ask { display: grid; gap: 28px; margin-top: 3rem; align-items: start; }
@media (min-width: 960px) { .goal-ask { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.goal-ask-form .card-body { padding: clamp(20px, 4vw, 32px); gap: 16px; display: grid; }
.goal-ask-more { display: grid; gap: 10px; justify-items: start; }
.goal-ask-more .h3 { margin: 0 0 .25rem; }
.goal-ask-more .text-link { display: inline-flex; align-items: center; gap: .4em; }
.goal-ask-more .text-link .icon { width: 1em; height: 1em; }
@media (max-width: 599px) { .goal-ask-more .btn { width: 100%; } }

/* "Connor's guarantee" on online tiers, always visible (Carl, 26 Nov). Sits above the whole-card link so the text can be selected. */
.guarantee-badge { position: relative; z-index: 2; margin: .9rem 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; }
.guarantee-badge-label { display: flex; align-items: center; gap: .45em; margin: 0 !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg) !important; }
.guarantee-badge .icon { width: 1.15em; height: 1.15em; flex: none; }
.guarantee-badge-text { margin: .45rem 0 0 !important; font-size: .9rem; line-height: 1.45; color: var(--fg) !important; }

/* Offer cards: goal headline above the name; "Connor recommends" and finder match labels. */
.offer-headline { margin: 0 0 .5rem; font-weight: 600; line-height: 1.35; color: var(--fg) !important; }

/* Goal-page hero: "Get my plan" opens the quick form in place. */
.hero-effort { margin: 1rem 0 0; color: var(--fg); font-size: 1.02rem; }
.hero-timeframe { margin: .9rem 0 0; font-size: 1.05rem; color: var(--fg-mute); }
.goal-hero .actions { margin-top: 1.5rem; }
.hero-guarantee { margin: 1rem 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; color: var(--fg-mute); }
.hero-guarantee strong { color: var(--fg); }
.hero-form { margin-top: 1.25rem; }
.hero-form[hidden] { display: none; }
.hero-form .card-body { padding: clamp(18px, 4vw, 28px); gap: 16px; display: grid; }
.page-hero .trust-strip { margin-top: 1.5rem; }

/* "Not ready to talk yet?" on goal pages: the free audit or a benchmark. */
.not-ready .grid-2 { margin-top: 1.5rem; }
.js .hero-form:not(.is-open) { display: none; }
.h1-clause em { display: block; margin-top: .5em; font-size: .5em; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.finder-match { margin-bottom: .75rem; }
.goal-section .actions { margin-top: 1.5rem; }
@media (max-width: 599px) {
  .goal-ask-form .btn[type="submit"], .hero-form .btn[type="submit"] { width: 100%; }
}
/* The goal question above the cards (the H1 names the outcome; Carl, 26 Nov). */
.goal-prompt { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--paper); }
@media (min-width: 900px) { .goal-prompt { font-size: 1.25rem; margin-bottom: 14px; } }

/* ------------------------------------------------------------ "Before you go" exit offer (Carl, 26 Nov) */

.exit-offer {
  --fg: var(--ink); --fg-mute: var(--ink-mute); --fg-dim: var(--ink-mute); --bg: var(--paper); --card: #fff; --border: var(--ink-line);
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-line: rgba(25, 25, 25, .35); --focus: var(--ink);
  width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
.exit-offer::backdrop { background: rgba(13, 13, 13, .72); }
.exit-inner { position: relative; display: grid; gap: 14px; padding: clamp(22px, 5vw, 34px); }
.exit-inner .eyebrow { margin: 0; color: var(--ink-mute); }
.exit-inner h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.05; }
.exit-inner h2 em { color: var(--ink-mute); }
.exit-lead { margin: 0; color: var(--ink-mute); font-size: 1.02rem; }
.exit-form { display: grid; gap: 12px; }
.exit-fields { display: grid; gap: 12px; }
@media (min-width: 520px) { .exit-fields { grid-template-columns: 1fr 1.4fr; } }
.exit-form .check { font-size: .88rem; color: var(--ink-mute); }
.exit-form .btn, .exit-or .btn { width: 100%; }
.exit-form .form-small, .exit-form .form-status { margin: 0; }
.exit-or { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.exit-or p { margin: 0; font-weight: 700; }
.exit-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-mute); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.exit-no { justify-self: center; border: 0; background: none; padding: 6px 10px; color: var(--ink-mute); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.exit-close:focus-visible, .exit-no:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Phones: a sheet from the bottom, not a full-screen box over the page. */
.exit-offer.is-sheet { width: 100%; max-width: none; margin: auto 0 0; max-height: 88dvh; border-radius: var(--radius) var(--radius) 0 0; }
.exit-offer.is-sheet .exit-inner { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) {
  .exit-offer[open] { animation: exit-in .35s var(--ease); }
  .exit-offer.is-sheet[open] { animation: exit-up .35s var(--ease); }
}
@keyframes exit-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes exit-up { from { transform: translateY(100%); } }

/* Home "Ways to train" (Carl, 26 Nov): the promise line, proof and pill links. */
.ways-promise { max-width: 40rem; margin: -.5rem 0 0; font-size: 1.05rem; font-weight: 600; color: var(--fg); }
.ways .more {
  align-self: flex-start; margin-top: 1.1rem; padding: .7em 1.2em;
  border: 1px solid var(--btn-line); border-radius: var(--pill);
  color: var(--fg); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.ways .path-card:hover .more { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.ways-proof { display: grid; gap: 16px; margin-top: 1.75rem; }
@media (min-width: 900px) { .ways-proof { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ways-quote { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.ways-quote blockquote { margin: .4rem 0 .5rem; }
.ways-quote blockquote p { margin: 0; font-size: 1rem; font-weight: 600; color: var(--fg); }
.ways-quote figcaption { font-size: .85rem; color: var(--fg-mute); }
.ways-quote figcaption strong { color: var(--fg); }

/* "How it works": start the conversation right there. */
.steps-actions { margin-top: 2rem; }
.steps-note { margin: .75rem 0 0; font-size: .95rem; color: var(--fg-mute); }
/* "Start with Gold" dialog (Carl, 27 Nov 2026): the exit offer's box with a quick form inside. */
.start-offer .quick-form, .start-offer .quick-done { gap: 14px; }
.start-offer .form-actions .btn { width: 100%; }
.start-offer .quick-done .btn-wa { width: 100%; }

/* Quick form thank-you state (Carl, 27 Nov 2026): who has what, step 2 with one button, WhatsApp as an option. */
.quick-reply { margin: 0; font-size: 1.02rem; color: var(--fg); }
.quick-sent { margin: 0; font-weight: 700; color: var(--fg); }
.quick-sent[hidden] { display: none; }
.quick-step2[hidden] { display: none; }
.quick-email .field-hint { margin-bottom: 6px; }
.quick-wa { display: grid; gap: 8px; width: 100%; padding-top: 16px; border-top: 1px solid var(--border, var(--ink-line)); }
.quick-wa p { margin: 0; font-weight: 700; }
.quick-wa .btn { justify-self: start; }
.start-offer .quick-wa .btn, .start-offer .quick-step2 .btn { width: 100%; }

/* PT upsell (Carl, 27 Nov 2026): the exit offer's box with the block options. */
.upsell-panel { display: grid; gap: 14px; }
.upsell-panel[hidden] { display: none; }
.upsell-options { display: grid; gap: 12px; }
.upsell-option { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: #fff; }
.upsell-option.is-best { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.upsell-option .badge { justify-self: start; margin: 0; }
.upsell-option p { margin: 0; }
.upsell-name { font-weight: 700; font-size: 1.05rem; }
.upsell-price { color: var(--ink-mute); }
.upsell-price strong { color: var(--ink); }
.upsell-save { font-weight: 700; }
.upsell-option .btn { margin-top: 6px; }

/* Goal panel with a ladder of options (fitness: PT pay as you go, 5, 10; Carl, 27 Nov 2026): three in a row on wide screens. */
@media (min-width: 600px) { .option-grid-ladder { grid-template-columns: repeat(3, 1fr); } .option-grid-ladder > :nth-child(3) { grid-column: auto; } }
@media (min-width: 960px) and (max-width: 1199px) { .option-grid-ladder { grid-template-columns: 1fr; } }
