/* ============================================================
   Pick Up v2 — mirrors the Next.js landing at coparentpickup.co.uk
   Brand: #4A7C59 primary, #2E5C3D dark, #A8D5BA light
   Font:  Montserrat (matches the mobile app)
   ============================================================ */

:root {
  --color-primary:        #4A7C59;
  --color-primary-light:  #A8D5BA;
  --color-primary-dark:   #2E5C3D;
  --color-secondary:      #1976D2;
  --color-background:     #F8F9FA;
  --color-surface:        #FFFFFF;
  --color-surface-hi:     #F0F4F1;
  --color-text:           #333333;
  --color-text-secondary: #666666;
  --color-text-light:     #999999;
  --color-border:         #E0E0E0;
  --color-border-light:   #F0F0F0;
  --color-event-pickup:   #4A7C59;
  --color-event-dropoff:  #1976D2;
  --color-event-activity: #F57C00;
  --color-event-appt:     #9C27B0;
  --color-event-school:   #FF5722;
  --color-event-exchange: #00BCD4;
  --gold:                 #C9A96E;
  --gold-dark:            #8F6A24;
  --gold-text:            #7B5A1C;
  --gold-bg:              #FBF4E1;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,23,17,.06);
  --shadow-md: 0 8px 24px -10px rgba(15,23,17,.15);
  --shadow-lg: 0 20px 50px -20px rgba(15,23,17,.25);
}

/* === reset + base === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary-dark); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { color: var(--color-text); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
p { color: var(--color-text-secondary); }

/* === reveal animation (replaces Framer Motion) === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* === NAV (floating pill) === */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}
@media (min-width: 640px) { .site-header { top: 20px; padding: 0 24px; } }
.nav-pill {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 10px 0 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(15,23,17,0.08), 0 12px 30px -12px rgba(15,23,17,0.10);
}
.nav-pill .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-pill .brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-center {
  display: none;
  gap: 28px;
}
.nav-center a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-center a:hover { color: var(--color-text); }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-ghost {
  display: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 999px;
}
.nav-ghost:hover { color: var(--color-text); background: rgba(0,0,0,0.04); }
.nav-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); color: #fff; }
.nav-burger { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; }

@media (min-width: 768px) {
  .nav-center { display: flex; }
  .nav-ghost { display: inline-flex; }
  .nav-burger { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.98);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 80px 28px 40px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}
.mobile-menu a.nav-primary { border: none; color: #fff; padding: 12px 24px; margin-top: 16px; justify-content: center; }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 28px;
  color: var(--color-text);
  padding: 8px;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168,213,186,0.20) 0%, rgba(168,213,186,0) 60%),
    linear-gradient(180deg, #F8F9FA 0%, #F8F9FA 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 112px;
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 60px 24px 144px;
    align-items: center;
  }
}

.hero-copy { max-width: 600px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
}
.eyebrow-muted {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}
.eyebrow-muted::before { background: var(--color-primary-light); }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.hero h1 em {
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary-dark);
}
.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 520px;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(180deg, #4A7C59 0%, #2E5C3D 100%);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 8px 20px -6px rgba(74,124,89,0.60), 0 14px 36px -14px rgba(15,23,17,0.38);
  transition: transform 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { transform: translateY(-1.5px); filter: brightness(1.05); color: #fff; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 4px 12px -4px rgba(15,23,17,0.10);
}
.btn-appstore:hover { transform: translateY(-1.5px); background: rgba(255,255,255,0.95); }
.btn-appstore .app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.btn-appstore .app-text { display: flex; flex-direction: column; line-height: 1.1; }
.btn-appstore .app-line1 { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-light); }
.btn-appstore .app-line2 { font-size: 15px; font-weight: 600; color: var(--color-text); margin-top: 1px; }

.hero-bullets {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-light);
}
.hero-bullets span { display: inline-flex; align-items: center; gap: 5px; }
.hero-bullets svg { color: var(--color-primary); }

.lifetime-pill {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-image: linear-gradient(to right, #F5EAD3, #FBF4E1);
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 999px;
  font-size: 14px;
  color: var(--gold-text);
  transition: background 0.2s;
}
.lifetime-pill:hover { background-image: linear-gradient(to right, #F1E2C2, #F7EDD3); color: var(--gold-text); }
.lifetime-pill strong { font-weight: 700; }
.lifetime-pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.lifetime-pill .pill-sub { color: #9A7B3C; }
.lifetime-pill svg { color: #9A7B3C; }

.hero-social {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-stack {
  display: inline-flex;
}
.avatar-stack img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #F0F4F1;
  object-fit: cover;
}
.avatar-stack img + img { margin-left: -14px; }
.hero-social p {
  max-width: 220px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

/* === Phone + floating cards === */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}
.hero-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 580px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(168,213,186,0.6) 0%, rgba(168,213,186,0) 75%);
  filter: blur(48px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 320px;
  transform: rotate(-3deg);
  z-index: 1;
  filter: drop-shadow(0 30px 60px rgba(15,23,17,0.28));
}
.phone-frame {
  position: relative;
  width: 320px;
  height: 656px;
  background: linear-gradient(135deg, #3b3f44 0%, #1a1c1f 40%, #0f1113 100%);
  border-radius: 58px;
  padding: 14px;
}
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(180deg, #000 0%, #1a1c1f 100%);
  border-radius: 52px;
}
.phone-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.04) 100%);
  border-radius: 58px 58px 0 0;
}
.phone-island {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 46px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  z-index: 1;
}

.ios-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px 6px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}
.ios-icons { display: inline-flex; gap: 4px; align-items: center; opacity: 0.9; }

.cal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.cal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.cal-head h3 {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cal-actions { display: flex; gap: 6px; }
.cal-actions button {
  width: 32px; height: 32px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-actions .cal-add {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 20px 12px 0;
}
.cal-week .day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-radius: 16px;
}
.cal-week .day.today { background: var(--color-surface-hi); }
.cal-week .d-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cal-week .d-num, .cal-week .d-num-today {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  color: var(--color-text);
}
.cal-week .d-num-today {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(74,124,89,0.3);
}
.cal-week .d-bar {
  width: 20px; height: 4px;
  border-radius: 2px;
}
.cal-week .d-bar.a { background: var(--color-event-pickup); }
.cal-week .d-bar.b { background: var(--color-event-dropoff); }

.cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 0;
  font-size: 10px;
  color: var(--color-text-secondary);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.cal-legend .dot-a, .cal-legend .dot-b {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.cal-legend .dot-a { background: var(--color-event-pickup); }
.cal-legend .dot-b { background: var(--color-event-dropoff); }
.cal-legend .legend-right { margin-left: auto; color: var(--color-text-light); }

.cal-events {
  padding: 12px;
  flex: 1;
}
.cal-events .ev-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
}
.cal-events .ev-title span { font-size: 10px; color: var(--color-text-light); letter-spacing: 0; text-transform: none; }
.cal-events .ev {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.cal-events .ev-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal-events .ev-time {
  width: 40px; flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-events .ev-name { font-size: 12px; font-weight: 600; color: var(--color-text); }
.cal-events .ev-sub { font-size: 10px; color: var(--color-text-secondary); }
.cal-events .ev.appointment { background: rgba(156,39,176,0.10); }
.cal-events .ev.appointment .ev-dot { background: var(--color-event-appt); }
.cal-events .ev.appointment .ev-time { color: #7A1F8C; }
.cal-events .ev.school { background: rgba(255,87,34,0.10); }
.cal-events .ev.school .ev-dot { background: var(--color-event-school); }
.cal-events .ev.school .ev-time { color: #B83400; }
.cal-events .ev.activity { background: rgba(245,124,0,0.10); }
.cal-events .ev.activity .ev-dot { background: var(--color-event-activity); }
.cal-events .ev.activity .ev-time { color: #9A4F00; }
.cal-events .ev.exchange { background: rgba(0,188,212,0.12); }
.cal-events .ev.exchange .ev-dot { background: var(--color-event-exchange); }
.cal-events .ev.exchange .ev-time { color: #007280; }

.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--color-border-light);
  background: rgba(255,255,255,0.95);
}
.tab-bar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-light);
}
.tab-bar .active { color: var(--color-primary); }
.tab-bar .active i {
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* === Floating cards (hidden on mobile) === */
.float-card {
  position: absolute;
  z-index: 2;
  display: none;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 8px 16px -8px rgba(15,23,17,0.10), 0 24px 48px -20px rgba(15,23,17,0.22);
  opacity: 0;
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) forwards,
             float 5s ease-in-out var(--d, 0ms) infinite;
}
/* Reveal class on float cards shouldn't block the floating animation */
.float-card.reveal { animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) forwards,
             float 5s ease-in-out calc(var(--d, 0ms) + 0.8s) infinite; transform: none; }
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (min-width: 640px) { .float-card { display: block; } }

.float-tone {
  top: -20px;
  right: -20px;
  width: 240px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
}
@media (min-width: 1024px) { .float-tone { right: -100px; top: -8px; } }
.float-tone .ft-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.float-tone .ft-body {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}
.float-tone .ft-flag {
  margin-top: 8px;
  font-size: 11px;
  color: #D32F2F;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.float-tone .ft-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D32F2F;
}

.float-expense {
  top: 40%;
  left: -20px;
  width: 210px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  display: none;
  align-items: center;
  gap: 10px;
  transform: rotate(-2.5deg);
  animation: float-slow 7s ease-in-out infinite;
}
@media (min-width: 640px) { .float-expense { display: flex; } }
@media (min-width: 1024px) { .float-expense { left: -90px; top: 34%; } }
@keyframes float-slow { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-4px); } }
.float-expense .fe-avatar {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(74,124,89,0.55);
}
.float-expense .fe-title { font-size: 12.5px; font-weight: 600; color: var(--color-text); }
.float-expense .fe-sub { font-size: 10.5px; color: var(--color-text-secondary); }

.float-handover {
  bottom: -10px;
  right: -20px;
  width: 230px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(168,213,186,0.95) 0%, rgba(144,198,170,0.95) 100%);
  border-color: rgba(74,124,89,0.28);
  transform: rotate(2deg);
}
@media (min-width: 1024px) { .float-handover { right: -100px; bottom: -8px; } }
.float-handover .fh-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.float-handover .fh-body {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-text);
  line-height: 1.4;
}

/* ============================ TRUST RIBBON ============================ */
.trust-ribbon {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}
.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
}
.trust-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.trust-ribbon svg { color: var(--color-primary); flex-shrink: 0; }

/* ============================ SECTIONS ============================ */
.section, .section-full {
  padding: 64px 24px;
}
@media (min-width: 640px) {
  .section, .section-full { padding: 80px 24px; }
}
.section > .section-header,
.section > *:not(.section-header):not(:last-child) {
  /* nothing */
}
.section {
  max-width: 1120px;
  margin: 0 auto;
}
.section-full {
  max-width: none;
}
.section-full > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.how-it-works { border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); background: var(--color-surface-hi); }
.how-it-works .section-header, .how-it-works .steps-grid { max-width: 1120px; margin-left: auto; margin-right: auto; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header .eyebrow { margin-bottom: 20px; }
.section-header h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-header p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--color-text-secondary);
}

/* === Problem === */
.problem-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.problem-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
}
.problem-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* === How it works === */
.steps-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.step-num {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 14px;
  color: var(--color-primary);
}
.step h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
}
.step p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === Features === */
.features .section-header { margin-bottom: 80px; }
.feature-row {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }
  .feature-row .feature-shot { order: 1; }
  .feature-row .feature-copy { order: 2; }
  .feature-row.reverse .feature-shot { order: 2; }
  .feature-row.reverse .feature-copy { order: 1; }
}
.feature-shot {
  position: relative;
  padding: 20px;
}
.feature-shot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(168,213,186,0.55) 0%, rgba(168,213,186,0) 75%);
  filter: blur(40px);
  z-index: -1;
}
.feature-shot img {
  max-width: 300px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(15,23,17,0.22));
  border-radius: 40px;
}
.feature-copy {
  max-width: 460px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(168,213,186,0.4);
  color: var(--color-primary-dark);
  border-radius: var(--radius-lg);
}
.feature-copy h3 {
  margin-top: 20px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature-copy > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.feature-bullets {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li, .tone-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 11px;
}
.tick-gold { color: #A8843D; }

/* ============================ TONE ASSIST ============================ */
.tone-assist {
  background: var(--color-primary-dark);
  color: #fff;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.tone-inner {
  display: grid;
  gap: 40px;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .tone-inner { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
}
.tone-copy h2 {
  margin-top: 20px;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.tone-copy > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
}
.tone-bullets {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tone-bullets li { color: rgba(255,255,255,0.85); font-size: 14px; }
.tone-bullets .tick { color: var(--color-primary-light); }

.tone-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tone-draft, .tone-suggestion {
  padding: 20px;
  border-radius: var(--radius-lg);
}
.tone-draft {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
}
.tone-draft .label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tone-draft > p:last-child {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.90);
}
.tone-suggestion {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.25);
}
.tone-suggestion .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tone-suggestion > p:nth-child(2) {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}
.tone-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tone-chips span {
  padding: 4px 12px;
  background: var(--color-surface-hi);
  color: var(--color-text-secondary);
  font-size: 11px;
  border-radius: 999px;
}

/* ============================ COURT-READY RECORDS ============================ */
.court-records {
  position: relative;
  background: var(--color-surface-hi);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}
.court-records::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: radial-gradient(55% 55% at 80% 10%, rgba(168,213,186,0.35) 0%, rgba(168,213,186,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.court-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding: 0 24px;
  align-items: center;
}
@media (min-width: 1024px) {
  .court-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.court-copy h2 {
  margin-top: 20px;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.court-copy h2 em {
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary-dark);
}
.court-copy > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 520px;
}
.court-bullets {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .court-bullets { grid-template-columns: 1fr 1fr; } }
.court-bullets li { display: flex; gap: 12px; }
.cb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(168,213,186,0.6);
  color: var(--color-primary-dark);
  border-radius: 50%;
  margin-top: 2px;
}
.cb-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.cb-body {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.court-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  background-image: linear-gradient(180deg, #4A7C59 0%, #2E5C3D 100%);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -6px rgba(74,124,89,0.55), 0 10px 24px -12px rgba(15,23,17,0.32);
  transition: transform 0.2s, filter 0.2s;
}
.btn-download:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.btn-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.btn-download-meta { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.70); }
.court-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-light);
}

.court-preview { width: 100%; }
.record-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(15,23,17,0.25);
}
.rc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--color-border-light);
}
.rc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--color-surface-hi);
  color: var(--color-primary-dark);
  border-radius: 50%;
}
.rc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text); }
.rc-sub { font-size: 12px; color: var(--color-text-secondary); }
.rc-lock {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--color-surface-hi);
  color: var(--color-text-secondary);
  border-radius: 999px;
  font-weight: 500;
}
.rc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border-light);
}
.rc-row:last-of-type { border-bottom: none; }
.rc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rc-dot.msg { background: var(--color-event-activity); }
.rc-dot.exp { background: var(--color-primary); }
.rc-dot.evt { background: var(--color-secondary); }
.rc-dot.hnd { background: var(--color-event-exchange); }
.rc-body { flex: 1; min-width: 0; }
.rc-body p:first-child { font-size: 13px; font-weight: 500; color: var(--color-text); }
.rc-body p b { font-weight: 700; }
.rc-detail {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-light);
  flex-shrink: 0;
}
.rc-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px -16px -16px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 0 0 20px 20px;
}
.rc-foot-text { font-size: 11px; color: rgba(255,255,255,0.85); flex: 1; }
.rc-foot-pill {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-weight: 600;
}

/* ============================ FAIR ACCESS ============================ */
.fair-inner {
  display: grid;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .fair-inner { grid-template-columns: 5fr 7fr; gap: 56px; }
}
.fair-copy h2 {
  margin-top: 20px;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.fair-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.fair-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-light);
}
.fair-note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================ PRICING ============================ */
.pricing {
  background: var(--color-surface-hi);
}
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; } }
.plan {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan-trial {
  border: 1px solid var(--color-primary);
  box-shadow: 0 1px 2px var(--color-border-light), 0 0 0 1px rgba(74,124,89,0.20);
}
.plan-lifetime {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fff 0%, var(--gold-bg) 100%);
  box-shadow: 0 20px 50px -24px rgba(201,169,110,0.55);
}
@media (min-width: 768px) {
  .plan-lifetime { padding: 36px; margin: -16px 0; }
}
.plan-badge {
  position: absolute;
  top: -12px; left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
}
.plan-badge-gold {
  background-image: linear-gradient(180deg, #C9A96E 0%, #A8843D 100%);
  box-shadow: 0 6px 14px -4px rgba(168,132,61,0.55);
}
.plan h3 { font-size: 18px; font-weight: 600; }
.plan-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.plan-price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price .amount {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.plan-lifetime .amount { font-size: 48px; color: var(--gold-text); }
.plan-price .per { font-size: 14px; color: var(--color-text-secondary); }
.plan-trial-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.plan-savings {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-text);
}
.plan-bullets {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.2s, filter 0.2s;
}
.plan-cta-outline {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.plan-cta-outline:hover { background: var(--color-surface-hi); color: var(--color-text); }
.plan-cta-solid {
  background: var(--color-primary);
  color: #fff;
}
.plan-cta-solid:hover { background: var(--color-primary-dark); color: #fff; }
.plan-cta-gold {
  background-image: linear-gradient(180deg, #C9A96E 0%, #8F6A24 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -6px rgba(168,132,61,0.55);
}
.plan-cta-gold:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.pricing-note {
  margin: 40px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  max-width: 640px;
}

/* ============================ FAQ ============================ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-list details {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
}
.faq-list details:last-child { border-bottom: none; }
.faq-list details[open] { background: rgba(240,244,241,0.4); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  color: var(--color-text-secondary);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.faq-more {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.faq-more a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================ FINAL CTA ============================ */
.final-cta {
  background: var(--color-primary);
  color: #fff;
}
.final-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.final-cta > .final-inner > p {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}
.final-ctas {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .final-ctas { flex-direction: row; } }
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--color-primary-dark); }
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 2fr; gap: 56px; } }
.footer-brand img { width: 32px; height: 32px; border-radius: 10px; }
.footer-name { margin-top: 10px; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; color: var(--color-text); }
.footer-by { margin-top: 2px; font-size: 13px; color: var(--color-text-secondary); }
.footer-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr;
}
.footer-cols h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--color-primary-dark); }
.footer-copy {
  max-width: 1120px;
  margin: 24px auto 0;
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
}

/* ============================================================
   ARTICLE + LEGAL PAGES (Blog post / Privacy / Terms / FAQ)
   ============================================================ */

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--color-primary);
  z-index: 60;
  transition: width 0.1s linear;
}

/* Page-level breadcrumb */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 13px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-primary-dark); }
.breadcrumb .sep { color: var(--color-border); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* Page hero (used by blog index, resources, legal) */
.page-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-text);
}
.page-hero h1 em {
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary-dark);
}
.page-hero > p {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Article container */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.article-header {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
}
.article-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-text);
}
.article-header .meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-light);
}

/* TOC */
.toc {
  background: var(--color-surface-hi);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  padding: 5px 0;
  font-size: 14.5px;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
}
.toc a { color: var(--color-text-secondary); }
.toc a:hover { color: var(--color-primary-dark); }

/* Article prose content */
.article-content {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--color-text);
}
.article-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}
.article-content h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}
.article-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}
.article-content strong { color: var(--color-text); font-weight: 600; }
.article-content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46,92,61,0.4);
  transition: text-decoration-color 0.2s;
}
.article-content a:hover { text-decoration-color: var(--color-primary-dark); }
.article-content ul, .article-content ol {
  margin: 12px 0 22px 22px;
  color: var(--color-text);
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-hi);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* Script quote box (for co-parenting scripts) */
.script-box {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.script-box .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  display: block;
}
.script-box p {
  font-style: italic;
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 10px;
}
.script-box p:last-child { margin-bottom: 0; }
.script-box p strong { font-style: normal; font-weight: 600; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.share-bar span:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-right: 6px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-surface-hi);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.share-btn svg { fill: currentColor; }

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-surface-hi);
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}
.author-info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.author-info .role {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Inline CTA card */
.cta-card {
  margin: 40px 0;
  padding: 32px;
  background: var(--color-surface-hi);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}
.cta-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Related articles */
.related {
  margin: 48px 0 0;
}
.related h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--color-text);
}
.related-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
  display: block;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.related-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Blog index post cards */
.post-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 24px 48px;
  display: grid;
  gap: 16px;
}
.post-card {
  display: block;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.post-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.post-card .post-meta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.post-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.post-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}
.post-card .post-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Legal page callouts */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}
.prose .last-updated {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.prose h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol {
  margin: 10px 0 20px 22px;
}
.prose li { margin-bottom: 6px; }
.prose a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 600; color: var(--color-text); }
.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--color-surface-hi);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  color: var(--color-text);
}
.callout strong { color: var(--color-primary-dark); }
.callout.warning {
  background: #FEF6EA;
  border-left-color: #E0A000;
}
.callout.warning strong { color: #9A6B00; }
.callout ul { margin: 8px 0 0 20px; }

/* Checklist blocks (resources) */
.checklist { margin: 24px 0; padding: 20px 24px; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); }
.checklist h3 { margin-top: 0; margin-bottom: 12px; font-size: 1.05rem; font-weight: 600; color: var(--color-text); }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--color-border-light); font-size: 14.5px; color: var(--color-text); line-height: 1.55; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border: 1.5px solid var(--color-primary); border-radius: 3px; background: var(--color-surface); }

/* Fill-in-the-blanks template fields (parenting-plan-template) */
.template-field { margin: 28px 0; padding: 22px 26px; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); }
.template-field .field-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary-dark); margin-bottom: 14px; }
.template-field .field-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.template-field .field-label { font-weight: 600; color: var(--color-text); min-width: 160px; white-space: nowrap; }
.template-field .field-blank { flex: 1; border-bottom: 1.5px dashed var(--color-border); min-height: 20px; color: var(--color-text-light); font-size: 13px; }
.template-field p { font-size: 14px; color: var(--color-text-secondary); margin-top: 12px; line-height: 1.55; }
@media (max-width: 600px) { .template-field .field-row { flex-direction: column; gap: 3px; } .template-field .field-label { min-width: 0; } }

/* Expense table (money-and-expenses) */
.expense-table-wrapper { overflow-x: auto; margin: 24px 0; border: 1px solid var(--color-border-light); border-radius: var(--radius-md); }
.expense-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--color-surface); }
.expense-table th { background: var(--color-surface-hi); font-weight: 700; font-size: 13px; text-align: left; padding: 12px 16px; color: var(--color-text); border-bottom: 1px solid var(--color-border-light); white-space: nowrap; }
.expense-table td { padding: 10px 16px; border-bottom: 1px solid var(--color-border-light); color: var(--color-text-secondary); white-space: nowrap; }
.expense-table tr:last-child td { border-bottom: none; }

/* ============================================================
   PRINT — for downloadable PDF generation (parenting-plan, etc)
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm 20mm 16mm;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  /* Hide chrome that shouldn't print */
  .site-header,
  .mobile-menu,
  .progress-bar,
  .breadcrumb,
  .site-footer,
  .cta-card,
  .related,
  .final-cta,
  .pdf-download-hero,
  .pdf-download-inline,
  button {
    display: none !important;
  }
  /* Flatten article for print */
  .article {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .article-header {
    border-bottom: 2px solid #000;
    padding-bottom: 14pt;
    margin-bottom: 18pt;
  }
  .article-header h1 {
    font-size: 22pt;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.01em;
  }
  .article-header .meta {
    font-size: 10pt;
    color: #444;
  }
  .article-content h2 {
    font-size: 15pt;
    color: #000;
    margin-top: 22pt;
    margin-bottom: 6pt;
    page-break-after: avoid;
    page-break-before: auto;
  }
  .article-content h3 {
    font-size: 12pt;
    color: #000;
    margin-top: 14pt;
    page-break-after: avoid;
  }
  .article-content p,
  .article-content li {
    color: #222;
    orphans: 3;
    widows: 3;
  }
  .article-content a {
    color: #000;
    text-decoration: underline;
  }
  /* TOC: compact it on first page */
  .toc {
    background: #f4f4f4;
    border: 1px solid #d0d0d0;
    padding: 12pt 14pt;
    margin-bottom: 14pt;
    page-break-inside: avoid;
  }
  .toc-title { color: #000; font-size: 10pt; }
  .toc a { color: #000; text-decoration: none; }
  /* Template fields — the fill-in lines need enough room to write */
  .template-field {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 0;
    padding: 10pt 12pt;
    margin: 10pt 0;
    page-break-inside: avoid;
  }
  .template-field .field-title {
    color: #000;
    font-size: 9.5pt;
    margin-bottom: 8pt;
  }
  .template-field .field-row {
    margin-bottom: 12pt;
    align-items: baseline;
  }
  .template-field .field-label {
    color: #000;
    font-size: 10.5pt;
  }
  .template-field .field-blank {
    border-bottom: 1px solid #000;
    min-height: 18pt;
    background: #fff;
  }
  /* Callouts: high contrast for print */
  .callout {
    background: #f4f4f4;
    border: 1px solid #999;
    border-left-width: 3px;
    border-left-color: #000;
    color: #000;
    padding: 10pt 12pt;
    page-break-inside: avoid;
  }
  .callout.warning {
    border-left-color: #666;
  }
  /* Checklist: printable checkboxes */
  .checklist {
    background: #fff;
    border: 1px solid #999;
    padding: 10pt 12pt;
    page-break-inside: avoid;
  }
  .checklist li::before {
    border-color: #000;
  }
  /* Avoid orphaned section starts */
  .template-field, .checklist, .callout {
    page-break-inside: avoid;
  }
  /* Article body text */
  ul, ol { page-break-inside: auto; }
  li { page-break-inside: avoid; }
}

/* ============================================================
   PDF DOWNLOAD HERO — used on parenting-plan-template article
   ============================================================ */
.pdf-download-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(168,213,186,0.18), rgba(168,213,186,0.05));
  border: 1px solid rgba(74,124,89,0.22);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
  .pdf-download-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}
.pdf-download-copy {
  flex: 1;
  min-width: 0;
}
.pdf-download-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.pdf-download-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.pdf-download-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}
.pdf-download-cta {
  flex-shrink: 0;
}
