@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --paper: #f7f8f9;
  --white: #ffffff;
  --ink: #000000;
  --cyan: #00cbfe;
  --cyan-ink: #006d8f;
  --steel: #56616a;
  --rule: #d9dfe3;
  --display: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --body: Aptos, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--ink); }
input, textarea { caret-color: var(--cyan-ink); }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--cyan-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }
.header :focus-visible, .compass :focus-visible, .footer :focus-visible { outline-color: var(--cyan); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.review-bar {
  background: var(--ink);
  color: #c4ced3;
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px var(--gutter);
  border-bottom: 1px solid #222;
}

/* header: a black band so the logo sits on its own ground */
.header { position: sticky; top: 0; z-index: 40; background: var(--ink); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; width: 160px; height: 56px; overflow: hidden; flex: none; }
.brand img { width: 160px; margin-top: -13px; }
nav { display: flex; align-items: center; gap: 8px; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: #e9eef1; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem;
}
nav ul a:hover { color: var(--cyan); }
.menu-btn {
  display: none; min-height: 44px; padding: 0 16px; border: 1px solid #3a4248; border-radius: 999px;
  background: transparent; color: #e9eef1; font: 600 1rem var(--display); cursor: pointer;
}
.menu-btn[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: 700 1.0625rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: var(--cyan); color: var(--ink); }
.btn-cyan { background: var(--cyan); color: var(--ink); min-height: 44px; padding: 0 22px; }
.btn-cyan:hover { background: var(--white); }

.text-link { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; min-height: 44px; display: inline-flex; align-items: center; }

/* hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) var(--gutter) clamp(64px, 9vh, 112px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px); align-items: start;
}
.hero-copy { display: grid; gap: 28px; padding-top: 12px; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--steel); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* the question board */
.ask {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 32px);
  display: grid; gap: 20px;
}
.ask-title { font-size: 1.125rem; font-weight: 700; color: var(--steel); letter-spacing: 0; }
.questions { display: flex; flex-wrap: wrap; gap: 8px; }
.questions button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  font: 600 0.9375rem/1.3 var(--display); text-align: left; cursor: pointer;
}
.questions button:hover { border-color: var(--ink); }
.questions button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.board { border-top: 1px solid var(--rule); padding-top: 20px; display: grid; gap: 16px; }
.view-switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 4px;
}
.view-switch button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: 700 0.9375rem var(--display); color: var(--steel); cursor: pointer;
}
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
/* Cyan belongs to Compass only: the "Today" mess gets plain ink. */
.view-switch button[data-view="system"][aria-pressed="true"] { background: var(--cyan); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* app.js reserves the height of the tallest answer, so switching never moves the page */
.answers { position: relative; min-height: 232px; }
.answer[hidden] { display: none; }
.see-system {
  margin-top: 22px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white); font: 700 0.9375rem var(--display); cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.see-system:hover { background: var(--cyan); color: var(--ink); }
.board[data-view="system"] .see-system { display: none; }

.scraps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scraps li {
  background: var(--paper);
  border: 1px dashed #b9c3c9;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink);
  transition: transform 420ms var(--ease), opacity 300ms var(--ease);
}
.scraps li:nth-child(1) { transform: rotate(-1.6deg); }
.scraps li:nth-child(2) { transform: rotate(1.2deg) translateY(6px); }
.scraps li:nth-child(3) { transform: rotate(0.8deg); }
.scraps li:nth-child(4) { transform: rotate(-1deg) translateY(4px); }
.where { display: block; font-family: var(--display); font-weight: 700; font-size: 0.875rem; color: var(--steel); margin-bottom: 4px; }

.record {
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.record-head { background: var(--ink); color: var(--white); font: 600 0.9375rem var(--display); padding: 12px 20px; }
.record-big { font: 700 clamp(1.4rem, 2vw, 1.75rem)/1.2 var(--display); padding: 18px 20px 6px; }
.record dl { margin: 0; padding: 6px 20px 10px; display: grid; }
.record dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.record dt { color: var(--steel); }
.record dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.record-src { font-size: 0.875rem; color: var(--steel); padding: 4px 20px 18px; }
.record-screen {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); text-decoration: none;
}
.record-screen img {
  display: block; width: 100%; height: 96px; object-fit: cover; object-position: top center;
  border-radius: 8px; background: #dfe4e8; border: 1px solid var(--rule);
}
.record-screen img[src*="phone"] { width: 64px; justify-self: center; }
.record-screen span { display: grid; gap: 2px; font-size: 0.875rem; color: var(--steel); }
.record-screen strong { font: 700 0.9375rem var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.record-screen:hover strong { text-decoration-thickness: 2px; }
.record-screen:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: -2px; }

/* view states */
.board[data-view="today"] .record { display: none; }
.board[data-view="system"] .scraps { display: none; }
.board.is-switching[data-view="system"] .record { animation: settle 520ms var(--ease) both; }
.board.is-switching[data-view="today"] .scraps li { animation: scatter 520ms var(--ease) both; }
.board.is-switching[data-view="today"] .scraps li:nth-child(2) { animation-delay: 50ms; }
.board.is-switching[data-view="today"] .scraps li:nth-child(3) { animation-delay: 100ms; }
.board.is-switching[data-view="today"] .scraps li:nth-child(4) { animation-delay: 150ms; }
@keyframes settle {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes scatter {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}
.sample-note { font-size: 0.8125rem; color: var(--steel); }
.swipe-hint, .phone-only { display: none; }
.next-q { display: none; justify-self: start; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font: 700 0.9375rem var(--display); color: var(--ink); cursor: pointer; }
.next-q:hover { background: var(--paper); }

/* "Ask your own": the last question is the visitor's, and it hands off to the contact form */
.questions .own-chip { border-style: dashed; border-color: var(--ink); background: var(--white); }
.questions .own-chip[aria-checked="true"] { border-style: solid; }
.board[data-q="own"] .view-switch, .board[data-q="own"] .sample-note, .board[data-q="own"] .next-q { display: none; }
.own { display: grid; gap: 12px; justify-items: start; }
.own-label { font: 700 1.125rem/1.35 var(--display); max-width: 30ch; }
.own-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); }
.own-input:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.own-note { font-size: 0.875rem; color: var(--steel); max-width: 44ch; }
.own-status { font: 700 0.875rem var(--display); color: var(--cyan-ink); }
.own-status:empty { display: none; }
.inquiry textarea.is-filled { animation: filled 1800ms var(--ease); }
@keyframes filled { from { box-shadow: 0 0 0 4px var(--cyan); } to { box-shadow: 0 0 0 0 transparent; } }
.board[data-q="own"] .own-send { display: inline-flex; }
.next-q:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; }
.board[data-view="system"] .next-q { display: inline-flex; align-items: center; }

/* Owner story, the last word before contact */
.story-band { background: var(--ink); color: #e9eef1; padding: clamp(64px, 8vw, 104px) 0; }
.story-band-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-main { display: grid; gap: 24px; justify-items: start; }
.story-side { display: grid; gap: 20px; padding-top: 8px; }
.story-side p { color: var(--white); font: 600 1.125rem/1.45 var(--display); }
.story-band .signs li { border-color: #39424a; color: #e9eef1; }
@media (max-width: 1000px) { .story-band-inner { grid-template-columns: 1fr; } }
.story-band h2 { color: var(--white); }
.story-band blockquote { margin: 0; display: grid; gap: 18px; max-width: 34em; }
.story-band blockquote p { font: 600 clamp(1.375rem, 2.4vw, 1.875rem)/1.35 var(--display); color: var(--white); text-wrap: pretty; }
.story-band blockquote footer { font-size: 0.9375rem; color: var(--cyan); }
.story-band-sub { max-width: 52ch; color: #c3ccd2; }
.answer-biz { margin-bottom: 12px; font: 700 0.875rem var(--display); color: var(--steel); }

/* With Compass keeps a faded trace of the mess, so before and after sit together */
.was { display: none; margin-bottom: 12px; align-items: center; flex-wrap: wrap; gap: 6px; }
.board[data-view="system"] .was { display: flex; }
.was > span { font: 700 0.8125rem var(--display); color: var(--steel); margin-right: 2px; }
.was li { list-style: none; padding: 3px 9px; border: 1px dashed #b9c3c9; border-radius: 5px; background: var(--paper); font-size: 0.8125rem; color: var(--steel); text-decoration: line-through; text-decoration-color: #9aa5ac; }
.was ul { display: contents; }

/* Laptops: give the board more room so the questions sit two to a row
   and the first cards and the flip button land on the first screen. */
@media (min-width: 1001px) {
  .hero { grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); }
  .ask { gap: 16px; }
  .questions { gap: 6px; }
  .questions button { padding: 8px 12px; font-size: 0.875rem; }
  .board { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 20px; }
  .board .sm-hide { display: none; }
  .board > .view-switch { grid-column: 1; }
  .board > .sample-note { grid-column: 2; }
  .board > .answers, .board > .next-q { grid-column: 1 / -1; }
}
/* Wide screens: cap the headline so the hero button stays on the first screen,
   and keep the sample-screen link compact so the record fits too. */
@media (min-width: 1281px) {
  .hero h1 { font-size: 3.25rem; }
}
@media (min-width: 1001px) {
  .record-screen { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 10px 20px; }
  .record-screen img { height: 56px; }
  .record-screen img[src*="phone"] { width: 40px; }
  .record-big { padding-top: 14px; }
  .record dl > div { padding: 6px 0; }
  .record-src { padding-bottom: 14px; }
}
@media (min-width: 1001px) and (max-width: 1280px) {
  .hero { padding-top: 28px; gap: 40px; }
  .hero h1 { font-size: 2.5rem; }
}
/* Short laptop screens: tighten the board so the flip button stays on the first screen. */
@media (min-width: 1001px) and (max-height: 800px) {
  .hero { padding-top: 24px; }
  .ask { padding: 20px 24px; gap: 12px; }
  .board { padding-top: 14px; row-gap: 12px; }
  .scraps { gap: 10px; }
  .scraps li { padding: 10px 14px; }
  .record-head { padding: 9px 20px; }
  .record-big { font-size: 1.3rem; padding: 10px 20px 4px; }
  .was { margin-bottom: 8px; }
  .answer-biz { margin-bottom: 8px; }
}

/* bands */
.band { padding: clamp(72px, 9vw, 120px) 0; }
.problem { background: var(--white); border-top: 1px solid var(--rule); }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { display: grid; gap: 18px; max-width: 62ch; }
.prose h3 { margin-top: 14px; }
/* the problem band reuses the hero's scraps, so the mess looks the same wherever it appears */
.problem .prose h2 { margin-bottom: 8px; }
.familiar { display: grid; gap: 18px; }
.notes { grid-template-columns: 1fr 1fr; }
.notes li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: start; transform: rotate(1deg); }
.signs { list-style: none; margin: 0; padding: 0; display: grid; }
.signs li { text-wrap: pretty; padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); position: relative; }
.signs li:last-child { border-bottom: 1px solid var(--rule); }
.signs li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }

.difference h2 { max-width: 24ch; }
.diff-lede { margin-top: 16px; font-size: 1.25rem; color: var(--steel); max-width: 56ch; }
.proof { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.proof-shot { margin: 0; display: grid; gap: 12px; }
.proof-shot img { border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45); }
.proof-shot a:focus-visible { display: block; border-radius: 16px; }
.proof-shot figcaption { font-size: 0.875rem; color: var(--steel); }
.proof-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.proof-notes li { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--ink); }
.proof-notes p { color: var(--steel); }

.how { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; position: relative; }
/* a line joins each step to the next, so the sequence reads at a glance */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 68px; right: calc(-1 * clamp(28px, 4vw, 56px) + 12px);
  height: 2px; background: var(--rule);
}
.how-price { margin-top: 40px; max-width: 64ch; padding-top: 20px; border-top: 3px solid var(--ink); color: var(--ink); font-size: 1.1875rem; }
.how-price strong { font-family: var(--display); }
.track { margin-bottom: 8px; }
.how-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.how-cta p { color: var(--steel); }
.faq-band .faq { max-width: 820px; }
.faq-band h2 { margin-bottom: 32px; }
.steps li::before {
  content: counter(step);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cyan); color: var(--ink);
  font: 700 1.5rem/1 var(--display);
  margin-bottom: 8px;
}
.steps p { color: var(--steel); }

/* compass: the brand lockup lives on its own black ground */
.compass { background: var(--ink); color: #e9eef1; padding: clamp(72px, 9vw, 120px) 0; }
.compass-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.compass-id img { width: 100%; max-width: 480px; }
.compass-copy { display: grid; gap: 20px; }
.compass-copy h2 { color: var(--white); }
.compass-copy > p { color: #c4ced3; max-width: 60ch; }
.fits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.fits > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--cyan); }
.fits h3 { color: var(--white); }
.fits p { color: #c4ced3; font-size: 1rem; }
.compass-fine { font-size: 0.9375rem; color: #9aa6ae; }

/* What we build: Compass and the service lines on one black ground */
.build .lines { margin-top: clamp(40px, 5vw, 64px); border-top-color: var(--cyan); }
.build .lines > div { border-bottom-color: #2c3339; }
.build .lines dt { color: var(--white); }
.build .lines dd > p, .build .line-copy p { color: #c4ced3; max-width: 52ch; }
.build .line-copy { display: grid; gap: 10px; }
.build .line-copy strong { color: var(--white); font-weight: 600; }
.build .mini { border-color: #39424a; }
.build-foot { margin-top: 20px; display: grid; gap: 6px; }
.build .sample-note { color: #9aa6ae; }

/* the two remaining owner questions sit under the price in How it works */
.how-faq { margin-top: 40px; max-width: 820px; }
.how-faq h3 { margin-bottom: 12px; }
.range { margin: 12px 0 4px; padding-top: 20px; border-top: 1px solid #39424a; max-width: 52ch; }
.range p { font: 600 clamp(1.1875rem, 1.6vw, 1.375rem)/1.45 var(--display); color: var(--white); text-wrap: pretty; }
.range footer { margin-top: 10px; font-size: 0.9375rem; color: var(--cyan); }
.compass a { color: var(--cyan); }

.services { border-bottom: 1px solid var(--rule); }
.about { background: var(--white); border-bottom: 1px solid var(--rule); }
.lines dd > p a { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lines { margin: 44px 0 0; border-top: 3px solid var(--ink); }
.lines > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 64px); padding: 24px 0; border-bottom: 1px solid var(--rule); }
.lines dt { font: 700 1.375rem/1.25 var(--display); }
.lines dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 16px clamp(24px, 3vw, 48px); align-items: start; }
.lines dd > p { color: var(--steel); max-width: 52ch; }
/* a small sample record per service line, in the same language as the hero board */
.mini { border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--white); }
.mini-head { background: var(--ink); color: var(--white); font: 600 0.8125rem var(--display); padding: 7px 14px; }
.mini-big { font: 700 1rem/1.3 var(--display); padding: 10px 14px 2px; color: var(--ink); }
.mini-src { font-size: 0.8125rem; color: var(--steel); padding: 2px 14px 10px; }
.services .sample-note { margin-top: 16px; }

.about-lede { font-size: 1.25rem; color: var(--steel); margin-top: 20px; max-width: 36ch; }
.about .prose p { color: var(--ink); }
.owner { margin-top: 36px; max-width: 36rem; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--white); }
.owner-head { background: var(--ink); color: var(--white); font: 600 0.9375rem var(--display); padding: 12px 20px; }
.owner-body { padding: 18px 20px 8px; line-height: 1.6; }
.owner-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 20px 10px; font: 700 1rem var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.owner-link:hover { text-decoration-thickness: 3px; }

/* story page */
.story { max-width: 680px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 120px); }
.story-back { display: inline-flex; align-items: center; min-height: 44px; font: 600 0.9375rem var(--display); color: var(--cyan-ink); }
.story h1 { margin-top: 20px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.story-by { margin-top: 14px; font-size: 1.125rem; color: var(--steel); }
.story-body { margin-top: 44px; display: grid; gap: 22px; font-size: 1.1875rem; line-height: 1.7; }
.story-body p { margin: 0; }
.story-quote { margin: 18px 0; padding-left: 24px; border-left: 4px solid var(--cyan); font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.25 var(--display); letter-spacing: -0.01em; }
.story-end { font: 700 1.5rem/1.3 var(--display); }
.story-sign { color: var(--steel); }
.story-next { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.story-next p { margin: 0; font: 600 1.125rem var(--display); }

.faq-band { background: var(--white); border-top: 1px solid var(--rule); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font: 700 1.125rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); font-size: 1.25rem;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--cyan); }
.faq summary:hover { color: var(--cyan-ink); }
.faq details p { padding: 0 48px 22px 0; color: var(--steel); max-width: 62ch; }

.contact { background: var(--white); border-top: 1px solid var(--rule); }
.inquiry {
  display: grid; gap: 18px; background: var(--white); border: 1px solid var(--rule);
  border-radius: 24px; padding: clamp(20px, 3vw, 36px);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry label { display: grid; gap: 6px; font: 700 0.9375rem var(--display); }
.inquiry input, .inquiry textarea {
  width: 100%; min-height: 50px; border: 1px solid #7d8a93; border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); padding: 12px 14px;
}
.inquiry textarea { resize: vertical; }
.inquiry input, .inquiry textarea { scroll-margin-top: 120px; }
.hint { font: 400 0.9375rem/1.45 var(--body); color: var(--steel); }
.inquiry input:hover, .inquiry textarea:hover { border-color: var(--steel); }
.inquiry input:focus-visible, .inquiry textarea:focus-visible { border-color: var(--cyan-ink); background: var(--white); }
.inquiry .btn { justify-self: start; }
.inquiry-status { font-size: 0.9375rem; color: var(--steel); }
.inquiry-status:empty { display: none; }
.inquiry-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.inquiry-fields[disabled] input, .inquiry-fields[disabled] textarea { cursor: not-allowed; background: #eef1f3; }
.inquiry-preview { padding: 0 0 14px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 0.9375rem; }
.inquiry-preview strong { background: #ffe58a; padding: 1px 4px; border-radius: 3px; }
.inquiry-preview[hidden] { display: none; }
.next-step { margin-top: 20px; max-width: 36ch; }
.next-step a { font: 700 1.125rem var(--display); color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inquiry-status.is-preview { color: var(--ink); font-weight: 600; }
.inquiry-status.is-ok { color: var(--ink); font-weight: 600; }
.inquiry-status.is-error { color: #8a1c1c; font-weight: 600; }
.inquiry-privacy { font-size: 0.875rem; color: var(--steel); }
.req { color: var(--steel); font-weight: 400; }
.field-error { font: 600 0.9375rem/1.4 var(--body); color: #8a1c1c; }
.field-error[hidden] { display: none; }
.inquiry [aria-invalid="true"] { border-color: #8a1c1c; border-width: 2px; }
.inquiry .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.inquiry .btn[disabled]:hover { background: var(--ink); color: var(--white); }
.inquiry .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.footer { background: var(--ink); color: #c4ced3; font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 24px; padding-bottom: 24px; }
.footer a { color: var(--cyan); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }

@media (max-width: 1000px) {
  .hero, .two-col, .compass-grid, .proof { grid-template-columns: 1fr; }
  .lede, .about-lede { max-width: 52ch; }
  .compass-id img { max-width: 360px; }
}

@media (max-width: 760px) {
  .header-inner { position: relative; }
  .menu-btn { display: inline-flex; align-items: center; }
  nav ul { display: none; }
  nav ul.is-open {
    display: grid; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid #222; padding: 8px var(--gutter) 16px;
  }
  nav ul.is-open a { padding: 0; min-height: 48px; font-size: 1.0625rem; }
  .steps, .fits, .lines > div, .lines dd { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .steps { margin-top: 32px; }
  .hero { padding-top: 32px; gap: 32px; }
  .questions {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 0 calc(-1 * clamp(20px, 2.4vw, 32px)); padding: 2px clamp(20px, 2.4vw, 32px) 6px;
    scrollbar-width: none;
  }
  .questions::-webkit-scrollbar { display: none; }
  .questions { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .questions { scroll-padding-inline: clamp(20px, 2.4vw, 32px); }
  .questions button { flex: none; white-space: nowrap; scroll-snap-align: start; }
  .swipe-hint { display: block; margin-bottom: -8px; font-size: 0.875rem; color: var(--steel); }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 2.25rem; }
  .lede { font-size: 1.125rem; }
  .hero-copy { gap: 22px; }
  .header-inner { height: 64px; gap: 10px; }
  nav { gap: 6px; }
  .menu-btn { padding: 0 12px; font-size: 0.9375rem; }
  .header .btn-cyan { padding: 0 14px; font-size: 0.9375rem; }
  .brand, .brand img { width: 128px; }
  .brand { height: 44px; }
  .brand img { margin-top: -10px; }
  .scraps { gap: 10px; }
  .scraps li { padding: 10px 12px; font-size: 0.875rem; }
  .record dl > div { grid-template-columns: 1fr; gap: 2px; }
  .record-screen { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .record-screen img { height: 72px; }
  .field-pair { grid-template-columns: 1fr; }
  .view-switch { justify-self: stretch; }
  .sm-hide { display: none; }
  .phone-only { display: inline; }
  .desk-only { display: none; }
  .hero { gap: 24px; }
  .hero-actions .text-link { display: none; }
  .next-q { justify-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board.is-switching .record, .board.is-switching .scraps li { animation: none !important; }
  .btn, .faq summary::after, .scraps li { transition: none; }
}

/* Diagnostic page */
.diag { max-width: 880px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 120px); }
.diag h1 { margin-top: 20px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.diag-lede { margin-top: 16px; max-width: 34em; font: 600 clamp(1.25rem, 2.2vw, 1.5rem)/1.4 var(--display); }
.diag-facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
.diag-facts > div { padding: 20px 24px 22px 0; }
.diag-facts > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.diag-facts dt { font-size: 0.9375rem; color: var(--steel); }
.diag-facts dd { margin: 6px 0 0; font: 700 1.25rem/1.3 var(--display); }
.diag section { margin-top: clamp(48px, 6vw, 72px); }
.diag h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.diag h3 { font: 700 1.1875rem/1.3 var(--display); }
.diag-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: dstep; display: grid; gap: 0; }
.diag-steps li { counter-increment: dstep; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.diag-steps li::before { content: counter(dstep); grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 1rem/36px var(--display); text-align: center; }
.diag-steps p { grid-column: 2; margin: 0; color: var(--steel); max-width: 60ch; }
.diag-note { margin-top: 10px; color: var(--steel); }
.diag-two { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.diag-two > div { padding-top: 16px; border-top: 3px solid var(--ink); }
.diag-two ul, .diag-list { list-style: none; margin: 12px 0 0; padding: 0; }
.diag-two li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--steel); }
.diag-list { margin-top: 20px; }
.diag-list li { padding: 14px 0; border-top: 1px solid var(--rule); max-width: 66ch; color: var(--steel); }
.diag-list strong { font-family: var(--display); color: var(--ink); }
.step-link { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem var(--display); color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .diag-facts { grid-template-columns: 1fr; }
  .diag-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .diag-two { grid-template-columns: 1fr; }
}
