/* ConsultCRO, 2026 redesign. Built by Claude for Leon Hudson.
   Palette from the official logo: navy, purple, mint, on a cool off-white.
   Type: Plus Jakarta Sans (headings) and Source Sans 3 (text), self-hosted, SIL Open Font Licence. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  --navy: #343B6C;        /* logo navy */
  --navy-deep: #232850;   /* bands, footer */
  --ink: #1B1F3B;         /* body text */
  --muted: #4A5070;       /* secondary text */
  --purple: #5947BB;      /* logo purple: accents, focus */
  --mint: #35E2A9;        /* logo mint: shapes only on light grounds */
  --teal: #0B6E58;        /* links on light grounds */
  --ground: #F4F5FA;      /* cool off-white */
  --tint: #ECEEF6;
  --surface: #FFFFFF;
  --line: #D9DCEA;
  --radius: 10px;
  --wrap: 1160px;
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --slope: 38.66deg;      /* the diagonal cut in the C-mark */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
.i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }

h1, h2, h3 { font-family: var(--head); color: var(--navy-deep); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: 820px; }
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 820px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--navy-deep); color: #fff;
  padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow { font: 700 0.8rem/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin: 0 0 0.9rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); color: var(--ink); }
.small { font-size: 0.98rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.55em; min-height: 48px; padding: 0.7rem 1.25rem;
  border-radius: 999px; font: 700 1rem/1.2 var(--head); text-decoration: none; border: 2px solid transparent; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy-deep); }
.btn--light:hover { background: var(--mint); color: var(--navy-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.8rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; padding: 0.3rem 0; }
.brand img { width: 176px; height: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--navy-deep); font: 600 1rem/1.2 var(--head); text-decoration: none; padding: 0.55rem 0;
  display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--purple); }
.site-nav .nav-cta { border: 2px solid var(--navy); border-radius: 999px; padding: 0.45rem 1.1rem; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Hero */
.hero { background: var(--surface); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 17ch; }
.hero__sub { font: 600 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.4 var(--head); color: var(--purple); margin-bottom: 1.2rem; max-width: 34ch; }
.hero .lead { max-width: 40ch; color: var(--muted); }
/* Hero photo: Sebastian Schuster on Unsplash, tinted navy; desktop only (phones never download it) */
.hero__photo { justify-self: end; width: min(400px, 100%); margin: 0; position: relative; isolation: isolate; }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.hero__photo::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 42%; height: 34%; background: var(--mint); border-radius: var(--radius); z-index: -1; }

/* Sections */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.section__head { max-width: 46rem; margin-bottom: 2.4rem; }
.section__head p:last-child { color: var(--muted); }
.section__title { margin-bottom: 2rem; }
.problem p:not(.eyebrow) { font-size: 1.2rem; }
.more { margin: 2rem 0 0; }
.more a, .text-link { font: 700 1rem/1.3 var(--head); display: inline-flex; gap: 0.45em; align-items: center; }

/* Three ways: equal cards, each topped with a bar cut on the logo's diagonal */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.mode { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 1.6rem 1.6rem; overflow: hidden; }
.mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9.6px) 100%, 0 100%); }
.mode--navy::before { background: var(--navy); }
.mode--purple::before { background: var(--purple); }
.mode--mint::before { background: var(--mint); }
.mode__name { font-size: 1.45rem; margin-bottom: 0.4rem; }
.mode__name a { color: var(--navy-deep); text-decoration: none; }
.mode__name a:hover { text-decoration: underline; }
.mode__line { font: 600 1.05rem/1.4 var(--head); color: var(--purple); }
.mode p:last-child { margin-bottom: 0; color: var(--muted); }

/* CRO meanings, in order */
.cro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cro { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0.4rem 2rem; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--navy); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; }
.cro--2 { border-left-color: var(--purple); }
.cro--3 { border-left-color: var(--mint); }
.cro__area { grid-row: span 2; font: 700 0.8rem/1.4 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin: 0; }
.cro h3 { font-size: 1.3rem; margin: 0; }
.cro p:last-child { margin: 0; color: var(--muted); }
.cro--1 h3 { font-size: 1.55rem; }

/* Fit */
.fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; }
.fit__col { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.fit__col--yes { border-top: 6px solid var(--navy); }
.fit__col--no { border-top: 6px solid var(--muted); }
.fit__sym { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  font: 800 1.1rem/1 var(--head); margin-right: 0.4rem; vertical-align: 0.05em; }
.fit__col--yes .fit__sym { background: var(--navy); color: #fff; }
.fit__col--no .fit__sym { background: var(--tint); color: var(--navy-deep); border: 2px solid var(--muted); }
.fit ul { margin: 0; padding-left: 1.1em; }
.fit li { margin-bottom: 0.5em; }

.fit-card { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius); padding: 1.8rem 1.8rem 1rem; }
.fit-card__lead { font: 600 clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem)/1.4 var(--head); color: var(--navy-deep); max-width: 52ch; margin-bottom: 1.4rem; }
.fit-card__list { columns: 2; column-gap: 2.8rem; }
.fit-card__list li { break-inside: avoid; }
@media (max-width: 760px) { .fit-card__list { columns: 1; } }

/* Founder note on Home */
.founder-note p:not(.eyebrow) { font-size: 1.2rem; }

/* Page heads */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(2.2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 20ch; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0; margin: 1.6rem 0 0; }
.jump a { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--ground); color: var(--navy-deep); font: 700 1rem/1.2 var(--head); text-decoration: none; }
.jump a::before { content: ""; width: 0.8em; height: 0.8em; border-radius: 2px; }
.jump--navy::before { background: var(--navy); }
.jump--purple::before { background: var(--purple); }
.jump--mint::before { background: var(--mint); }
.jump a:hover { border-color: var(--navy); }

/* How we work: one section per way */
.way { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.way:nth-of-type(even) { background: var(--surface); }
.way__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2rem 4rem; }
.way__head { position: relative; padding-top: 1.6rem; }
.way__head::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.way--navy .way__head::before { background: var(--navy); }
.way--purple .way__head::before { background: var(--purple); }
.way--mint .way__head::before { background: var(--mint); }
.way__head h2 { margin-bottom: 0.4rem; }
.way__title { font: 600 1.2rem/1.4 var(--head); color: var(--purple); }
.way__body h3 { margin-top: 1.6rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55em; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.55rem; height: 0.55rem;
  background: var(--navy); clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff; font: 800 1rem/1 var(--head); margin-bottom: 0.9rem; }
.steps p { margin: 0; color: var(--muted); }

/* About */
.founder__inner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.founder__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.risk-note { margin-top: 2.4rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem 1.8rem; }
.risk-note p:last-child { margin: 0; font-weight: 600; color: var(--navy-deep); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.principles li { border-top: 3px solid var(--navy); padding-top: 1.2rem; }
.principles p { color: var(--muted); margin: 0; }

/* Contact */
.contact-head__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 360px); gap: 2rem 4rem; align-items: center; }
.contact-head__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.path--navy { border-top: 8px solid var(--navy); }
.path--mint { border-top: 8px solid var(--mint); }
.path ul { margin: 0; }
.note { margin: 1.8rem 0 0; color: var(--muted); font-size: 1rem; }

/* Contact form */
.contact-tips { margin-top: 1.4rem; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem); max-width: 920px; }
.form-card h2 { margin-bottom: 0.4rem; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.6rem; margin-top: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 700 0.98rem/1.3 var(--head); color: var(--navy-deep); }
.field input, .field select, .field textarea { font: 400 1.05rem/1.4 var(--text); color: var(--ink); background: #fff;
  border: 1.5px solid #8A8FAD; border-radius: 8px; padding: 0.7rem 0.8rem; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.field [aria-invalid="true"] { border-color: #8E2C48; border-width: 2px; }
.field__hint { margin: 0; font-size: 0.95rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.95rem; font-weight: 600; color: #8E2C48; }
.field__error::before { content: "! "; font-weight: 800; }
.field--trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.form-actions .small { margin: 0; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.form-status { border-radius: 8px; padding: 1rem 1.2rem; margin-top: 1.2rem; border: 2px solid; }
.form-status:focus { outline: 3px solid var(--purple); outline-offset: 2px; }
.form-status--success { background: #E9FBF4; border-color: #0B6E58; color: #0A3B31; }
.form-status--success::before { content: "\2713  "; font-weight: 800; }
.form-status--error { background: #FBEFF3; border-color: #8E2C48; color: #5A1A2D; }
.form-status--error::before { content: "!  "; font-weight: 800; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) { .contact-form { grid-template-columns: 1fr; } }

/* Prose (privacy) */
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Closing band */
.band { background: var(--navy-deep); color: #fff; padding: clamp(2.8rem, 6vw, 4.2rem) 0; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band h2 { color: #fff; margin-bottom: 0.4rem; }
.band p { margin: 0; color: #DCDFF0; max-width: 46ch; }

/* Footer */
.site-footer { background: #191D3A; color: #C9CDE3; padding: 3.2rem 0 2rem; font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer__brand img { width: 176px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 34ch; }
.site-footer h2 { font: 700 0.8rem/1.3 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__base { border-top: 1px solid #343a63; margin: 2.4rem 0 0; padding-top: 1.4rem; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 960px) {
  .modes, .steps, .principles { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .way__inner { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
  .founder__inner, .contact-head__inner { grid-template-columns: 1fr; }
  .founder__photo, .contact-head__photo { max-width: 420px; }
  .contact-head__photo { order: -1; max-width: 300px; }
  .cro { grid-template-columns: 1fr; }
  .cro__area { grid-row: auto; }
}
@media (max-width: 560px) {
  .site-header__inner { padding-top: 0.8rem; padding-bottom: 0.4rem; }
  .site-nav ul { gap: 0.2rem 1.2rem; }
  .paths { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header nav, .band, .site-footer, .hero__photo { display: none; }
  body { background: #fff; }
}
