/* Links2Health — public marketing design system ("Indigo Atelier").
   Premium, editorial, calm. Shared brand tokens with the portal (app.css) but a
   larger, content-first layout system. One type scale, one spacing scale, one
   component set — no per-page ad-hoc styling. */

:root {
  /* Brand palette */
  --indigo: #1E2A4A;
  --indigo-900: #161f38;
  --purple: #6B5CA5;
  --purple-700: #5b4d92;
  --violet: #8B7BC7;
  --lilac: #C9B8E8;
  --mist: #EFEAF7;
  --paper: #FCFBFE;
  --ink: #1E2A4A;
  --muted: #5b5670;
  --line: #e4ddf2;
  --ok: #1f7a5a;
  --err: #b03a4a;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 4.4rem);

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -36px rgba(30, 42, 74, 0.45);
  --shadow-sm: 0 12px 32px -24px rgba(30, 42, 74, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Serif (Fraunces) reserved for large display headlines only — h1 and section
   h2. Sub-headers and UI use the contemporary sans for a cleaner, modern feel. */
h1, h2 { font-family: 'Fraunces', Georgia, serif; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--s-4); font-weight: 600; }
h3, h4 { font-family: 'Inter', system-ui, sans-serif; line-height: 1.25; letter-spacing: -0.011em; margin: 0 0 var(--s-3); font-weight: 600; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--s-4); }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }
.eyebrow { font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin: 0 0 var(--s-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
section { padding: clamp(80px, 9vw, 136px) 0; }
.section-tight { padding: clamp(48px, 5vw, 72px) 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-700); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--lilac); }
.btn-outline:hover { border-color: var(--violet); background: var(--mist); text-decoration: none; }
.btn-on-dark { background: #fff; color: var(--indigo); }
.btn-on-dark:hover { background: var(--mist); text-decoration: none; color: var(--indigo); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; text-decoration: none; color: #fff; }
.btn-lg { padding: 16px 30px; font-size: var(--step-1); }
.btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
/* Hero: the two paths sit side by side, equal width, on one row. Stack only as a
   narrow-screen fallback. */
.hero .btn-row { flex-wrap: nowrap; }
.hero .btn-row .btn { flex: 1 1 0; white-space: nowrap; }
@media (max-width: 460px) { .hero .btn-row { flex-wrap: wrap; } .hero .btn-row .btn { flex-basis: 100%; } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 254, 0.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 104px; }
@media (max-width: 700px) { .site-header .wrap { min-height: 78px; } }
.brand { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 24px; color: var(--purple); letter-spacing: -0.01em; }
.brand .two { color: var(--violet); }
.brand:hover { text-decoration: none; }
/* Real logo lockup (replaces the text wordmark). Colored on the light header,
   rendered white on the dark footer via filter — no separate asset needed. */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: 80px; width: auto; display: block; }
.site-footer .brand-logo { height: 72px; filter: brightness(0) invert(1); }
@media (max-width: 700px) { .brand-logo { height: 54px; } .site-footer .brand-logo { height: 52px; } }
.nav-main { display: flex; align-items: center; gap: var(--s-6); }
.nav-main a.navlink { color: var(--ink); font-weight: 500; font-size: var(--step-0); }
.nav-main a.navlink:hover { color: var(--purple); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-collapse {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s-4) var(--s-5) var(--s-6); display: none; box-shadow: var(--shadow-sm);
  }
  .nav-collapse.open { display: flex; }
  .nav-main { gap: 0; }
  .nav-main a.navlink { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: var(--s-4); }
  .nav-cta .btn { width: 100%; }
}

/* ---- Hero ---- */
.hero { background: var(--indigo); color: #fff; padding: var(--s-9) 0 var(--s-10); position: relative; overflow: hidden; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: var(--lilac); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero-trust { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--lilac); font-size: var(--step--1); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
/* Duotone media placeholder — real photos drop in later with no redesign. */
.media-duotone {
  aspect-ratio: 4 / 5; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--purple), var(--indigo-900));
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow);
}
.media-duotone[data-img] { background-image: var(--img); background-size: cover; background-blend-mode: luminosity; }
.media-duotone .ph-label {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px; font-size: 12px;
  color: rgba(255,255,255,.7); background: linear-gradient(transparent, rgba(22,31,56,.7));
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { display: none; } }

/* ---- Generic layout helpers ---- */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-7) var(--s-6); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--step-1); color: var(--violet); line-height: 1; letter-spacing: 0.02em; margin-bottom: var(--s-3); }
.tint { background: var(--mist); }
.dark { background: var(--indigo); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede, .dark p { color: var(--lilac); }

/* steps */
.steps { counter-reset: step; }
.step { display: flex; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--purple); font-family: 'Inter', sans-serif; font-weight: 600; display: grid; place-items: center; }
.step h3 { margin: 4px 0 6px; }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.compare .col { border-radius: var(--radius); padding: var(--s-6); }
.compare .them { background: #fff; border: 1px solid var(--line); }
.compare .us { background: var(--indigo); color: #fff; }
.compare ul { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.compare li { padding: 9px 0 9px 30px; position: relative; }
.compare .them li::before { content: "✕"; position: absolute; left: 0; color: var(--err); font-weight: 700; }
.compare .us li { color: var(--lilac); }
.compare .us li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }

/* trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.trust-strip .item { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.trust-strip .item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; border-radius: 24px; padding: var(--s-8); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* feature list */
.flist { list-style: none; padding: 0; margin: 0; }
.flist li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line); }
.flist li:last-child { border-bottom: 0; }
.flist li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--purple); font-weight: 700; }

/* job-board placeholder slot (Phase 2) */
.slot { border: 1.5px dashed var(--lilac); border-radius: var(--radius); padding: var(--s-7); text-align: center; color: var(--muted); background: var(--mist); }

/* portrait / founder figure — real photo drops in via the --img variable on the
   element (background-image), no markup change. Until then a labelled placeholder. */
.portrait {
  aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--lilac), var(--purple));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background-image: var(--img, none); background-size: cover; background-position: center top;
}
.portrait .ph-label { position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-size: 11px; color: rgba(255,255,255,.85); background: linear-gradient(transparent, rgba(30,42,74,.6)); }
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-7); align-items: center; }
@media (max-width: 720px) { .bio-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* prose (legal + about) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 6px; }
.draft-banner { background: #fdf3e3; border: 1px solid #f0d9a8; color: #7a5a14; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: var(--s-6); font-size: var(--step--1); }

/* breadcrumb */
.crumbs { font-size: var(--step--1); color: var(--muted); padding: var(--s-5) 0 0; }
.crumbs a { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }

/* ---- Footer ---- */
.site-footer { background: var(--indigo-900); color: var(--lilac); padding: var(--s-8) 0 78px; margin-top: var(--s-8); }
.site-footer a { color: var(--lilac); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet); margin-bottom: var(--s-3); font-weight: 600; }
.footer-col a { display: block; padding: 5px 0; font-size: var(--step-0); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s-7); padding-top: var(--s-5); font-size: var(--step--1); color: rgba(201,184,232,.75); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.tagline { font-style: italic; color: var(--lilac); }
