/* Fonts: self-hosted IBM Plex, latin subset. Sans is variable (400-700). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }

/* Client Convert — site styles. Tokens and components come from style-guide/index.html (v1, approved 2026-10-27). */

:root {
  /* Surfaces */
  --bg: #FAF8F4;
  --bg-alt: #F2EFE8;
  --surface: #FFFFFF;
  --line: #E3DED3;

  /* Ink */
  --ink: #131A24;
  --ink-2: #3A4452;
  --muted: #5E6875;
  --navy: #0F2B46;
  --navy-2: #173A5C;

  /* Logo colors */
  --blue: #2D83CC;
  --blue-ink: #1F67A8;   /* links */
  --blue-hover: #18548A;
  --blue-soft: #E6F0F9;
  --sky: #69C3EB;
  --teal: #5CE0E6;       /* on navy only */
  --purple: #93339C;     /* wordmark only */

  /* Buttons: deep blue, navy on hover */
  --btn: #18548A;
  --btn-hover: var(--navy);

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-heading: var(--font-sans);

  --wrap: 1160px;
  --radius: 6px;
  --section: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 60ch; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.small { font-size: .9rem; color: var(--muted); }
.measure { max-width: 64ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--font-sans); padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; padding: 10px 16px; font-size: .95rem; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-link { padding: 14px 4px; color: var(--blue-ink); background: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(250,248,244,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.site-header nav { display: flex; gap: 28px; align-items: center; font-size: .95rem; }
.site-header nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.site-header nav a:not(.btn):hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: var(--purple); letter-spacing: -0.02em; line-height: 1; }

/* Sections */
.section { padding: var(--section) 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding: 80px 0 96px; }
.hero > * { min-width: 0; }
.promise { margin: 28px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--btn); font-size: 1.15rem; font-weight: 600; color: var(--ink); max-width: 52ch; }
.hero .row { margin-top: 28px; }
.hero .small { margin-top: 14px; }

/* Exhibit */
.exhibit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.exhibit .ex-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.exhibit .ex-head { font-size: 1.35rem; line-height: 1.25; color: var(--ink); margin: 0 0 20px; text-wrap: balance; }
.ex-math { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ex-side { display: grid; gap: 6px; min-width: 0; }
.ex-side b { font-family: var(--font-mono); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-side span:not(.dot) { font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.ex-eq { font-family: var(--font-mono); font-size: 1.6rem; color: var(--muted); padding-top: 30px; }
.dots { display: flex; gap: 6px; height: 16px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.dot.lost { background: transparent; border: 2px dashed var(--muted); }
.exhibit .ex-note { margin: 16px 0 0; font-size: .95rem; color: var(--ink-2); }
.exhibit .foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.exhibit .foot b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

/* Question list */
.qlist { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.qlist li { padding: 14px 0 14px 36px; border-top: 1px solid var(--line); position: relative; color: var(--ink); }
.qlist li::before { content: "?"; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--blue-ink); color: var(--blue-ink); font: 600 .8rem/20px var(--font-mono); text-align: center; }

/* Alternatives (why fixes miss) */
.alts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.alts > div { background: var(--surface); padding: 28px; }
.alts h3 { margin-bottom: 6px; }
.alts p { margin: 0; font-size: .98rem; }
.after { margin-top: 32px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* Three checks */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.three > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.three b { display: block; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 6px; }
.three p { margin: 0; font-size: .96rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--surface); padding: 28px; }
.card .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: .98rem; margin: 0 0 10px; }
.card .fix { font-size: .95rem; color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); margin: 0; }
.cards + .row { margin-top: 28px; }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.trio h3 { margin-bottom: 8px; }
.trio p { margin: 0; font-size: 1rem; }

/* Phase rows */
.phase { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.phase .sub { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.phase h3 { margin-bottom: 8px; }
.phase p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg); }

/* Navy band */
.band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 64px; }
.band h2 { color: #fff; }
.band p { color: #C9D5E1; }
.band .eyebrow { color: var(--teal); }
.band .pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--navy-2); }
.band .pts b { display: block; color: #fff; margin-bottom: 4px; }
.band .pts span { color: #A9B8C7; font-size: .95rem; }
.band .small { color: #A9B8C7; margin: 14px 0 0; }

/* Fit list + founder */
.fit-list { list-style: none; padding: 0; margin: 0 0 24px; }
.fit-list li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative; color: var(--ink); }
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-list li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 12px; height: 7px; border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg); }
.founder { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.founder .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; font: 600 1.6rem var(--font-sans); color: var(--navy); letter-spacing: -0.02em; object-fit: cover; object-position: center 30%; }
.founder h3 { margin-bottom: 2px; }
.founder .role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.founder p { margin: 0; }

/* Steps (offer) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 600 1.05rem var(--font-mono); color: var(--blue-ink); }
.steps b { display: block; color: var(--ink); margin-bottom: 2px; }
.steps p { margin: 0; }
.keep { margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.keep h3 { font-size: 1.05rem; }
.keep ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.keep li { margin-bottom: 4px; }

/* Services */
.stage { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); }
.stage:last-of-type { border-bottom: 1px solid var(--line); }
.stage > * { min-width: 0; }
.stage .num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.stage .sub { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.system + .system { margin-top: 32px; padding-top: 32px; border-top: 1px dashed var(--line); }
.system h3 { margin-bottom: 8px; }
.system p { max-width: 64ch; }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.terms-grid > div { background: var(--surface); padding: 28px; }
.terms-grid .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; }
.terms-grid p { margin: 0; font-size: .98rem; }
.niche { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.niche p { margin: 0; }

/* Book */
.book-hero { padding: 64px 0 24px; }
.book-hero .jump { display: none; margin-top: 20px; }
.cal { scroll-margin-top: 88px; }
.book { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; padding-bottom: 80px; }
.book > * { min-width: 0; }
.cal { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal .cal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.cal .placeholder { padding: 48px 28px; min-height: 420px; display: grid; place-content: center; text-align: center; gap: 10px; }
.cal .placeholder p { margin: 0; }
.get { list-style: none; padding: 0; margin: 0; }
.get li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.get li:last-child { border-bottom: 1px solid var(--line); }
.get .n { font: 600 1.05rem var(--font-mono); color: var(--blue-ink); }
.get b { display: block; color: var(--ink); margin-bottom: 4px; }
.get p { margin: 0; font-size: .98rem; }
.label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.either { margin-top: 36px; }
.either ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.either li { margin-bottom: 10px; }
.disclose { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--btn); background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.disclose p { margin: 0; color: var(--ink); }

/* Legal */
.legal { padding: 72px 0 104px; }
.legal .body { max-width: 72ch; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { color: var(--ink-2); padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.contact-block { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-block p { margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .92rem; color: var(--muted); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .top > * { min-width: 0; }
.site-footer p { color: var(--muted); margin: 0 0 6px; }
.site-footer .foot-label { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .tagline { margin-top: 12px; max-width: 34ch; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 960px) {
  :root { --section: 72px; }
  .hero, .two-col, .book { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 72px; }
  .cards, .terms-grid, .trio, .three { grid-template-columns: 1fr; }
  .trio { gap: 28px; }
  .cal { position: static; }
  .book-hero .jump { display: flex; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .alts, .qlist { grid-template-columns: 1fr; }
  .phase, .stage { grid-template-columns: 1fr; gap: 10px; }
  .band { padding: 40px 24px; }
  .band .pts { grid-template-columns: 1fr; }
  .site-header nav .nav-text { display: none; }
  .founder { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .wordmark { font-size: 1.15rem; }
  .btn-outline { padding: 9px 12px; font-size: .88rem; }
  .site-footer .top { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--btn); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover h3 { color: var(--btn); }
.faq-item summary:focus-visible { outline: 2px solid var(--btn); outline-offset: 4px; }
.faq-item p { margin: 0 0 22px; max-width: 68ch; color: var(--ink-2); }
.faq-item ul { margin: -8px 0 22px; padding-left: 22px; max-width: 66ch; color: var(--ink-2); }
.faq-item li { margin-bottom: 6px; }

/* Questions card at the bottom of Home */
.q-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 28px; background: var(--blue-soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.q-card b { color: var(--ink); }
.q-card .go { color: var(--blue-ink); font-weight: 600; white-space: nowrap; }
.q-card:hover .go { color: var(--blue-hover); }
