@font-face {
  font-family: 'Titling Gothic FB';
  src: url('/fonts/Titling Gothic FB Normal Bold (2).otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: rgb(242, 239, 233);
  --bg-2: rgb(241, 238, 233);
  --ink: rgb(0, 0, 0);
  --card: rgb(255, 255, 255);
  --gold-bg: rgb(219, 204, 175);
  --impulse-blue: #7ABECC;
  --impulse-blue-soft: #E4F1F4;
  --impulse-blue-deep: #2A6E7E;
  --font-display: 'Titling Gothic FB', 'Arial Black', sans-serif;
  --font-serif: 'Kaisei Decol', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* NAV — matches index.astro exactly */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(242, 239, 233, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: rgba(0,0,0,0.08); }
/* Nav spacing — slightly tighter than 24px so the nav reads as one
   compact group instead of breathy items. Mirrors the values in index.astro. */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a, .nav-links button.nav-link { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; position: relative; padding: 6px 0; color: var(--ink); transition: color 0.15s ease; }
.nav-links a::after, .nav-links button.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 0.25s cubic-bezier(.2,.6,.2,1); border-radius: 2px; }
.nav-links a:hover::after, .nav-links button.nav-link:hover::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links button.nav-link:hover { color: var(--ink); opacity: 1; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-dropdown-label { padding-right: 2px !important; }
.nav-dropdown-chevron { display: inline-flex; align-items: center; padding: 6px 4px; cursor: pointer; color: rgba(0,0,0,0.5); transition: color 0.15s; }
.nav-dropdown-chevron:hover { color: var(--ink); }
.nav-dropdown-chevron svg { transition: transform 0.2s; display: block; }
.nav-dropdown.open .nav-dropdown-chevron { color: var(--ink); }
.nav-dropdown-menu { position: absolute; top: 40px; left: 0; z-index: 200; background: var(--card); border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,.08); padding: 8px; min-width: 200px; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all 0.2s; }
.nav-dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown-label:hover ~ .nav-dropdown-menu,
.nav-dropdown-menu:hover { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown.open .nav-dropdown-chevron svg,
.nav-dropdown-label:hover ~ .nav-dropdown-chevron svg { transform: rotate(180deg); }
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-dropdown-menu a:hover { background: var(--bg); opacity: 1; }
.lang-toggle { position: relative; display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 4px; }
.lang-toggle svg { transition: transform 0.2s; }
.lang-toggle.open svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: 40px; right: 0; background: var(--card); border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,.08); padding: 6px; min-width: 120px; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all 0.2s; }
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-menu button, .lang-menu a { display: block; width: 100%; padding: 8px 12px; text-align: left; border-radius: 8px; font-size: 14px; }
.lang-menu button:hover, .lang-menu a:hover { background: var(--bg); }
.lang-menu button.active, .lang-menu a.active { background: var(--ink); color: var(--bg); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 100px; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s ease; line-height: 1; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.btn-primary:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.16); }
.burger { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content:''; position: absolute; left:0; width: 22px; height: 2px; background: var(--ink); transition: all 0.2s; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

main { padding-top: 72px; }

/* PAGE BUTTONS — hover pattern harmonized with index .btn */
.p-btn {
  display: inline-flex; align-items: center; padding: 14px 24px;
  border-radius: 100px; font-weight: 500; font-size: 16px;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s ease;
  line-height: 1; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.p-btn-outline { border: 1px solid rgba(0,0,0,0.25); color: var(--ink); }
.p-btn-outline:hover {
  background: var(--ink); color: var(--bg);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.p-btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.p-btn-primary:hover {
  background: #222;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}
.p-btn-white { background: white; color: black; border: 1px solid white; }
.p-btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255,255,255,0.16);
}

/* PILLS — matches homepage .section-pill exactly */
.p-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(0,0,0,0.2); border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(0,0,0,0.65);
  position: relative; width: fit-content;
  transition: color 0.4s, border-color 0.4s;
}
.p-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; transition: background 0.4s, opacity 0.4s; }
.p-pill.active { color: rgba(0,0,0,0.95); border-color: rgba(0,0,0,0.85); }
.p-pill.active::before { background: #27ae60; opacity: 1; }
.p-pill-light { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.6); }
.p-pill-light.active { color: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.85); }
.p-pill-light.active::before { background: #27ae60; opacity: 1; }

/* SECTION TITLES — match homepage .section-title / .section-sub */
.p-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.p-sub {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.8);
  max-width: 680px;
  text-wrap: pretty;
}

/* HERO — matches homepage .hero spacing/gap */
.p-hero {
  padding: 80px 40px 64px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.p-hero .p-pill { align-self: center; }
em.hl { font-style: normal; background: linear-gradient(to top, rgb(243,227,195) 40%, transparent 40%); padding: 0 2px; }
.p-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 900px;
  text-wrap: balance;
}
.p-hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 800px;
}
.p-hero-sub em { font-style: normal; }
.p-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* DIVIDER */
hr.p-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 0 40px; }

/* WHAT WE OFFER — 4 equal pillars (sticky during a short scroll dwell) */
.p-what { padding: 0 40px; scroll-margin-top: 96px; }
.p-what-sticky-wrap { position: relative; height: 130vh; max-width: 1100px; margin: 0 auto; }
.p-what-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 32px 0; background: var(--bg); }
.p-what-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 800px; margin: 0 auto; }
/* Softer serif treatment for the "What we offer" title — mirrors homepage .who-title */
.p-what-header .p-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-transform: none;
  max-width: 900px;
}

.p-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p-pillar {
  background: var(--card);
  border-radius: 16px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid var(--gold-bg);
}
.p-pillar-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.p-pillar-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.78);
}
.p-pillar-desc strong { color: var(--ink); font-weight: 700; }

/* METHODOLOGY (sticky during scroll dwell) */
.p-method { background: rgb(10,10,10); padding: 0 40px; scroll-margin-top: 96px; }
.p-method-sticky-wrap { position: relative; height: 130vh; }
.p-method-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0; background: rgb(10,10,10); }
.p-method-inner { max-width: 1100px; margin: 0 auto; width: 100%; }
.p-method-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 800px; margin: 0 auto 56px; }
.p-method-header .p-title { color: white; }
.p-method-header .p-sub { color: rgba(255,255,255,0.75); }

/* TIMELINE */
.p-tl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.p-tl-track::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.p-tl-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}
.p-tl-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(10,10,10);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.p-tl-name {
  font-family: var(--font-display);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: white;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}
.p-tl-desc {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.p-tl-footer-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 8px;
}
.p-tl-footer-line {
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* EXAMPLE — Impulse.Healthcare */
.p-example {
  padding: 88px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.p-example-impulse {
  background:
    radial-gradient(ellipse at top, rgba(122, 190, 204, 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid rgba(122, 190, 204, 0.18);
  border-bottom: 1px solid rgba(122, 190, 204, 0.18);
  max-width: none;
  padding: 0 40px;
  scroll-margin-top: 96px;
}
/* Healthcare example uses a taller (130vh) wrap than CaseAI (110vh):
   the 2-column stat-grid + body-paragraph layout overflows the
   `min-height: calc(100vh - 72px)` on smaller desktop viewports, which
   eats the dwell. The extra 20vh keeps the sticky stop pronounced
   regardless of where the content lands. */
.p-healthcare-sticky-wrap { position: relative; height: 130vh; max-width: 1100px; margin: 0 auto; }
.p-healthcare-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 48px 0; }
.p-healthcare-sticky > * { width: 100%; }
.p-impulse-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 56px; }
.p-impulse-logo { height: clamp(36px, 4vw, 56px); width: auto; display: block; }
.p-impulse-tagline { font-family: var(--font-serif); font-size: clamp(16px, 1.5vw, 20px); color: var(--impulse-blue-deep); font-style: italic; }
.p-pill-blue { background: rgba(122, 190, 204, 0.12); border-color: var(--impulse-blue); color: var(--impulse-blue-deep); }
.p-pill-blue.active { color: var(--impulse-blue-deep); border-color: var(--impulse-blue-deep); }
.p-pill-blue.active::before { background: var(--impulse-blue-deep); opacity: 1; }
.p-example-grid { display: flex; gap: 72px; align-items: flex-start; }
.p-example-left { flex: 0 0 440px; display: flex; flex-direction: column; gap: 20px; }
.p-example-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.p-example-body {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
  color: rgba(0,0,0,0.8);
}
.p-example-body strong { color: var(--ink); font-weight: 700; }
.p-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-stat-box { background: var(--card); border-radius: 14px; padding: 20px 18px; }
.p-stat-box-num { font-family: var(--font-display); font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.p-stat-box-label { font-size: 11.5px; color: rgba(0,0,0,0.6); line-height: 1.4; margin-top: 4px; }
.p-demo-box { background: var(--card); border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.p-demo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0,0,0,0.5); }
.p-demo-date { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.p-demo-desc { font-size: 12px; color: rgba(0,0,0,0.7); line-height: 1.5; }
.p-example-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: background 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}
.p-example-link:hover { background: #333; }

/* PARTNERS row + Google funder block (separate, deserves its own treatment) */
.p-partners-row {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(122, 190, 204, 0.22);
  text-align: center;
}
.p-partners-label {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--impulse-blue-deep);
}
.p-partners-logos {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
}
.p-partners-logos img {
  height: clamp(40px, 4.4vw, 56px);
  width: auto; max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.p-partners-logos img:hover { opacity: 1; }

.p-funder {
  display: flex; justify-content: center;
  margin-top: 36px;
  padding: 24px 0;
}
.p-funder-logo { height: clamp(48px, 5vw, 64px); width: auto; opacity: 0.95; }

/* Monochrome variant — matches Bayes ink-grey theme rather than Impulse blue */
.p-funder-mono { margin-top: 4px; padding: 16px 0 8px; }
.p-funder-mono .p-funder-logo {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.7;
  height: clamp(36px, 3.6vw, 48px);
}
/* Inline variant — sits under the Impulse logo + tagline */
.p-funder-inline { justify-content: center; margin-top: 8px; padding: 4px 0 0; }

/* Impulse contact form — mirrors impulse.healthcare/#ContactHP */
.p-impulse-contact {
  margin-top: 56px;
  background: var(--impulse-blue-soft);
  border-radius: 20px;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  text-align: center;
}
.p-impulse-contact-label {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--impulse-blue-deep);
}
.p-impulse-form {
  display: flex; gap: 8px;
  width: min(440px, 100%);
}
.p-impulse-input {
  flex: 1;
  border: 1px solid rgba(42, 110, 126, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.p-impulse-input:focus { border-color: var(--impulse-blue-deep); }
.p-impulse-submit {
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--impulse-blue-deep);
  color: white;
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.p-impulse-submit:hover {
  background: #1f5764;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(42, 110, 126, 0.18);
}
.p-impulse-submit:active { transform: translateY(0) scale(1); }
.p-impulse-link {
  font-size: 13px;
  color: var(--impulse-blue-deep);
  opacity: 0.8;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.p-impulse-link:hover { opacity: 1; }

/* Read more → subpage (in right column under Demo Day) */
.p-impulse-readmore-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  background: var(--impulse-blue-deep); color: white;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  align-self: stretch;
  margin-top: 4px;
}
.p-impulse-readmore-link:hover {
  background: #1f5764;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 16px rgba(42, 110, 126, 0.20);
}

/* CaseAI teaser — same structure as Impulse, dark forest green accent */
:root {
  --caseai-green: #2D6A4F;
  --caseai-green-deep: #1B4332;
  --caseai-green-soft: #95D5B2;
}
.p-example-caseai {
  background:
    radial-gradient(ellipse at top, rgba(45, 106, 79, 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid rgba(45, 106, 79, 0.18);
  border-bottom: 1px solid rgba(45, 106, 79, 0.18);
  max-width: none;
  padding: 0 40px;
  scroll-margin-top: 96px;
}
.p-caseai-sticky-wrap { position: relative; height: 110vh; max-width: 1100px; margin: 0 auto; }
.p-caseai-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 48px 0; }
.p-caseai-sticky > * { width: 100%; }
.p-caseai-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 56px; }
.p-caseai-logo { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--caseai-green-deep); }
.p-caseai-tagline { font-family: var(--font-serif); font-size: clamp(16px, 1.5vw, 20px); color: var(--caseai-green-deep); font-style: italic; }
.p-pill-green { background: rgba(45, 106, 79, 0.12); border-color: var(--caseai-green); color: var(--caseai-green-deep); }
.p-pill-green.active { color: var(--caseai-green-deep); border-color: var(--caseai-green-deep); }
.p-pill-green.active::before { background: var(--caseai-green-deep); opacity: 1; }
.p-caseai-pricing-box {
  padding: 22px 22px;
  border-radius: 14px;
  background: var(--caseai-green-deep);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.p-caseai-pricing-box-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.p-caseai-pricing-box-line { font-family: var(--font-body); font-size: 15px; line-height: 1.45; color: white; }
.p-caseai-pricing-box-line strong { font-weight: 700; }
.p-caseai-readmore-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  background: var(--caseai-green-deep); color: white;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  align-self: stretch;
  margin-top: 4px;
}
.p-caseai-readmore-link:hover {
  background: #143729;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.25);
}

/* CTA — black card with cream margins; vertical rhythm matches homepage 96px sections */
.p-cta-wrap {
  padding: 64px 40px 96px;
}
.p-cta {
  background: rgb(10,10,10);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.p-cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px); text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.0; color: white;
  text-wrap: balance;
}
.p-cta-sub {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.75); max-width: 680px;
  text-wrap: pretty;
}

/* FOOTER — matches index.astro */
footer { background: var(--bg-2); padding: 56px 40px 32px; margin-top: 0; }
.footer-under { display: flex; justify-content: space-between; align-items: center; padding: 24px 80px; border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.1); gap: 24px; }
.socials { display: flex; gap: 24px; align-items: center; }
.socials a { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.7; transition: opacity 0.2s; }
.socials a:hover { opacity: 1; }
.newsletter { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; cursor: pointer; }
.nl-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; align-items: center; justify-content: center; }
.nl-modal-overlay.open { display: flex; }
.nl-modal { background: var(--bg); border-radius: 20px; padding: 40px 36px; width: min(420px, 90vw); position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.18); }
.nl-modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 8px; }
.nl-modal p { font-size: 14px; color: rgba(0,0,0,0.5); margin-bottom: 24px; line-height: 1.5; }
.nl-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.07); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.nl-close:hover { background: rgba(0,0,0,0.13); }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-input { border: 1px solid rgba(0,0,0,0.15); border-radius: 12px; padding: 13px 16px; font-size: 15px; font-family: var(--font-body); outline: none; transition: border-color 0.2s; width: 100%; box-sizing: border-box; background: transparent; }
.nl-input:focus { border-color: rgba(0,0,0,0.4); }
.nl-submit { border-radius: 12px; background: var(--ink); color: var(--bg); padding: 13px; font-size: 15px; font-weight: 600; font-family: var(--font-body); cursor: pointer; border: none; transition: opacity 0.2s; }
.nl-submit:hover { opacity: 0.8; }
.nl-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.nl-msg { font-size: 13px; text-align: center; display: none; }
.nl-msg.success { color: #2B6840; display: block; }
.nl-msg.error { color: #c0392b; display: block; }
.footer-main { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 56px 80px 0; }
.footer-brand { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
.footer-copy { font-size: 12px; opacity: 0.7; }

/* MOBILE */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--bg);
    padding: 24px 24px 32px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    z-index: 150;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.mobile-open a { font-size: 20px; }
  .nav-links.mobile-open .nav-dropdown { display: flex; flex-wrap: wrap; align-items: center; gap: 0; width: 100%; }
  .nav-links.mobile-open .nav-dropdown-label { padding: 0 !important; }
  .nav-links.mobile-open .nav-dropdown-chevron { padding: 6px 8px; }
  .nav-links.mobile-open .nav-dropdown-menu { flex-basis: 100%; }
  .nav-links.mobile-open .nav-dropdown-menu {
    position: static; width: 100%; min-width: 0;
    background: rgba(0,0,0,0.04); border-radius: 12px;
    box-shadow: none; padding: 6px;
    opacity: 1; pointer-events: auto; transform: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0; padding-bottom: 0;
  }
  .nav-links.mobile-open .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px; padding-top: 6px; padding-bottom: 6px;
  }
  .nav-links.mobile-open .nav-dropdown-menu a { font-size: 16px; padding: 10px 14px; }
  .nav-links.mobile-open .lang-toggle {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 20px;
    align-self: flex-start;
  }
  .nav-links.mobile-open .lang-menu {
    position: static; width: 100%; min-width: 0;
    background: rgba(0,0,0,0.04); border-radius: 12px;
    box-shadow: none; padding: 6px;
    opacity: 0; pointer-events: none; transform: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    padding-top: 0; padding-bottom: 0;
    margin-top: 8px;
  }
  .nav-links.mobile-open .lang-toggle.open .lang-menu {
    opacity: 1; pointer-events: auto;
    max-height: 400px; padding-top: 6px; padding-bottom: 6px;
  }
  .burger { display: inline-flex; }
  .p-hero { padding: 48px 20px 64px; }
  .p-what { padding: 64px 20px; }
  .p-what-sticky-wrap,
  .p-method-sticky-wrap,
  .p-healthcare-sticky-wrap,
  .p-caseai-sticky-wrap { height: auto; padding: 0; }
  .p-what-sticky,
  .p-method-sticky,
  .p-healthcare-sticky,
  .p-caseai-sticky {
    position: static; min-height: 0; padding: 32px 0; gap: 32px;
  }
  .p-method-sticky { background: rgb(10,10,10); padding: 32px 0; }
  hr.p-divider { margin: 0 20px; }
  .p-pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-method { padding: 64px 20px 72px; }
  .p-tl-track { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .p-tl-track::before { display: none; }
  .p-tl-phase { align-items: flex-start; padding: 0; }
  .p-tl-dot { margin-bottom: 12px; }
  .p-tl-name { text-align: left; }
  .p-tl-desc { text-align: left; }
  .p-example { padding: 64px 20px; }
  .p-example-grid { flex-direction: column; gap: 40px; }
  .p-example-left { flex: none; width: 100%; }
  .p-impulse-header { margin-bottom: 32px; }
  .p-partners-row { gap: 20px; margin-top: 48px; }
  .p-partners-logos { gap: 24px; }
  .p-partners-logos img { height: 36px; max-width: 140px; }
  .p-funder { margin-top: 28px; }
  .p-funder-logo { height: 44px; }
  .p-impulse-contact { margin-top: 40px; padding: 32px 20px; }
  .p-impulse-form { flex-direction: column; }
  .p-cta-wrap { padding: 0 20px 64px; }
  .p-cta { padding: 56px 24px; border-radius: 16px; }
  .footer-main { padding: 40px 24px 0; }
  .footer-under { padding: 24px; flex-direction: column; gap: 16px; }
}
