/* ==========================================================
   Prizm Law — warm editorial theme
   Linen canvas, white hairline cards, serif display headings,
   pill buttons, one blue accent. Light shadows, generous spacing.
   ========================================================== */

/* Self-hosted fonts (SIL Open Font License; licenses in /fonts). Latin subset,
   variable weight. Hosting them here keeps visitors' IP addresses away from Google. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}

:root {
  /* Accent */
  --blue: #0c4da2;
  --blue-hover: #0a4290;
  --blue-soft: #e7eef9;

  /* Warm neutrals */
  --linen: #efecea;      /* page canvas */
  --paper: #ffffff;      /* cards, inputs, nav */
  --ink: #22201d;        /* headings, primary text */
  --text: #55524e;       /* body copy */
  --muted: #6a6865;      /* captions, helper text (4.7:1 on linen) */
  --line: #dcd9d6;       /* hairline borders */
  --smoke: #cccccc;      /* text on dark surfaces */

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --pill: 9999px;

  --shadow-subtle: 0 1px 2px rgba(34, 32, 29, .05);
  --shadow-card: 0 10px 15px -3px rgba(34, 32, 29, .10), 0 4px 6px -4px rgba(34, 32, 29, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: no-contextual;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
code { font-family: inherit; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h3, h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: var(--pill);
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-subtle); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-light { background: var(--paper); color: var(--blue); }
.btn-light:hover { background: #f4f2f0; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { flex: none; }

/* Phone menu (built by js/nav.js); hidden above 1000px */
.nav-toggle {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -8px; padding: 0;
  color: var(--ink); background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--blue); }
.nav-toggle .icon-close, .menu-open .nav-toggle .icon-open { display: none; }
.menu-open .nav-toggle .icon-close { display: block; }
.mobile-nav {
  border-top: 1px solid var(--line); background: var(--paper);
  max-height: calc(100vh - 64px); overflow-y: auto; padding: 4px 0 12px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav-label {
  margin: 18px 0 2px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.logo img { width: 140px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }

.nav-menu { position: relative; }
.nav-menu-btn {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-menu-btn:hover, .nav-menu-btn.on, .nav-menu.open .nav-menu-btn { color: var(--blue); }
.nav-menu-btn svg { transition: transform .15s; }
.nav-menu.open .nav-menu-btn svg, .nav-menu:hover .nav-menu-btn svg { transform: rotate(180deg); }
.nav-menu-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.nav-menu-panel {
  display: none; position: absolute; top: 100%; left: -16px; padding-top: 14px; z-index: 30;
  filter: drop-shadow(0 10px 12px rgba(34, 32, 29, .10)) drop-shadow(0 2px 3px rgba(34, 32, 29, .06));
}
.nav-menu:hover .nav-menu-panel, .nav-menu.open .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel { display: block; }
/* Works for any number of links: side borders on all, hairline between, rounded ends */
.nav-menu-panel a {
  display: block; min-width: 300px; padding: 12px 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-width: 0 1px;
}
.nav-menu-panel a + a { border-top-width: 1px; }
.nav-menu-panel a:first-child { border-top-width: 1px; border-radius: var(--radius) var(--radius) 0 0; }
.nav-menu-panel a:last-child { border-bottom-width: 1px; border-radius: 0 0 var(--radius) var(--radius); }
.nav-menu-panel a:hover { background: var(--blue-soft); }
.nav-menu-panel a[aria-current="page"] strong { color: var(--blue); }
.nav-menu-panel strong { display: block; font-weight: 600; font-size: 15px; }
.nav-menu-panel span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Eyebrows & kickers ---------- */
.eyebrow, .kicker {
  display: block;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); margin: 0 0 16px;
}
.eyebrow { margin-bottom: 20px; }
.dot { display: none; }

/* ---------- Shared pieces ---------- */
.card-title {
  margin: 0 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-weight: 500; color: var(--ink); font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.check { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); position: relative; }
.check::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.card-status { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; color: var(--text); }
.pill {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: #1b6b45; background: #e2f3e9; padding: 2px 9px; border-radius: var(--pill); white-space: nowrap;
}
.pill-blue { color: var(--blue); background: var(--blue-soft); }
.step-num {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: var(--pill);
}

/* ---------- Hero: full-bleed photo, copy on the image, glass tab bar ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 720px);
  display: flex;
  padding: 72px 0 32px;
  background: var(--ink);
  color: #fff;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; }
.hero-bg { z-index: -1; }
/* Inactive photos sit slightly zoomed; the active one eases out to full frame.
   The zoom resets only after a photo has faded out (transform delay). */
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s ease, transform 0s linear .8s;
}
.hero-bg img.on { opacity: 1; transform: scale(1); transition: opacity .8s ease, transform 14s cubic-bezier(.2, .6, .3, 1); }
/* Shade only behind the copy (lower left); keep the rest of the photo bright */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 16, .62) 0%, rgba(14, 14, 16, .38) 38%, rgba(14, 14, 16, 0) 68%),
    linear-gradient(0deg, rgba(14, 14, 16, .62) 0%, rgba(14, 14, 16, .2) 40%, rgba(14, 14, 16, 0) 62%);
}
.hero-inner { display: flex; flex-direction: column; }
.hero-switch { margin-top: auto; padding-top: 40px; }
/* One grid: copy holds the left ~7 of 12 columns, the tab bar spans all 12 */
.hero h1, .hero-panels { max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: pretty; }
.hero h1 em { font-style: italic; }
.accent { color: var(--blue); }
.lead { font-size: 18px; line-height: 1.56; margin: 24px auto 32px; max-width: 600px; }

.hero-panels { margin-top: 20px; min-height: 140px; }
.hero-panel:not([hidden]) { animation: hero-rise .5s ease both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-panel p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }
.hero-actions .btn { min-height: 46px; border-radius: var(--radius-sm); }
.hero-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 500; text-decoration: none;
}
.hero-link svg { transition: transform .15s ease; }
.hero-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-link:hover svg { transform: translateX(3px); }
.hero-link:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 4px; border-radius: 2px; }

.hero-ask { margin: 0 2px 10px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .72); }

.hero-tabs {
  position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-tabs[hidden] { display: none; }
.hero-tabs-ind {
  position: absolute; top: 0; left: 0; z-index: 0;
  background: var(--paper); border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.hero-tabs.ready .hero-tabs-ind { transition: transform .35s cubic-bezier(.3, .7, .3, 1), width .35s cubic-bezier(.3, .7, .3, 1); }
.hero-tabs [role=tab] {
  position: relative; z-index: 1;
  flex: 1 1 0; min-height: 44px; padding: 0 18px;
  font: inherit; font-size: 15px; font-weight: 500; color: #fff; white-space: nowrap;
  background: transparent; border: 0; border-radius: 7px; cursor: pointer;
  transition: color .25s ease, background .15s ease;
}
.hero-tabs [role=tab]:not([aria-selected=true]):hover { background: rgba(255, 255, 255, .1); }
.hero-tabs [role=tab][aria-selected=true] { color: var(--ink); }
.hero-tabs [role=tab]:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-paper + .section-paper { border-top: 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 3.4vw, 44px); }
.section-head p:not(.kicker) { margin: 18px 0 0; font-size: 18px; line-height: 1.56; }

/* Intro: text + tall photo */
.intro-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.intro-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
.intro-copy p:not(.kicker) { margin: 20px 0 0; font-size: 18px; line-height: 1.56; }
.intro-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-card); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.intro-media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.intro-media figcaption strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.intro-media figcaption span { display: block; color: var(--muted); font-size: 13px; }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  padding: 28px 24px; border-radius: var(--radius); background: var(--linen); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.pillar svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 20px; margin: 20px 0 8px; }
.pillar p { margin: 0 0 16px; font-size: 15px; color: var(--text); flex: 1; }
.pillar a { font-size: 15px; font-weight: 500; text-decoration: none; }
.pillar a:hover { text-decoration: underline; }

/* Feature rows: text on one side, media on the other */
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-media { order: 1; }
.feature-copy h2 { font-size: clamp(32px, 3.4vw, 44px); }
.feature-copy > p:not(.kicker) { margin: 18px 0 0; font-size: 18px; line-height: 1.56; }
.feature-copy .btn { margin-top: 28px; }
.feature-media { min-width: 0; }
.feature-media > img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 4 / 3.4; width: 100%; object-fit: cover; }

.feature-points { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-points li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); font-weight: 500; }
.feature-points li::before {
  content: ""; position: absolute; left: 5px; top: 14px; width: 5px; height: 10px;
  border: solid var(--blue); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.risk-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.risk-list li { display: flex; gap: 14px; align-items: flex-start; }
.risk-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.risk-list strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.risk-list span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Timeline card (process) */
.timeline {
  list-style: none; margin: 0; padding: 8px 28px;
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.timeline li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .step-num { flex: none; margin-top: 2px; }
.timeline h3 { font-size: 16px; margin: 0 0 3px; }
.timeline p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Product card (technology) */
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px 24px 16px; max-width: 460px; margin: 0 auto;
}
.product-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.product-title { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }

/* Explorer mock */
.explorer-mock {
  display: block; text-decoration: none; color: inherit;
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; max-width: 480px; margin: 0 auto; transition: box-shadow .2s;
}
.explorer-mock:hover { box-shadow: var(--shadow-card); }
.explorer-mock .card-title { margin-top: 4px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.mock-chips span {
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 14px;
}
.mock-chips span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.mock-result { padding: 14px 18px; background: var(--paper); border-left: 2px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mock-result strong { display: block; color: var(--ink); font-size: 16px; }
.mock-result span { font-size: 14px; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 840px; margin: 0 auto; }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; gap: 16px; }
.plan-for { margin: 6px 0 0; font-size: 14px; color: var(--muted); min-height: 42px; }
.price-rows { margin: 18px 0 20px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.price-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; }
.price-rows dt { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-rows dd { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.price-rows dd span { font-size: 18px; vertical-align: top; position: relative; top: 4px; margin-right: 1px; }
.pricing-addons { max-width: 1100px; margin: 24px auto 0; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-addons-head { margin: 0 0 10px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.pricing-addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; color: var(--text); }
.pricing-addons li strong { color: var(--ink); font-weight: 600; margin-left: 6px; }
.pricing-addons-foot { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.plan {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  display: flex; flex-direction: column; box-shadow: var(--shadow-subtle);
}
.plan-featured { border: 1.5px solid var(--blue); box-shadow: var(--shadow-card); }
.plan-tag {
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); margin: 0 0 10px;
}
.plan h3 { font-size: 20px; }
.price {
  font-family: var(--display); font-weight: 400; font-optical-sizing: auto;
  font-size: 48px; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin: 14px 0 22px;
}
.price span { font-size: 24px; vertical-align: top; margin-right: 2px; position: relative; top: 6px; }
.features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.features li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.features li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 5px; height: 10px;
  border: solid var(--blue); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.features li:has(strong)::before { display: none; }
.features li:has(strong) { padding-left: 0; color: var(--ink); }
.pricing-note { text-align: center; margin: 28px 0 0; font-size: 15px; font-weight: 500; }
.pricing-note a { text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; }

/* FAQ */
.faq details {
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 22px;
}
.faq details[open] { border-color: var(--blue); background: var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--blue); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; }

/* Closing CTA: full-width band */
.cta { background: var(--blue); color: rgba(255, 255, 255, .8); text-align: center; padding: 96px 0; }
.cta h2 { color: #fff; font-size: clamp(34px, 3.8vw, 52px); max-width: 720px; margin: 0 auto; }
.cta p { font-size: 18px; margin: 18px auto 32px; max-width: 520px; }

/* Skip link and default keyboard focus */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* Footer */
.site-footer { padding: 64px 0 32px; background: var(--linen); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 120px; margin-bottom: 14px; }
.footer-brand p, .footer-brand address { margin: 0; color: var(--muted); font-style: normal; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-family: var(--font); line-height: 1.3; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-col a:hover { color: var(--blue); }
.disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.footer-legal a:hover { color: var(--blue); text-decoration-color: currentColor; }

/* Cookie banner and privacy choices (js/consent.js) */
.consent-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(34, 32, 29, .14); font-size: 15px; color: var(--text);
}
.consent-banner p { margin: 0; flex: 1 1 320px; }
.consent-banner a, .consent-more a { color: var(--blue); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent-btn {
  font: inherit; font-weight: 500; font-size: 15px; padding: 10px 18px; border-radius: var(--pill);
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
}
.consent-btn:hover { background: var(--ink); color: #fff; }
.consent-link { font: inherit; font-size: 15px; background: none; border: 0; padding: 10px 4px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-dialog {
  width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper); color: var(--text); font-size: 15px;
}
.consent-dialog::backdrop { background: rgba(34, 32, 29, .45); }
.consent-dialog h2 { margin: 0 0 12px; font-size: 26px; }
.consent-note { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--linen); }
.consent-confirm { background: var(--blue-soft); color: var(--ink); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.consent-row input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.consent-row label { display: flex; flex-direction: column; gap: 2px; }
.consent-row strong { color: var(--ink); font-weight: 600; }
.consent-more { margin: 4px 0 18px; }
.consent-dialog .consent-actions { justify-content: flex-end; }
.consent-save { background: var(--ink); color: #fff; }
.consent-save:hover { background: var(--blue); border-color: var(--blue); }

/* ==========================================================
   Estate Plan Explorer
   ========================================================== */
/* ---------- Service pages (probate, trust administration) ---------- */
.service-hero { padding: 64px 0 72px; }
.service-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service-hero h1 { font-size: clamp(38px, 4.6vw, 56px); }
.service-hero .lead { margin: 20px 0 32px; }
.service-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.service-intro { padding-top: 0; }
.service-intro-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.service-intro h2 { font-size: clamp(30px, 3.2vw, 40px); }
.service-intro-inner > div > p { margin: 18px 0 0; font-size: 18px; line-height: 1.6; }
.service-callout {
  padding: 28px; background: var(--paper);
  border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius);
}
.service-callout p:not(.kicker) { margin: 0; line-height: 1.6; }
.service-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.service-steps li { padding: 28px 0; border-top: 1px solid var(--line); }
.service-steps li:last-child { border-bottom: 1px solid var(--line); }
.service-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.service-step-head h3 { font-size: 20px; }
.service-dur { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.service-steps p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; }
.service-total { margin: 28px 0 0; font-size: 17px; color: var(--ink); }
.service-disclaimer { margin: 20px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- About page: sticky portrait beside the bio ---------- */
.about { padding: 72px 0 96px; }
.about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.about-photo {
  position: sticky; top: 96px; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-copy { max-width: 640px; }
.about-copy h1 { font-size: clamp(36px, 4.4vw, 52px); }
.about-copy h1 em { font-style: italic; }
.about-copy .lead { margin: 24px 0 0; max-width: none; color: var(--ink); }
.about-copy p:not(.eyebrow):not(.lead) { margin: 20px 0 0; font-size: 17px; line-height: 1.65; }
.about-copy h2 { margin-top: 44px; font-size: 28px; letter-spacing: -0.02em; }
.about-facts {
  margin: 40px 0 0; padding: 4px 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.about-facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts div:last-child { border-bottom: 0; }
.about-facts dt { color: var(--muted); font-size: 14px; }
.about-facts dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.about-writing { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.about-writing a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.about-writing a:hover { color: var(--blue); }
.about-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.about-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 500; text-decoration: none; }
.intro-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-hero { padding: 64px 0 40px; }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 52px); }
.page-hero .lead { margin-left: 0; margin-bottom: 0; }

.explorer-section { padding: 8px 0 96px; }

/* Controls */
.controls {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}
.control-block { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.control-head { margin-bottom: 18px; }
.control-head .kicker { margin-bottom: 6px; }
.control-head h2 { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.control-hint { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip:focus-visible, .tab:focus-visible, .row-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.tier-chip { display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); padding: 9px 16px; line-height: 1.3; }
.tier-chip strong { font-size: 14px; font-weight: 600; }
.tier-chip span { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.tier-chip[data-tier=""] { justify-content: center; align-self: stretch; }

.tier-summary {
  margin: 18px 0 0; padding: 14px 18px; font-size: 15px;
  background: var(--blue-soft); border-left: 2px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tier-summary .kicker { display: block; margin-bottom: 4px; }

.fam-group + .fam-group { margin-top: 14px; }
.fam-group-label {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

.control-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; background: var(--linen); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.result-line { margin: 0; font-size: 15px; }
.result-line strong { color: var(--blue); font-size: 18px; font-weight: 600; }

.core-docs {
  margin: 24px 0 0; padding: 20px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px;
}
.core-docs .kicker { margin-bottom: 6px; }
.core-docs p:last-child { margin: 0; }

/* Tabs */
.view-tabs {
  display: inline-flex; gap: 4px; margin: 40px 0 28px; padding: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill);
}
.tab {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--muted);
  background: none; border: 0; border-radius: var(--pill); padding: 9px 18px; cursor: pointer;
}
.tab.on { background: var(--blue); color: #fff; }

/* Cards */
.el-group + .el-group { margin-top: 48px; }
.el-group-head { max-width: 720px; margin-bottom: 18px; }
.el-group-head h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.el-group-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.el-count {
  font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--blue);
  background: var(--blue-soft); padding: 2px 10px; border-radius: var(--pill);
}
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.el-card {
  display: flex; flex-direction: column;
  padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.el-card:hover { box-shadow: var(--shadow-card); }
.el-card.is-match { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.el-card h3 { font-size: 16px; margin-bottom: 10px; }
.el-card > p { margin: 0 0 14px; font-size: 15px; }
.badge {
  align-self: flex-start; margin-bottom: 12px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: var(--pill);
}
.badge-match { color: #fff; background: var(--blue); }
.badge-any { color: var(--muted); background: var(--linen); border: 1px solid var(--line); }
.ca-note { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.ca-note span {
  display: inline-block; margin-right: 8px;
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px;
}
.el-meta { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; }
.el-meta div { display: flex; gap: 8px; }
.el-meta dt { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 88px; padding-top: 2px; }
.el-meta dd { margin: 0; color: var(--ink); font-weight: 500; }

.empty { padding: 48px 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.empty h3 { margin-bottom: 8px; }
.empty p { margin: 0; color: var(--muted); }

/* Comparison table */
.lens-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lens-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.table-hint { font-size: 14px; color: var(--muted); margin: 8px 0 16px; }
.matrix-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.35; }
.matrix th, .matrix td { padding: 4px 8px; border: 1px solid var(--line); text-align: center; }
.matrix tr > :first-child { border-left: 0; }
.matrix tr > :last-child { border-right: 0; }
.matrix thead th {
  position: sticky; top: 0; z-index: 2; background: #f7f5f3; border-top: 0;
  vertical-align: bottom; font-weight: 600; color: var(--ink); min-width: 64px; padding: 8px;
}
.th-main { display: block; font-size: 11.5px; line-height: 1.25; }
.matrix .th-name, .matrix .td-name {
  position: sticky; left: 0; z-index: 1; text-align: left; background: var(--paper);
  min-width: 250px; max-width: 320px; box-shadow: 1px 0 0 var(--line);
}
.matrix thead .th-name { z-index: 3; background: #f7f5f3; font-size: 12px; }
@media (min-width: 861px) {
  .matrix .td-name { white-space: nowrap; max-width: none; }
}
.group-row td {
  text-align: left; background: var(--ink); color: var(--smoke); border-color: var(--ink);
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px; position: sticky; left: 0;
}
.row-toggle {
  font: inherit; font-weight: 500; color: var(--ink); text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.row-toggle::before { content: "+"; color: var(--blue); margin-right: 8px; display: inline-block; width: 10px; }
.row-toggle[aria-expanded="true"]::before { content: "–"; }
.row-toggle:hover { color: var(--blue); }

.cell { display: inline-block; width: 22px; height: 14px; border-radius: 3px; vertical-align: middle; background: var(--line); opacity: .5; }
.cell.lv-fit   { background: var(--blue); opacity: 1; }
.cell.lv-any   { background: #7aa3dd; opacity: 1; }
.cell.lv-other { background: #cdd9ea; opacity: 1; }
.matrix tbody tr:not(.group-row):not(.explain-row):hover td { background: #f7f5f3; }
.matrix tbody tr:not(.group-row):not(.explain-row):hover .td-name { background: #f7f5f3; }
.matrix .col-sel { background: var(--blue-soft); }
.matrix thead th.col-sel { background: #d6e2f5; color: var(--blue); }
.row-match .td-name { box-shadow: inset 3px 0 0 var(--blue), 1px 0 0 var(--line); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 18px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-note { font-weight: 400; color: var(--muted); }
.explain-row td { text-align: left; background: #f7f5f3; padding: 16px 20px; }
.explain-row p { margin: 0 0 8px; max-width: 760px; font-size: 14.5px; }
.explain-row p:last-child { margin-bottom: 0; }

.explorer-disclaimer { margin: 40px 0 0; font-size: 13px; color: var(--muted); max-width: 760px; }

/* ---------- Plan & Price Estimator (plan-estimator.html) ---------- */
.estimator-section { padding: 56px 0 72px; }
.est-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.est-top .eyebrow { margin-bottom: 10px; }
.est-top h1 { font-size: clamp(32px, 3.6vw, 40px); max-width: 760px; }
.est-top-note { margin: 0; font-size: 13px; color: var(--muted); flex: none; max-width: 260px; text-align: right; }
.est-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.est-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 28px; }
.est-foot .explorer-disclaimer { margin: 0; }

/* Left rail */
.est-rail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.steps { list-style: none; margin: 0; padding: 24px 24px 10px; }
.step { display: flex; gap: 14px; }
.step-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; box-sizing: border-box; }
.step-num svg { width: 13px; height: 13px; }
.step-pending .step-num { background: var(--linen); color: var(--muted); }
.step-active .step-num { border: 2px solid var(--blue); color: var(--blue); }
.step-done .step-num { background: var(--blue); color: #fff; }
.step-line { flex: 1; width: 2px; background: var(--line); margin: 6px 0; }
.step-done .step-line { background: var(--blue); }
.step-body { flex: 1; min-width: 0; padding-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.step:last-child .step-body { padding-bottom: 8px; }
.step-title { margin: 4px 0 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.step-pending .step-title { color: var(--muted); }
.step-sub { margin: 0; font-size: 13px; color: var(--muted); }
.q-pending { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.q-open { margin: 8px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.q-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--blue); }
.q-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.q-note { margin: 0; font-size: 12px; color: var(--muted); }
.opt-grid { display: grid; gap: 6px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: left;
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--blue); }
.opt.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt-wide { grid-column: 1 / -1; margin-top: 4px; }
.opt-box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #b8b4af; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #fff; }
.opt.on .opt-box { background: var(--blue); border-color: var(--blue); }
.opt-box svg { width: 10px; height: 10px; stroke-width: 3.5; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.link-btn { font: inherit; font-size: 13px; font-weight: 500; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.q-sum {
  font: inherit; text-align: left; display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; row-gap: 1px; align-items: center;
  width: 100%; padding: 7px 0; background: none; border: 0; cursor: pointer; color: var(--text);
}
.q-sum:hover .q-sum-val { color: var(--blue); }
.q-sum-check { color: var(--blue); display: flex; grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
.q-sum-check svg { width: 14px; height: 14px; }
.q-sum-label { font-size: 12.5px; color: var(--muted); }
.q-sum-val { font-size: 14px; font-weight: 500; color: var(--ink); }

.est-block { margin-top: auto; padding: 22px 24px 24px; background: var(--ink); color: var(--smoke); display: flex; flex-direction: column; gap: 4px; }
.eb-kicker { margin: 0; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #9db9e3; }
.eb-pkg { margin: 0; font-size: 14px; font-weight: 500; color: #fff; }
.eb-price { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.eb-from { font-size: 16px; color: var(--smoke); letter-spacing: 0; margin-right: 4px; font-family: var(--font); }
.eb-sub { margin: 8px 0 0; font-size: 13px; color: var(--smoke); }
.est-block .btn-light { margin-top: 16px; }
.btn-dark-ghost { background: transparent; color: #fff; border-color: #5a5753; margin-top: 8px; }
.btn-dark-ghost:hover { border-color: #fff; }

/* Right panel */
.est-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
#panelBody { overflow: auto; -webkit-overflow-scrolling: touch; }
.panel-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; background: var(--paper); z-index: 4; }
.panel-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.panel-title strong { color: var(--blue); }
.panel-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.panel-link { font-size: 13px; font-weight: 500; text-decoration: none; flex: none; }
.panel-link:hover { text-decoration: underline; }
.panel-head .legend { margin: 0; flex: none; font-size: 12.5px; }
.panel-foot { margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.est-matrix { font-size: 13px; }
.est-matrix th, .est-matrix td { height: 36px; }
.est-matrix thead th { top: 0; }
.est-matrix .th-name, .est-matrix .td-name { min-width: 220px; }
.matrix-wrap.in-panel { border: 0; border-radius: 0; }
.est-panel .matrix-wrap { border: 0; border-radius: 0; overflow: visible; }

.every-plan { margin: 0; padding: 12px 24px; background: #f7f5f3; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.every-plan span { display: inline-block; margin-right: 10px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.plan-group { margin: 0; padding: 7px 24px; background: var(--ink); color: var(--smoke); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.plan-group-soft { background: #f7f5f3; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.plan-check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.plan-check svg { width: 12px; height: 12px; }
.plan-name { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.plan-lay { margin: 0; font-size: 13.5px; color: var(--text); max-width: 640px; }
.plan-row .ca-note { margin: 6px 0 0; }
.plan-row .badge { margin: 0; white-space: nowrap; }
.plan-chips { padding: 14px 24px; }
.x-body { padding: 0 24px 14px; font-size: 13.5px; }
.x-body p { margin: 0 0 6px; max-width: 640px; }
.x-body .ca-note { margin: 0; }
.plan-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.plan-lines { padding: 0 0 18px; border-right: 1px solid var(--line); font-size: 13.5px; }
.plan-lines .plan-group { border: 0; }
.plan-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 24px; }
.plan-lines > div span:last-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.plan-lines .line-soft span:first-child { color: var(--muted); }
.plan-lines .inc { color: var(--blue); }
.plan-lines .line-total { margin: 6px 24px 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan-lines .line-total span { color: var(--ink); font-weight: 600; }
.plan-note { margin: 10px 24px 0; padding: 10px 12px; font-size: 13px; background: var(--linen); border-radius: var(--radius-sm); }
.plan-side { padding: 16px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.est-reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--text); }
.est-reasons li { padding-left: 14px; position: relative; }
.est-reasons li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.est-probate { padding: 12px 14px; font-size: 13px; line-height: 1.45; background: var(--blue-soft); border-left: 2px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.est-probate .kicker { display: block; margin-bottom: 3px; }
.est-probate strong { color: var(--ink); }
.est-includes { font-size: 13.5px; }
.est-includes summary { cursor: pointer; font-weight: 500; color: var(--blue); list-style: none; }
.est-includes summary::-webkit-details-marker { display: none; }
.est-includes summary::before { content: "+"; display: inline-block; width: 14px; }
.est-includes[open] summary::before { content: "–"; }
.est-includes ul { margin: 8px 0 0; padding: 0 0 0 14px; list-style: none; display: grid; gap: 4px; }
.est-includes li { padding-left: 14px; position: relative; }
.est-includes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }

/* Rail head and documents */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.docs-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 24px; background: #f7f5f3; border-bottom: 1px solid var(--line); }
.docs-kicker { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-right: 6px; }
.doc-pill { font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 10px; }
.doc-pill em, .docs-grid em { font-style: normal; color: var(--blue); font-weight: 600; }
.docs-grid { list-style: none; margin: 0; padding: 14px 24px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.docs-grid li { display: flex; align-items: flex-start; gap: 8px; }
.docs-grid svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }

/* Mobile summary bar */
.est-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px rgba(34, 32, 29, .08); font-size: 14px; color: var(--text);
}
.est-bar strong { color: var(--ink); }
.est-bar .btn { flex: none; }

@media (max-width: 1024px) {
  .est-layout { grid-template-columns: 1fr; }
  .est-panel { position: static; max-height: none; }
  .est-top { flex-direction: column; align-items: flex-start; }
  .est-top-note { text-align: left; max-width: none; }
  .est-bar { display: flex; }
  .estimator-section { padding-bottom: 120px; }
  .plan-sum { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .plan-lines { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .estimator-section { padding-top: 40px; }
  .steps { padding: 20px 16px 8px; }
  .opt-grid.cols-2 { grid-template-columns: 1fr; }
  .est-block { padding: 20px 16px; }
  .eb-price { font-size: 34px; }
  .panel-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .plan-row { grid-template-columns: 22px 1fr; padding: 14px 16px; }
  .plan-row .badge { grid-column: 2; justify-self: start; }
  .plan-group, .every-plan, .plan-chips, .x-body, .panel-foot, .docs-grid, .docs-strip, .rail-head { padding-left: 16px; padding-right: 16px; }
  .plan-lines > div, .plan-side { padding-left: 16px; padding-right: 16px; }
  .plan-lines .line-total, .plan-note { margin-left: 16px; margin-right: 16px; }
  .est-foot { flex-direction: column; }
}

/* ---------- Writing: article index and article pages (writing/) ---------- */
.writing-section { padding: 8px 0 96px; }
.writing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.writing-card {
  display: flex; flex-direction: column; height: 100%; padding: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.writing-card:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.writing-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.writing-card h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.writing-card:hover h2 { color: var(--blue); }
.writing-card p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; }
.writing-card .writing-card-meta { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.writing-card .writing-card-tags { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 500; color: var(--blue); }
.writing-list > li:first-child { grid-column: 1 / -1; }
.writing-card-featured { padding: 40px; }
.writing-card-featured h2 { font-size: clamp(28px, 3vw, 36px); max-width: 760px; }
.writing-card-featured p:not(.writing-card-meta):not(.writing-card-tags) { font-size: 18px; max-width: 680px; }
.writing-github { margin: 40px 0 0; color: var(--muted); }

.article { padding: 64px 0 96px; }
.article-head .eyebrow a { color: inherit; text-decoration: none; }
.article-head .eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.article-meta { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.article-meta a { color: var(--ink); text-decoration: none; font-weight: 500; }
.article-meta a:hover { color: var(--blue); }

.article-body { margin-top: 40px; font-size: 18px; line-height: 1.7; }
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { margin-top: 56px; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.025em; }
.article-body h3 { margin-top: 40px; font-size: 20px; }
.article-body h2 + *, .article-body h3 + * { margin-top: 16px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 10px; }
.article-body li::marker { color: var(--muted); }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 2px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.article-body a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body figure { margin: 36px 0; }
.article-body figure + * { margin-top: 0; }
.article-body figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.article-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.article-body blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue);
  font-family: var(--display); font-size: 24px; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink);
}
.article-body blockquote p { margin: 0; }
.article-dek { font-size: 20px; line-height: 1.6; color: var(--ink); }
.article-series { font-size: 15px; font-weight: 500; color: var(--blue); }
.article-summary { margin: 0 0 40px; padding: 28px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.article-body .article-summary h2 { margin: 0; font-family: var(--font); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.article-summary ul { margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
.article-body .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.article-body th, .article-body td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.article-body tbody th { font-weight: 500; color: var(--ink); }
.article-body td { font-variant-numeric: tabular-nums; }
.article-body tbody tr:last-child > * { border-bottom: 0; }
.article-body .table-group th { padding-top: 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); background: var(--linen); }
.answer-list { list-style-type: upper-alpha; }
.answer-correct { margin-left: 8px; }

.article-end { margin-top: 64px; }
.article-author { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-author img { flex: none; width: 72px; height: 90px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-sm); }
.article-author p { margin: 0; font-size: 16px; line-height: 1.6; }
.article-author strong { color: var(--ink); }
.article-author-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px !important; }
.article-author-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.article-author-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-cta { margin-top: 40px; padding: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-cta h2 { font-size: 30px; }
.article-cta p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; max-width: 540px; }
.article-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }
.writing-more { margin-top: 56px; }
.writing-more h2 { font-family: var(--font); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.writing-more ul { list-style: none; margin: 16px 0 0; padding: 0; }
.writing-more li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 17px; text-decoration: none; }
.writing-more li:first-child a { border-top: 1px solid var(--line); }
.writing-more li a:hover { color: var(--blue); }
.writing-more-date { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }

@media (max-width: 860px) {
  .writing-list { grid-template-columns: 1fr; }
  .writing-card-featured { padding: 28px; }
  .article { padding: 40px 0 64px; }
}
@media (max-width: 600px) {
  .writing-card { padding: 22px 20px; }
  .article-body { font-size: 17px; }
  .article-body blockquote { font-size: 21px; padding-left: 18px; }
  .article-summary { padding: 22px 20px; }
  .article-body th, .article-body td { padding: 10px 12px; }
  .article-cta { padding: 26px 20px; }
  .article-cta .btn { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-3 { gap: 12px; }
  .price-rows dd { font-size: 30px; }
  .intro-inner, .feature-inner { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Seven header items: tighten before the menu hides at 1000px */
@media (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .nav { gap: 18px; }
  .nav a, .nav-menu-btn { font-size: 14px; white-space: nowrap; }
  .site-header .btn-sm { white-space: nowrap; }
}

/* Header switches to the phone menu (js/nav.js) below 1000px */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-inner { gap: 8px; }
  .site-header .btn-sm { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 56px 0 24px; }
  .hero-bg::after {
    background: linear-gradient(0deg, rgba(14, 14, 16, .8) 0%, rgba(14, 14, 16, .62) 60%, rgba(14, 14, 16, .3) 100%);
  }
  .section { padding: 64px 0; }
  .intro-inner, .feature-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-reverse .feature-copy { order: 1; }
  .feature-reverse .feature-media { order: 2; }
  .intro-media { aspect-ratio: 4 / 3; }
  .service-hero { padding: 40px 0 56px; }
  .section.service-intro { padding-top: 0; }
  .service-hero-inner, .service-intro-inner { grid-template-columns: 1fr; gap: 32px; }
  .service-dur { margin-left: 0; flex-basis: 100%; }
  .about { padding: 40px 0 64px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { position: static; max-width: 360px; }
  .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; max-width: 520px; }
  .plan-for { min-height: 0; }
  .cta { padding: 64px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo img { width: 120px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-panels { margin-top: 14px; min-height: 0; }
  .hero-panel p { font-size: 16px; }
  .hero-actions { margin-top: 18px; gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-link { width: 100%; justify-content: center; }
  .hero-switch { padding-top: 24px; }
  .hero-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-tabs [role=tab] { min-height: 40px; padding: 0 8px; font-size: 14px; }
  .timeline { padding: 4px 18px; }
  .plan { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .control-block { padding: 22px 18px; }
  .control-foot { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
  .el-grid { grid-template-columns: 1fr; }
  .view-tabs { display: flex; }
  .tab { flex: 1; padding: 9px 8px; font-size: 14px; }
  .matrix .th-name, .matrix .td-name { min-width: 170px; }
}

/* Smallest phones: make room for logo, Schedule button, and menu icon */
@media (max-width: 380px) {
  .logo img { width: 104px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-bg img { transform: none; }
}

.article-body address { font-style: normal; }
