:root {
  --ink: #0a2e24;
  --ink-soft: #1f4d3f;
  --emerald: #0f7a5f;
  --emerald-deep: #0a5d48;
  --emerald-bright: #14a37b;
  --emerald-light: #c2e8d8;
  --mint: #d4f0e2;
  --mint-tile: #e8f6ee;
  --moss-tile: #d9ebe1;
  --peach-tile: #fcebd9;
  --bg: #f5f8f6;
  --bg-warm: #ecf2ee;
  --paper: #ffffff;
  --line: rgba(10, 46, 36, 0.10);
  --line-soft: rgba(10, 46, 36, 0.06);
  --muted: rgba(10, 46, 36, 0.62);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 100px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* NAV */
nav.top { position: sticky; top: 12px; z-index: 100; padding: 0 12px; }
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: 0 8px 24px -12px rgba(10, 46, 36, 0.15);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); margin-right: auto; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; background: var(--ink); border-radius: 9px; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark::before { content: 'P'; font-family: var(--font); font-weight: 800; color: var(--emerald-bright); font-size: 18px; letter-spacing: -0.04em; }
.logo-mark::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background: var(--emerald-bright); border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.logo-text { letter-spacing: -0.01em; line-height: 1; }
.logo-text b { font-weight: 800; color: var(--ink); }
.logo-text i { font-style: normal; font-weight: 800; color: var(--emerald); }
.logo-text i::after { content: "\2122"; font-size: 0.48em; font-weight: 700; position: relative; top: -0.95em; margin-left: 1px; letter-spacing: 0; }
.logo-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; color: var(--emerald-deep); text-transform: uppercase; margin-top: 3px; display: block; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 10px 14px; border-radius: var(--radius-pill); color: var(--ink-soft); transition: all 0.2s ease; cursor: pointer; white-space: nowrap; }
.nav-links a:hover { background: var(--bg-warm); color: var(--ink); }
.nav-links a.active, .nav-links a.active:hover { background: var(--mint-tile); color: var(--emerald-deep); font-weight: 600; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; font-size: 14px; font-weight: 600; border-radius: var(--radius-pill); transition: all 0.2s ease; cursor: pointer; border: none; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--emerald); color: white; }
.btn-primary:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: var(--emerald); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn-white { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn-white:hover { border-color: var(--ink); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* NAV SIGN-UP (clinic vs white-label) */
.nav-cta { position: relative; }
.nav-cta-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; flex-direction: column; gap: 2px; min-width: 220px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(10, 46, 36, 0.25); z-index: 200; }
.nav-cta-menu a { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-cta-menu a span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-top: 1px; }
.nav-cta-menu a:hover, .nav-cta-menu a:focus { background: var(--mint-tile); color: var(--emerald-deep); }
.nav-cta:hover .nav-cta-menu, .nav-cta:focus-within .nav-cta-menu { display: flex; }

@media (max-width: 1360px) { .nav-links { gap: 2px; font-size: 13px; } .nav-links a { padding: 9px 11px; } }
/* Below this the nine links no longer fit on one line beside the logo: the menu button takes over. */
@media (max-width: 1219px) { .nav-links { display: none; } }
@media (max-width: 540px) {
  nav.top { padding: 0 8px; top: 8px; }
  .nav-inner { padding: 5px 5px 5px 14px; gap: 6px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-mark::before { font-size: 15px; }
  .logo-tag { display: none; }
  .btn { padding: 10px 16px; font-size: 13px; }
}
/* MOBILE NAV TOGGLE */
.mobile-toggle { display: none; background: transparent; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0; color: var(--ink); align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-toggle:hover { background: var(--bg-warm); border-color: var(--ink); }
.mobile-toggle svg { width: 18px; height: 18px; }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.985); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 250; padding: 80px 22px 28px; flex-direction: column; overflow-y: auto; }
/* Phones: every item keeps its height and the last buttons clear Safari's bottom bar (the menu scrolls). */
.mobile-menu { height: 100vh; height: 100dvh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mobile-menu > * { flex-shrink: 0; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { display: flex; }
.mobile-menu .mobile-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--ink); padding: 0; }
.mobile-menu .mobile-close:hover { background: var(--bg-warm); }
.mobile-menu > a { padding: 16px 20px; font-size: 18px; font-weight: 600; color: var(--ink); border-radius: 14px; border-bottom: 1px solid var(--line-soft); min-height: 56px; display: flex; align-items: center; transition: background 0.15s, color 0.15s; }
.mobile-menu > a:not(.mm-cta):last-of-type { border-bottom: 0; }
.mobile-menu > a:hover, .mobile-menu > a:focus { background: var(--mint-tile); color: var(--emerald-deep); }
.mobile-menu .mm-cta { margin-top: 24px; padding: 18px 20px; background: var(--emerald); color: white; border-radius: 100px; text-align: center; font-weight: 700; border: 0; justify-content: center; min-height: 60px; }
.mobile-menu .mm-cta:hover, .mobile-menu .mm-cta:focus { background: var(--emerald-deep); color: white; }
.mobile-menu .mm-cta-alt { margin-top: 10px; background: transparent; color: var(--emerald-deep); border: 1.5px solid var(--emerald); }
.mobile-menu .mm-cta-alt:hover, .mobile-menu .mm-cta-alt:focus { background: var(--mint-tile); color: var(--emerald-deep); }

@media (max-width: 1219px) {
  .nav-links { display: none !important; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .nav-inner > .btn-primary { padding: 9px 14px; font-size: 12px; }
}

/* SECTIONS & TYPOGRAPHY */
section { padding: 80px 0; position: relative; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 18px; padding: 6px 14px; background: var(--mint-tile); border-radius: var(--radius-pill); }
.s-title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; max-width: 820px; margin-bottom: 22px; color: var(--ink); }
.s-title em { font-style: normal; color: var(--emerald); }
.s-lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 36px; box-shadow: 0 2px 8px -2px rgba(10, 46, 36, 0.06); }
.pill::before { content: ''; flex: 0 0 auto; width: 73px; height: 14px; background: url('assets/icons/flags-uk-us-eu.svg') no-repeat center / contain; } /* UK, US and EU flags */

/* PAGE HEADER */
.page-header { padding: 56px 0 28px; max-height: 60vh; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 18px; color: var(--ink); }
.page-header h1 em { font-style: normal; color: var(--emerald); }
.page-header .lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 720px; }
@media (max-width: 540px) { .page-header { padding: 36px 0 20px; max-height: none; } }

/* DEEP-DIVE */
.deep { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.deep.flip { direction: rtl; }
.deep.flip > * { direction: ltr; }
.deep-text .eyebrow { margin-bottom: 16px; }
.deep h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 18px; color: var(--ink); }
.deep h2 em { font-style: normal; color: var(--emerald); }
.deep p.lede { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; }
.deep-list { list-style: none; margin-bottom: 32px; }
.deep-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: flex-start; gap: 14px; }
.deep-list li:last-child { border-bottom: 0; }
.deep-list .num { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 2px; flex-shrink: 0; }
.deep-list .body strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; font-weight: 700; }
.deep-list .body span { font-size: 14px; color: var(--ink-soft); }
.deep-visual { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 30px 70px -30px rgba(10, 46, 36, 0.2); }
@media (max-width: 900px) { .deep, .deep.flip { grid-template-columns: 1fr; direction: ltr; gap: 40px; } }

/* MINI-DASH */
.mini-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.mini-dots { display: flex; gap: 5px; }
.mini-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mini-dots span:first-child { background: #f4a89c; }
.mini-dots span:nth-child(2) { background: #f6d68f; }
.mini-dots span:nth-child(3) { background: var(--emerald); }
.mini-url { flex: 1; padding: 5px 12px; background: var(--bg); border-radius: var(--radius-pill); font-size: 11px; font-family: var(--mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); align-items: center; font-size: 13px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row.head { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--emerald-light); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.pat { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.tag.go { background: var(--mint-tile); color: var(--emerald-deep); }
.tag.wait { background: #fef0d9; color: #a06700; }
.tag.send { background: var(--moss-tile); color: var(--emerald-deep); }
.tag.live { background: var(--peach-tile); color: #b86b1d; }

/* INTEGRATIONS */
.integrations-section { background: var(--ink); color: var(--paper); border-radius: 32px; margin: 0 28px; padding: 100px 0; position: relative; overflow: hidden; }
.integrations-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(20, 163, 123, 0.3), transparent 40%), radial-gradient(circle at 85% 80%, rgba(15, 122, 95, 0.25), transparent 40%); }
.integrations-section .container { position: relative; z-index: 2; }
.integrations-section .eyebrow { background: rgba(20, 163, 123, 0.18); color: var(--emerald-bright); }
.integrations-section .s-title { color: var(--paper); max-width: 900px; }
.integrations-section .s-title em { color: var(--emerald-bright); }
.integrations-section .s-lede { color: rgba(255,255,255,0.7); }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.int-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; padding: 24px; transition: all 0.25s ease; cursor: pointer; }
.int-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-3px); border-color: rgba(20, 163, 123, 0.4); }
.int-logo { width: 44px; height: 44px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-weight: 800; font-size: 15px; color: var(--paper); letter-spacing: -0.02em; flex-shrink: 0; }
.int-logo img { width: 32px; height: 32px; display: block; }
.int-logo .ph { font-weight: 800; }
.int-name { font-size: 15px; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.int-cat { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500; }
.int-desc { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 10px; line-height: 1.45; }
.int-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-pill { padding: 7px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s; }
.cat-pill:hover { background: rgba(255,255,255,0.12); color: var(--paper); }
.cat-pill.on { background: var(--emerald-bright); color: var(--ink); border-color: var(--emerald-bright); font-weight: 700; }
.int-search { display: flex; align-items: center; gap: 12px; margin-top: 28px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-pill); padding: 10px 18px; max-width: 460px; }
.int-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--paper); font-family: inherit; font-size: 14px; }
.int-search input::placeholder { color: rgba(255,255,255,0.45); }
.int-search svg { color: rgba(255,255,255,0.55); flex-shrink: 0; }
.int-empty { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.5); font-size: 14px; display: none; }
@media (max-width: 900px) { .int-grid { grid-template-columns: repeat(2, 1fr); } .integrations-section { margin: 0 12px; padding: 70px 0; } }

/* STATS */
.bigstats { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 60px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.bs-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.bs-num em { font-style: normal; color: var(--emerald); }
.bs-label { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.bs-cap { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 800px) { .bigstats { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; } }

/* TESTIMONIAL */
.testimonial { padding: 100px 0; }
.test-card { background: var(--mint-tile); border-radius: 32px; padding: 80px 60px; position: relative; overflow: hidden; }
.test-card::before { content: '"'; position: absolute; top: 30px; left: 60px; font-size: 180px; color: var(--emerald); opacity: 0.18; line-height: 1; font-family: var(--font); }
.test-quote { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); max-width: 880px; margin-bottom: 36px; position: relative; }
.test-by { display: flex; align-items: center; gap: 14px; position: relative; }
.test-av { width: 52px; height: 52px; border-radius: 50%; background: var(--emerald); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.test-name { font-weight: 700; color: var(--ink); }
.test-role { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 800px) { .test-card { padding: 50px 28px; } .test-card::before { left: 28px; font-size: 120px; } }

/* CTA */
.cta-section { text-align: center; padding: 120px 0; }
.cta-card { background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%); border-radius: 32px; padding: 100px 40px; color: white; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.18), transparent 50%), radial-gradient(circle at 75% 70%, rgba(20, 163, 123, 0.3), transparent 50%); }
.cta-card > * { position: relative; }
.cta-card .eyebrow { background: rgba(255,255,255,0.18); color: white; }
.cta-card .s-title { color: white; margin-left: auto; margin-right: auto; }
.cta-card .s-title em { color: var(--emerald-light); }
.cta-card .s-lede { color: rgba(255,255,255,0.88); margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* FOOTER */
footer { background: var(--paper); padding: 80px 0 32px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.foot-brand .logo { margin-bottom: 20px; }
.foot-brand p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; max-width: 300px; }
.foot-col h5 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; font-size: 14px; }
.foot-col a { color: var(--ink-soft); transition: color 0.2s; }
.foot-col a:hover { color: var(--emerald-deep); }
.foot-legal { padding-top: 32px; padding-bottom: 22px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 980px; }
.foot-bottom { padding-bottom: 22px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 20px; align-items: center; }
.foot-bottom a { color: var(--ink-soft); transition: color 0.2s; }
.foot-bottom a:hover { color: var(--emerald-deep); }
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-badges span { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; }
.foot-built { text-align: center; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12px; font-style: italic; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* PILLAR CARDS */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.pillar-card { background: var(--mint-tile); border: 1px solid var(--emerald-light); border-radius: var(--radius-lg); padding: 36px; transition: transform 0.3s ease; }
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(10, 46, 36, 0.25); }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--emerald); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: 0 10px 22px -10px rgba(15, 122, 95, 0.5); }
.pillar-icon svg { width: 26px; height: 26px; color: white; }
.pillar-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.pillar-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr; } .pillar-card { padding: 28px; } }

/* LEGAL PAGES */
.legal-header { padding: 60px 0 30px; }
.legal-header .eyebrow { margin-bottom: 14px; }
.legal-header h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 14px; }
.legal-meta { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.legal-wrap { padding: 0 0 80px; }
.legal-note { background: var(--mint-tile); border: 1px solid var(--emerald-light); border-left: 4px solid var(--emerald); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--ink); line-height: 1.6; margin: 0 0 48px; max-width: 760px; }
.legal-note strong { font-weight: 700; }
.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; margin-bottom: 56px; max-width: 760px; }
.legal-toc h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.legal-toc ol { list-style: decimal; padding-left: 22px; columns: 2; column-gap: 28px; }
.legal-toc li { font-size: 14px; line-height: 1.85; color: var(--ink-soft); break-inside: avoid; }
.legal-toc a { color: var(--ink-soft); transition: color 0.2s; }
.legal-toc a:hover { color: var(--emerald-deep); }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-top: 52px; margin-bottom: 16px; scroll-margin-top: 90px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h2 .num { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-right: 10px; font-weight: 500; }
.legal-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 26px; margin-bottom: 8px; }
.legal-body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; }
.legal-body ul { margin: 0 0 18px 22px; padding: 0; color: var(--ink-soft); }
.legal-body li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--emerald-deep); text-decoration: underline; }
.legal-body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 56px 0; }
.legal-body .legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.legal-body .legal-table th, .legal-body .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.legal-body .legal-table th { font-weight: 700; color: var(--ink); background: var(--mint-tile); }
.legal-body .legal-table td { color: var(--ink-soft); }
.legal-sign { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; margin-top: 32px; }
.legal-sign h3 { margin-top: 0; }
.legal-sign .sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.legal-sign .sig-line { border-top: 1px dashed var(--line); margin-top: 36px; padding-top: 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .legal-toc ol { columns: 1; } .legal-sign .sig-row { grid-template-columns: 1fr; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 540px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
}

/* FLOW STEPS (4-step) */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.flow-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 22px; position: relative; }
.flow-num { width: 32px; height: 32px; background: var(--emerald); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.flow-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--ink); letter-spacing: -0.01em; }
.flow-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .flow-grid { grid-template-columns: 1fr; } }

/* BENEFIT COLUMNS (3) */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.benefit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-tile); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.benefit-icon svg { width: 22px; height: 22px; color: var(--emerald-deep); }
.benefit-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--ink); letter-spacing: -0.02em; }
.benefit-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { margin-top: 28px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary { padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--emerald); transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--emerald-deep); }
.faq-item .faq-body { padding: 0 0 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.65; max-width: 720px; }

/* COMPARISON TABLE */
.compare-wrap { margin-top: 32px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare-table thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-bottom: 12px; }
.compare-table thead th.col-pexpo { color: var(--emerald-deep); }
.compare-table tbody th { font-weight: 600; color: var(--ink); }
.compare-table td.vs-build { color: var(--ink-soft); }
.compare-table td.vs-pexpo { background: var(--mint-tile); color: var(--ink); font-weight: 500; border-bottom-color: var(--emerald-light); }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }
.compare-table th:first-child, .compare-table td:first-child { padding-left: 0; }

/* OWN/RUN TWO-COL */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.split-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.split-card.you { background: linear-gradient(155deg, var(--paper) 0%, var(--mint-tile) 100%); }
.split-card.us { background: linear-gradient(155deg, var(--ink) 0%, var(--emerald-deep) 100%); color: var(--paper); border-color: var(--emerald-deep); }
.split-tag { display: inline-block; padding: 5px 12px; background: rgba(10,46,36,0.08); border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.split-card.us .split-tag { background: rgba(255,255,255,0.12); color: var(--emerald-light); }
.split-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.split-card ul { list-style: none; padding: 0; }
.split-card li { padding: 8px 0; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.55; }
.split-card li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; background-color: rgba(15,122,95,0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5d48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 11px; background-repeat: no-repeat; background-position: center; }
.split-card.us li { color: rgba(255,255,255,0.92); }
.split-card.us li::before { background-color: rgba(20,163,123,0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314a37b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
@media (max-width: 800px) { .split-grid { grid-template-columns: 1fr; } }

/* COMMON STACKS */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.stack-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.stack-card h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--emerald-deep); margin-bottom: 6px; }
.stack-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.015em; }
.stack-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-chip { font-size: 12px; padding: 5px 11px; background: var(--mint-tile); color: var(--emerald-deep); border-radius: 100px; font-weight: 600; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; } }

/* PRINCIPLES (numbered list of 5) */
.principles-list { margin-top: 32px; max-width: 820px; counter-reset: prin; }
.principle-item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.principle-item:last-child { border-bottom: 0; }
.principle-item::before { counter-increment: prin; content: counter(prin, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--emerald); font-weight: 600; min-width: 32px; padding-top: 4px; }
.principle-item h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.015em; }
.principle-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* COMPANY FACTS PANEL */
.facts-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 38px; margin-top: 28px; max-width: 820px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.fact-item dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 6px; }
.fact-item dd { font-size: 15px; color: var(--ink); line-height: 1.5; }
@media (max-width: 600px) { .facts-grid { grid-template-columns: 1fr; } .facts-panel { padding: 28px 24px; } }

/* TESTIMONIAL CAROUSEL (auto-scroll) */
.test-carousel { padding: 60px 0 70px; overflow: hidden; position: relative; }
.test-carousel::before, .test-carousel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.test-carousel::before { left: 0; background: linear-gradient(90deg, var(--bg-warm), transparent); }
.test-carousel::after { right: 0; background: linear-gradient(-90deg, var(--bg-warm), transparent); }
.test-carousel-header { text-align: center; margin-bottom: 36px; padding: 0 28px; }
.test-carousel-header h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 8px; }
.test-carousel-header h2 em { font-style: normal; color: var(--emerald); }
.test-carousel-header p { font-size: 15px; color: var(--ink-soft); }
.test-track { display: flex; gap: 20px; width: max-content; animation: test-scroll 70s linear infinite; padding: 8px 0; }
.test-track:hover { animation-play-state: paused; }
@keyframes test-scroll { to { transform: translateX(calc(-50% - 10px)); } }
.test-card-mini { flex: 0 0 380px; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 8px 26px -18px rgba(10, 46, 36, 0.22); overflow: hidden; }
.test-stars { color: var(--emerald); font-size: 15px; letter-spacing: 3px; line-height: 1; }
.test-quote-mini { font-size: 15px; line-height: 1.65; color: var(--ink); font-weight: 500; flex: 1; margin: 0; }
.test-divider { height: 1px; background: var(--line); width: 100%; }
.test-head { display: flex; align-items: center; gap: 14px; }
.test-av-mini { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; flex-shrink: 0; letter-spacing: 0.02em; overflow: hidden; }
.test-name-mini { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.test-role-mini { font-size: 12px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
@media (max-width: 800px) {
  .test-carousel { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 40px 0 50px; }
  .test-carousel::before, .test-carousel::after { display: none; }
  .test-track { animation: none; padding: 4px 20px; gap: 16px; width: max-content; }
  .test-card-mini { flex: 0 0 calc(100vw - 80px); max-width: 340px; padding: 26px; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .test-track { animation: none; } }

/* PRICE TWO-CARD (shared) */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; position: relative; overflow: hidden; }
.price-card.clinic { background: linear-gradient(160deg, var(--paper) 0%, var(--mint-tile) 100%); }
.price-card.brand { background: linear-gradient(160deg, var(--ink) 0%, var(--emerald-deep) 100%); color: var(--paper); }
.price-flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(255,255,255,0.7); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.price-card.brand .price-flag { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); color: var(--paper); }
.price-flag .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.price-card.brand .price-flag .fdot { background: var(--emerald-bright); }
.price-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.price-card .sub { font-size: 14px; opacity: 0.7; margin-bottom: 24px; }
.price-card.brand .sub { color: rgba(255,255,255,0.75); }
.price-amt { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.price-amt .big { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.price-card.brand .price-amt .big { color: var(--paper); }
.price-amt .small { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.price-card.brand .price-amt .small { color: rgba(255,255,255,0.7); }
.price-fine { font-size: 11.5px; color: var(--muted); margin: 12px 0 0 4px; }
.price-card.brand .price-fine { color: rgba(255, 255, 255, 0.55); }
.price-list { list-style: none; margin-bottom: 26px; padding: 0; }
.price-list li { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.5; }
.price-card.brand .price-list li { border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.92); }
.price-list li:last-child { border-bottom: 0; }
.price-list li::before { content: ''; width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background-color: var(--mint-tile); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5d48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 11px; background-repeat: no-repeat; background-position: center; }
.price-card.brand .price-list li::before { background-color: rgba(20,163,123,0.20); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314a37b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 32px 26px; } }

/* SIGNUP PAGE EMBED */
.signup-wrap { padding: 80px 0 60px; }
.signup-intro { text-align: center; max-width: 680px; margin: 0 auto 24px; font-family: var(--font); }
.signup-intro .eyebrow { margin-bottom: 14px; }
.signup-intro h1 { font-family: var(--font); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.signup-intro p { font-family: var(--font); font-size: 16px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.signup-frame { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 0; box-shadow: 0 24px 60px -32px rgba(10, 46, 36, 0.22); overflow: hidden; max-width: 880px; margin: 0 auto; }
.signup-frame iframe { display: block; width: 100%; min-height: 1100px; border: none; margin: 0 auto; }
@media (max-width: 540px) {
  .signup-wrap { padding: 60px 0 40px; }
  .signup-frame { border-radius: 16px; }
}

/* BREADCRUMBS */
.breadcrumbs { padding: 18px 0 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--ink-soft); transition: color 0.2s; text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald-deep); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }

/* ARTICLE */
.article-wrap { padding: 40px 0 60px; }
.article-head { max-width: 720px; margin: 0 auto 16px; padding: 0 28px; }
.article-eyebrow { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 14px; padding: 5px 12px; background: var(--mint-tile); border-radius: var(--radius-pill); }
.article-title { font-size: clamp(32px, 4.8vw, 52px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); margin-bottom: 20px; }
.article-byline { font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-byline .sep { opacity: 0.4; }
.article-share { display: flex; gap: 8px; margin-left: auto; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.share-btn:hover { color: var(--emerald-deep); border-color: var(--emerald); transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; }
.article-hero { max-width: 1100px; margin: 0 auto 32px; padding: 0 28px; width: 100%; }
.article-hero img {
  display: block;
  width: 100%;
  height: 40vh;
  max-height: 40vh;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}
.article-hero .hero-placeholder {
  width: 100%;
  height: 40vh;
  min-height: 320px;
  background: linear-gradient(135deg, var(--mint-tile) 0%, var(--emerald-light) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-deep);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 1024px) {
  .article-hero img,
  .article-hero .hero-placeholder { height: 35vh; max-height: 35vh; min-height: 280px; }
}
@media (max-width: 768px) {
  .article-hero { margin-bottom: 24px; padding: 0 20px; }
  .article-hero img,
  .article-hero .hero-placeholder { height: 30vh; max-height: 30vh; min-height: 220px; border-radius: 14px; }
}

.article-body { max-width: 720px; margin: 0 auto; padding: 0 28px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body > p.dropcap:first-letter, .article-body > .dropcap::first-letter { font-size: 64px; line-height: 0.95; font-weight: 700; color: var(--emerald); float: left; padding: 6px 12px 0 0; font-family: var(--font); }
.article-body h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--emerald-deep); letter-spacing: -0.02em; margin-top: 52px; margin-bottom: 16px; line-height: 1.18; }
.article-body h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 32px; margin-bottom: 12px; letter-spacing: -0.015em; line-height: 1.25; }
.article-body ul, .article-body ol { margin: 0 0 22px 0; padding-left: 26px; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; padding-left: 4px; }
.article-body ul li::marker { color: var(--emerald); font-size: 1.1em; }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--emerald); font-weight: 700; }
.article-body blockquote { border-left: 4px solid var(--emerald); padding: 14px 0 14px 24px; margin: 32px 0; font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 500; font-style: italic; }
.article-body blockquote p { margin-bottom: 8px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { background: var(--mint-tile); color: var(--emerald-deep); padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 0.92em; }
.article-body a:not(.btn) { color: var(--emerald-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:not(.btn):hover { color: var(--emerald); }
.article-body a.btn { text-decoration: none; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body img { width: 100%; border-radius: 16px; margin: 32px 0 8px; }
.article-body figure { margin: 32px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
/* Mid-article inline CTA: small post image + rotating copy, 1-2 per article */
.inline-cta { display: flex; align-items: center; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 36px 0; }
.inline-cta .inline-cta__img { margin: 0; width: 130px; height: 130px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.inline-cta__body { flex: 1; min-width: 0; }
.inline-cta__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-deep); background: var(--mint-tile); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.inline-cta__body h4 { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); margin: 0 0 12px; }
.inline-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-cta__actions .btn { padding: 9px 16px; font-size: 13.5px; }
@media (max-width: 600px) { .inline-cta { flex-direction: column; align-items: stretch; } .inline-cta .inline-cta__img { width: 100%; height: 150px; } }

.article-callout { background: var(--mint-tile); border-left: 4px solid var(--emerald); border-radius: 0 12px 12px 0; padding: 22px 26px; margin: 36px 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.article-callout strong { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 10px; }
.article-callout p:last-child { margin-bottom: 0; }

/* ARTICLE END CTA */
.article-cta { max-width: 760px; margin: 60px auto 0; padding: 0 28px; }
.article-cta-card { background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%); border-radius: 22px; padding: 44px 36px; color: white; text-align: center; position: relative; overflow: hidden; }
.article-cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.16), transparent 50%), radial-gradient(circle at 75% 70%, rgba(20,163,123,0.25), transparent 50%); }
.article-cta-card > * { position: relative; }
.article-cta-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; color: white; }
.article-cta-card p { font-size: 15px; color: rgba(255,255,255,0.92); margin-bottom: 22px; }
.article-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* RELATED POSTS */
.related-posts { padding: 70px 0 30px; }
.related-posts h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.02em; }

/* BLOG INDEX */
.blog-hero { padding: 56px 0 28px; }
.blog-hero .eyebrow { margin-bottom: 18px; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); margin-bottom: 16px; max-width: 820px; }
.blog-hero p.lede { font-size: 17px; color: var(--ink-soft); max-width: 700px; line-height: 1.55; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; }
.blog-cat-pill { padding: 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all 0.2s; user-select: none; }
.blog-cat-pill:hover { background: var(--bg-warm); color: var(--ink); }
.blog-cat-pill.on { background: var(--emerald); color: white; border-color: var(--emerald); font-weight: 600; }

.featured-post { display: grid; grid-template-columns: 5fr 6fr; gap: 0; margin-bottom: 56px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.featured-post:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(10, 46, 36, 0.25); }
.featured-post .fp-image { background: linear-gradient(135deg, #d9ebe1 0%, #c2e8d8 100%); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--emerald-deep); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 24px; }
.featured-post .fp-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-post .fp-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .fp-cat { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 14px; padding: 5px 12px; background: var(--mint-tile); border-radius: var(--radius-pill); align-self: flex-start; }
.featured-post h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.14; color: var(--ink); margin-bottom: 14px; }
.featured-post .fp-snippet { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.featured-post .fp-byline { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.featured-post .fp-link { font-size: 14px; font-weight: 600; color: var(--emerald-deep); }
.featured-post a { text-decoration: none; color: inherit; display: contents; }
@media (max-width: 900px) { .featured-post { grid-template-columns: 1fr; } .featured-post .fp-image { aspect-ratio: 16/9; } .featured-post .fp-body { padding: 28px; } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(10, 46, 36, 0.22); }
.post-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card .pc-image { background: linear-gradient(135deg, var(--mint-tile), var(--emerald-light)); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--emerald-deep); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 16px; }
.post-card .pc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .pc-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .pc-cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 10px; }
.post-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.post-card .pc-snippet { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-byline { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 50px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.pagination a:hover { background: var(--bg-warm); color: var(--ink); }
.pagination a.current { background: var(--emerald); color: white; border-color: var(--emerald); }
.pagination a.next { width: auto; border-radius: 22px; padding: 0 18px; gap: 6px; }

.email-capture { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 50px 40px; text-align: center; margin: 50px 0 60px; position: relative; overflow: hidden; }
.email-capture::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(20,163,123,0.22), transparent 50%), radial-gradient(circle at 80% 70%, rgba(15,122,95,0.18), transparent 50%); }
.email-capture > * { position: relative; }
.email-capture h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; color: white; }
.email-capture p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 26px; }
.email-capture form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.email-capture input[type="email"] { flex: 1; min-width: 220px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-pill); padding: 14px 22px; font-family: inherit; font-size: 15px; color: white; outline: none; }
.email-capture input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.email-capture input[type="email"]:focus { border-color: var(--emerald-bright); background: rgba(255,255,255,0.12); }
.email-capture button { background: var(--emerald-bright); color: var(--ink); border: 0; border-radius: var(--radius-pill); padding: 14px 26px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.email-capture button:hover { background: var(--emerald-light); }
.subscribe-success { background: rgba(20, 163, 123, 0.14); border: 1px solid rgba(20, 163, 123, 0.45); border-left: 4px solid var(--emerald-bright); border-radius: 14px; padding: 22px 26px; max-width: 480px; margin: 0 auto; text-align: left; }
.subscribe-success strong { display: block; font-size: 16px; font-weight: 700; color: var(--paper); margin-bottom: 6px; letter-spacing: -0.01em; }
.subscribe-success p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.55; }
@media (max-width: 540px) { .email-capture { padding: 36px 24px; } }

/* WHAT IS PEXPO: homepage semantic block */
.what-is-pexpo { padding: 48px 0 24px; text-align: center; }
.what-is-pexpo .what-lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.65; color: var(--ink); max-width: 940px; margin: 0 auto; font-weight: 500; }
.what-is-pexpo .what-lede strong { color: var(--emerald-deep); font-weight: 700; }

/* ---- GEO TL;DR / Quick Answer card (top of blog posts) ---- */
.quick-answer {
  max-width: 720px;
  margin: 40px auto 48px;
  padding: 40px;
  background: var(--mint-tile);
  border-left: 4px solid var(--emerald);
  border-radius: 18px;
  box-sizing: border-box;
}
.quick-answer-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin: 0 0 16px 0;
}
.quick-answer-text {
  font-size: 17px;
  line-height: 1.6;
  color: #064e3b;
  margin: 0;
  font-weight: 500;
}
.quick-answer-subhead {
  margin: 24px 0 12px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}
.quick-answer-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.quick-answer-points li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #065f46;
}
.quick-answer-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}
@media (max-width: 768px) {
  .quick-answer {
    margin: 32px 20px 40px;
    padding: 28px;
  }
  .quick-answer-text { font-size: 16px; }
}

/* ---- BLOG-CARDS-V2 (real hero images on /blog index) ---- */

/* Featured post: image left, body right */
.featured-post .fp-image.has-hero { background: var(--mint-tile); padding: 0; position: relative; overflow: hidden; }
.featured-post .fp-image.has-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.featured-post:hover .fp-image.has-hero img { transform: scale(1.03); }
.featured-post .fp-image.has-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,46,36,0) 60%, rgba(10,46,36,0.18) 100%);
  pointer-events: none;
}


/* Post-card grid: consistent card height + zoomable image */
.post-grid { align-items: stretch; }

.post-card { transition: transform 0.28s ease, box-shadow 0.28s ease; height: 100%; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -22px rgba(10, 46, 36, 0.26); }

.post-card .pc-image.has-hero {
  background: var(--mint-tile);
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card .pc-image.has-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.post-card:hover .pc-image.has-hero img { transform: scale(1.03); }
.post-card .pc-image.has-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,46,36,0) 55%, rgba(10,46,36,0.22) 100%);
  pointer-events: none;
}



/* Card padding + body layout consistency */
.post-card .pc-body { padding: 24px; gap: 0; }
@media (max-width: 600px) { .post-card .pc-body { padding: 20px; } }

/* 2-line clamps for visual consistency across cards */
.post-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-card .pc-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}
.post-card .pc-byline {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

/* Featured post title clamp for visual symmetry */
.featured-post h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-post .fp-snippet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-card .pc-pill,
.featured-post .fp-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a5d48;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(10, 93, 72, 0.08);
  box-shadow: 0 2px 8px rgba(10, 46, 36, 0.08);
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}
.featured-post .fp-pill { font-size: 12px; padding: 7px 14px; top: 20px; left: 20px; max-width: calc(100% - 40px); }
.post-card .pc-pill:has-text-overflow,
.featured-post .fp-pill:has-text-overflow { font-size: 10px; }

/* Fallback styling when no hero image: keep tile but add pill */
.post-card .pc-image:not(.has-hero) { position: relative; overflow: hidden; }
.featured-post .fp-image:not(.has-hero) { position: relative; overflow: hidden; }


/* ---- Related reading section on individual posts ---- */
.related-posts { padding: 60px 0 80px; background: var(--paper-soft, #fafafa); }
.related-posts .container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.related-posts h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 32px 0; }
.related-posts .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .related-posts .post-grid { grid-template-columns: 1fr; } .related-posts { padding: 48px 0 56px; } .related-posts h3 { font-size: 24px; margin-bottom: 24px; } }

/* ---- Article tools toolbar (TTS + Sharing): REDESIGNED v2 ---- */
.article-tools {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

/* ---- TTS module: pill-grouped controls with mint-tinted background ---- */
.tts-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--mint-tile);
  border: 1px solid rgba(15, 122, 95, 0.12);
  border-radius: 999px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  background: var(--emerald-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: 600 12.5px/1 inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.tts-btn:hover { background: var(--emerald); box-shadow: 0 2px 10px rgba(15, 122, 95, 0.28); }
.tts-btn:active { transform: translateY(1px); }
.tts-btn:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 2px; }
.tts-btn svg { width: 12px; height: 12px; }

.tts-btn.icon {
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  background: transparent;
  color: var(--emerald-deep);
  box-shadow: none;
}
.tts-btn.icon:hover {
  background: rgba(15, 122, 95, 0.1);
  box-shadow: none;
  color: var(--emerald);
}
.tts-btn.icon svg { width: 13px; height: 13px; }

/* Native select: strip every OS chrome and re-skin */
.tts-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230a5d48' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 6px 24px 6px 12px;
  border: 1px solid rgba(15, 122, 95, 0.18);
  border-radius: 999px;
  font: 500 12px/1 inherit;
  color: var(--emerald-deep);
  cursor: pointer;
  height: 30px;
  max-width: 130px;
  text-overflow: ellipsis;
  overflow: hidden;
  font-family: inherit;
}
.tts-select:hover { background-color: rgba(15, 122, 95, 0.05); border-color: rgba(15, 122, 95, 0.28); }
.tts-select:focus { outline: none; border-color: var(--emerald-bright); box-shadow: 0 0 0 3px rgba(20, 163, 123, 0.16); }
.tts-select::-ms-expand { display: none; }

/* Listening status with subtle pulse */
.tts-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 6px;
  font: 400 11.5px/1 inherit;
  color: var(--emerald-deep);
  white-space: nowrap;
}
.tts-status:empty { display: none; }
.tts-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  animation: tts-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tts-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* ---- Share buttons: clean horizontal row, hug right on desktop ---- */
.share-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}

.share-controls .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  padding: 0;
  font-family: inherit;
  position: relative;
  flex-shrink: 0;
}
.share-controls .share-btn svg { width: 13px; height: 13px; }
.share-controls .share-btn:hover {
  background: var(--mint-tile);
  color: var(--emerald-deep);
  border-color: rgba(15, 122, 95, 0.25);
  transform: translateY(-1px);
}
.share-controls .share-btn:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 2px;
}
.share-controls .share-btn.copied {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.share-controls .share-btn.copied::after {
  content: 'Copied';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font: 500 11px/1 inherit;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---- Responsive: tablet ---- */
@media (max-width: 900px) {
  .article-tools {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }
  .share-controls { justify-self: start; flex-wrap: wrap; }
}

/* ---- Responsive: mobile ---- */
@media (max-width: 768px) {
  .article-tools {
    margin: 0 20px 28px;
  }
  .tts-controls {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .tts-controls::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .tts-select { max-width: 92px; padding: 6px 22px 6px 10px; }
  .tts-btn { padding: 7px 12px; }
  .share-controls .share-btn { width: 30px; height: 30px; }
  .share-controls .share-btn svg { width: 12px; height: 12px; }
}

@media print {
  .article-tools { display: none !important; }
}


/* ---- Guides section (curated blog clusters on landing pages) ---- */
.guides-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--paper) 0%, #fafbf9 100%);
  border-top: 1px solid var(--line);
}
.guides-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.guides-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.guides-eyebrow {
  display: inline-block;
  font: 700 11px/1 inherit;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  padding: 6px 12px;
  background: var(--mint-tile);
  border-radius: 999px;
  margin-bottom: 16px;
}
.guides-heading {
  font: 700 clamp(28px, 3.4vw, 38px) / 1.15 inherit;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}
.guides-lede {
  font: 400 17px/1.6 inherit;
  color: var(--ink-soft);
  margin: 0;
  max-width: 640px;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.guides-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
@media (max-width: 900px) {
  .guides-section { padding: 56px 0; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .guides-head { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guides-section .container { padding: 0 20px; }
}


/* ---- Article table of contents ---- */
.article-toc {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  background: #fafbfa;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toc-head { margin-bottom: 10px; }
.toc-label {
  font: 700 11px/1 inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}
.toc-list {
  margin: 0;
  padding: 0;
  list-style: decimal inside;
  columns: 2;
  column-gap: 32px;
}
.toc-list li {
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.5;
  break-inside: avoid;
}
.toc-list a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}
.toc-list a:hover {
  color: var(--emerald-deep);
  border-bottom-color: var(--emerald-light);
}
@media (max-width: 768px) {
  .article-toc { margin: 0 20px 24px; padding: 16px 20px; }
  .toc-list { columns: 1; }
}
@media print {
  .article-toc { display: none; }
}

/* ---- Anchor scroll offset for TOC nav ---- */
.article-body h2[id] { scroll-margin-top: 80px; }


/* ---- Blog search (client-side) ---- */
.blog-search-wrap {
  max-width: 1140px;
  margin: 0 auto 32px;
  padding: 0 28px;
}
.blog-search-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}
#blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 400 15px/1 inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
#blog-search-input:focus {
  outline: none;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(20, 163, 123, 0.15);
}
#blog-search-input::placeholder { color: var(--muted); }
.blog-search-results { margin-top: 32px; }
.blog-search-results:not(.active) { display: none; }
.blog-search-results .search-meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.blog-search-results mark {
  background: rgba(20, 163, 123, 0.2);
  color: inherit;
  padding: 1px 2px;
  border-radius: 2px;
}
.blog-search-results .search-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  background: var(--mint-tile);
  border-radius: 12px;
}
.blog-search-results .search-empty a {
  color: var(--emerald-deep);
  font-weight: 600;
}
@media (max-width: 768px) {
  .blog-search-wrap { padding: 0 20px; }
  #blog-search-input { padding: 12px 16px 12px 42px; font-size: 14px; }
  .blog-search-icon { left: 14px; width: 16px; height: 16px; }
}

/* ANNOUNCE BAR (PExpo Diagnostics launch) */
.announce-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: #eaf5ef; text-align: center; padding: 10px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 12px; transition: background 0.2s ease; }
.announce-bar:hover { background: var(--emerald-deep); }
.announce-bar .ab-tag { background: var(--emerald-bright); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); flex-shrink: 0; }
.announce-bar .ab-link { color: #7ed3ad; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .announce-bar { font-size: 12px; padding: 9px 14px; } }


/* =====================================================================
   THEME 2026-10: richer surfaces, deeper greens, dark footer.
   Layered on top of the rules above (same class names), so every page and
   every blog post picks it up without markup changes.
   ===================================================================== */
:root {
  --ink: #082a21;
  --ink-deep: #041a14;
  --gold: #c8a96a;
  --gold-soft: #f3ead6;
  --shadow-sm: 0 1px 2px rgba(8, 42, 33, 0.05), 0 6px 16px -10px rgba(8, 42, 33, 0.18);
  --shadow-md: 0 2px 4px rgba(8, 42, 33, 0.04), 0 22px 44px -24px rgba(8, 42, 33, 0.30);
  --shadow-lg: 0 4px 10px rgba(8, 42, 33, 0.04), 0 44px 90px -40px rgba(8, 42, 33, 0.40);
}
body {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(20, 163, 123, 0.11), transparent 62%),
    radial-gradient(900px 520px at -8% 12%, rgba(200, 169, 106, 0.09), transparent 60%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
  background-repeat: no-repeat;
  background-color: #eef4f0;
}
::selection { background: rgba(20, 163, 123, 0.22); }

/* Emphasised words in headings: same font and weight as the heading, in green. Never a serif or italic accent (owner's rule). */
h1 em, h2 em, h3 em, .s-title em, .page-header h1 em, .model-card h3 em, .article-title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}
.s-title, .page-header h1, .article-title { letter-spacing: -0.035em; }

/* Nav: crisper glass */
.nav-inner {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(8, 42, 33, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 30px -16px rgba(8, 42, 33, 0.25);
}
.logo-mark { background: linear-gradient(145deg, #0d3b2f, var(--ink-deep)); box-shadow: 0 4px 10px -4px rgba(4, 26, 20, 0.6); }

/* Eyebrow with a live dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 122, 95, 0.18);
  box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 3px rgba(20, 163, 123, 0.18); }

/* Buttons: depth and a soft highlight */
.btn-primary {
  background: linear-gradient(180deg, #13916f 0%, var(--emerald) 55%, var(--emerald-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -10px rgba(15, 122, 95, 0.75);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 26px -10px rgba(15, 122, 95, 0.8); }
.btn-ink { background: linear-gradient(180deg, #123e32 0%, var(--ink) 60%, var(--ink-deep) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -10px rgba(4, 26, 20, 0.8); }
.btn-ghost, .btn-white { box-shadow: var(--shadow-sm); }

/* Cards: softer borders, layered shadows, gentle lift */
.model-card, .benefit-card, .split-card, .stack-card, .price-card, .flow-step, .deep-visual, .facts-panel, .pillar-card, .legal-toc, .legal-sign, .featured-post {
  border-color: rgba(8, 42, 33, 0.08);
  box-shadow: var(--shadow-sm);
}
.model-card:hover, .benefit-card:hover, .split-card:hover, .stack-card:hover, .price-card:hover, .flow-step:hover { box-shadow: var(--shadow-md); }
.benefit-card, .split-card, .stack-card, .flow-step { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.benefit-card:hover, .split-card:hover, .stack-card:hover, .flow-step:hover { transform: translateY(-3px); }
.post-card { border-color: rgba(8, 42, 33, 0.08); box-shadow: var(--shadow-sm); }
.post-card:hover { box-shadow: var(--shadow-md); }

/* Dark sections: deeper, with a glow and a faint grid */
.integrations-section {
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(20, 163, 123, 0.28), transparent 65%),
    radial-gradient(600px 360px at 0% 100%, rgba(200, 169, 106, 0.12), transparent 60%),
    linear-gradient(160deg, #0b3328 0%, var(--ink-deep) 100%);
  overflow: hidden;
}
.integrations-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.integrations-section > * { position: relative; z-index: 1; }
.int-card { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.int-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(20, 163, 123, 0.45); transform: translateY(-2px); }
.int-logo img { width: 24px; height: 24px; }
.integrations-section .s-title em { color: #5fd3a8; }

.cta-card {
  background:
    radial-gradient(520px 300px at 15% 0%, rgba(95, 211, 168, 0.35), transparent 65%),
    radial-gradient(520px 320px at 100% 100%, rgba(200, 169, 106, 0.22), transparent 60%),
    linear-gradient(135deg, #0e6e55 0%, #0a4d3c 55%, var(--ink-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-card .s-title em { color: #a9ead0; }
.email-capture, .article-cta-card { box-shadow: var(--shadow-lg); }

/* Footer: dark ink */
footer {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(20, 163, 123, 0.16), transparent 65%),
    linear-gradient(180deg, #072820 0%, var(--ink-deep) 100%);
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
}
footer .logo, footer .logo-text b { color: #fff; }
footer .logo-text i { color: #5fd3a8; }
footer .logo-tag { color: rgba(255, 255, 255, 0.55); }
footer .logo-mark { background: #0d3b2f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
footer .logo-mark::after { box-shadow: 0 0 0 2px #0d3b2f; }
.foot-brand p { color: rgba(255, 255, 255, 0.66); }
.foot-col h5 { color: #fff; }
.foot-col a, .foot-bottom, .foot-bottom a { color: rgba(255, 255, 255, 0.66); }
.foot-col a:hover, .foot-bottom a:hover { color: #5fd3a8; }
.foot-legal { color: rgba(255, 255, 255, 0.45); border-top-color: rgba(255, 255, 255, 0.08); }
.foot-badges span { border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.03); }
.foot-built { color: rgba(255, 255, 255, 0.4); border-top-color: rgba(255, 255, 255, 0.08); }

/* Reveal: shorter travel, and never left hidden for people who prefer less motion */
.reveal { transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee, .test-track { animation: none !important; }
}

/* FACTS YOU CAN CHECK (replaces the testimonial carousel) */
.proof { padding: 80px 0; }
.proof-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.proof-head .s-title, .proof-head .s-lede { margin-left: auto; margin-right: auto; }
.proof-head .s-lede { margin-bottom: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid rgba(8, 42, 33, 0.08); border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.proof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(15, 122, 95, 0.35); }
.proof-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-deep); }
.proof-card h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.proof-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.proof-link { font-size: 13px; font-weight: 700; color: var(--emerald-deep); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.proof-card:hover .arr { transform: translateX(3px); }
.proof-link .arr { transition: transform 0.2s; }
.proof-live { background: linear-gradient(160deg, #0b3328 0%, var(--ink-deep) 100%); border-color: transparent; }
.proof-live .proof-kicker { color: #5fd3a8; }
.proof-live h3 { color: #fff; }
.proof-live p { color: rgba(255, 255, 255, 0.72); }
.proof-live .proof-link { color: #a9ead0; }
.proof-note { text-align: center; margin-top: 26px; font-size: 14px; color: var(--ink-soft); }
.proof-note a { color: var(--emerald-deep); font-weight: 700; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } .proof { padding: 56px 0; } }

/* Reveal safety net for every page: if the scroll observer never fires (link previews, crawlers,
   a slow device), a section fades in on its own after 2.5 seconds instead of staying blank. */
@keyframes pj-reveal-fallback { to { opacity: 1; transform: none; } }
.reveal:not(.in) { animation: pj-reveal-fallback 0.6s ease 2.5s forwards; }
