/* Done For You Office: site styles.
   Brand: Zero Missed design, Dispatch colors. Dark for heroes, header and footer;
   light for reading sections. Tokens match canvas boards 5 (dark) and 6 (light). */

/* Fonts are self-hosted (Latin subset only), so nothing blocks the first paint on
   a call to Google. The fallback is Arial resized to Schibsted Grotesk's proportions,
   so text barely moves when the real font arrives. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-v7-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-v20-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 105.2%;
  ascent-override: 92.8%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}

:root {
  /* dark */
  --midnight: #08162B;
  --navy: #0E2240;
  --rule-dark: #22385A;
  --text-on-dark: #EAF0F7;
  --body-on-dark: #C3CFE0;
  --muted-on-dark: #9FB0C8;
  /* light */
  --white: #FFFFFF;
  --paper: #F3F5F8;
  --ink: #0E2240;
  --body: #33445E;
  --muted: #52627A;
  --rule: #D6DCE5;
  /* accent */
  --signal: #22C55E;
  --button-green: #15803D;
  --button-green-hover: #116A33;
  --signal-tint: #EAF6EE;
  --signal-ink: #0E5A2B;
  --signal-hover: #4ADE80;
  --focus-glow: rgba(34, 197, 94, 0.35);
  /* the "0" badge (logo, phone panel, promise callout) */
  --zero-bg: var(--signal);
  --zero-ink: var(--midnight);
  /* type */
  --font-sans: 'Schibsted Grotesk', 'Schibsted Fallback', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-small: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img, svg, iframe { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--button-green); }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--button-green); outline-offset: 3px; border-radius: 4px; }
/* The bright green ring is too faint on white (2.3:1), so light areas use the darker green
   and dark areas keep the bright one. */
.site-header :focus-visible, .site-footer :focus-visible, .section--dark :focus-visible, .section--navy :focus-visible,
.card--dark :focus-visible, .result-card :focus-visible, .post-cta :focus-visible { outline-color: var(--signal); }
.section--dark .calc-card :focus-visible { outline-color: var(--button-green); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
#main:focus { outline: none; }

.eyebrow, .tagline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.lead { font-size: 21px; color: var(--body); max-width: 720px; }
.muted { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--midnight); color: var(--text-on-dark); }
.section--navy { background: var(--navy); color: var(--text-on-dark); }
.section--dark .lead, .section--navy .lead, .section--dark p, .section--navy p { color: var(--body-on-dark); }
.section--dark .eyebrow, .section--navy .eyebrow { color: var(--muted-on-dark); }
.section--dark a:not(.btn), .section--navy a:not(.btn) { color: var(--text-on-dark); }
.section-head { margin-bottom: 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-size: 18px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--button-green); color: var(--white); }
.btn--primary:hover { background: var(--button-green-hover); color: var(--white); }
.section--dark .btn--primary, .section--navy .btn--primary { background: var(--signal); color: var(--midnight); }
.section--dark .btn--primary:hover, .section--navy .btn--primary:hover { background: var(--signal-hover); color: var(--midnight); }
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--midnight); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--outline, .section--navy .btn--outline { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.btn--light { background: var(--text-on-dark); color: var(--midnight); }
.btn--light:hover { background: var(--white); color: var(--midnight); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 16px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.text-link { font-size: 17px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__mark {
  position: relative; width: 34px; height: 34px; border-radius: 9px;
  background: var(--text-on-dark); color: var(--midnight);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo__badge {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--zero-bg); color: var(--zero-ink); border: 2px solid var(--navy);
  font-size: 10px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.logo__word { font-weight: 900; font-size: 21px; letter-spacing: -0.03em; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--text-on-dark); border-bottom: 1px solid var(--rule-dark); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header .logo:hover { color: var(--text-on-dark); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text-on-dark); text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 0; white-space: nowrap; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--text-on-dark); width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }

/* The menu folds into the toggle below 1000px, where six items no longer fit on one line. */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy); border-bottom: 1px solid var(--rule-dark); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .site-nav .btn { margin-top: 16px; }
  .site-header__inner { position: static; }
}
/* The /get/ opt-in and the /audit/ landing page keep only the logo, so there's one thing to do on the page. */
.page-optin .site-nav, .page-optin .nav-toggle { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: var(--body-on-dark); padding: 56px 0 40px; font-size: 16px; }
.site-footer a { color: var(--text-on-dark); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: var(--text-on-dark); }
.site-footer .logo__badge { border-color: var(--midnight); }
.site-footer .tagline { color: var(--muted-on-dark); margin-top: 14px; font-size: 13px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__address { margin: 0; color: var(--muted-on-dark); white-space: pre-line; }
.site-footer__legal { margin: 12px 0 0; color: var(--muted-on-dark); font-size: 14px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
.hero h1 { color: var(--text-on-dark); max-width: 760px; }
.hero .lead { margin-bottom: 32px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }

/* ---------- blueprint grid ---------- */
/* A drafting grid that drifts slowly behind a dark section, with the square under the mouse
   lit in the accent color (site.js). Adapted from the 21st.dev "blueprint gradient mesh"
   without React or canvas: the grid is one CSS layer moved by transform, so it costs the
   phone almost nothing. Colors come from the tokens above, so it follows the palette.
   Use: add "blueprint" to a dark section's classes, and make
   <div class="blueprint__grid" aria-hidden="true"></div> its first child. */
.blueprint {
  --cell: 44px;
  --blueprint-line: color-mix(in srgb, var(--text-on-dark) 11%, transparent);
  --blueprint-spot: 50% 0%;
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--midnight);
  background-image: radial-gradient(circle 720px at var(--blueprint-spot), color-mix(in srgb, var(--rule-dark) 80%, transparent), transparent 70%);
}
.hero.blueprint { --blueprint-spot: 78% 50%; }
@media (max-width: 900px) { .hero.blueprint { --blueprint-spot: 50% 78%; } }
/* One cell bigger than the section, moved one cell diagonally, then repeated: the loop is seamless. */
.blueprint__grid {
  position: absolute; z-index: -1; top: calc(-1 * var(--cell)); left: calc(-1 * var(--cell)); right: 0; bottom: 0;
  background-image:
    linear-gradient(to right, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blueprint-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  animation: blueprint-drift 4s linear infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes blueprint-drift { to { transform: translate(var(--cell), var(--cell)); } }
/* Under the grid: fine grain, which keeps the glow from banding. Overlay lightens and darkens
   by the same amount, so the section stays the same color as the footer next to it. */
.blueprint::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.5;
}
/* Over the grid: darker edges, and a fade to solid at the bottom so the grid never ends on a hard line. */
.blueprint::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent 50%, var(--midnight)),
    radial-gradient(circle farthest-corner, transparent 30%, color-mix(in srgb, var(--midnight) 60%, transparent));
}
.blueprint__cell {
  position: absolute; top: 0; left: 0; width: calc(var(--cell) + 1px); height: calc(var(--cell) + 1px);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)),
    linear-gradient(color-mix(in srgb, var(--signal) 22%, transparent), color-mix(in srgb, var(--signal) 22%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 85%, transparent), 0 0 18px color-mix(in srgb, var(--signal) 45%, transparent);
  opacity: 0; transition: opacity 900ms ease;
}
.blueprint__cell.is-lit { opacity: 1; transition-duration: 100ms; }
/* The reduced-motion rule above shortens animations rather than stopping them, which would make the grid jitter. */
@media (prefers-reduced-motion: reduce) { .blueprint__grid { animation: none; } }

/* phone recents panel */
.phone-panel {
  width: 100%; max-width: 300px; margin: 0 auto;
  background: var(--midnight); border: 1px solid var(--rule-dark); border-radius: 36px;
  padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; color: var(--text-on-dark);
}
.phone-panel__title { font-size: 14px; color: var(--muted-on-dark); margin-bottom: 8px; }
.phone-panel__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule-dark); font-size: 17px; }
.phone-panel__row span:last-child { color: var(--muted-on-dark); }
.badge-zero {
  width: 32px; height: 32px; border-radius: 50%; background: var(--zero-bg); color: var(--zero-ink) !important;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.section--paper .card { border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--body); }
.card--link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: border-color 150ms ease; }
.card--link:hover { color: var(--ink); border-color: var(--button-green); }
.card--link:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card--link .resource-card__more { margin-top: auto; padding-top: 8px; }
.card--dark { background: var(--navy); border-color: var(--rule-dark); color: var(--text-on-dark); }
.card--dark p { color: var(--body-on-dark); }

.scene { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.scene__num { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story__quote { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 24px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 20px; }
.steps strong { display: block; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.steps span { color: var(--body); font-size: 16px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.how { counter-reset: how; list-style: none; padding: 0; margin: 0; }
.how li { counter-increment: how; }
.how li::before { content: counter(how); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; margin-bottom: 16px; }

.callout { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--signal-tint); color: var(--signal-ink); font-weight: 600; }

.fit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fit-list li { padding-left: 32px; position: relative; color: var(--body); }
.fit-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--signal); }
.fit-list--no li::before { background: var(--rule); }

.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.office { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.office h3 { margin: 0; font-size: 22px; }
.office p { margin: 0; color: var(--body); font-size: 16px; }
.office--live { border: 2px solid var(--button-green); }
.status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.status--live { color: var(--signal-ink); }
.status--live::before { background: var(--signal); }
@media (max-width: 960px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--body); padding-bottom: 22px; margin: 0; max-width: 760px; }

.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }
/* Founding clients: a navy card, so it stands apart from the sections around it */
.founding { background: var(--navy); color: var(--text-on-dark); border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.founding .eyebrow { color: var(--signal); }
.founding h2 { color: var(--white); max-width: 780px; margin-left: auto; margin-right: auto; }
.founding .lead { color: var(--body-on-dark); margin: 0 auto 32px; }
.founding__perks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.founding__perks li { background: var(--midnight); border: 1px solid var(--rule-dark); border-radius: var(--radius-small); padding: 22px; color: var(--body-on-dark); font-size: 16px; }
.founding__perks strong { display: block; color: var(--text-on-dark); font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.founding__ask { color: var(--body-on-dark); margin: 0 auto 24px; max-width: 640px; }
.founding .btn--primary { background: var(--signal); color: var(--midnight); }
.founding .btn--primary:hover { background: var(--signal-hover); color: var(--midnight); }
.founding :focus-visible { outline-color: var(--signal); }
@media (max-width: 860px) { .founding__perks { grid-template-columns: 1fr; } }

/* Proof strip under the home hero: Brian's approved figures */
.proof { padding: 44px 0; }
.proof .eyebrow { margin-bottom: 20px; }
.proof-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proof-strip li { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--signal); padding-left: 16px; }
.proof-strip strong { font-size: clamp(34px, 4vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.proof-strip span { color: var(--body); font-size: 16px; }
@media (max-width: 760px) { .proof-strip { grid-template-columns: 1fr; gap: 18px; } }

/* Missed Job Fix price cards and the guarantee */
.offer-grid { margin-bottom: 24px; }
.offer { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.section--paper .offer { border-color: transparent; }
.offer--best, .section--paper .offer--best { border: 2px solid var(--button-green); }
.offer p { margin: 0; color: var(--body); }
.offer__price { font-size: clamp(40px, 5vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.offer p.offer__price { color: var(--ink); }
.offer__price span { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.guarantee { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--signal-tint); color: var(--signal-ink); }
.guarantee .badge-zero { flex: none; }
.guarantee p { margin: 0 0 8px; color: var(--signal-ink); max-width: 860px; }
.guarantee__title { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.guarantee p.guarantee__terms { font-size: 14px; margin-bottom: 0; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-small);
  border: 1.5px solid var(--rule); background: var(--white); color: var(--ink);
  font-family: var(--font-sans); font-size: 18px;
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--focus-glow); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--body); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--button-green); flex-shrink: 0; }
.fine-print { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-error { color: #B42318; font-weight: 600; font-size: 16px; }
.hp-field { position: absolute; left: -9999px; }
.input--area { min-height: 120px; resize: vertical; line-height: 1.5; }
/* A group of .option buttons inside a form (the workshop RSVP). */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.choices legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 10px; }
.choices .hint { font-size: 14px; color: var(--muted); margin: -6px 0 4px; }
.hero__note { margin: 20px 0 0; color: var(--muted-on-dark); font-size: 16px; max-width: 560px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-card { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; color: var(--ink); }
/* A white form card inside a dark hero (the /get/ opt-in) keeps light-section text colors. */
.section--dark .calc-card p { color: var(--body); }
.section--dark .calc-card .eyebrow, .section--dark .calc-card .fine-print { color: var(--muted); }
.section--dark .calc-card a:not(.btn) { color: var(--ink); }
.calc-progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calc-progress__bar { height: 6px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.calc-progress__fill { height: 100%; width: 0; background: var(--button-green); transition: width 200ms ease; }
.calc-step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.calc-step legend { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 18px; padding: 0; }
.js .calc-step { display: none; margin: 0; }
.js .calc-step.is-active { display: block; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; min-height: 56px; padding: 14px 18px; border-radius: var(--radius-small);
  border: 1.5px solid var(--rule); font-weight: 600; font-size: 17px; background: var(--white);
}
.option input:hover + span { border-color: var(--muted); }
.option input:checked + span { border-color: var(--button-green); background: var(--signal-tint); box-shadow: inset 0 0 0 1px var(--button-green); }
.option input:focus-visible + span { outline: 3px solid var(--button-green); outline-offset: 2px; }
.calc-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.link-button { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 16px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }

.calc-aside { display: flex; flex-direction: column; gap: 20px; }
.calc-aside .phone-panel { max-width: 320px; }

.result { display: none; scroll-margin-top: 96px; }
.result.is-visible { display: block; }
.result-card { background: var(--navy); color: var(--text-on-dark); border-radius: 20px; padding: 36px; }
.result-card .eyebrow { color: var(--muted-on-dark); }
.result-card__number { font-size: clamp(44px, 7vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 10px; }
.result-card__sub { font-size: 20px; color: var(--body-on-dark); margin-bottom: 20px; }
.result-math { font-family: var(--font-mono); font-size: 14px; color: var(--muted-on-dark); border-top: 1px solid var(--rule-dark); padding-top: 18px; line-height: 1.7; }
.result-note { margin-top: 14px; color: var(--text-on-dark); font-weight: 600; }
/* The offer on the result screen, built from their answers */
.result-offer { background: var(--white); border: 2px solid var(--button-green); border-radius: var(--radius); padding: 28px; margin-bottom: 40px; }
.result-offer h2 { margin-bottom: 16px; }
.result-offer .checklist { margin: 0 0 18px; }
.result-offer__price { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.result-offer__terms { color: var(--signal-ink); font-weight: 600; margin: 0; }
.result-offer__diy { color: var(--body); margin: 14px 0 0; }
.booking { margin-top: 32px; }
/* Calendly's iframe is height:100% of this box, so the box needs a real height (not min-height).
   With resize on, Calendly then sets the height to fit each step. */
.booking__frame { height: 700px; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--rule); transition: height .2s ease; }
.booking__frame iframe { display: block; }
@media (max-width: 700px) { .booking__frame { height: 1000px; } }
.booking__loading { padding: 28px; color: var(--muted); }
.booking__frame--link { height: auto !important; padding: 28px; }
.booking__frame--link p { margin-top: 0; }
.booking__fallback { padding: 28px; border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--paper); }

/* ---------- resources ---------- */
.resource-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 32px; }
.resource-tools .input { max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.resource-card[hidden] { display: none; }
.resource-card__link { display: flex; flex-direction: column; gap: 8px; padding: 26px; height: 100%; text-decoration: none; color: var(--ink); }
.resource-card__link:hover { color: var(--ink); }
.resource-card__link:hover .resource-card__title { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.resource-card .eyebrow { margin: 0; font-size: 12px; }
.resource-card__title { font-size: 22px; margin: 0; }
.resource-card__desc { color: var(--body); font-size: 16px; margin: 0; flex-grow: 1; }
.resource-card__more { font-weight: 700; font-size: 15px; color: var(--button-green); }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: var(--radius); }

.welcome-banner { display: none; }
.welcome-banner.is-visible { display: flex; }

.post { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .post { grid-template-columns: 1fr; } }
.post__body h2 { font-size: 30px; margin-top: 40px; }
.post__body p, .post__body li { color: var(--body); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); margin-bottom: 32px; }
.result-video { margin-top: 32px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* YouTube loads only when someone presses play (about 1 MB saved per post page). */
.video__facade { position: absolute; inset: 0; display: block; color: var(--white); cursor: pointer; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(8, 22, 43, 0.85); display: flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.video__facade:hover .video__play, .video__facade:focus-visible .video__play { background: #CC0000; }
.video__facade:focus-visible { outline-offset: -6px; outline-color: var(--signal); }
.video--pending { display: flex; align-items: center; justify-content: center; color: var(--muted-on-dark); }
.video--pending p { margin: 0; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.checklist { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--signal); }
.download-box { position: sticky; top: 96px; background: var(--paper); border-radius: var(--radius); padding: 28px; }
.download-box h2 { font-size: 24px; margin-bottom: 10px; }
.download-box__locked[hidden], .download-box__unlocked[hidden] { display: none; }
.post-cta { margin-top: 48px; padding: 32px; border-radius: var(--radius); background: var(--navy); color: var(--text-on-dark); }
.post-cta h2 { margin-top: 0; font-size: 28px; }
.post-cta p { color: var(--body-on-dark); }
.post-cta .btn--primary { background: var(--signal); color: var(--midnight); }
.post-cta .btn--outline { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.post-cta .btn--outline:hover { background: var(--text-on-dark); color: var(--midnight); }

/* ---------- prose (legal, about) ---------- */
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 22px; }

.breadcrumb { font-size: 15px; margin-bottom: 20px; }
.breadcrumb a { color: var(--muted-on-dark); }

.page-hero { padding: 64px 0 72px; }
.page-hero h1 { max-width: 880px; }

/* Opt-in: Brian's YouTube photo and handle, for continuity from the video */
.byline { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.byline__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--rule-dark); }
.byline__name { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--text-on-dark); }
.byline__handle { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted-on-dark); }

/* Opt-in: hide the generic list when someone came for one freebie */
.fit-list[hidden] { display: none; }
.already-in { color: var(--body); font-size: 16px; }
.already-in a { font-weight: 700; }
.already-in[hidden] { display: none; }

/* Downloads page (soft-gated) */
.gate { max-width: 640px; }
.gate h2 { margin-top: 0; }
[data-gate][hidden] { display: none; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .download-grid { grid-template-columns: 1fr; } }
.download-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.download-card .eyebrow { margin: 0; font-size: 12px; }
.download-card__title { font-size: 22px; margin: 0; }
.download-card__desc { color: var(--body); font-size: 16px; margin: 0; flex-grow: 1; }
.download-card .btn-row { gap: 12px 20px; margin-top: 8px; }
.download-card__flag { margin: 0; font-weight: 700; font-size: 14px; color: var(--signal-ink); }
.download-card__flag[hidden] { display: none; }
.download-card.is-featured { border: 2px solid var(--signal); background: var(--signal-tint); }

/* ---------- pictures: icons, the missed-calls stack, the 30% stat ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--signal-tint); color: var(--signal-ink); flex: none; }
.icon-chip--muted { background: var(--paper); color: var(--ink); }
.section--paper .icon-chip--muted { background: var(--white); }

.scene { display: flex; flex-direction: column; gap: 14px; }
.scene .icon-chip { margin-bottom: 2px; }
.scene__num { margin-bottom: 0; }

/* Lock-screen style "missed call" notifications for the "Sound familiar?" section */
.familiar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; margin-bottom: 40px; }
.familiar .section-head { margin-bottom: 0; }
.notifs { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 28px; background: var(--midnight); }
.notif { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--navy); border: 1px solid var(--rule-dark); color: var(--text-on-dark); font-size: 16px; line-height: 1.3; }
.notif__icon { width: 38px; height: 38px; border-radius: 50%; background: #D92D20; color: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.notif__icon .icon { width: 20px; height: 20px; }
.notif strong { display: block; font-weight: 700; }
.notif span { color: var(--muted-on-dark); font-size: 14px; }
.notif time { margin-left: auto; align-self: flex-start; color: var(--muted-on-dark); font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) { .familiar { grid-template-columns: 1fr; gap: 28px; } }

/* The story: Brian's photo and the 30% number, then the why */
.story__who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.story__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.story__who p { margin: 0; }
.story__name { font-weight: 700; }
.stat { margin: 0; }
.stat__num { display: block; font-size: clamp(88px, 12vw, 128px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; color: var(--ink); }
.stat__num small { font-size: 0.28em; letter-spacing: -0.02em; font-weight: 800; vertical-align: 0.9em; margin-right: 6px; }
.stat__label { display: block; margin-top: 14px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; max-width: 520px; }

/* Steps get an icon each */
.steps li .icon-chip { margin-bottom: 16px; }

/* ---------- mobile pass (Brian's 10/14 notes) ---------- */
/* No single words left on their own line under a headline. */
h1, h2, h3, .scene, .stat__label, .story__quote, .result-card__number, .btn { text-wrap: balance; }
p, li, .lead { text-wrap: pretty; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
  h2 { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
  h3 { font-size: 21px; }
  p { margin-bottom: 18px; }
  .lead { font-size: 19px; line-height: 1.5; }
  .eyebrow, .tagline { font-size: 12px; letter-spacing: 0.1em; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 44px 0 64px; }
  .hero__grid { gap: 44px; }
  .page-hero { padding: 44px 0 56px; }
  .card { padding: 24px 22px; }
  .grid { gap: 18px; }

  /* Main buttons go full width: easier to hit with a thumb */
  .hero .btn-row, .cta-band .btn-row, .page-hero .btn-row, .founding .btn-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero .btn-row .text-link { text-align: center; padding: 6px 0; }
  .cta-band .btn, .founding .btn { width: 100%; }

  /* Steps: a simple list with icons instead of five boxes */
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; background: none; border: 0; border-radius: 0; padding: 18px 0; border-top: 1px solid var(--rule); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .steps li .icon-chip { grid-row: span 2; margin-bottom: 0; }
  .steps strong { margin-bottom: 2px; }

  /* Scenes: icon beside the text, less box */
  .scene { flex-direction: row; align-items: flex-start; font-size: 21px; }
  .scene__num { display: none; }

  .notifs { padding: 14px; border-radius: 22px; }
  .notif { font-size: 15px; padding: 12px 14px; }

  .story { gap: 28px; }
  .founding { padding: 36px 22px; }
  .guarantee { padding: 20px 18px; }
  .stat__num { font-size: 96px; }
  .stat__label { font-size: 22px; }

  .callout { align-items: flex-start; }
  /* Two plain text columns (e.g. "Who it's for" / "Who it's not for") need more room once stacked */
  .grid > div:not([class]) + div:not([class]) { margin-top: 28px; }
  .offices { gap: 12px; }
  .office { padding: 20px; }
  .faq summary { font-size: 18px; padding: 18px 40px 18px 0; }
  .faq summary::after { top: 14px; }
}

