/* 7-0 Marketing, landing page for medical practices (Dec 5 2026).
   Layout, phone flow and quiz come from the Cheshire Institute landing page (Cullen: "look at the Institute one ... how the
   text boxes flow"). Colors and type are 7-0's: navy, logo blue, silver white, Bricolage Grotesque + Instrument Sans.
   Comments further down that mention Dr. Cheshire, cream or serif describe where a rule came from. */

@font-face { font-family: 'Display'; src: url('assets/fonts/bricolage-800.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Text'; src: url('assets/fonts/instrument-latin.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --tint: #e8ebf1;
  --tint-2: #dde2ea;
  --ink: #0b1f3a;
  --strong: #23344f;
  --body: #55627a;
  --accent: #0d4fd0;
  --accent-up: #1a6bff;
  --accent-soft: #e6eeff;
  --accent-line: #c3d6ff;
  --amber: #8a5a10;
  --amber-soft: #fbefd6;
  --dark: #0b1f3a;
  --dark-card: rgba(255, 255, 255, 0.055);
  --dark-line: rgba(255, 255, 255, 0.12);
  --on-dark: rgba(255, 255, 255, 0.68);
  --on-dark-dim: rgba(255, 255, 255, 0.48);
  --sky: #8fb6ff;
  --white: #ffffff;
  --line: #d6dce7;
  --err: #9c2f1c;
  --err-soft: #f6e4de;
  --err-line: #ecc9be;
  --stage: #0c1b33;
  --stage-up: #13305c;
  --shadow-card: 0 1px 2px rgba(11, 31, 58, 0.04), 0 28px 56px -16px rgba(11, 31, 58, 0.16);
  --shadow-soft: 0 1px 2px rgba(11, 31, 58, 0.05), 0 10px 24px -10px rgba(11, 31, 58, 0.14);
  --shadow-btn: 0 10px 22px -8px rgba(13, 79, 208, 0.5);

  --font: 'Text', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Text', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1216px;
  --gutter: 24px;
  --sec: 92px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.quiz-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .close__panel :focus-visible { outline-color: var(--sky); }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--accent); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

/* type */
h1 {
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-wrap: balance;
}
h1 span { color: var(--accent); }
h2 {
  font-size: clamp(31px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); }
p { text-wrap: pretty; }
.eyebrow { margin-bottom: 14px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; color: var(--accent); }
.eyebrow--sky { color: var(--sky); }
.lede { margin-top: 16px; font-size: 17.5px; line-height: 1.6; max-width: 34em; }
.accent { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { background: var(--accent-up); transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; }
.btn--lg { padding: 13px 24px; font-size: 15.5px; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-soft); }
.btn--ghost:hover { background: var(--white); }
.btn--light { background: var(--white); color: var(--accent); border-color: var(--white); box-shadow: none; }
.btn--light:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }

/* small parts */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--strong);
  white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip--amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 11.5px; font-weight: 700; color: var(--strong); }
.tag--on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--strong); }
.ticks svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.ticks--col { flex-direction: column; gap: 12px; margin-top: 24px; }
.ticks--col li { font-size: 14.5px; align-items: flex-start; }
.ticks--col svg { margin-top: 3px; }
.ticks--light li { color: var(--on-dark); }
.ticks--light svg { color: var(--sky); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.tint { padding: 48px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 40px; height: 70px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-inline: auto; }
.nav__links a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--strong); }
.nav__links a:hover { color: var(--accent); }

/* hero */
.hero { padding: 84px 0 80px; }
.hero__in { display: grid; grid-template-columns: 1.14fr 0.86fr; gap: 64px; align-items: center; }

.hero__sub { margin-top: 24px; font-size: 19px; line-height: 1.6; max-width: 31em; }
.hero__sub b { font-weight: 700; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .ticks { margin-top: 20px; }
.hero__proof { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; max-width: 540px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.hero__proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__proof b { color: var(--ink); font-weight: 800; }
.hero__visual { position: relative; margin-bottom: 30px; }
.hero__visual .panel { padding: 24px 24px 60px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel__head b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tl li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: start; padding-bottom: 22px; }
.tl li:last-child { padding-bottom: 4px; }
.tl li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--accent-line); }
.tl__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.tl__dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.tl__dot--last { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tl__dot--last::after { background: var(--accent); }
.tl b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); padding-top: 1px; }
.tl div span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; }
.tl time { padding-top: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.float {
  position: absolute;
  left: -30px;
  bottom: -30px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}
.float b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.float span { display: block; font-size: 12px; font-weight: 600; }

/* framed video */
.demo { padding-bottom: 96px; }
.frame { width: min(960px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 8px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.frame__bar { padding: 14px 16px 10px; font-size: 13.5px; font-weight: 600; }
.vid { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--stage); }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid.is-empty video { display: none; }
.vid__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; background: transparent; border: 0; cursor: pointer; }
.vid.is-playing .vid__play { display: none; }
.vid__btn { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--white); color: var(--accent); transition: transform .25s var(--ease); }
.vid__btn svg { width: 30px; height: 30px; margin-left: 4px; }
.vid__play:hover .vid__btn { transform: scale(1.06); }
.vid__btn--sm { width: 56px; height: 56px; }
.vid__btn--sm svg { width: 20px; height: 20px; }
.vid__label { font-size: 14.5px; font-weight: 700; color: var(--white); }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats li { padding: 32px 16px 34px; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; color: var(--ink); }
.stats li:nth-child(odd) b { color: var(--accent); }
.stats span { font-size: 13.5px; font-weight: 500; }

/* sections */
.sec { padding: var(--sec) 0; }
.sec--tint { background: var(--tint); }
.sec--flush { padding-top: 0; }
.sec--join { padding-top: 0; }
.head { margin-bottom: 56px; max-width: 760px; }
.head--c { margin-inline: auto; text-align: center; }
.center { display: grid; justify-items: center; gap: 14px; margin-top: 56px; font-size: 13.5px; font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: flex; flex-direction: column; }
.steps__n { position: relative; margin-bottom: 20px; }
.steps__n::after { content: ''; position: absolute; left: 48px; right: 0; top: 50%; height: 1px; background: var(--line); }
.steps__n span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; font-weight: 800; color: var(--accent); }
.steps li > p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.mini { margin-top: 28px; padding: 6px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.mini img { width: 100%; height: auto; border-radius: 18px; }
.steps li > p { flex: 1; }

/* dark band */
.dark { background: var(--dark); padding: 120px 0; }
.dark__in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.dark h2 { color: var(--white); }
.dark .lede { color: var(--on-dark); }
.dark .lede + .lede { margin-top: 14px; }
.wont { padding: 32px; background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--r-lg); }
.wont p { font-size: 14.5px; font-weight: 700; color: var(--sky); }
.wont ul { margin-top: 12px; }
.wont li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--dark-line); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.wont li:last-child { padding-bottom: 0; }
.wont svg { width: 18px; height: 18px; flex: none; color: var(--on-dark-dim); }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature__copy .btn { margin-top: 32px; }
.feature__copy .lede + .lede { margin-top: 14px; color: var(--ink); font-weight: 600; }
.facts { padding: 8px 24px; }
.steps li > p { max-width: 30em; }
.facts li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.facts span { font-size: 13.5px; line-height: 1.5; }

/* the app */
.shell { padding: 64px 56px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); }
.app__phones { position: relative; width: min(430px, 100%); height: 560px; margin-inline: auto; }
.app__ph { position: absolute; width: 56%; height: auto; border: 6px solid var(--stage); border-radius: 30px; background: var(--stage); box-shadow: 0 30px 60px -18px rgba(13, 21, 38, 0.45); }
.app__ph--back { left: 0; top: 0; transform: rotate(-4deg); }
.app__ph--front { right: 0; top: 48px; transform: rotate(3deg); }

/* proof */
.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test figcaption { margin-top: 14px; display: grid; font-size: 14px; }
.test figcaption b { color: var(--ink); }

/* fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.fit__col h3 { padding: 20px 28px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--body); border-bottom: 1px solid var(--line); }
.fit__col li { display: flex; gap: 12px; padding: 20px 28px; font-size: 15px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.fit__col li:last-child { border-bottom: 0; }
.fit__col svg { width: 17px; height: 17px; margin-top: 3px; flex: none; color: var(--err); }
.fit__col--yes { background: var(--accent-soft); }
.fit__col--yes h3 { color: var(--accent); }
.fit__col--yes li { font-weight: 600; color: var(--ink); border-bottom-color: var(--accent-line); }
.fit__col--yes h3 { border-bottom-color: var(--accent-line); }
.fit__col--yes svg { color: var(--accent); }

/* questions */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq__head .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; max-width: 58ch; }

/* close */
.close { padding-top: 0; background: var(--tint); }
.close__panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding: 80px 72px; background: var(--dark); border-radius: var(--r-xl); }
.close__panel h2 { color: var(--white); }
.close__panel .lede { color: var(--on-dark); }
.close__panel .btn { margin-top: 32px; }
.close__panel .ticks { margin-top: 20px; }
.wants { padding: 28px; background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--r-lg); }
.wants p { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--sky); }
.wants ul { margin-top: 12px; }
.wants li { padding: 14px 0; border-top: 1px solid var(--dark-line); font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--white); }
.wants li:last-child { padding-bottom: 0; }

/* quiz (full screen when open) */
.quiz { display: none; font-size: 17px; line-height: 1.5; }
.quiz.is-open { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--bg); color: var(--ink); padding: 0 var(--gutter) 64px; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; height: 72px; max-width: 720px; margin: 0 auto; }
.quiz__top img { height: 38px; width: auto; }
.quiz__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.quiz__close svg { width: 20px; height: 20px; }
.quiz__bar { max-width: 720px; margin: 0 auto 48px; height: 4px; background: var(--tint-2); border-radius: 2px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.quiz__step { max-width: 720px; margin: 0 auto; }
.quiz__count { font-size: 14.5px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.quiz__q { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 28px; outline: 0; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz__opt svg { width: 18px; height: 18px; opacity: 0.4; }
.quiz__opt:hover { border-color: var(--accent); }
.quiz__opt.is-picked { background: var(--accent); color: var(--white); border-color: var(--accent); }
.quiz__back { margin-top: 24px; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--body); }
.quiz__form label { display: block; font-weight: 700; margin-bottom: 16px; }
.quiz__form input { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: inherit; font-weight: 500; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.quiz__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quiz__err { color: var(--err); margin-bottom: 16px; }
.quiz__fine { margin-top: 14px; font-size: 13.5px; color: var(--body); }
.quiz__read { font-size: 17.5px; line-height: 1.6; color: var(--strong); max-width: 60ch; margin: -8px 0 28px; }
.quiz__read:empty { display: none; }
.booking { min-height: 420px; }
.booking.is-live { min-height: 720px; }
.booking iframe { display: block; width: 100%; height: 720px; border: 0; border-radius: var(--r); background: var(--card); }
.booking__ph { display: grid; place-content: center; text-align: center; gap: 6px; min-height: 420px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--body); }

/* footer */
.foot { padding: 40px 0; background: var(--tint); border-top: 1px solid var(--line); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 36px; width: auto; }
.foot p { font-size: 13.5px; }

/* mobile sticky bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
.bar.is-on { transform: none; }

@media (max-width: 1060px) {
  .hero__in, .dark__in, .feature, .faq { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .mini { margin-top: 20px; max-width: 460px; }
  .close__panel { grid-template-columns: 1fr; gap: 40px; padding: 64px 48px; }
  .tests { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
  .float { left: 16px; }
  .shell { padding: 48px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .vid__btn, .bar, .quiz__bar i, .faq summary svg { transition: none; }
}

/* color balance (Nov 19): Cullen said there was too much white. The top of the page (nav, hero, video, numbers)
   sits on dark navy, the "why" band is the brand navy, and the cream is deeper everywhere else. */
.nav { background: var(--dark); border-bottom-color: var(--dark-line); }
.nav__links a { color: var(--on-dark); }
.nav__links a:hover { color: var(--white); }
.hero, .demo, .stats { background: var(--dark); }
.hero { padding-bottom: 72px; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--sky); }
.hero .eyebrow { color: var(--sky); }
.hero__sub { color: var(--on-dark); }
.hero__sub b { color: var(--white); }
.hero .btn { background: var(--white); color: var(--accent); border-color: var(--white); box-shadow: none; }
.hero .btn:hover { background: var(--accent-soft); }
.hero .btn--ghost { background: transparent; color: var(--white); border-color: var(--dark-line); }
.hero .btn--ghost:hover { background: var(--dark-card); }
.hero .ticks li { color: var(--on-dark); }
.hero .ticks svg { color: var(--sky); }
.hero__proof { border-top-color: var(--dark-line); color: var(--on-dark); }
.hero__proof i { background: var(--sky); }
.hero__proof b { color: var(--white); }
.hero :focus-visible, .nav :focus-visible, .demo :focus-visible { outline-color: var(--sky); }
.frame { background: var(--dark-card); border-color: var(--dark-line); box-shadow: none; }
.frame__bar { color: var(--on-dark); }
.demo .vid { background: var(--stage-up); }
.stats { border-color: var(--dark-line); }
.stats li { border-color: var(--dark-line); }
.stats b, .stats li:nth-child(odd) b { color: var(--white); }
.stats li:nth-child(odd) b { color: var(--sky); }
.stats span { color: var(--on-dark); }
#why { background: var(--accent); padding: 96px 0; }
#fit { background: var(--tint); }
#how { background: var(--bg); }
#app { background: var(--tint); }
.shell { background: var(--card); }

/* the fit card: both columns carry the same weight, and the marks are solid so the X side reads as a hard no */
.fit__col svg { width: 24px; height: 24px; padding: 5px; margin-top: 0; border-radius: 50%; background: var(--err); color: var(--white); }
.fit__col--yes svg { background: var(--accent); color: var(--white); }
.fit__col:not(.fit__col--yes) { background: var(--err-soft); }
.fit__col:not(.fit__col--yes) h3 { color: var(--err); border-bottom-color: var(--err-line); }
.fit__col:not(.fit__col--yes) li { font-weight: 600; color: var(--ink); border-bottom-color: var(--err-line); }
.fit__col h3 { font-size: 16px; font-weight: 800; }
.fit__col li { align-items: flex-start; }

/* no two light sections back to back (Cullen, Nov 19): how it works sits on dark navy between Dr. Cheshire and the app */
#how { background: var(--dark); }
#how .eyebrow { color: var(--sky); }
#how h2, #how h3 { color: var(--white); }
#how .steps li > p { color: var(--on-dark); }
#how .steps__n span { background: var(--dark-card); border-color: var(--dark-line); color: var(--sky); }
#how .steps__n::after { background: var(--dark-line); }
#how :focus-visible { outline-color: var(--sky); }
#questions { background: var(--bg); }

/* paragraph text with some weight to it (Cullen, Nov 19: "it looks like normal text, nothing different").
   Body paragraphs are medium weight, a size up, slightly tight, in a strong color, with the key phrase in bold. */
:root { --on-dark: rgba(255, 255, 255, 0.84); }
.lede { font-size: 19px; font-weight: 500; line-height: 1.55; letter-spacing: -0.012em; color: var(--strong); }
.lede b { font-weight: 800; color: var(--ink); }
.dark .lede, .close__panel .lede { color: var(--on-dark); }
.dark .lede b, .close__panel .lede b { color: var(--white); }
.hero__sub { font-size: 21px; font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; color: var(--on-dark); }
.hero__sub b { font-weight: 800; color: var(--white); }
.hero__sub em { font-style: normal; font-weight: 800; color: var(--sky); }
.steps li > p, .faq details p { font-size: 16px; font-weight: 500; color: var(--strong); }
#how .steps li > p { color: var(--on-dark); }
.say { margin-top: 28px; padding-left: 20px; border-left: 4px solid var(--accent); }
.say blockquote { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.say figcaption { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent); }

/* headings can take their own family; by default they share the body font */
:root { --head: 'Display', 'Arial Black', 'Segoe UI', system-ui, sans-serif; }
h1, h2, h3, .say blockquote, .quiz__q, .stats b, .facts b { font-family: var(--head); }

/* Type (Nov 19). A serious institution, not a software site and not a gym flyer.
   Source Serif 4 for headlines and for the text you read; it matches the serif in the Cheshire Institute logo.
   Libre Franklin for the interface: nav, buttons, labels, chips, card rows.
   Rejected the same day: Figtree, Libre Caslon (in the letter layout), Plus Jakarta Sans ("looks like normal text"),
   Anton + Barlow ("not professional at all"). */
h1, h2, .say blockquote, .quiz__q { font-weight: 600; letter-spacing: -0.022em; }
h1 { font-size: clamp(40px, 4vw, 57px); line-height: 1.06; }
h2 { font-size: clamp(31px, 3.4vw, 48px); line-height: 1.08; }
@media (min-width: 1061px) { .hero__in { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }
h3 { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.eyebrow { font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 14px; }
.fit__col h3, .panel__head b, .faq summary { font-family: var(--font); letter-spacing: -0.01em; }
.fit__col h3 { font-size: 16px; font-weight: 700; }
.faq summary { font-size: 17px; font-weight: 600; }
.stats b { font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; }
.facts b { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.say blockquote { font-size: clamp(24px, 2.5vw, 33px); line-height: 1.18; }
.say figcaption { font-size: 14.5px; font-weight: 600; }
.quiz__q { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
/* the text you read */
.lede, .hero__sub, .steps li > p, .faq details p { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.lede { font-size: 20px; line-height: 1.55; }
.hero__sub { font-size: 21.5px; line-height: 1.5; }
.lede b, .hero__sub b, .hero__sub em { font-weight: 700; }
.steps li > p, .faq details p { font-size: 17.5px; line-height: 1.6; }
.wants li, .wont li { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.fit__col li { font-size: 16px; line-height: 1.5; }
.fit__col--yes li, .fit__col:not(.fit__col--yes) li { font-weight: 500; }
.btn { font-weight: 600; font-size: 15.5px; }
.btn--lg { font-size: 16.5px; }
.tl b { font-weight: 600; }

/* Phone pass (Nov 24). Orphan words, doubled buttons and dead space, found on the iPhone screenshots. */
h3, .tl b, .say blockquote { text-wrap: balance; }
.wants li, .wont li, .fit__col li, .facts span, .tl div span { text-wrap: pretty; }

/* The two phones as real iPhones (Nov 24). Cullen rejected a row of four extra screens ("just keep the 2 ...
   make it look like a real iphone"). The frame, status bar, island and home bar are drawn here; the picture inside
   is the app only. Sizes are in cqw (1% of .app__phones) so the phone scales as one piece. */
:root { --phone-glass: #020305; --phone-band: #2b2d33; --phone-band-hi: #6b6e78; --app-bg: #061a3d; }
.app__phones { container-type: inline-size; height: 610px; }
.iphone { position: absolute; width: 56%; padding: 1.7cqw; border-radius: 9cqw; background: var(--phone-glass);
  box-shadow: 0 0 0 0.45cqw var(--phone-band), 0 0 0 0.6cqw var(--phone-band-hi), 0 0 0 0.75cqw var(--phone-band), 0 34px 60px -20px rgba(13, 21, 38, 0.55); }
.iphone::before, .iphone::after { content: ''; position: absolute; width: 0.6cqw; background: var(--phone-band); }
.iphone::before { left: -1.3cqw; top: 23%; height: 6.5%; border-radius: 0.4cqw 0 0 0.4cqw; box-shadow: 0 9.500cqw 0 var(--phone-band); }
.iphone::after { right: -1.3cqw; top: 29%; height: 10.5%; border-radius: 0 0.4cqw 0.4cqw 0; }
.iphone--back { left: 0; top: 0; transform: rotate(-4deg); }
.iphone--front { right: 0; top: 52px; transform: rotate(3deg); }
.iphone__screen { position: relative; overflow: hidden; aspect-ratio: 393 / 852; border-radius: 7.400cqw; background: var(--app-bg); }
.iphone__screen img { position: absolute; left: 0; top: 6.34%; width: 100%; height: auto; }
.iphone__status { position: absolute; inset: 0 0 auto 0; height: 6.34%; display: flex; align-items: center; justify-content: space-between; padding: 0.9cqw 4.200cqw 0 5.800cqw; color: var(--white); font-size: 2.150cqw; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.iphone__status svg { width: 9.400cqw; height: auto; max-width: none; }
.iphone__island { position: absolute; left: 50%; top: 1.450cqw; width: 15.800cqw; height: 4.600cqw; margin-left: -7.900cqw; border-radius: 99px; background: var(--phone-glass); }
.iphone__home { position: absolute; left: 33%; right: 33%; bottom: 1.100cqw; height: 0.650cqw; border-radius: 99px; background: var(--white); opacity: 0.9; }

/* Less overlap between the two phones (Nov 24): the road map in the back phone has to read, so the front phone
   covers only its edge. */
.app__phones { width: min(480px, 100%); height: 590px; }
.iphone { width: 51.5%; }

/* One phone with the features around it (Nov 24). The second phone is gone: Cullen rejected every screen tried in it
   and picked "one phone, features around it". The labels sit left and right of the phone and overlap its edge;
   the dot on each one is on the side that faces the phone. Sizes in cqw so the whole piece scales together. */
.app__phones--one { width: min(540px, 100%); height: auto; aspect-ratio: 100 / 107; }
.iphone--solo { left: 25%; top: 0; width: 50%; transform: none; }
.callouts { position: absolute; inset: 0; }
.callout { position: absolute; max-width: 33cqw; padding: 1.800cqw 2.600cqw; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-card); font-size: clamp(11px, 2.700cqw, 14.500px); line-height: 1.25; }
.callout b { display: block; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.callout span { display: block; margin-top: 2px; font-size: 0.86em; line-height: 1.3; color: var(--body); }
.callout::after { content: ''; position: absolute; top: 50%; width: 1.700cqw; height: 1.700cqw; margin-top: -0.850cqw; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.5cqw var(--card); }
.callout--l { left: 0; }
.callout--l::after { right: -0.850cqw; }
.callout--r { right: 0; }
.callout--r::after { left: -0.850cqw; }
.callout--1 { top: 6%; }
.callout--2 { top: 31%; }
.callout--3 { top: 52%; }
.callout--4 { top: 74%; }
.callout--5 { top: 83%; }

/* The labels were covering the screen. The phone is narrower so they sit beside it and only touch its edge. */
.app__phones--one { aspect-ratio: 100 / 94; }
.iphone--solo { left: 28%; width: 44%; }
.callout { max-width: 30cqw; }

/* Labels you can see, each pointing at its part of the screen (Cullen, Nov 24: "the labels arent right and you can
   barely see them"). They are solid navy with white type, sit clear of the phone, and a line runs from each one to
   a dot on the edge of the screen at the height of the thing it names. The tops below are measured from the
   picture: if the capture changes, they have to be measured again. Same geometry at every width. */
.app__phones--one { aspect-ratio: 100 / 94; }
.iphone--solo { left: 28%; width: 44%; }
.callout { width: 24cqw; max-width: none; padding: 1.700cqw 2.100cqw; background: var(--accent); border-color: var(--accent); transform: translateY(-50%); box-shadow: 0 12px 26px -12px rgba(11, 42, 91, 0.6); }
.callout b { color: var(--white); }
.callout span { color: var(--on-dark); }
.callout::before { content: ''; position: absolute; top: 50%; width: 5.500cqw; height: 2px; margin-top: -1px; background: var(--accent); }
.callout::after { width: 2cqw; height: 2cqw; margin-top: -1cqw; background: var(--white); box-shadow: 0 0 0 0.45cqw var(--accent); }
.callout--r { left: 76%; right: auto; }
.callout--r::before { right: 100%; }
.callout--r::after { left: -6.700cqw; right: auto; }
.callout--l { right: 76%; left: auto; }
.callout--l::before { left: 100%; }
.callout--l::after { right: -6.700cqw; left: auto; }
.callout--1 { top: 11.400%; }
.callout--2 { top: 32.100%; }
.callout--3 { top: 46.300%; }
.callout--4 { top: 63%; }
.callout--5 { top: 76%; }

/* The app's features beside the phone: two columns, a bold name and one short line each (Cullen, Nov 24:
   "break that down so it looks good", about eight same-weight check mark lines). One column on phones. */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 28px; }
.feat li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.feat svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.feat b { display: block; font-size: 15.500px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.feat span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--body); text-wrap: pretty; }

/* Footer (Nov 24): logo, the Instagram, privacy and terms links as plain underlined text, then the copyright
   line and the coaching line. Also the two plain pages those links open (privacy.html, terms.html). */
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links a { font-size: 14.500px; font-weight: 600; color: var(--strong); text-decoration: underline; text-decoration-color: var(--tint-2); text-underline-offset: 4px; }
.foot__links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__base p { font-size: 13px; }
.quiz__fine a { color: inherit; text-underline-offset: 3px; }
.legal { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 64px 0 88px; color: var(--strong); }
.legal h1 { font-size: clamp(34px, 4vw, 46px); }
.legal h2 { margin-top: 40px; font-size: 24px; line-height: 1.2; }
.legal p, .legal li { font-family: var(--serif); font-size: 17.500px; line-height: 1.6; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal .legal__date { margin-top: 10px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--body); }
.legal .legal__see { margin-top: 40px; }

/* on the privacy and terms pages the top bar has no links, so the button goes to the right edge */
.nav__logo + .btn { margin-left: auto; }

/* Instagram in the footer as its logo: the outline glyph in white on a round navy button, the same navy and
   roundness as the page's buttons. */
.foot__links { align-items: center; }
.foot__links .foot__ig { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--white); text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); }
.foot__links .foot__ig:hover { background: var(--accent-up); color: var(--white); transform: translateY(-1px); }
.foot__ig svg { width: 21px; height: 21px; }

/* The hero card as a call-out, not a timeline (Cullen, Nov 24: "the timeline is shitty asf, doesnt call out anyone").
   Same card, same quote card under it. The times and the line joining the dots are gone; each row is a check
   mark, a bold line that names him, and one line under it. */
.tl--call li { grid-template-columns: 32px 1fr; padding-bottom: 18px; }
.tl--call li:not(:last-child)::before { display: none; }
.tl--call .tl__dot::after { display: none; }
.tl--call .tl__dot svg { width: 15px; height: 15px; color: var(--white); }
.tl--call b { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.tl--call div span { margin-top: 3px; font-size: 13.500px; }

/* The hero card as the things he tells himself (Nov 24). Each row is his own line in quotes with a blunt answer
   under it; the dot holds a quote mark. Built on the same card and the same row layout as before. */
.tl--says .tl__dot { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; color: var(--white); padding-top: 9px; }
.tl--says b { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tl--says div span { font-size: 14px; color: var(--strong); }

/* The hero card as the first quiz question (Nov 24). Same card; the answers are buttons that start the quiz. */
.hq__q { margin: 2px 0 18px; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.hq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hq__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16.500px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.hq__opt svg { width: 16px; height: 16px; flex: none; color: var(--accent); transition: transform .15s var(--ease); }
.hq__opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.hq__opt:hover svg { transform: translateX(3px); }
.hq__opt:active { transform: scale(0.98); }
.hq__note { margin-top: 14px; font-size: 13.500px; font-weight: 500; color: var(--body); }

/* The arrow to the video (Nov 24): a small white button fixed to the bottom of the first screen, with an arrow
   that nudges downward. Nothing else on the page moved for it. */
.cue { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--white); color: var(--accent); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55); transform: translateX(-50%); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cue.is-off { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }
.cue__arrow { width: 17px; height: 17px; transform: rotate(90deg); animation: cue-nudge 1.4s ease-in-out infinite; }
.btn .btn__down { transform: rotate(90deg); }
.btn:hover .btn__down { transform: rotate(90deg) translateX(3px); }
body.quiz-open .cue { display: none; }
@keyframes cue-nudge { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .cue__arrow { animation: none; } .cue { transition: none; } }

/* On phones the floating arrow landed on top of the "Watch the video" button, which is already on the first
   screen. So phones get no floating arrow: the button's own down arrow nudges instead. */
.hero .btn__down { animation: cue-nudge 1.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .hero .btn__down { animation: none; } }

/* Phones showing the desktop page scaled (html.as-desktop, set in index.html). The quiz opens at real phone size,
   so while it is open the page behind it is hidden rather than left to reflow under it. */
html.as-desktop body.quiz-open > :not(main), html.as-desktop body.quiz-open main > :not(#quiz) { visibility: hidden; }

/* PHONES (760px wide and under). This is the only phone block: every phone rule lives here, each value once.
   (Nov 24: eight stacked patches were collapsed into it. The file before the collapse is qa/phonefix/styles.before.css.)
   The owner's rules, from CLAUDE.md "Phones": every section keeps the desktop's side by side arrangement
   (words | card), each section is one phone screen tall with its contents centred, the type is large enough to
   fill that screen, and nothing runs longer than a screen.
   Budget: the top bar is 90px. Safari shows about 664px with its toolbar up and about 736px with it down, so a
   section's contents should fit in 574px and still read as full at 646px. The app is the one section that needs
   the taller of the two (see its note).
   Keep this block last in the file. Tablets (761 to 1060px) are in tablet.css. */
@media (max-width: 760px) {
  /* ---- the phone type scale. Every size below is one of these steps. ----
     The sizes in the comments are for a 390px wide phone. --ph-u is "one pixel at 390 wide": it shrinks to 0.92px
     on a 360px phone and grows to 1.1px on a 430px one, so the type keeps the same line breaks and the same share
     of the screen on a narrow phone and a large one. */
  :root {
    --gutter: 14px;
    --navh: 89px;            /* one under the real bar (90px) so a section never comes up short */
    --ph-u: clamp(0.923px, calc(100vw / 390), 1.103px);
    --ph-h1: calc(var(--ph-u) * 27);
    --ph-h2-dense: calc(var(--ph-u) * 21);    /* 21px. Sections that hold a lot: the two lists, the app */
    --ph-h2: calc(var(--ph-u) * 25);          /* 25px. The default: video line, why, Dr. Cheshire, questions */
    --ph-h2-sparse: calc(var(--ph-u) * 27);   /* 27px. Few words and room: how it works, the closing ask */
    --ph-quote: calc(var(--ph-u) * 18);       /* 18px. His quote, the card's question */
    --ph-h3: calc(var(--ph-u) * 16);          /* 16px. Step headings */
    --ph-body-l: calc(var(--ph-u) * 16);      /* 16px. Opening paragraph, why, questions, the closing ask, dark card rows */
    --ph-body: calc(var(--ph-u) * 14.5);      /* 14.5px. The default paragraph: Dr. Cheshire, his background card */
    --ph-body-s: calc(var(--ph-u) * 13);      /* 13px. Dense sections, steps, card rows, every button */
    --ph-small: max(11px, calc(var(--ph-u) * 12));  /* 12px. Labels, list rows, FAQ, footer */
    --ph-min: max(11px, calc(var(--ph-u) * 11));    /* 11px. The floor: nothing on the page is smaller */
    --ph-tap: 44px;          /* the least height of anything tappable */
    --ph-r: 14px;            /* cards */
    --ph-r-lg: 16px;         /* panels */
  }
  html { scroll-padding-top: 90px; }
  .cue { display: none; }

  /* ---- shared type ---- */
  h1 { font-size: var(--ph-h1); line-height: 1.12; }
  h2 { font-size: var(--ph-h2); line-height: 1.12; }
  h3 { font-size: var(--ph-h3); line-height: 1.25; }
  .eyebrow { margin-bottom: 8px; font-size: var(--ph-small); }
  .lede { margin-top: 12px; font-size: var(--ph-body); line-height: 1.5; }
  .head { margin-bottom: 24px; }
  /* narrow columns: fill each line. "pretty" and "balance" left two and three word lines. */
  .hero__sub, .lede, .steps h3, .steps li > p, .wont li, .wants li, .feat b, .faq details p { text-wrap: wrap; }

  /* ---- buttons: "See if you qualify" is one size everywhere, 44px to tap ---- */
  .btn--lg, .nav .btn { min-height: var(--ph-tap); padding: 0 13px; gap: 6px; font-size: var(--ph-body-s); line-height: 1.2; white-space: nowrap; }
  .btn--lg svg { width: 12px; height: 12px; }
  /* the page's svg rule (max-width: 100%) let a narrow column squeeze the arrow out of the button */
  .btn svg { max-width: none; }
  /* the quiz is its own full screen: its button keeps the size of its inputs */
  .quiz .btn--lg { min-height: 0; padding: 16px 24px; gap: 10px; font-size: 17px; line-height: 1.5; white-space: normal; }
  .quiz .btn--lg svg { width: 16px; height: 16px; }
  .quiz__back { min-height: var(--ph-tap); margin-left: -12px; padding: 10px 12px; }

  /* ---- top bar: logo and button, then the four links. Two 44px rows. ---- */
  .nav__in { height: auto; padding: 0; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; }
  .nav__logo { display: flex; align-items: center; min-height: var(--ph-tap); }
  .nav__logo img { height: 26px; }
  /* the pill is drawn 36px tall so the bar stays short; ::after makes the part you can tap 44px */
  .nav .btn { position: relative; min-height: 36px; }
  .nav .btn::after { content: ''; position: absolute; inset: -5px 0; }
  .nav__links { display: flex; order: 3; flex: 0 0 100%; justify-content: space-between; gap: 0; margin: 0; border-top: 1px solid var(--dark-line); }
  .nav__links a { display: flex; align-items: center; min-height: var(--ph-tap); padding-inline: 8px; font-size: var(--ph-small); }
  .nav__links a:first-child { margin-left: -8px; }
  .nav__links a:last-child { margin-right: -8px; }

  /* ---- one section per screen ---- */
  .hero, .demo, .sec, .dark, #why { display: flex; align-items: center; min-height: calc(100vh - var(--navh)); min-height: calc(100dvh - var(--navh)); padding-block: 10px; }
  .hero > .wrap, .sec > .wrap, .dark > .wrap, #why > .wrap { flex: 0 0 auto; }

  /* ---- opening screen: words | the card. The card starts level with the headline; the ticks run under both. ---- */
  .hero__in { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); grid-template-rows: auto auto auto auto 1fr auto; gap: 0 12px; align-items: start; }
  .hero__copy { display: contents; }
  .hero__copy > * { grid-column: 1; }
  .hero .eyebrow { grid-row: 1; line-height: 1.3; }
  .hero h1 { grid-row: 2; }
  .hero__sub { grid-row: 3; margin-top: 12px; font-size: var(--ph-body-l); line-height: 1.5; }
  .hero__cta { grid-row: 4; display: grid; justify-content: start; gap: 8px; margin-top: 14px; }
  .hero .ticks { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; gap: 6px 7px; }
  .hero .ticks li { gap: 5px; font-size: var(--ph-small); }
  .hero .ticks svg { width: 12px; height: 12px; }
  .hero__visual { grid-column: 2; grid-row: 2 / span 4; margin-bottom: 0; }
  .hero__visual .panel { padding: 13px 10px 40px; border-radius: var(--ph-r-lg); }
  .panel__head { flex-wrap: wrap; gap: 5px 6px; margin-bottom: 10px; }
  .panel__head b { font-size: var(--ph-body-s); }
  .chip { gap: 4px; padding: 2px 7px; font-size: var(--ph-min); }
  .chip i { width: 4px; height: 4px; }
  .hq__q { margin: 0 0 10px; font-size: var(--ph-quote); }
  .hq__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hq__opt { justify-content: center; min-height: 50px; padding: 4px 2px; border-radius: 9px; font-size: var(--ph-body-s); letter-spacing: -0.01em; }
  .hq__opt svg { display: none; }
  .hq__note { margin-top: 10px; font-size: var(--ph-min); line-height: 1.35; }
  /* the quote card hangs 28px over the card's bottom corner; the card keeps 12px clear above it */
  .float { position: relative; left: auto; bottom: auto; margin: -28px 8px 0 -14px; padding: 8px 10px; border-radius: 10px; }
  .float b { font-size: var(--ph-small); line-height: 1.3; }
  .float span { font-size: var(--ph-min); line-height: 1.3; }

  /* ---- video: the caption is a large line above the video ---- */
  .frame { border-radius: 20px; }
  .demo .frame { flex: 0 0 auto; display: flex; flex-direction: column-reverse; padding: 10px; }
  .frame__bar { padding: 6px 6px 16px; font-family: var(--serif); font-size: var(--ph-h2); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--white); }
  .vid { border-radius: 15px; }
  .demo .vid__btn { width: 76px; height: 76px; }
  .demo .vid__btn svg { width: 24px; height: 24px; }

  /* ---- who we're looking for: the two lists side by side, row for row ---- */
  #fit { padding-block: 6px; }
  #fit .head { margin-bottom: 8px; }
  #fit .eyebrow { margin-bottom: 6px; }
  #fit h2 { font-size: var(--ph-h2-dense); }
  #fit .lede { margin-top: 5px; font-size: var(--ph-body-s); line-height: 1.4; text-wrap: pretty; }
  .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--ph-r); }
  /* both lists share the same seven rows (heading + six), so row 3 on the left is as tall as row 3 on the right.
     A browser without subgrid ignores the two template lines and shows the lists as before, each at its own height. */
  .fit__col { display: grid; grid-row: span 7; grid-template-rows: subgrid; }
  .fit__col ul { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
  .fit__col h3 { padding: 7px 9px; font-size: var(--ph-body-s); }
  .fit__col li { gap: 6px; padding: 5px 6px 5px 9px; font-size: var(--ph-small); line-height: 1.3; text-wrap: wrap; }
  .fit__col svg { width: 15px; height: 15px; padding: 3px; margin-top: 0; }
  #fit .center { margin-top: 8px; }

  /* ---- why nobody caught it: words | card ---- */
  .dark__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 14px; align-items: center; }
  #why .lede { margin-top: 14px; font-size: var(--ph-body-l); line-height: 1.55; }
  /* the two dark cards (this one and "what you want back" in the closing panel) are the same card */
  .wont, .wants { padding: 16px 12px; border-radius: var(--ph-r); }
  .wont p, .wants p { font-size: var(--ph-small); line-height: 1.35; }
  .wont ul, .wants ul { margin-top: 8px; }
  .wont li, .wants li { padding: 13px 0; font-size: var(--ph-body-l); line-height: 1.3; }
  .wont li { gap: 6px; }
  .wont svg { width: 11px; height: 11px; }

  /* ---- Dr. Cheshire: words | background card ---- */
  .feature { grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
  .feature__copy .btn { margin-top: 18px; }
  .say { margin-top: 16px; padding-left: 10px; border-left-width: 3px; }
  .say blockquote { font-size: var(--ph-quote); line-height: 1.2; }
  .say figcaption { margin-top: 4px; font-size: var(--ph-small); }
  .tint { padding: 8px; border-radius: var(--ph-r); }
  .facts { padding: 2px 10px; border-radius: 10px; }
  .facts li { grid-template-columns: 1fr; gap: 1px; padding: 9px 0; }
  .facts b { font-size: var(--ph-body); }
  .facts span { font-size: var(--ph-body-s); line-height: 1.4; text-wrap: wrap; }

  /* ---- how it works: three steps across. The three share their rows, so the paragraphs start level. ---- */
  #how .head { margin-bottom: 32px; }
  #how h2 { font-size: var(--ph-h2-sparse); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; }
  .steps__n { margin-bottom: 18px; }
  .steps__n span { width: 32px; height: 32px; font-size: var(--ph-body-s); }
  .steps__n::after { left: 38px; }
  .steps h3 { line-height: 1.22; }
  .steps li > p { margin-top: 10px; font-size: var(--ph-body-s); line-height: 1.6; }
  #how .center { margin-top: 32px; }
  @supports (grid-template-rows: subgrid) {
    .steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  }
  @supports not (grid-template-rows: subgrid) {
    .steps h3 { min-height: 3.66em; }
  }

  /* ---- the app: words | the eight features, then the phone with its five labels ----
     The words, the eight features and a phone large enough to read do not fit in 574px, so this section is sized
     for the taller screen: about 634px at 390 wide. With Safari's toolbar up, the last 60px of the phone (below
     the fifth label) is under the fold. A larger phone means a longer section: 1cqw of --scr is about 8px of height. */
  #app { padding-block: 6px; }
  .shell { padding: 10px 13px; border-radius: var(--ph-r-lg); }
  #app .shell.feature { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #app .feature__copy { display: grid; grid-template-columns: minmax(0, 1fr) min-content; column-gap: 10px; align-items: start; }
  #app .feature__copy > * { grid-column: 1; }
  #app h2 { grid-row: 2; font-size: var(--ph-h2-dense); }
  #app .lede { grid-row: 3 / span 2; margin-top: 8px; font-size: var(--ph-body-s); line-height: 1.38; }
  /* the list starts level with the heading; the button sits under the list */
  #app .feat { grid-column: 2; grid-row: 2 / span 2; grid-template-columns: 1fr; gap: 6px; margin-top: 4px; }
  #app .feature__copy > .btn { grid-column: 2; grid-row: 4; justify-self: start; align-self: end; margin-top: 12px; }
  .feat li { grid-template-columns: 11px 1fr; gap: 6px; }
  .feat svg { width: 11px; height: 11px; margin-top: 3px; }
  .feat b { font-size: var(--ph-body-s); }
  .feat span { display: none; }
  /* The phone and its labels. One number sets the size: --scr, the width of the phone's screen in cqw (1% of
     this box). Everything else follows from it, so the labels stay on what they name at any width:
       the phone is --scr + 3.4cqw wide (1.7cqw of frame each side);
       the screen is --scr x 852/393 tall; the picture starts 6.34% of the way down it and is --scr x 1166/600 tall;
       each label's top is the picture's top plus its share of the picture's height, measured from the capture:
       Dr. Cheshire button 4.3%, the "5 of 9 done" bar 29%, the two waiting rows 45.9%, the check-in card 65.8%,
       the workout card 81.3%. If the capture changes, measure those five again.
     The box runs 8px into the panel's padding each side to give the labels room. */
  .app__phones--one { --scr: 41cqw; --pic-top: calc(1.7cqw + var(--scr) * 0.13745); --pic-h: calc(var(--scr) * 1.94333); --label-gap: 3.2cqw;
    width: calc(100% + 16px); height: auto; margin-inline: -8px; aspect-ratio: auto; }
  .iphone--solo { position: relative; left: auto; width: calc(var(--scr) + 3.4cqw); margin-inline: auto; }
  .callout { width: calc(50% - (var(--scr) + 3.4cqw) / 2 - var(--label-gap) - 0.3cqw); padding: 1.5cqw 1.7cqw; font-size: var(--ph-min); line-height: 1.2; }
  .callout span { display: none; }
  .callout::before { width: calc(var(--label-gap) + 1.2cqw); }
  .callout--r { left: calc(50% + (var(--scr) + 3.4cqw) / 2 + var(--label-gap)); }
  .callout--l { right: calc(50% + (var(--scr) + 3.4cqw) / 2 + var(--label-gap)); }
  /* the dot sits on the edge of the screen: the gap, plus the 1.7cqw frame, plus half the 2cqw dot */
  .callout--r::after { left: calc(-1 * var(--label-gap) - 2.7cqw); }
  .callout--l::after { right: calc(-1 * var(--label-gap) - 2.7cqw); }
  .callout--1 { top: calc(var(--pic-top) + var(--pic-h) * 0.043); }
  .callout--2 { top: calc(var(--pic-top) + var(--pic-h) * 0.29); }
  .callout--3 { top: calc(var(--pic-top) + var(--pic-h) * 0.459); }
  .callout--4 { top: calc(var(--pic-top) + var(--pic-h) * 0.658); }
  .callout--5 { top: calc(var(--pic-top) + var(--pic-h) * 0.813); }

  /* ---- testimonials (hidden until the videos exist): one large, two under it, on one screen ---- */
  #proof .head { margin-bottom: 14px; }
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .test:first-child { grid-column: 1 / -1; }
  .test figcaption { margin-top: 6px; font-size: var(--ph-small); }

  /* ---- questions: heading | list. The boxes stay a little smaller than the other text (his ask). ---- */
  .faq { grid-template-columns: minmax(min-content, 0.62fr) minmax(0, 1.38fr); gap: 10px; align-items: start; }
  #questions .lede { font-size: var(--ph-body-l); }
  .faq__head .btn { margin-top: 14px; }
  .faq__list { gap: 5px; }
  .faq details { border-radius: 10px; }
  .faq summary { min-height: var(--ph-tap); gap: 8px; padding: 7px 9px; font-size: var(--ph-small); line-height: 1.3; }
  .faq summary svg { width: 12px; height: 12px; }
  .faq details p { padding: 0 9px 9px; font-size: var(--ph-small); line-height: 1.42; }

  /* ---- closing panel: the ask | what you want back ---- */
  .close { min-height: 0; padding-block: 10px; }
  .close__panel { grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 22px 15px; border-radius: var(--ph-r-lg); min-height: calc(100vh - var(--navh) - 20px); min-height: calc(100dvh - var(--navh) - 20px); }
  .close__panel h2 { font-size: var(--ph-h2-sparse); }
  .close__panel .lede { margin-top: 14px; font-size: var(--ph-body-l); }
  .close__panel .btn { margin-top: 16px; }

  /* ---- footer: logo left, links right, then the two legal lines ---- */
  .foot { padding: 12px 0 18px; }
  .foot__in { justify-content: space-between; gap: 12px; }
  .foot img { height: 26px; }
  .foot__links { justify-content: flex-end; gap: 0 6px; }
  .foot__links a { display: inline-flex; align-items: center; min-height: var(--ph-tap); padding-inline: 8px; font-size: var(--ph-body-s); }
  .foot__links a:last-child { margin-right: -8px; }
  .foot__links .foot__ig { width: var(--ph-tap); height: var(--ph-tap); padding: 0; }
  .foot__base { margin-top: 10px; padding-top: 12px; }
  .foot__base p { font-size: var(--ph-small); line-height: 1.5; }

  /* ---- privacy and terms pages ---- */
  .legal { padding: 40px 0 64px; }
  .legal p, .legal li { font-size: 16.5px; }
}

/* Second audit, Nov 24 (docs/audit/phone.md, speed-accessibility.md, desktop-tablet.md). Nothing here changes a grid. */
/* keyboard focus on the hero answers was light blue on the cream card (1.8:1); navy at every width now */
.hero .panel :focus-visible { outline-color: var(--accent); }
/* the faded-out video pill could still be reached with the Tab key below 1061px */
.cue.is-off { visibility: hidden; }
/* questions: the focus ring follows the card's corners, and a row answers a mouse like everything else does */
.faq summary { border-radius: var(--r); }
@media (hover: hover) { .faq details:hover { border-color: var(--accent); } }
/* in the drawn phone the signal bars sat partly under the island */
.iphone__status svg { width: 8.2cqw; }
@media (max-width: 760px) {
  /* "Recovery" and "Strength" touched the sides of their buttons */
  .hq__opt { font-size: var(--ph-small); }
  /* tap targets a little further apart */
  .hq__opts { gap: 8px; }
  .faq__list { gap: 7px; }
  .faq summary { border-radius: 10px; }
  /* the phone picture's shadow spilled out and showed as a grey smudge at the top of the next section */
  #app, #doctor { overflow: clip; }
}
@media (max-width: 370px) {
  /* the three hero ticks wrapped, leaving "You pick the time" alone on a second row */
  .hero .ticks { gap: 6px 5px; }
  .hero .ticks li { gap: 4px; }
}

/* The hero video slot with no file yet: a placeholder, not a button */
.vid.is-empty .vid__play { cursor: default; }
.vid.is-empty .vid__btn { opacity: .45; }

/* ============================================================================================================
   PHONE, Nov 25 2026: THE LAPTOP VERSION, BUILT FOR THE PHONE
   Cullen: "i wanted the laptop version on phone but built for phone ... you're going to have to redesign and
   change some things". Stacking the columns is rejected; so is shrinking everything into them.
   What this does: every two-column section keeps its two columns side by side, as on the laptop, but its headline
   comes out of the narrow left column and runs the full width of the phone at a real headline size (it was 25 to
   27px squeezed into half the screen). The words and the card sit side by side under it.
   The one piece redesigned: How it works. Three columns of three words a line could not be read at any size, so
   the three numbered steps run down the screen with their line between the numbers.
   Each section still fills one screen.
   ============================================================================================================ */
@media (max-width: 760px) {
  /* opening screen */
  .hero .eyebrow, .hero h1 { grid-column: 1 / -1; }
  .hero h1 { font-size: calc(var(--ph-u) * 34); line-height: 1.1; }
  .hero__sub { margin-top: 12px; }
  .hero__cta { margin-top: 12px; }
  .hero .ticks { margin-top: 10px; }
  .hero__visual { grid-row: 3 / span 3; margin-top: 12px; }
  .hero__visual .panel { padding: 11px 10px 34px; }
  .hq__opt { min-height: 45px; }
  .hq__note { margin-top: 8px; }

  /* why nobody caught it */
  .dark__in { gap: 0 14px; align-items: start; grid-template-rows: auto auto auto auto 1fr; }
  .dark__in > div:first-child { display: contents; }
  .dark__in .eyebrow, .dark__in h2 { grid-column: 1 / -1; }
  .dark__in h2 { font-size: calc(var(--ph-u) * 31); }
  .dark__in .lede { grid-column: 1; }
  #why .lede { margin-top: 16px; }
  .wont { grid-column: 2; grid-row: 3 / span 3; margin-top: 16px; }

  /* Dr. Cheshire */
  #doctor .feature { gap: 0 14px; align-items: start; grid-template-rows: auto auto auto auto auto 1fr; }
  #doctor .feature__copy { display: contents; }
  #doctor .eyebrow, #doctor h2 { grid-column: 1 / -1; }
  #doctor h2 { font-size: calc(var(--ph-u) * 30); }
  #doctor .lede, #doctor .say, #doctor .feature__copy > .btn { grid-column: 1; }
  #doctor .lede { margin-top: 12px; }
  #doctor .say { margin-top: 14px; }
  #doctor .feature__copy > .btn { margin-top: 14px; }
  .facts li { padding: 6px 0; }
  .facts span { line-height: 1.32; }
  #doctor .feature__copy > .btn { justify-self: start; }
  #doctor .tint { grid-column: 2; grid-row: 3 / span 4; margin-top: 12px; }

  /* questions */
  .faq { gap: 0 10px; grid-template-rows: auto auto auto 1fr; }
  .faq__head { display: contents; }
  .faq .eyebrow, .faq h2 { grid-column: 1 / -1; }
  .faq h2 { font-size: calc(var(--ph-u) * 31); }
  .faq .lede, .faq__head .btn { grid-column: 1; }
  #questions .lede { margin-top: 16px; }
  .faq__head .btn { justify-self: start; align-self: start; }
  .faq__list { grid-column: 2; grid-row: 3 / span 2; margin-top: 16px; }

  /* closing panel */
  .close__panel { gap: 0 14px; align-items: start; align-content: center; grid-template-rows: auto auto 1fr; }
  .close__copy { display: contents; }
  .close__panel h2 { grid-column: 1 / -1; font-size: calc(var(--ph-u) * 32); }
  .close__panel .lede, .close__panel .btn { grid-column: 1; }
  .close__panel .lede { margin-top: 16px; }
  .close__panel .btn { justify-self: start; align-self: start; }
  .wants { grid-column: 2; grid-row: 2 / span 2; margin-top: 16px; }
  .wants li { padding: 10px 0; }

  /* how it works: three numbered rows */
  #how .head { margin-bottom: 18px; }
  #how h2 { font-size: calc(var(--ph-u) * 30); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; grid-row: auto; column-gap: 14px; padding-bottom: 15px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps__n { grid-row: 1 / span 2; margin: 0; }
  .steps__n span { width: 34px; height: 34px; }
  .steps__n::after { left: 50%; right: auto; top: 40px; bottom: -9px; width: 1px; height: auto; }
  .steps li:last-child .steps__n::after { display: none; }
  .steps h3 { min-height: 0; margin-top: 5px; font-size: calc(var(--ph-u) * 18); }
  .steps li > p { margin-top: 6px; font-size: var(--ph-body-l); line-height: 1.5; }
  #how .center { margin-top: 20px; }

  /* the app: each feature stays on one line, and the headline is larger */
  #app .feat b { white-space: nowrap; }
}

/* Nov 25: scrolling on a real iPhone did not flow (Cullen). Section heights were set in dvh, which changes while
   Safari's toolbar slides away during a scroll, so all nine sections resized under his finger and the page jumped.
   svh is the screen with the toolbar showing and does not change while scrolling. Older phones keep the lines above. */
@media (max-width: 760px) {
  .hero, .demo, .sec, .dark, #why { min-height: calc(100svh - var(--navh)); }
  .close__panel { min-height: calc(100svh - var(--navh) - 20px); }
  /* the video's line is a headline like the others, which also fills the emptiest screen on the page */
  .frame__bar { font-size: calc(var(--ph-u) * 30); }
}

/* ============================================================================================================
   PHONE FLOW, Nov 25 2026. Cullen: "something about this just doesn't flow well when i scroll down".
   Measured with scripts/phone-rhythm.mjs and phone-spare.mjs. This block fixes the reasons that do not need a
   section redesigned. The side-by-side columns are untouched.
     1+2  Sections are their contents plus the SAME space above and below (as on the laptop), not one forced
          screen each with the contents floating in the middle. Nothing depends on the screen height any more,
          so nothing resizes while Safari's toolbar slides away.
     3    The top bar is one row (logo and button). The four links took a second row: 90px, 14% of the screen.
     4    Every section headline is 30 to 34px. "Who we're looking for" and the app were 21px.
     5    Paragraphs are 16px in every section; list and card text is 14px (it was 12 to 16 depending on section).
     7    Everything starts from the left edge. One heading and two buttons were centred.
   Still open (they need sections redesigned): half-width paragraphs at 3 to 4 words a line, and every section
   being built to a different pattern.
   ============================================================================================================ */
@media (max-width: 760px) {
  /* 3. one-row top bar */
  :root { --navh: 45px; }
  html { scroll-padding-top: 54px; }
  .nav__links { display: none; }
  .nav__in { flex-wrap: nowrap; align-items: center; min-height: 46px; }

  /* 1 + 2. even spacing, no forced screens */
  .hero, .demo, .sec, .dark, #why, #fit, #app { min-height: 0; padding-block: 46px; }
  .hero { padding-block: 22px 42px; }
  .close { padding-block: 18px; }
  .close__panel { min-height: 0; padding-block: 36px; }

  /* 4. one headline size */
  #fit h2, #app h2 { font-size: calc(var(--ph-u) * 30); }
  #app .feature__copy > h2 { grid-column: 1 / -1; }
  #app .lede { grid-row: 3 / span 2; margin-top: 14px; }
  #app .feat { grid-row: 3; margin-top: 18px; }

  /* 5. one paragraph size, one list size */
  .lede, #fit .lede, #app .lede, #questions .lede, .close__panel .lede { font-size: var(--ph-body-l); line-height: 1.5; }
  .fit__col h3 { font-size: 15px; }
  .fit__col li { padding: 8px 8px 8px 10px; font-size: 14px; line-height: 1.35; }
  .facts b { font-size: 15px; }
  .facts span { font-size: 14px; }
  .feat b { font-size: 14px; }
  .faq summary { font-size: 14px; }
  .faq details p { font-size: 14px; line-height: 1.45; }

  /* 7. one alignment */
  .head--c { text-align: left; margin-inline: 0; }
  #fit .head { margin-bottom: 18px; }
  #fit .lede { margin-top: 10px; }
  .center { justify-items: start; }
  #fit .center { margin-top: 20px; }
}

/* ============================================================================================================
   PHONE SECTIONS REDESIGNED, Nov 25 2026 (four agents, one per group of sections; brief and pictures in
   qa/phone-redesign/). They fix the last two flow problems: paragraphs squeezed into half-width columns at 3 to 4
   words a line, and every section built to a different pattern. Every section now follows one skeleton:
     eyebrow, headline full width / the paragraph full width (7 to 9 words a line) / the section's card, still
     SIDE BY SIDE with something as on the laptop (never a full-width card under a full-width block of words) /
     the button last, on the left.
   No HTML or wording changed. Laptop and iPad are untouched (every rule is inside max-width: 760px).
   ============================================================================================================ */

/* ---- opening screen ---- */
/* PHONE REDESIGN, opening screen (agent "hero", Nov 25 2026). Phone only.
   Skeleton shared by every section: eyebrow + headline full width; paragraph full width; the card side by side with
   something shorter; the button last, left-aligned.
   Here: the paragraph runs the full width (was a 190px column, 4.3 words a line over 10 lines). Under it, the quiz
   card takes the wider right column (about 58%) so its answers hold 15px words; beside it on the left sit the three
   ticks as a short list and the "push through" quote card, which overlaps the quiz card's lower-left corner the way it
   does on the laptop. The buttons close the section. Nothing in the hero is under 14px. */
@media (max-width: 760px) {
  .hero__in { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr auto; column-gap: 12px; }
  .hero__visual { display: contents; }

  /* 1. eyebrow and headline, full width */
  .hero .eyebrow { grid-column: 1 / -1; grid-row: 1; font-size: 14px; }
  .hero h1 { grid-column: 1 / -1; grid-row: 2; }

  /* 2. the paragraph, full width */
  .hero__sub { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; font-size: var(--ph-body-l); line-height: 1.5; }

  /* 3. the card, side by side with the ticks and the quote */
  .hero .panel { grid-column: 2; grid-row: 4 / span 2; position: relative; z-index: 1; margin-top: 20px; padding: 14px 12px 16px; }
  .hero .panel__head { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .hero .panel__head b { font-size: 15px; }
  .hero .chip { padding: 3px 9px; font-size: 14px; }
  .hero .hq__q { margin: 0 0 12px; font-size: calc(var(--ph-u) * 20); line-height: 1.15; }
  .hero .hq__opts { gap: 7px; }
  .hero .hq__opt { min-height: 46px; padding: 4px 6px; font-size: 15px; letter-spacing: 0; }
  .hero .hq__note { margin-top: 12px; font-size: 14px; line-height: 1.4; }

  .hero .ticks { grid-column: 1; grid-row: 4; flex-direction: column; align-items: stretch; gap: 0; margin-top: 20px; border-top: 1px solid var(--dark-line); }
  .hero .ticks li { align-items: flex-start; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--dark-line); font-size: 15px; line-height: 1.3; }
  .hero .ticks svg { width: 15px; height: 15px; margin-top: 2px; }

  .float { grid-column: 1; grid-row: 5; align-self: end; position: relative; z-index: 2; left: auto; bottom: auto; margin: 16px -22px -18px 0; padding: 12px 12px; border-radius: 12px; }
  .float b { font-size: 15px; line-height: 1.3; }
  .float span { margin-top: 6px; font-size: 14px; line-height: 1.35; }

  /* 4. the buttons, last, left-aligned */
  .hero__cta { grid-column: 1 / -1; grid-row: 6; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 34px; }
  .hero .btn--lg { min-height: 48px; padding: 0 18px; font-size: 15px; }
  /* narrow phones: both buttons (once the video exists) stay on one row */
  @media (max-width: 370px) { .hero .btn--lg { padding: 0 12px; font-size: 14px; } }
}

/* ---- who we're looking for, and the app ---- */
/* fit-app: "Who we're looking for", the app, and a check of the video. Phone only. */
@media (max-width: 760px) {
  /* ---- Who we're looking for: the two lists stay side by side, row for row ----
     Each tick and cross now sits at the start of its sentence like a first letter, and the lines under it run back
     to the column's edge (it held a 21px strip down the side of every row, 12% of a 180px column).
     The left column is a little wider because its rows are longer (78 words against 61), which evens out the
     shared row heights. The card runs 8px into the page margin each side. */
  .fit { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); margin-inline: -8px; }
  .fit__col h3 { padding: 10px 9px 10px 10px; }
  .fit__col li { display: block; padding: 8px 9px 8px 10px; line-height: 1.33; }
  .fit__col li > svg { display: inline-block; width: 16px; height: 16px; padding: 3.5px; margin: 0 6px 0 0; vertical-align: -3px; }
}

@media (max-width: 760px) {
  /* ---- The app: the paragraph runs the full width of the panel; the eight features sit two across under it;
     then the phone between its labels; the button last. ----
     The copy column and the panel become one single-column grid (display: contents), so the button can move
     below the phone without touching the HTML. */
  #app .shell.feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #app .feature__copy { display: contents; }
  #app .feature__copy > * { grid-column: 1; grid-row: auto; }
  #app .lede { margin-top: 14px; }
  #app .feat { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 10px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  #app .feat b { white-space: normal; line-height: 1.3; }
  .feat li { grid-template-columns: 12px 1fr; gap: 6px; }
  .feat svg { width: 12px; height: 12px; margin-top: 3px; }
  #app .app { order: 1; margin-top: 22px; }
  #app .feature__copy > .btn { order: 2; grid-column: 1; grid-row: auto; justify-self: start; align-self: start; margin-top: 22px; }
  .callout { font-size: 12px; }
}

/* ---- page-wide: all four agents found the same two sizes under 14px ---- */
@media (max-width: 760px) {
  .eyebrow { font-size: 14px; }
  main .btn--lg { min-height: 48px; padding: 0 18px; font-size: 15px; }
  .nav .btn { font-size: 14px; }
}
@media (max-width: 370px) {
  main .btn--lg { padding: 0 14px; font-size: 14px; }
}

/* ============================================================================================================
   PHONE, after his real iPhone screenshots (Nov 25 2026, 10:41). Cullen: "it doesn't look good on mobile, it
   doesn't flow right, things aren't in the right places".
   What his screenshots showed: the brief I gave the agents ("the card must sit side by side with something")
   produced rows with holes in them. An empty column under "What you won't get here" and "What you want back".
   A gap beside "Mayor" under the overlapping quote. The "ask Dr. Cheshire" line and the button wedged beside the
   last two questions, the button touching a question box. A gap between the check marks and the quote card on
   the opening screen. Those parts of the agents' work are removed above and replaced here.
   Rule now: nothing is put beside something else just to make a row. Each piece gets the width it needs, in the
   order it is read, and the columns live INSIDE the cards where the content is short enough for them.
   ============================================================================================================ */
@media (max-width: 760px) {
  /* ---- opening screen: words, check marks, the quiz card at full width with the quote on its corner, button ---- */
  .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; column-gap: 0; }
  .hero .eyebrow, .hero h1, .hero__sub, .hero .ticks, .hero .panel, .float, .hero__cta { grid-column: 1; grid-row: auto; }
  .hero .ticks { order: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; border-top: 0; }
  .hero .ticks li { align-items: center; gap: 7px; padding: 0; border-bottom: 0; font-size: 14px; }
  .hero .ticks svg { width: 14px; height: 14px; margin-top: 0; }
  .hero .panel { order: 2; margin-top: 22px; padding: 18px 16px 44px; }
  .hero .panel__head { flex-wrap: nowrap; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .hero .panel__head b { font-size: 16px; }
  .hero .hq__q { margin-bottom: 14px; font-size: calc(var(--ph-u) * 23); }
  .hero .hq__opts { gap: 10px; }
  .hero .hq__opt { justify-content: space-between; min-height: 52px; padding: 0 14px; font-size: 16px; }
  .hero .hq__opt svg { display: block; }
  .float { order: 3; justify-self: start; align-self: start; max-width: 80%; margin: -30px 0 0 -4px; padding: 12px 14px; }
  .hero__cta { order: 4; margin-top: 24px; }

  /* ---- why nobody caught it, and the closing panel: the words, then the card at full width with its own title ---- */
  .dark__in, .close__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .dark__in .eyebrow, .dark__in h2, .dark__in .lede, .wont,
  .close__panel h2, .close__panel .lede, .close__panel .btn, .wants { grid-column: 1; grid-row: auto; }
  .wont, .wants { margin-top: 24px; padding: 18px 20px 10px; }
  .wont p, .wants p { font-size: 14px; }
  .wont ul, .wants ul { margin-top: 8px; }
  .wont li, .wants li { padding: 13px 0; font-size: calc(var(--ph-u) * 17); line-height: 1.3; }
  .wont li { gap: 10px; }
  .wants { order: 2; }
  .close__panel .btn { order: 3; justify-self: start; margin-top: 24px; }

  /* ---- Dr. Cheshire: the words, his quote as the big line it is on the laptop, the background card, the button ---- */
  #doctor .feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  #doctor .eyebrow, #doctor h2, #doctor .lede, #doctor .say, #doctor .tint, #doctor .feature__copy > .btn { grid-column: 1; grid-row: auto; }
  #doctor .say { margin-top: 22px; padding-left: 16px; }
  #doctor .say blockquote { font-size: calc(var(--ph-u) * 25); line-height: 1.18; }
  #doctor .say figcaption { margin-top: 8px; font-size: 14px; }
  #doctor .tint { order: 2; margin-top: 26px; padding: 8px; }
  /* the five facts, two across where they are short: Business owner | Mayor, In practice | Training, then Approach */
  #doctor .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 6px 18px; }
  #doctor .facts li { grid-template-columns: 1fr; gap: 3px; align-content: start; padding: 13px 0; }
  #doctor .facts li:nth-child(5) { grid-column: 1 / -1; }
  #doctor .facts li:nth-child(4) { border-bottom: 1px solid var(--line); }
  #doctor .facts b { font-size: 15px; }
  #doctor .facts span { font-size: 14px; line-height: 1.4; }
  #doctor .feature__copy > .btn { order: 3; justify-self: start; margin-top: 24px; }

  /* ---- questions: heading, the line under it, all five questions at full width, the button ---- */
  .faq { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .faq .eyebrow, .faq h2, .faq .lede, .faq__head .btn, .faq__list { grid-column: 1; grid-row: auto; }
  #questions .lede { margin-top: 12px; }
  .faq__list { order: 2; margin-top: 22px; gap: 10px; }
  .faq summary { min-height: 52px; padding: 12px 14px; }
  .faq details p { padding: 0 14px 14px; }
  .faq__head .btn { order: 3; justify-self: start; margin-top: 22px; }

  /* ---- who we're looking for: the table keeps to the same left and right edge as everything else ---- */
  .fit { margin-inline: 0; }
}
@media (max-width: 760px) {
  /* the last row of each dark card keeps the same room under it as above it */
  .wont li:last-child, .wants li:last-child { padding-bottom: 13px; }
}
@media (max-width: 760px) {
  /* Phone first: the quiz card is the way in, so it comes straight after the paragraph and its first answers are on
     the first screen. The check marks follow it. The hero's own "See if you qualify" button is dropped on phones:
     the card above it and the button in the top bar already say it (the "Watch the video" button stays). */
  .hero .panel { order: 1; margin-top: 20px; }
  .float { order: 2; }
  .hero .ticks { order: 3; margin-top: 18px; }
  .hero__cta { order: 4; margin-top: 18px; }
  .hero__cta > .btn:not([data-with-video]) { display: none; }
  .hero { padding-bottom: 38px; }
}
@media (max-width: 760px) {
  /* Same pieces as the computer, set for the phone.
     Video: on the computer the video comes first with its line in a bar under it; the phone had the line above it
     as a 30px headline, five lines tall. Back to the computer's order and a caption size. */
  .demo .frame { flex-direction: column; }
  .frame__bar { padding: 14px 8px 8px; font-size: var(--ph-body-l); font-weight: 500; line-height: 1.45; letter-spacing: 0; }
  /* Dr. Cheshire's background card: the computer's rows, label on the left and the fact beside it */
  #doctor .facts { display: block; padding: 4px 18px; }
  #doctor .facts li { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 0; }
  #doctor .facts li:nth-child(5) { grid-column: auto; }
  #doctor .facts li:nth-child(4) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  /* Design pass 1 (Nov 25), from looking at every phone screen:
     - the three check marks wrapped to two rows with "You pick the time" alone on the second: now a tidy list;
     - the quote card broke its one line in two with a single word left over: now wide enough for the line;
     - the opening screen and the video are the same navy, and their two paddings added up to a hole between them;
     - "Business owner" broke over two lines in the background card. */
  .hero .ticks { flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 20px; }
  .hero .ticks li { font-size: 15px; }
  .float { max-width: calc(100% - 8px); }
  .hero { padding-bottom: 14px; }
  .demo { padding-top: 22px; }
  #doctor .facts li { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  #doctor .facts b { font-size: 14.5px; white-space: nowrap; }
}

/* ============================================================================================================
   PHONE, design pass 2 (Nov 25 2026): ONE SYSTEM.
   Measured with scripts/phone-audit.mjs and looked at section by section at 2x. The page was built up in layers
   that day, and the layers disagreed with each other in small ways that add up to "something is off":
     - the gap from a headline to its paragraph was 10, 12, 14 or 16px depending on the section; from a paragraph
       to its card 18 to 26px; from a card to its button 20 to 24px; from the small label to the headline 6 or 8px;
     - section headlines were 30, 31 and 32px; card corners 12, 14, 16 and 20px; text sat 16, 18, 20 or 26px
       in from a card's edge;
     - the app panel's words started 16px from its top and its button stopped 10px from its bottom, against 28px
       at the sides;
     - several paragraphs ended on a single word ("you.", "work?", "sharp.", "them."), and "since he was 17."
       broke before the 17.
   Everything below sets those from one short list of values.
   ============================================================================================================ */
@media (max-width: 760px) {
  :root {
    --ps-label: 10px;     /* small label -> headline */
    --ps-head: 14px;      /* headline -> paragraph, paragraph -> paragraph */
    --ps-block: 24px;     /* paragraph -> card, card -> card, card -> button */
    --ps-section: 48px;   /* above and below every section */
    --ps-card-r: 16px;    /* card corners */
    --ps-panel-r: 20px;   /* the larger panels that hold a whole section */
    --ps-inset: 18px;     /* text to the edge of its card */
    --ph-h2: calc(var(--ph-u) * 30);
  }

  /* ---- type ---- */
  .hero h1 { font-size: calc(var(--ph-u) * 38); line-height: 1.08; }
  h2, #fit h2, #app h2, #how h2, #doctor h2, .faq h2, .dark__in h2, .close__panel h2 { font-size: var(--ph-h2); line-height: 1.12; }
  .eyebrow, .hero .eyebrow, #fit .eyebrow, .faq .eyebrow { margin-bottom: var(--ps-label); font-size: 14px; line-height: 1.3; }
  /* no paragraph ends on one word, and short lines share their words evenly */
  .lede, .hero__sub, .steps li > p, .faq details p, .facts span, .frame__bar { text-wrap: pretty; }
  .fit__col li, .wont li, .wants li, .faq summary, .steps h3, .float b, h1, h2 { text-wrap: balance; }

  /* ---- the rhythm, the same in every section ---- */
  .demo, .sec, .dark, #why, #fit, #app, #doctor, #how, #questions { padding-block: var(--ps-section); }
  .hero { padding-block: 24px 28px; }
  .demo { padding-top: 20px; }
  .head, #fit .head, #how .head { margin-bottom: var(--ps-block); }
  .lede, .hero__sub, #fit .lede, #why .lede, #doctor .lede, #app .lede, #questions .lede, .close__panel .lede { margin-top: var(--ps-head); }
  .hero .panel, .wont, .wants, #doctor .say, #doctor .tint, .faq__list { margin-top: var(--ps-block); }
  .center, #fit .center, #how .center, #doctor .feature__copy > .btn, #app .feature__copy > .btn, .faq__head .btn, .close__panel .btn { margin-top: var(--ps-block); }
  .hero .ticks { margin-top: 22px; }

  /* ---- cards: one corner, one inset ---- */
  .hero .panel, .fit, .wont, .wants, #doctor .tint { border-radius: var(--ps-card-r); }
  .frame, .shell, .close__panel { border-radius: var(--ps-panel-r); }
  .vid { border-radius: 12px; }
  .facts { border-radius: 10px; }
  .faq details, .hero .hq__opt, .float { border-radius: 12px; }
  .hero .panel { padding-inline: var(--ps-inset); }
  .wont, .wants { padding: 18px var(--ps-inset) 8px; }
  #doctor .tint { padding: 8px; }
  #doctor .facts { padding: 4px 10px; }
  .faq summary { padding-inline: var(--ps-inset); }
  .faq details p { padding: 0 var(--ps-inset) 16px; }
  .frame__bar { padding: 14px 8px 8px; }

  /* ---- the two panels that hold a whole section: the same room on all four sides ---- */
  .shell { padding: 28px 16px; }
  #app .shell.feature { gap: var(--ps-block); }
  #app .feat { margin-top: 20px; }
  .close__panel { padding: 32px 16px; }
}
@media (max-width: 760px) {
  /* pass 2, corrections after measuring again */
  /* the app panel's pieces are spaced by their own margins; a grid gap on top of those doubled every space */
  #app .shell.feature { gap: 0; }
  #app .app__phones--one { margin-top: 4px; }
  #app .feat { margin-top: var(--ps-block); padding-top: 18px; }
  /* the closing panel follows the Questions button on the same cream: one section space between them, not two */
  .close { padding-block: 0 28px; }
  /* the opening screen and the video are one colour: their two paddings read as one gap */
  .hero { padding-bottom: 14px; }
  /* a step's paragraph shares its words evenly across its lines, so none ends on one word */
  .steps li > p { text-wrap: balance; }
}
@media (max-width: 760px) {
  /* the two lists: fill each line and only keep the last line from being one word (evening the lines out made
     every row narrower and taller) */
  .fit__col li { text-wrap: pretty; }
}
@media (max-width: 760px) {
  /* The two lists and the steps fill their lines (evening them out left every row narrower and taller). The last
     two words of each list row, and "for you." in step 2, are held together in the HTML with a non-breaking space,
     so no row ends on one word at any phone width. */
  .fit__col li, .steps li > p { text-wrap: wrap; }
}
@media (max-width: 380px) {
  /* Narrow phones (360 and 375 wide). The eight app features: two equal columns, so the short names on the right
     stay on one line ("Dinners planned" and "Voice messages" were breaking in two). The drawn phone is a touch
     smaller, which gives its labels the width their words need ("Dr. Cheshire" was touching the label's edge). */
  #app .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  #app .feat b { white-space: normal; text-wrap: balance; }
  .app__phones--one { --scr: 40cqw; --label-gap: 2.4cqw; }
  .callout { padding-inline: 1.3cqw; }
}

/* ============================================================================================================
   PHONE, flow (Nov 25 2026). Cullen: "make it flow and actually feel real".
   1. Each piece of a section rises into place as it comes on screen (main.js adds .rise-on to <html> and
      .is-risen to each piece). Without the script, or for a visitor who asks for less motion, nothing is hidden.
   2. Two cards sit across the line between two sections, half on one colour and half on the next, so the page
      reads as one continuous thing and not as slices: the video frame (navy into cream) and the "What you won't
      get here" card (blue into cream).
   3. The opening headline is larger.
   ============================================================================================================ */
@media (max-width: 760px) {
  .rise-on [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--rise-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rise-delay, 0ms); }
  .rise-on [data-rise].is-risen { opacity: 1; transform: none; }
  /* the quote card keeps its own place on the corner of the quiz card */
  .rise-on .float[data-rise] { transform: translateY(18px); }
  .rise-on .float[data-rise].is-risen { transform: none; }

  .hero h1 { font-size: calc(var(--ph-u) * 42); line-height: 1.05; letter-spacing: -0.02em; }

  /* the video frame sits across the line into "Who we're looking for" */
  #video { position: relative; z-index: 2; padding-bottom: 0; }
  #video .frame { margin-bottom: -84px; background: color-mix(in srgb, var(--dark) 90%, var(--white)); box-shadow: 0 24px 48px -24px rgba(8, 16, 34, .55); }
  #fit { padding-top: calc(84px + var(--ps-section)); }

  /* the "won't get" card sits across the line into Dr. Cheshire */
  #why { position: relative; z-index: 2; padding-bottom: 0; }
  #why .wont { margin-bottom: -72px; background: color-mix(in srgb, var(--accent) 92%, var(--white)); box-shadow: 0 24px 48px -24px rgba(8, 16, 34, .5); }
  #doctor { padding-top: calc(72px + var(--ps-section)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .rise-on [data-rise] { opacity: 1; transform: none; transition: none; }
}

/* The phone's button bar is not part of the laptop or iPad page */
.dock { display: none; }

/* ============================================================================================================
   PHONE, ONE BUTTON (Nov 25 2026). Cullen: "i want one design that is good and actually works".
   The phone page repeated "See if you qualify" seven times: in the top bar, and as a small pill at the end of
   five sections and the closing panel. On a computer those sit beside wide columns; on a phone they were a row of
   identical buttons down the left edge, one per screen, and the top bar took a strip of every screen for an
   eighth. Now there is ONE: a bar at the bottom of the screen, at the thumb, that is there from the moment the
   quiz card scrolls away until the closing panel (which keeps its own button). The top bar is the logo, and it
   scrolls away with the page, so the whole screen is the page.
   ============================================================================================================ */
@media (max-width: 760px) {
  .nav { position: static; }
  .nav .btn { display: none; }
  .nav__in { min-height: 52px; }
  html { scroll-padding-top: 12px; }
  :root { --navh: 0px; }

  #fit .center, #how .center, #doctor .feature__copy > .btn, #app .feature__copy > .btn, .faq__head .btn { display: none; }

  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--dark); border-top: 1px solid var(--dark-line); transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
  .dock.is-up { transform: none; }
  .dock .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 16.5px; }
  html:has(.quiz.is-open) .dock { display: none; }
  /* the last thing on the page clears the bar */
  .foot { padding-bottom: 28px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ============================================================================================================
   PHONE, the direction he chose (Nov 25 2026, from the live page on his iPhone):
     "why is everything on the left side"
     "what you did with the What you won't get here ... how that flows so well and looks so good, i want more
      of that, not exactly that but that's what i'm talking about"
     "the intro is ass, the first slide, the title page"
   So: (1) headings and the words under them are centred; (2) a card crosses almost every line between two
   sections, half on one colour and half on the next, each with a shadow under it, so the page is carried from
   section to section; (3) the opening screen is a title page: logo, label, headline and words centred, and the
   quiz card hanging off the bottom of it into the next section.
   ============================================================================================================ */
@media (max-width: 760px) {
  :root { --bridge-shadow: 0 26px 50px -26px rgba(6, 12, 28, .6); }

  /* ---- 1. centred ---- */
  .nav__in { justify-content: center; }
  .eyebrow, .hero .eyebrow, h1, h2, .lede, .hero__sub, .head, .head--c { text-align: center; }
  .lede, .hero__sub { text-wrap: balance; }
  .head, .head--c { margin-inline: auto; }
  .hero .ticks { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
  .hero .ticks li { font-size: 14px; }
  /* his quote: the big line, centred, between two short rules */
  #doctor .say { padding: 22px 0; border-left: 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  #doctor .say blockquote { font-size: calc(var(--ph-u) * 27); line-height: 1.15; }
  .close__panel .btn { justify-self: stretch; justify-content: center; min-height: 54px; font-size: 16.5px; }

  /* ---- 3. the opening screen, a title page ---- */
  .hero { position: relative; z-index: 9; padding-block: 18px 0; }
  .hero h1 { font-size: calc(var(--ph-u) * 44); line-height: 1.04; }
  .hero .eyebrow { margin-top: 14px; margin-bottom: 14px; }
  .hero__sub { margin-top: 18px; font-size: calc(var(--ph-u) * 17); }
  .hero .ticks { order: 0; margin-top: 18px; }
  .hero .panel { order: 1; margin-top: 30px; box-shadow: var(--bridge-shadow); }
  .float { order: 2; box-shadow: 0 18px 34px -18px rgba(6, 12, 28, .55); }
  /* the card hangs off the bottom of the opening screen into the video section */
  .hero__in { margin-bottom: -150px; }

  /* ---- 2. a card across each line ---- */
  /* video: brand blue, so the opening screen's card and the video frame each cross onto a new colour */
  #video { position: relative; z-index: 8; background: var(--accent); padding-top: calc(150px + 40px); padding-bottom: 0; }
  #video .frame { margin-bottom: -84px; background: color-mix(in srgb, var(--accent) 80%, var(--dark)); box-shadow: var(--bridge-shadow); }
  /* who we're looking for: the table crosses into the blue below it */
  #fit { position: relative; z-index: 7; padding-top: calc(84px + var(--ps-section)); padding-bottom: 0; }
  #fit .fit { margin-bottom: -64px; box-shadow: var(--bridge-shadow); }
  /* why nobody caught it: its card crosses into Dr. Cheshire (already did) */
  #why { z-index: 6; padding-top: calc(64px + var(--ps-section)); }
  #why .wont { box-shadow: var(--bridge-shadow); }
  /* Dr. Cheshire: the background card crosses into How it works */
  #doctor { position: relative; z-index: 5; overflow: visible; padding-bottom: 0; }
  #doctor .tint { margin-bottom: -64px; box-shadow: var(--bridge-shadow); }
  /* how it works: the app panel rises into the bottom of it */
  #how { position: relative; z-index: 3; padding-top: calc(64px + var(--ps-section)); padding-bottom: calc(60px + var(--ps-section)); }
  #app { position: relative; z-index: 4; overflow: visible; padding-top: 0; }
  #app .shell { margin-top: -60px; box-shadow: var(--bridge-shadow); }
}
@media (max-width: 760px) {
  /* the title page is the label, the headline and the words; the three check marks sit under the quiz card */
  .hero .ticks { order: 3; margin-top: 22px; }
  .hero .panel { margin-top: 28px; }
}
@media (max-width: 760px) {
  /* Strict pass on the bridged version (looked at every section at 2x):
     - the three check marks left "You pick the time" alone on a second row: the long one goes on its own row
       and the two short ones share the first, so both rows are about the same width;
     - the app panel ended in a grey smear: the drawn phone's long shadow pooled at the panel's bottom edge and
       the panel's own shadow sat on top of it. The phone's shadow is short and soft, the panel has room under
       the phone, and the panel only casts its shadow where it rises over the dark section above it. */
  .hero .ticks li:nth-child(2) { order: 3; }
  .iphone--solo { box-shadow: 0 0 0 0.45cqw var(--phone-band), 0 0 0 0.6cqw var(--phone-band-hi), 0 0 0 0.75cqw var(--phone-band), 0 16px 28px -16px rgba(6, 12, 28, .5); }
  #app .shell { padding-bottom: 36px; box-shadow: 0 -18px 40px -22px rgba(6, 12, 28, .55); }
}
@media (max-width: 760px) {
  /* Detail pass (Nov 25), from 3x close-ups of every icon, line and colour seam (scripts/phone-detail.mjs):
     - the line where the opening screen's dark navy meets the blue ran exactly along the top edge of the quote
       card, so it read as an accident: the quiz card now sits clearly across that line, a third of it in the blue;
     - the quote card stuck out 4px to the left of the quiz card, too little to look meant: 8px now;
     - the video's line broke short in the middle ("to men in their 40s and 50s, and"): it fills its lines;
     - the crosses in "What you won't get here" were 11px and faint beside 17px bold words, and sat between the two
       lines of a two-line row: larger, clearer, and level with the first line;
     - the check marks beside bold words (the app features, the three under the quiz card) were hairlines: heavier;
     - "Workouts built for you" ran within 12px of the next column's check mark: more room between the columns;
     - the line joining the step numbers started 6px under one circle and stopped 12px above the next: 8px both ends;
     - a faint dark arc showed above the app panel (a shadow cast upward onto a dark section): removed;
     - under the app panel a strip of one cream met the next cream: the panel now sits across that line too;
     - the closing panel began exactly where one cream changed to another, so its rounded corners showed a
       different colour from the space above it: the closing section is the same cream as Questions. */
  .hero__in { margin-bottom: -205px; }
  #video { padding-top: calc(205px + 44px); }
  .float { margin-left: -8px; }
  .frame__bar { text-wrap: wrap; }

  .wont li { align-items: flex-start; gap: 12px; }
  .wont svg { width: 13px; height: 13px; margin-top: 5px; color: rgba(255, 255, 255, .72); stroke: currentColor; stroke-width: 14px; }
  .feat svg, .hero .ticks svg { stroke: currentColor; stroke-width: 12px; }
  #app .feat { column-gap: 20px; }

  .steps__n span { width: 34px; height: 34px; }
  .steps__n::after { top: 42px; bottom: -7px; }

  #app { padding-bottom: 0; }
  #app .shell { margin-bottom: -44px; box-shadow: 0 22px 44px -28px rgba(70, 56, 24, .4); }
  #questions { position: relative; z-index: 1; padding-top: calc(44px + var(--ps-section)); }
  .close { background: var(--bg); }
}

/* PAST THE ENDS OF THE PAGE (Nov 25 2026). Cullen: "when i scroll super far down or up i see a bunch of just blank
   white space", then two iPhone screenshots: pulled past the top, a cream band sat above the navy top bar; pulled
   past the bottom, a tall empty band sat under the footer.
   What the first try got wrong: Safari colours that band from the BODY's background, not the html element's, so
   setting html to navy changed nothing and the body's cream still showed.
   Now: (1) the page no longer stretches past its ends at all (overscroll-behavior), on every browser that supports
   it; (2) where a browser still stretches, the band is the colour of the part of the page it touches: the body is
   dark navy, like the top bar, and main.js switches it to the footer's cream once he is past the middle of the page
   (html.at-end). The cream that used to come from the body now comes from <main>, so the page itself is unchanged. */
html { background-color: var(--dark); overscroll-behavior-y: none; }
body { background: var(--dark); overscroll-behavior-y: none; }
main { background: var(--bg); }
html.at-end, html.at-end body { background: var(--tint); }

/* the second round button in the footer (Facebook) sits beside the first */
.foot__fb svg { width: 20px; height: 20px; }
/* The Privacy, Terms and not-found pages: their <main> is a narrow column, so the cream has to stay on the body
   there or dark navy shows down both sides of the text. */
body:has(> main.legal) { background: var(--bg); }
main.legal { background: transparent; }
@media (max-width: 760px) {
  /* Nov 25, Cullen: "make the logo a little more prominent at the top", and of "This is built for one kind of
     man": "a little crammed, like it needs a touch of something".
     The logo is a third larger with more room round it. The two lists get air (more space inside every row and
     between the lines) between the lines). Solid navy and red heading bars were tried and he said "the heading is not it, undo that":
     the headings are as they were. */
  .nav__logo img { height: 36px; }
  .nav__in { min-height: 70px; }

  .fit__col li { padding: 14px 12px 14px 13px; line-height: 1.45; }
  .fit__col li > svg { margin-right: 7px; }
  #fit .lede { margin-top: 16px; }
  #fit .head { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  /* The chart's "touch of something" (Cullen, after rejecting solid heading bars: "im talking about that chart, it
     needs a touch of something"). It was one flat table with the two lists pressed against each other. Now each
     list is its own card with a gap between them, its own rounded corners, outline and shadow, so it reads as two
     things set side by side. Rows still line up across the two, and the headings are unchanged. */
  .fit { column-gap: 10px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .fit__col { border-radius: var(--ps-card-r); overflow: hidden; box-shadow: var(--bridge-shadow); }
  .fit__col--yes { border: 1px solid var(--accent-line); }
  .fit__col:not(.fit__col--yes) { border: 1px solid var(--err-line); }
  .fit__col h3 { padding: 13px 12px 13px 13px; }
}
@media (max-width: 760px) {
  /* Dr. Cheshire's background card (Cullen, Nov 25: "everything here matches and flows except for this", "i want to
     change the look of the chart that has business owner, mayor, in practice, training, approach").
     It was the one pale card on the phone: a cream box inside a tinted frame, with small grey words in two columns,
     next to cards he likes that are dark navy with white serif lines. It is now built the same way as "What you
     won't get here": a navy card with a shadow, each row a small light-blue label with the fact under it in white
     serif. The words are unchanged, and it still crosses the line into How it works. */
  #doctor .tint { padding: 0; background: transparent; border: 0; box-shadow: none; }
  #doctor .facts { display: block; padding: 6px var(--ps-inset); border: 1px solid var(--dark-line); border-radius: var(--ps-card-r); background: color-mix(in srgb, var(--accent) 92%, var(--white)); box-shadow: var(--bridge-shadow); }
  #doctor .facts li { display: block; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
  #doctor .facts li:nth-child(4) { border-bottom: 1px solid var(--dark-line); }
  #doctor .facts li:last-child { border-bottom: 0; }
  #doctor .facts b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--sky); white-space: normal; }
  #doctor .facts span { display: block; margin-top: 5px; font-family: var(--serif); font-size: calc(var(--ph-u) * 17); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--white); text-wrap: balance; }
}
@media (max-width: 760px) {
  /* Cullen on the new background card: "idk about the color, we dont have that color anywhere else". It was a
     lightened navy mixed for that card. It is now the brand navy itself, the same colour as the buttons and the
     "Why nobody caught it" section. */
  #doctor .facts { background: var(--accent); }
}
