/* cofounders.coach. Palette: ocean ink, sand and sea glass. Accent is reserved for buttons and a few highlights.
   Type: Geist for headlines and body, Geist Mono for labels and numbers. */
:root {
  --ink: #0e2f35;        /* ocean ink: text and dark bands */
  --ink-2: #16434b;      /* raised surface on dark bands */
  --sand: #f3efe7;       /* page background */
  --paper: #fbf9f5;      /* cards and light bands */
  --muted: #5f6f70;      /* driftwood: secondary text */
  --line: #e1dacd;
  --glass: #2fb5a0;      /* sea glass: buttons */
  --glass-hover: #43c4b0;
  --glass-deep: #1c7d6f; /* sea glass dark enough for text on sand */
  --glass-soft: #dcefe9;
  --on-dark: #e9f1ef;
  --on-dark-muted: #a9c2c1;
  --warn: #b5532f;
  --warn-soft: #f6e4da;
  --good: #1c7d6f;
  --logo-cut: var(--paper);
  --display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.035em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h2.sm { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.025em; }
h3 { font-size: clamp(21px, 2.1vw, 25px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 650; }
p { margin: 0 0 18px; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; color: var(--glass-deep); margin-bottom: 18px; display: block; }
.dark .eyebrow { color: var(--glass); }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; max-width: 640px; }
.muted { color: var(--muted); }
.accent { color: var(--glass-deep); }
.mono { font-family: var(--mono); }

/* Buttons: the only place the accent appears at full strength */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--glass); color: var(--ink); }
.btn-primary:hover { background: var(--glass-hover); }
.btn-ghost { border-color: rgba(14, 47, 53, 0.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: rgba(233, 241, 239, 0.4); color: var(--on-dark); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
.dark .fine { color: var(--on-dark-muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(243, 239, 231, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--glass-deep); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--glass-deep); }
.nav-links .btn { padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; padding: 8px; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--sand); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav-links.open { display: flex; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 116px) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.light { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 20px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 5.6vw, 80px); }
.hero .lead { margin-top: 26px; }
.hook { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--glass); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 17px; max-width: 600px; }
.hero-photo { position: relative; }
.hero-photo img, .hero-photo .ph-img { border-radius: var(--radius); aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { max-width: 440px; } }

/* Moving logo bar */
.logos { padding: 30px 0 34px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 52px; padding-right: 52px; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #4c5d60; height: 34px; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo svg { height: 26px; width: auto; display: block; }
.logo.icon svg { height: 24px; width: 24px; }
.logo.wide svg { height: 22px; }
.logo.tall svg { height: 32px; }
.logo.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Problem */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.moment { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; font-size: 19px; line-height: 1.5; }
@media (max-width: 720px) { .moments { grid-template-columns: 1fr; } }
.belief { margin-top: 64px; max-width: 900px; }
.belief h2 { font-size: clamp(30px, 3.8vw, 46px); }

/* Proof */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: var(--ink-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.case .stage { font-family: var(--mono); font-size: 12px; color: var(--glass); letter-spacing: 0.04em; }
.case h3 { color: var(--on-dark); }
.case p { color: var(--on-dark-muted); font-size: 16px; margin: 0; }
.case .num { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: -0.04em; line-height: 1; color: var(--on-dark); }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.quote { border: 1px solid rgba(233, 241, 239, 0.16); border-radius: var(--radius); padding: 28px; }
.quote p { font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--on-dark); }
.quote .who { font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); margin: 0; font-weight: 400; }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }
.travel { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; color: var(--on-dark); font-size: 19px; max-width: 860px; }
.travel .mono { color: var(--glass); font-size: 13px; padding-top: 4px; }
@media (max-width: 640px) { .travel { grid-template-columns: 1fr; gap: 6px; } }
.cred-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.cred-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.cred-list li::before { content: ""; width: 8px; height: 8px; background: var(--glass); border-radius: 50%; margin-top: 11px; }

/* Plan */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px 28px 32px; border: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--glass-deep); display: block; margin-bottom: 20px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* In practice strip */
.practice { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.practice div { padding: 22px 24px; border-right: 1px solid var(--line); }
.practice div:last-child { border-right: 0; }
.practice .k { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.practice b { font-weight: 600; font-size: 17px; line-height: 1.35; display: block; }
@media (max-width: 880px) { .practice { grid-template-columns: 1fr 1fr; } .practice div:nth-child(2) { border-right: 0; } .practice div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .practice { grid-template-columns: 1fr; } .practice div { border-right: 0; border-bottom: 1px solid var(--line); } .practice div:last-child { border-bottom: 0; } }

/* Diagnostic promo */
.diag-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type { background: var(--ink-2); border-radius: 12px; padding: 20px; }
.type h4 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
.type p { font-size: 15px; margin: 0; color: var(--on-dark-muted); }
.type .tag { font-family: var(--mono); font-size: 11px; display: inline-block; margin-bottom: 10px; color: var(--glass); }
.type.warn .tag { color: #f0a283; }
@media (max-width: 880px) { .diag-promo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }

/* Stakes */
.stakes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stake { border-radius: var(--radius); padding: 34px 32px; }
.stake.fail { background: var(--paper); border: 1px solid var(--line); }
.stake.win { background: var(--glass-soft); }
.stake h3 { margin-bottom: 20px; }
.stake ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.stake li { padding-left: 26px; position: relative; }
.stake.fail li::before { content: "×"; position: absolute; left: 0; top: -1px; font-weight: 700; color: var(--warn); font-size: 20px; }
.stake.win li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--glass-deep); }
@media (max-width: 880px) { .stakes { grid-template-columns: 1fr; } }

/* Guild note (small, secondary) */
.guild-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; background: var(--paper); }
.guild-note p { margin: 0; max-width: 720px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 860px; margin: 0 auto; }
.cta-band .lead { margin: 22px auto 0; }
.cta-band .btn-row { justify-content: center; }

/* Generic blocks */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 19px; }
.prose h3 { margin: 32px 0 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; margin: 0; }
.dark .card { background: var(--ink-2); border-color: transparent; }
.dark .card h3 { color: var(--on-dark); }
.dark .card p { color: var(--on-dark-muted); }
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--glass-deep); font-size: 26px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 760px; }

/* Placeholders: anything that still needs Jonah's input or a real asset */
.ph { outline: 2px dashed #d39b2a; outline-offset: 3px; }
.ph-note { display: inline-block; background: #fbecc4; color: #6b4b00; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 4px; vertical-align: middle; }
.ph-img { background: linear-gradient(160deg, #e6dfd2, #d9e7e3); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; color: var(--ink); aspect-ratio: 4 / 3; border: 2px dashed #d39b2a; }
.ph-img .mono { font-size: 12px; color: var(--glass-deep); }
.ph-img b { font-weight: 600; font-size: 17px; line-height: 1.35; }
body.hide-ph .ph { outline: none; }
body.hide-ph .ph-note { display: none; }

/* Footer */
footer { background: var(--ink); color: var(--on-dark-muted); padding: 60px 0 36px; font-size: 15px; }
footer .brand { color: var(--on-dark); }
footer .brand span { color: var(--glass); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer a { text-decoration: none; color: var(--on-dark); }
footer a:hover { color: var(--glass); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer h4 { color: var(--on-dark); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; margin-bottom: 14px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(233, 241, 239, 0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

/* Inner page hero */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 80px); max-width: 980px; }
.page-hero .lead { margin-top: 24px; }

:focus-visible { outline: 3px solid var(--glass-deep); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Diagnostic */
.diag { display: grid; gap: 18px; scroll-margin-top: 90px; }
.diag-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.diag-card.dark-card { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.diag-card.dark-card .muted, .diag-card.dark-card .fine { color: var(--on-dark-muted); }
.diag-card h3 { margin-bottom: 12px; }
.diag-invite { background: var(--glass-soft); border-radius: 12px; padding: 18px 22px; font-size: 17px; }
.diag-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.diag-input { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--sand); color: var(--ink); min-width: 0; }
.diag-input:focus { border-color: var(--glass-deep); outline: none; }
.diag-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.diag-progress span { display: block; height: 100%; background: var(--glass); transition: width .3s; }
.diag-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.diag-meta span:last-child { white-space: nowrap; }
.diag-q { font-size: clamp(23px, 2.8vw, 30px); margin-bottom: 16px; outline: none; }
.diag-opts { display: grid; gap: 10px; margin-top: 8px; }
.diag-opt { text-align: left; font: inherit; font-size: 17px; font-weight: 450; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--sand); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.diag-opt:hover { border-color: var(--glass-deep); }
.diag-opt[aria-pressed="true"] { border-color: var(--glass); background: var(--glass-soft); }
.diag-back { margin-top: 18px; background: none; border: 0; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; padding: 6px 0; }
.diag-score { margin-top: 22px; }
.diag-score-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.diag-score-top b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.diag-bar { height: 10px; background: var(--line); border-radius: 10px; overflow: hidden; }
.diag-bar span { display: block; height: 100%; background: var(--ink); border-radius: 10px; }
.diag-h { font-size: 18px; margin: 26px 0 10px; letter-spacing: -0.01em; }
.diag-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.diag-list.flag li::marker { color: var(--warn); }
.diag-flagbox { background: var(--warn-soft); border-radius: 12px; padding: 20px 22px; margin: 18px 0 6px; }
.diag-type { border-radius: 12px; padding: 24px; background: var(--sand); margin: 6px 0 10px; }
.diag-type h3 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.diag-type.good { background: var(--glass-soft); }
.diag-type.good h3 { color: var(--glass-deep); }
.diag-type.warn { background: var(--warn-soft); }
.diag-type.warn h3 { color: var(--warn); }
.diag-type p { margin: 0; font-size: 18px; }
.diag-copy { display: flex; gap: 10px; margin-top: 16px; }
.dark-card .diag-input { background: var(--ink-2); border-color: transparent; color: var(--on-dark); }
@media (max-width: 560px) { .diag-copy { flex-direction: column; } }
.diag-table-wrap { overflow-x: auto; }
.diag-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.diag-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.diag-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diag-tq { font-weight: 600; width: 34%; }
.diag-tm { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.diag-table tr.same .diag-tm { color: var(--good); }
.diag-table tr.diff .diag-tm, .diag-table tr.blind .diag-tm { color: var(--warn); }
@media (max-width: 640px) {
  .diag-table thead { display: none; }
  .diag-table, .diag-table tbody, .diag-table tr, .diag-table td { display: block; width: auto; }
  .diag-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .diag-table td { border: 0; padding: 3px 0; }
  .diag-table td[data-who]::before { content: attr(data-who) ": "; font-family: var(--mono); font-size: 12px; color: var(--muted); }
}
.diag-email { display: grid; gap: 10px; margin-top: 16px; }
.diag-email .row { display: flex; gap: 10px; }
@media (max-width: 560px) { .diag-email .row { flex-direction: column; } }
.diag-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.diag-check input { margin-top: 4px; accent-color: var(--glass-deep); }
.diag-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.diag-status.err { color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 880px) { .hero-photo { max-width: none; } }

.gallery { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; grid-auto-rows: clamp(220px, 24vw, 340px); gap: 16px; }
.gallery .photo { height: 100%; }
.gallery img { height: 100%; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .photo:last-child { display: none; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
