/* Inference Wealth — site styles
   Shared by every page (home, future /calculators/ and /articles/ pages).
   Tokens mirror the Inference Wealth design system (tokens.json).
   Layout: left-aligned 12-column ledger; section headings sit in a left rail,
   content in the right 8 columns; one centered max-width, no full-bleed heroes. */

:root {
  /* color */
  --navy: #102033;          /* logo, headings, dark bands */
  --blue: #225377;          /* links, buttons, focus — interactive only */
  --blue-hover: #1A4060;
  --ink: #283040;           /* body text */
  --muted: #596475;         /* secondary text */
  --paper: #FFFFFF;
  --panel: #EEF3F8;         /* calculator / callouts */
  --rule: #D9E0E8;          /* hairlines only */
  --control: #8A94A3;       /* input + secondary button borders */
  --on-navy: #FFFFFF;
  --on-navy-muted: #CFD2D6;
  --navy-rule: #2A3A4F;     /* hairlines on navy */
  --amber: #C46A1F;         /* money at risk — marks and large figures only */

  /* type */
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 48px; --s6: 96px;
  --r-xs: 2px; --r-sm: 4px; --r-md: 8px;

  --maxw: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::before { /* paints the phone's top safe-area band behind the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.012em; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.008em; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-xs); }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

.wrap {
  max-width: calc(var(--maxw) + 2 * 16px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm);
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn-secondary { background: var(--paper); color: var(--blue); border-color: var(--control); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-hover); }
.btn-on-navy { background: #FFFFFF; color: var(--navy); }
.btn-on-navy:hover { background: var(--panel); color: var(--navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-compact { display: none; height: 26px; }
.site-nav { display: flex; align-items: center; gap: var(--s4); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="true"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
/* separate-page links (Calculators, Articles) sit after a divider */
.nav-links .nav-divider { width: 1px; height: 20px; background: var(--rule); margin: 0 8px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  background: var(--paper); color: var(--navy); border: 1px solid var(--control); border-radius: var(--r-sm);
  font: 600 14px var(--sans); cursor: pointer;
}
.nav-toggle .bars { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }

@media (max-width: 1060px) {
  .nav-links a { padding: 8px 7px; font-size: 14.5px; }
  .site-nav { gap: var(--s3); }
}
.header-cta .cta-short { display: none; }
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .brand .logo-full { display: none; }
  .brand .logo-compact { display: block; }
  .site-nav { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .site-nav > .header-cta { order: -1; min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(16, 32, 51, 0.12);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-links a[aria-current="true"] { box-shadow: none; }
  .nav-links .nav-divider { width: auto; height: 1px; margin: 8px 0; }
}
@media (max-width: 600px) {
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
  .nav-toggle { width: 44px; justify-content: center; padding: 8px; }
  .nav-toggle .toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand .logo-compact { height: 20px; }
  .site-nav > .header-cta { padding: 8px 10px; font-size: 13.5px; }
}

/* ---------- sections ---------- */
main section { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding-block: var(--s6); border-top: 1px solid var(--rule); }
.section.panel { background: var(--panel); border-top: 0; }
.rail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); align-items: start; }
.rail > * { min-width: 0; }
.rail-head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--s3); }
.rail-head .lede { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .section { padding-block: 64px; }
  .rail { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .rail-head { position: static; }
}
@media (max-width: 600px) { .section { padding-block: var(--s5); } }

/* ---------- hero ---------- */
.hero { padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: var(--s4); }
.hero-copy .sub { font-size: 18.5px; line-height: 1.6; max-width: 36em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: var(--s2) 0 0; font-size: 14px; color: var(--muted); }
.hero-facts li { display: flex; align-items: flex-start; gap: 8px; }
.hero-facts li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.62em; background: var(--navy); border-radius: 50%; }
@media (max-width: 960px) {
  .hero { padding-block: 48px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

/* withholding-gap illustration */
.gap-card { background: var(--panel); border-radius: var(--r-md); padding: 28px; display: grid; gap: 20px; }
.gap-card .eyebrow { color: var(--muted); }
.gap-rows { display: grid; gap: 0; margin: 0; }
.gap-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.gap-rows dt { font-size: 15px; color: var(--ink); }
.gap-rows dd { margin: 0; font: 600 16px var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gap-total { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.gap-total .label { font-size: 15px; font-weight: 600; color: var(--navy); }
.gap-total .label span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.gap-total .figure { font: 600 40px/1 var(--sans); color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gap-bar { display: grid; gap: 8px; }
.gap-bar .track { display: flex; height: 18px; border-radius: var(--r-xs); overflow: hidden; background: var(--paper); }
.gap-bar .withheld { background: var(--navy); }
.gap-bar .short { background: var(--amber); }
.gap-bar .legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.gap-bar .legend span { display: inline-flex; align-items: center; gap: 6px; }
.gap-bar .legend i { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }
.gap-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- fit ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.profile { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--navy); }
.profile p { color: var(--ink); font-size: 15.5px; }
.profile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--navy); background: var(--panel); padding: 3px 8px; border-radius: var(--r-xs); }
.not-fit { margin-top: var(--s5); padding: 24px 28px; border: 1px solid var(--rule); border-radius: var(--r-md); display: grid; gap: 12px; }
.not-fit h3 { font-size: 18px; }
.not-fit ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: 15.5px; }
@media (max-width: 960px) { .profiles { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

/* hero founder line */
.founder-line { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--ink); }
.founder-line .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.founder-line span { min-width: 0; }
.portrait { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); margin-top: 8px; }
@media (max-width: 960px) { .portrait { max-width: 240px; } }

/* investing */
.model-facts { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--rule); }
.model-facts li { display: grid; gap: 2px; padding: 16px 16px 16px 0; }
.model-facts li + li { padding-left: 16px; border-left: 1px solid var(--rule); }
.model-facts .k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.model-facts .v { font: 600 17px/1.35 var(--serif); color: var(--navy); }
.invest-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.invest-col { display: grid; gap: 16px; min-width: 0; }
.invest-col > h3 { font-size: 22px; }
.criteria { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.criteria li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.criteria b { color: var(--navy); font-weight: 600; }
.invest-col .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .invest-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .model-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .model-facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) { .invest-col .principles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .model-facts { grid-template-columns: minmax(0, 1fr); }
  .model-facts li, .model-facts li + li { padding: 12px 0; border-left: 0; }
  .model-facts li + li { border-top: 1px solid var(--rule); }
}

/* tax planning nested under services */
.tax-sub { margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 8px); }
.tax-sub .subhead p:not(.eyebrow) { color: var(--ink); font-size: 17px; }
.tax-sub .cta-strip { background: var(--panel); }

/* goals */
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
.goal { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--navy); }
.goal h3 { font-size: 20px; }
.goal p { font-size: 16px; }
.situations { margin-top: 40px; display: grid; gap: 12px; }
.situations .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.situations .tag { font-size: 14px; padding: 5px 10px; }
@media (max-width: 760px) { .goals { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* AI career-risk callout */
.ai-feature { margin-top: 32px; display: grid; gap: 6px; padding: 18px 22px; background: var(--panel); border-radius: var(--r-md); }
.ai-feature h3 { font-size: 17px; }
.ai-feature p { font-size: 15px; color: var(--ink); }

/* inline call to action */
.cta-strip { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 24px 28px; background: var(--paper); border-radius: var(--r-md); }
.cta-strip p { font-size: 17px; color: var(--ink); flex: 1 1 320px; min-width: 0; }
.cta-strip b { color: var(--navy); font-weight: 600; }

/* ---------- tax planning calendar ---------- */
.tax-intro { display: grid; gap: var(--s3); margin-bottom: var(--s5); max-width: 48em; }
.tax-intro p:not(.eyebrow) { font-size: 17px; }
.tax-year { display: grid; gap: 0; border-top: 1px solid var(--navy); }
.tax-period { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s4); padding-block: 32px; border-bottom: 1px solid var(--rule); }
.tax-period > * { min-width: 0; }
.period-label { display: grid; gap: 4px; align-content: start; }
.period-label .when { font: 600 19px/1.3 var(--serif); color: var(--navy); }
.period-label .why { font-size: 13.5px; color: var(--muted); }
.strategies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.strategy { display: grid; gap: 8px; align-content: start; }
.strategy h3 { font-size: 18px; }
.strategy p { font-size: 15.5px; }
.strategy .limit { font-size: 14px; color: var(--muted); }
.strategy .limit b { font-weight: 600; color: var(--ink); }
.tax-disclaimer { margin-top: var(--s4); font-size: 14px; color: var(--muted); max-width: 60em; }
@media (max-width: 900px) {
  .tax-period { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .strategies { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.service { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--paper); }
.service.primary { border: 2px solid var(--navy); }
.service .kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.service h3 { font-size: 24px; }
.service .badge { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--panel); padding: 3px 8px; border-radius: var(--r-xs); }
.service ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; align-content: start; font-size: 15.5px; }
.service .card-risk { font-size: 14px; color: var(--muted); }
.service .terms { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.service .terms dt { color: var(--muted); }
.service .terms dd { margin: 0; color: var(--navy); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); } .service { padding: 24px; } }

.subhead { display: grid; gap: 8px; margin: 72px 0 28px; }
.subhead p { color: var(--muted); max-width: 46em; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.principle { display: grid; gap: 8px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); align-content: start; }
.principle:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--rule); }
.principle h3 { font-size: 18px; }
.principle p { font-size: 15.5px; }
.risk-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 60em; }
@media (max-width: 760px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle:nth-child(even) { padding: 20px 0; border-left: 0; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); font: 600 15px var(--sans); color: var(--navy); width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--navy); border-radius: 50%; }
.steps h3 { font-size: 17px; }
.steps p { font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
.fee-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.fee-table-block { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fee-table-block h3 { font-size: 20px; }
.fee-table-block .caption { font-size: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table.fees { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); }
table.fees th { white-space: nowrap; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--navy); }
table.fees td { padding: 12px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.fees td:last-child, table.fees th:last-child { text-align: right; }
table.fees td:last-child { font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .fee-tables { grid-template-columns: minmax(0, 1fr); } }

.estimator { margin-top: 56px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.est-inputs { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; border-right: 1px solid var(--rule); min-width: 0; }
.est-inputs > *, .est-output > * { min-width: 0; }
.est-inputs h3 { font-size: 20px; }
.est-inputs > p { font-size: 14.5px; color: var(--muted); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field > * { min-width: 0; }
.money-input input { width: 100%; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--navy); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--control); border-radius: var(--r-sm); overflow: hidden; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.segmented label { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--blue); cursor: pointer; line-height: 1.25; }
.segmented label + input + label, .segmented input + label ~ label { border-left: 1px solid var(--control); }
.segmented input:checked + label { background: var(--blue); color: #FFFFFF; }
.segmented input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: -4px; }
.money-input { display: flex; align-items: center; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--paper); }
.money-input:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.money-input span { padding-left: 14px; color: var(--muted); font-weight: 500; }
.money-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px 12px 6px; font: 600 20px var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; outline: none; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { font: 500 13.5px var(--sans); color: var(--blue); background: var(--paper); border: 1px solid var(--control); border-radius: var(--r-sm); padding: 6px 10px; min-height: 34px; cursor: pointer; font-variant-numeric: tabular-nums; }
.presets button:hover { border-color: var(--blue); }
.presets button[aria-pressed="true"] { background: var(--panel); border-color: var(--blue); color: var(--navy); }

.est-output { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; align-content: start; background: var(--panel); border-radius: 0 var(--r-md) var(--r-md) 0; }
.est-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.est-figures div { display: grid; gap: 2px; }
.est-figures .k { font-size: 13px; color: var(--muted); }
.est-figures .v { font: 600 28px/1.15 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.est-figures .v.small { font-size: 22px; }
.est-warning { font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px 12px; }
table.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.breakdown th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--navy); }
table.breakdown td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.breakdown th:not(:first-child), table.breakdown td:not(:first-child) { text-align: right; }
table.breakdown tr.zero td { color: var(--muted); }
table.breakdown tfoot td { font-weight: 600; color: var(--navy); border-bottom: 0; }
.est-foot { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .est-inputs { border-right: 0; border-bottom: 1px solid var(--rule); }
  .est-output { border-radius: 0 0 var(--r-md) var(--r-md); }
}
@media (max-width: 480px) {
  .est-inputs, .est-output { padding: 20px; }
  .est-figures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .est-figures div:first-child { grid-column: 1 / -1; }
}

.fee-notes { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; padding: 0; list-style: none; }
.fee-notes li { font-size: 14.5px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fee-notes b { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .fee-notes { grid-template-columns: minmax(0, 1fr); } }

.why-flat { margin-top: 0; display: grid; gap: 10px; padding: 24px 28px; background: var(--paper); border-radius: var(--r-md); }
.why-flat h3 { font-size: 18px; }
.why-flat p { font-size: 15.5px; }

/* ---------- about ---------- */
.bio { display: grid; gap: 18px; max-width: 40em; }
.bio p { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink); }
.creds { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.creds div { display: grid; gap: 2px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
.creds div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
.creds dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.creds dd { margin: 0; font-size: 15.5px; color: var(--navy); }
.career { margin-top: 40px; display: grid; gap: 0; }
.career h3 { font-size: 18px; margin-bottom: 12px; }
.career ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.career li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.career .dates { color: var(--muted); font-variant-numeric: tabular-nums; }
.career .role b { color: var(--navy); font-weight: 600; }
@media (max-width: 600px) {
  .creds { grid-template-columns: minmax(0, 1fr); }
  .creds div, .creds div:nth-child(even) { padding: 14px 0; border-left: 0; }
  .career li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 18px/1.4 var(--serif); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--blue-hover); }
.faq .answer { padding: 0 0 24px; display: grid; gap: 12px; max-width: 44em; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- contact band ---------- */
.contact { background: var(--navy); color: var(--on-navy); padding-block: 88px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact h2 { color: var(--on-navy); }
.contact .eyebrow { color: var(--on-navy-muted); }
.contact-copy { display: grid; gap: 20px; }
.contact-copy p:not(.eyebrow):not(.sched-note) { color: var(--on-navy-muted); font-size: 17px; max-width: 34em; }
.contact-copy .btn { justify-self: start; margin-top: 8px; }
.sched-note { font-size: 14px; color: var(--on-navy-muted); }
.contact-details { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--navy-rule); }
.contact-details div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--navy-rule); }
.contact-details dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); }
.contact-details dd { margin: 0; font-size: 17px; color: var(--on-navy); overflow-wrap: anywhere; }
.contact-details a { color: var(--on-navy); }
.contact-details a:hover { color: var(--on-navy-muted); }
.copy-btn { margin-left: 10px; font: 500 12.5px var(--sans); color: var(--on-navy-muted); background: transparent; border: 1px solid var(--navy-rule); border-radius: var(--r-sm); padding: 2px 8px; cursor: pointer; vertical-align: 2px; }
.copy-btn:hover { color: var(--on-navy); border-color: var(--on-navy-muted); }
@media (max-width: 900px) { .contact { padding-block: 64px; } .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 0 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 40px; border-top: 1px solid var(--navy-rule); border-bottom: 1px solid var(--navy-rule); }
.footer-top img { height: 44px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclosures { padding-top: 32px; display: grid; gap: 14px; font-size: 13px; line-height: 1.6; max-width: 72em; }
.disclosures strong { color: var(--on-navy); font-weight: 600; }
.disclosures a { color: var(--on-navy); }
.disclosures a:hover { color: var(--on-navy-muted); }
.privacy { border-top: 1px solid var(--navy-rule); padding-top: 14px; }
.privacy summary { cursor: pointer; color: var(--on-navy); font-weight: 600; font-size: 14px; }
.privacy .policy { display: grid; gap: 10px; padding-top: 14px; max-width: 60em; }
.privacy .policy ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.copyright { padding-top: 20px; font-size: 13px; }

@media (max-width: 480px) {
  .service .terms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .service .terms dd + dt { margin-top: 10px; }
  table.fees th, table.fees td { padding-left: 8px; padding-right: 8px; }
}

/* ---------- subpages (book, booked, privacy) ---------- */
.page-main { padding-block: 64px 96px; }
.page-card { max-width: 40em; display: grid; gap: 16px; }
.page-title { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.page-sub { font-size: 20px; margin-top: 8px; }
.page-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose { max-width: 44em; display: grid; gap: 14px; }
.prose h2 { font-size: 26px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 18px; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose .effective { color: var(--muted); font-size: 14px; }
