/* johndelucchi.com — design system
   Hybrid palette (chosen 2026-07-07): cool clinical-trust ground (A) + one hot action accent (B).
   Rule: --accent (orange) is spent only on things you click or prices. Everything informational
   (badges, kickers, text links) runs on --info (steel blue) so the orange stays meaningful. No frameworks.
   Typography (updated 2026-07-11): unified on Inter — one family, weight does the hierarchy work.
   Replaces the old serif/sans pairing for a cleaner, more modern clinical-tech read. */

:root {
  --ink: #16232e;
  --ink-soft: #4a5c6b;
  --paper: #f6f8f7;
  --paper-deep: #eaeff0;
  --line: #dde3e4;
  --accent: #e14522;      /* action orange — buttons, prices, CTAs only */
  --accent-dark: #b8371a;
  --info: #2f6690;        /* steel blue — kickers, badges, text links */
  --info-dark: #204a68;
  --accent-warm: #6b7f8c; /* muted slate — "coming soon" / waitlist, kept quiet on purpose */
  --max: 1080px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.logo {
  font-family: var(--sans); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.logo span { color: var(--info); }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--info-dark); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 9px 16px;
  border-radius: 6px; font-weight: 600 !important; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--ink); line-height: 1;
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero .wrap { max-width: 820px; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--info-dark); margin-bottom: 18px;
}
h1 {
  font-family: var(--sans); font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 22px;
}
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 620px; margin-bottom: 34px; }

/* ---------- email capture ---------- */
.capture { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.capture input[type="email"] {
  flex: 1 1 260px; padding: 13px 16px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff;
  color: var(--ink); font-family: var(--sans);
}
.capture input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.capture button {
  padding: 13px 24px; font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: none; border-radius: 6px;
}
.capture button:hover { background: var(--accent-dark); }
.capture-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tint { background: var(--paper-deep); }
h2 {
  font-family: var(--sans); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 18px;
}
.section-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 32px 28px; display: flex; flex-direction: column;
}
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .card-link {
  margin-top: 22px; color: var(--info-dark); font-weight: 600;
  text-decoration: none; font-size: 0.95rem;
}
.card .card-link:hover { text-decoration: underline; }
.badge {
  display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 99px; margin-bottom: 14px;
}
.badge.free { background: #e2ecf1; color: var(--info-dark); }
.badge.soon { background: #e9edf0; color: var(--accent-warm); }
.badge.update { background: #e2ecf1; color: var(--info-dark); }
.badge.curated { background: #eef1f4; color: var(--ink-soft); }
.badge.value { background: #fbe4dd; color: var(--accent-dark); }

/* ---------- substack strip ---------- */
.substack-strip { background: var(--ink); color: var(--paper); }
.substack-strip h2 { color: #fff; }
.substack-strip .section-lede { color: #b8c4d0; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- about strip ---------- */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: start; }
.headshot {
  width: 200px; height: 200px; border-radius: 10px;
  background: var(--paper-deep); border: 1px solid var(--line);
  overflow: hidden;
}
.headshot img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}

/* ---------- clinician door ---------- */
.door {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  background: #fff; flex-wrap: wrap;
}
.door h2 { margin-bottom: 8px; }
.door p { color: var(--ink-soft); max-width: 520px; }

/* ---------- news feed ---------- */
.news-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.news-meta time { font-size: 0.85rem; color: var(--ink-soft); }
.news-item h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.news-title-link { color: var(--ink); text-decoration: none; }
.news-title-link:hover { color: var(--info-dark); text-decoration: underline; }
.news-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 640px; }

/* ---------- guide list ---------- */
.guide-item {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.guide-item h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.guide-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 560px; }

/* ---------- pricing ---------- */
.price { font-family: var(--sans); font-size: 2rem; font-weight: 700; margin: 12px 0 4px; color: var(--accent-dark); }
.price small { font-size: 0.9rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent); border-width: 2px; }
.price-card .badge.value {
  position: absolute; top: -13px; left: 28px;
}
.price-anchor {
  font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.price-features { list-style: none; margin: 16px 0 0; padding: 0; }
.price-features li {
  font-size: 0.92rem; color: var(--ink-soft); padding: 7px 0 7px 22px; position: relative;
  border-bottom: 1px solid var(--line);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--info-dark); font-weight: 700;
}
.card-cta {
  display: block; text-align: center; margin-top: 20px; padding: 12px 20px;
  background: var(--accent); color: #fff; border-radius: 6px; font-weight: 600;
  text-decoration: none; font-size: 0.95rem;
}
.card-cta:hover { background: var(--accent-dark); }
.card-cta.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.card-cta.ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.estimate-note {
  font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; font-style: italic;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #b8c4d0; padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #b8c4d0; text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: #fff; }
.footer-capture input[type="email"] { border: none; }
.footer-bottom {
  border-top: 1px solid #2c3a48; padding-top: 24px;
  font-size: 0.82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.socials { display: flex; gap: 18px; }

/* ---------- responsive ---------- */
/* Nav collapses earlier than the rest of the layout: 8 links + a CTA button
   don't fit a single row below ~1100px without cramming or wrapping. */
@media (max-width: 1100px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
}
