/* Conduit Management — site.css
   Design system carried over from the current conduitmgmt.com:
   ink #0C1220, paper #FAF9F6, accent blue #1E5FA5, Source Serif 4 + Archivo, square corners. */

:root {
  color-scheme: light;
  --ink: #0C1220;
  --ink-soft: #131B2E;
  --paper: #FAF9F6;
  --paper-dim: #F1EFE9;
  --accent: #1E5FA5;
  --accent-deep: #174A82;
  --accent-ink: #8DB4E2;
  --text: #3A4354;
  --text-mute: #67707F;
  --text-inv: rgba(250,249,246,.78);
  --text-inv-mute: rgba(250,249,246,.55);
  --line: rgba(12,18,32,.13);
  --line-strong: rgba(12,18,32,.32);
  --line-inv: rgba(250,249,246,.16);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }
.measure { max-width: var(--measure); }

/* Header: light, translucent, as on the live site */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,249,246,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { width: auto; height: 24px; flex: none; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.nav a, .brand span { white-space: nowrap; }
.nav a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-family: var(--sans); font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  padding: 10px 26px; border-radius: 0; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-deep); color: #fff; }
.nav .btn-gold { color: #fff; padding: 10px 26px; border-bottom: 0; }
.btn-line { background: transparent; color: var(--accent-ink); padding-left: 0; padding-right: 0; border: 0; border-bottom: 1px solid currentColor; min-height: 0; padding-bottom: 2px; margin-left: 1.25rem; }
.btn-line:hover { color: #fff; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem .9rem; border: 1px solid var(--line-strong); font-weight: 600; font-size: .9375rem; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu ul { position: absolute; right: 0; top: 3.1rem; background: var(--paper); border: 1px solid var(--line); list-style: none; margin: 0; padding: .5rem 0; min-width: 16rem; box-shadow: 0 12px 30px rgba(12,18,32,.12); }
  .menu li a { display: block; padding: .7rem 1.25rem; color: var(--ink); text-decoration: none; }
  .menu li a:hover { background: var(--paper-dim); }
}

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(1.875rem, 4.5vw, 3.125rem); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1.1rem; }
.eyebrow { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .75rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text); }
.small { font-size: .9375rem; color: var(--text-mute); }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.band { background: var(--paper-dim); }
.dark, .hero, .page-hero, .cta { background: var(--ink); color: var(--text-inv); }
.dark h1, .dark h2, .dark h3, .hero h1, .page-hero h1, .cta h2 { color: var(--paper); }
.dark h2 em, .hero h1 em, .page-hero h1 em, .cta h2 em { color: var(--accent-ink); }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent-ink); }
.dark .lede, .dark p, .dark .small { color: var(--text-inv); }
.dark a:not(.btn) { color: var(--accent-ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 128px 0 96px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.hero .lede, .hero .actions, .hero .toggle { max-width: 34rem; }
.hero .lede { color: var(--text-inv); max-width: 38rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.hero .proof { margin-top: 2rem; font-size: .9375rem; color: var(--text-inv-mute); }
@media (max-width: 640px) { .hero { padding: 88px 0 64px; } }

/* Convergence motif (from the live site), animated to show the Build */
.motif { position: absolute; right: -40px; top: 50%; transform: translateY(-40%); width: min(52vw, 680px); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); color: var(--accent-ink); opacity: .32; pointer-events: none; z-index: 0; }
.motif path { fill: none; stroke: currentColor; stroke-width: 1; transition: opacity .9s ease; }
.motif .after { opacity: 0; }
.motif .hub { fill: var(--accent-ink); transition: opacity .9s ease; }
.motif circle.dot { fill: currentColor; }
.hero[data-state="after"] .motif .before { opacity: 0; }
.hero[data-state="after"] .motif .after { opacity: 1; }
.hero[data-state="after"] .motif .hub { opacity: 0; }
.toggle { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; font-size: .9375rem; color: var(--text-inv-mute); }
.toggle button { font: 600 .875rem var(--sans); background: transparent; color: var(--paper); border: 1px solid var(--line-inv); padding: 8px 16px; cursor: pointer; border-radius: 0; }
.toggle button:hover { border-color: var(--accent-ink); }
@media (max-width: 860px) { .motif { width: 120vw; right: -50vw; opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .motif * { transition: none !important; } }

.page-hero { padding: 96px 0 80px; }
.page-hero h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); max-width: 20ch; }
.page-hero .lede { color: var(--text-inv); max-width: 42rem; margin-bottom: 0; }
.crumbs { font-size: .8125rem; margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs a { color: var(--text-inv-mute); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs li { color: var(--accent-ink); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--text-inv-mute); }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.outcomes div { border-top: 1px solid var(--accent); padding-top: 1.25rem; }
.outcomes h3 { margin-bottom: .6rem; }
.outcomes p { color: var(--text); margin: 0; font-size: 1rem; }
@media (max-width: 980px) { .outcomes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } }

/* Diagnosis list with blue dash markers, as on the live site */
.symptoms { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 42rem; }
.symptoms li { position: relative; padding: 1.4rem 0 1.4rem 2.5rem; border-bottom: 1px solid var(--line); }
.symptoms li::before { content: "\2014"; position: absolute; left: 0; top: 1.4rem; color: var(--accent); }
.kicker { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.4; margin-top: 2.5rem; max-width: 46rem; }

/* Before / after */
.compare-wrap { overflow-x: auto; margin-top: 2.5rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 660px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.15rem 1.25rem 1.15rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.compare thead th:last-child { color: var(--accent); border-bottom-color: var(--accent); }
.compare tbody th { font-weight: 600; width: 20%; color: var(--ink); }
.compare td { color: var(--text-mute); width: 40%; }
.compare td:last-child { color: var(--ink); }
.compare caption { caption-side: bottom; text-align: left; padding-top: 1rem; }

/* Numbered sequences: blue numeral with a rule above, as on the live site */
.steps { list-style: none; counter-reset: s; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: s; border-top: 1px solid var(--accent); padding-top: 1rem; }
.dark .steps li { border-top-color: var(--accent-ink); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.dark .steps li::before { color: var(--accent-ink); }
.steps h3 { margin-bottom: .35rem; }
.steps .when { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .85rem; }
.dark .steps .when { color: var(--accent-ink); }
.steps p { font-size: 1rem; }
.steps .gets { color: var(--ink); font-weight: 500; }
.dark .steps .gets { color: var(--paper); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pressure points */
.points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--line-strong); }
.points div { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.points h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.points p { font-size: .9375rem; color: var(--text-mute); margin: 0; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.ratings { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.75rem; font-size: .9375rem; color: var(--text); }
.ratings span::before { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .5rem; }
.r-crit::before { background: #B4442F; } .r-elev::before { background: #C9902C; } .r-stab::before { background: #3E7D5A; }

/* Credentials strip, as on the live site */
.creds { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 0; margin-top: 1rem; }
.creds div { display: flex; align-items: baseline; }
.creds div + div::before { content: ""; width: 4px; height: 4px; background: var(--text-inv-mute); border-radius: 50%; margin: 0 1.6rem; align-self: center; }
.creds strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--paper); }
.creds span { display: none; }
.creds-note { margin-top: 1rem; font-size: .875rem; color: var(--text-inv-mute) !important; }

/* Prose */
.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.75; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid var(--accent); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); }
.byline { font-size: .9375rem; color: var(--text-inv-mute); margin-top: 1.25rem; }
.byline a { color: var(--accent-ink); }

/* FAQ */
.faq { max-width: 48rem; margin-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .85rem 0 0; }

/* Posts */
.posts { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line-strong); }
.posts li { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.posts h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .5rem; }
.posts a { text-decoration: none; }
.posts a:hover h2 { color: var(--accent); }

/* CTA band */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: 1.25rem; }
.cta p { color: var(--text-inv); margin: 0; max-width: 42rem; }

/* Fit: arrows and crosses, as on the live site */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.fit h3 { font-size: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--accent); margin: 0; }
.fit .no h3 { color: var(--text-mute); border-bottom-color: var(--line-strong); }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li { position: relative; padding: 1.1rem 0 1.1rem 2.25rem; border-bottom: 1px solid var(--line); }
.fit li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.fit .no li::before { content: "\00D7"; color: var(--text-mute); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* Command centre */
.callout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.callout > div:first-child { border-right: 1px solid var(--accent); padding-right: 3rem; }
.panel-mock { background: var(--ink-soft); border: 1px solid var(--line-inv); padding: 1.25rem 1.5rem; font-size: .9375rem; color: var(--text-inv); }
.panel-mock .row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-inv); }
.panel-mock .row:last-child { border-bottom: 0; }
.panel-mock .tag { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.tag.ok { color: #8FD1AC; } .tag.warn { color: #E5C27A; } .tag.own { color: var(--accent-ink); }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; } .callout > div:first-child { border-right: 0; padding-right: 0; } }

/* Book */
.book-panel { background: #fff; border: 1px solid var(--line); padding: 2rem; }
.calendly-slot { min-height: 680px; }

/* Footer, as on the live site */
.site-footer { background: var(--ink); color: var(--text-inv-mute); padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; border-top: 1px solid var(--line-inv); }
.site-footer .brand { color: var(--paper); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--text-inv); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer .legal { border-top: 1px solid var(--line-inv); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
