/* myTAXfile — shared frame styles
   Frame hierarchy, sizing, and section-ID scheme per Seung Park's
   design-stable-web-frames standard.
   Palette: approved master color system — adopted 2026-08-01 with the
   homepage mockup Seung Park supplied as the approved master visual
   reference (supersedes the navy/teal cool palette from earlier the
   same day). Warm-white body, slate headings, teal actions, pale
   blue-gray section bands, medium slate-blue footer. Target mix:
   70–75% white/warm white, 15–20% pale blue-gray, 5–10% slate/teal.
   AA notes: white on --color-primary measures 4.35:1, so primary
   buttons and step numerals render at >=18.7px semibold (WCAG large
   text, 3:1). Text links use --color-primary-hover (5.91:1 on white).
   Footer text is full white on #4b7890 (4.79:1) — never dim it with
   opacity below 1.
*/

:root {
  /* Approved color system — 2026-08-01 mockup brief (exact values). */
  --color-background: #fcfcfa;
  --color-surface: #ffffff;
  --color-heading: #294455;
  --color-body: #526a78;
  --color-primary: #168782;
  --color-primary-hover: #0f706c;
  --color-section-light: #eff6f7;
  --color-footer: #4b7890;
  --color-footer-text: #ffffff;

  /* Legacy token names used throughout this file, mapped onto the
     approved system above. A palette change edits the block above —
     never hard-code a hue below this line. */
  --color-bg: var(--color-background);
  --color-card-bg: var(--color-surface);
  --color-ink: var(--color-heading);
  --color-ink-soft: var(--color-body);
  --color-accent: var(--color-primary);
  --color-accent-dark: var(--color-primary-hover);
  --color-accent-tint: var(--color-section-light);
  /* Text-safe accent. Permanent role rule: text uses --color-accent-text;
     --color-accent and --color-accent-dark are for fills, borders, icons,
     and focus rings. --color-primary at 4.35:1 on white fails AA for
     normal text; --color-primary-hover passes at 5.91:1. */
  --color-accent-text: var(--color-primary-hover);
  --color-gold: #c58a2a;                  /* retained token; no longer used */
  --color-footer-bg: var(--color-footer);
  --color-border: #d9e5e8;
  --color-accent-pressed: var(--color-primary-hover);
  --color-accent-pale: var(--color-section-light);
  --color-accent-tint-border: #d9e5e8;
  --color-footer-ink: var(--color-footer-text);
  --color-surface-soft: var(--color-section-light);
  --color-warning: #b8860b;               /* placeholder + needs-review borders */
  --color-warning-text: #6b5300;
  --color-warning-tint: #fff3cd;          /* placeholder background */
  --color-warning-surface: #fffdf5;       /* needs-review background */
  --color-neutral-tint: var(--color-section-light);
  --color-neutral-text: var(--color-body);
  --color-scope-federal-text: #2f5d50;    /* calculator scope badges */
  --color-scope-federal-tint: #eaf3f0;
  --color-scope-federal-border: #cbe0d8;
  --color-scope-combined-text: #5a4a86;
  --color-scope-combined-tint: #efecf7;
  --color-scope-combined-border: #d8d0ea;
  --card-shadow: 0 1px 2px rgba(41, 68, 85, 0.05);
  --header-footer-inner-max: 1320px;
  --content-max: 1320px;
  --content-width-desktop: 83%;
  --content-width-mobile: 92%;
  --breakpoint: 768px;

  /* Typography scale (Section 8) */
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-nav: 1rem;
  --fs-card-heading: 1.2rem;
  --fs-section-heading: 1.875rem;
  --fs-hero-headline: 2rem;
  --fs-hero-support: 1.125rem;
  /* 1.17rem = 18.72px: with weight 600+ this qualifies as WCAG large
     text, so white on --color-primary (4.35:1) passes its 3:1 bar. */
  --fs-button: 1.17rem;

  /* Spacing scale (Section 5) */
  --space-section: 46px;
  --space-section-mobile: 32px;
}

@media (min-width: 768px) {
  :root {
    --fs-hero-headline: 2.5rem;
    --fs-section-heading: 2.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-hero-headline: 3.5rem;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--color-ink);
  line-height: 1.25;
}

h2 {
  font-size: var(--fs-section-heading);
  font-weight: 700;
}

a {
  color: var(--color-accent-text);
}

a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.cta-button--outline:focus-visible,
.cta-button--outline-light:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}

/* ---------- Header (Global frame) ---------- */

.site-header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header__logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--fs-nav);
}

.site-nav a:hover {
  color: var(--color-accent-text);
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-button);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--color-accent-dark);
}

.cta-button:active {
  background: var(--color-accent-pressed);
}

.cta-button--outline {
  display: inline-block;
  background: transparent;
  color: var(--color-accent-text);
  border: 1.5px solid var(--color-accent);
  padding: 10px 19px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-button);
}

.cta-button--outline:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.cta-button--outline:active {
  background: var(--color-accent-dark);
  color: #ffffff;
}

.cta-button--outline-light {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 10px 19px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-button);
}

.cta-button--outline-light:hover {
  background: #ffffff;
  color: var(--color-ink);
}

/* ---------- Hero (Global frame) ----------
   The image layer (.main-box) is independently replaceable: swapping
   its background/img does not require touching .hero, .hero__overlay,
   or .hero__content. Do not spend effort refining the placeholder
   gradient itself — it will be replaced with an approved photo. */

.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: block;
}

@media (min-width: 768px) {
  .hero {
    min-height: 480px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 560px;
  }
}

.main-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #35608f 0%, #1d3f66 55%, #0b2545 100%);
}

.main-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-box--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.25) 0%, rgba(11, 37, 69, 0.65) 100%);
}

.hero__content {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
}

.hero__eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-pale);
  margin: 0 0 12px;
}

.hero__headline {
  font-size: var(--fs-hero-headline);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero__support {
  font-size: var(--fs-hero-support);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  max-width: 620px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.hero__trust {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Content / Body (Global frame) ---------- */

.content {
  width: var(--content-width-desktop);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-section) 0;
}

.content-box {
  position: relative;
  margin-bottom: var(--space-section);
}

.content-box:last-child {
  margin-bottom: 0;
}

.content-box__eyebrow {
  color: var(--color-accent-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.content-box p {
  color: var(--color-ink-soft);
  font-size: var(--fs-body);
}

.state-note {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
}

.section-id-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 300;
  color: var(--color-ink);
  opacity: 0.12;
  user-select: text;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.content-box:hover .section-id-label {
  opacity: 0.45;
}

/* ---------- Service cards (HOME-C-002) ---------- */

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 28px;
}

.service-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: var(--fs-card-heading);
  font-weight: 700;
}

.service-card p {
  margin: 0 0 6px;
  font-size: var(--fs-small);
}

.service-card__note {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  font-style: italic;
}

.service-card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.find-service-prompt {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: var(--card-shadow);
}

.find-service-prompt p {
  margin: 0;
  flex: 1 1 240px;
}

/* ---------- Steps (HOME-C-003) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  box-shadow: var(--card-shadow);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-text);
  border: 1.5px solid var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.steps strong {
  display: block;
  color: var(--color-ink);
  margin-bottom: 4px;
}

/* ---------- Trust list (HOME-C-004) ---------- */

.trust-list--centered {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.trust-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-soft);
  font-size: 1rem;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-text);
  font-weight: 700;
}

/* ---------- FAQ teaser (HOME-C-005) ---------- */

.faq-list {
  display: grid;
  gap: 18px;
  margin: 20px 0 20px;
}

.faq-q {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--color-ink);
}

.faq-a {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* ---------- Final CTA (HOME-C-006) ---------- */

.final-cta {
  text-align: center;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: var(--card-shadow);
}

.final-cta p {
  margin: 0 0 20px;
}

/* ---------- Footer (Global frame) ---------- */

.site-footer {
  width: 100%;
  background: var(--color-footer-bg);
  color: var(--color-footer-ink);
  margin-top: 32px;
}

.site-footer__inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.site-footer h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* Full footer ink, never gold and never opacity-dimmed: white on the
     slate footer is 4.79:1 — there is no headroom for dimming. */
  color: var(--color-footer-ink);
  margin: 0 0 12px;
}

.site-footer a {
  color: var(--color-footer-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.state-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9rem;
}

.state-list__coming-soon {
  font-style: italic;
}

.site-footer__legal {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 24px;
  padding-top: 16px;
  font-size: var(--fs-small);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .content {
    width: var(--content-width-mobile);
    padding: var(--space-section-mobile) 0;
  }

  .content-box {
    margin-bottom: var(--space-section-mobile);
  }

  .site-nav {
    gap: 12px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 36px 20px;
  }
}

/* ============================================================
   Legal & information pages (Privacy Notice, Terms of Use,
   Accessibility). Additive only — no rules above are modified.
   ============================================================ */

/* Skip link — keyboard users jump past the nav to content. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 6px 0;
  font-size: var(--fs-body);
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Comfortable reading measure for prose-heavy pages.
   The default .content (83% / 1220px) is too wide for legal text. */
.content--narrow {
  max-width: 780px;
}

/* ---------- Page head ---------- */

.page-head {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 28px;
  margin-bottom: 8px;
}

.page-head__eyebrow {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-text);
  font-weight: 600;
  margin: 0 0 10px;
}

.page-head h1 {
  font-size: 2.125rem;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 14px;
}

.page-head__intro {
  font-size: 1.0625rem;
  color: var(--color-ink-soft);
  margin: 0 0 18px;
}

.page-head__dates {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Review / status banner ---------- */

.review-banner {
  background: var(--color-accent-tint);
  border: 1px solid var(--color-accent-tint-border);
  border-left: 4px solid var(--color-accent-dark);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 28px 0;
}

.review-banner h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-text);
  margin: 0 0 8px;
}

.review-banner p {
  font-size: var(--fs-small);
  color: var(--color-ink);
  margin: 0 0 8px;
}

.review-banner p:last-child {
  margin-bottom: 0;
}

/* ---------- Table of contents ---------- */

.legal-toc {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  margin: 28px 0 8px;
}

.legal-toc h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-soft);
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
  font-size: var(--fs-small);
}

@media (max-width: 768px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* ---------- Legal prose ---------- */

.legal-section {
  padding-top: 30px;
}

.legal-section h2 {
  font-size: 1.375rem;
  color: var(--color-ink);
  margin: 0 0 12px;
  scroll-margin-top: 20px;
}

.legal-section h3 {
  font-size: 1.0625rem;
  color: var(--color-ink);
  margin: 22px 0 8px;
}

.legal-section p,
.legal-section li {
  color: var(--color-ink-soft);
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section strong {
  color: var(--color-ink);
}

.legal-section a {
  color: var(--color-accent-text);
}

.legal-toc a {
  color: var(--color-accent-text);
}

/* Quoted approved customer guidance. */
.legal-quote {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-soft);
  padding: 16px 20px;
  margin: 0 0 14px;
  border-radius: 0 6px 6px 0;
}

.legal-quote p {
  margin: 0;
  color: var(--color-ink);
}

.legal-quote em {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
}

/* Unresolved operational facts. Deliberately loud: these must be
   replaced with approved values before this page is published. */
.placeholder {
  background: var(--color-warning-tint);
  border: 1px dashed var(--color-warning);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 0.9375em;
  color: var(--color-warning-text);
  font-style: normal;
  white-space: normal;
}

/* Items awaiting qualified professional review. */
.needs-review {
  display: block;
  border-left: 3px solid var(--color-warning);
  background: var(--color-warning-surface);
  padding: 12px 16px;
  margin: 0 0 14px;
  border-radius: 0 6px 6px 0;
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
}

/* ---------- Contact block ---------- */

.legal-contact {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  margin-top: 14px;
}

.legal-contact p {
  margin: 0 0 8px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer legal link row ---------- */

.site-footer__links a {
  display: inline-block;
  margin-right: 14px;
}

@media (max-width: 768px) {
  .page-head h1 {
    font-size: 1.75rem;
  }

  .legal-toc,
  .legal-contact,
  .review-banner {
    padding: 16px 18px;
  }
}

/* ============================================================
   Resources / calculator cards. Additive only.
   ============================================================ */

.section-lede {
  color: var(--color-ink-soft);
  margin: 0 0 22px;
  max-width: 70ch;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.calc-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.calc-card h3 {
  font-size: var(--fs-card-heading);
  margin: 0 0 8px;
}

.calc-card p {
  color: var(--color-ink-soft);
  margin: 0 0 12px;
  font-size: var(--fs-small);
}

.calc-card__scope {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid;
}

/* Scope is carried by the label text, never by colour alone. */
.calc-card__scope--federal {
  color: var(--color-scope-federal-text);
  background: var(--color-scope-federal-tint);
  border-color: var(--color-scope-federal-border);
}

.calc-card__scope--state {
  color: var(--color-accent-text);
  background: var(--color-accent-tint);
  border-color: var(--color-accent-tint-border);
}

.calc-card__scope--combined {
  color: var(--color-scope-combined-text);
  background: var(--color-scope-combined-tint);
  border-color: var(--color-scope-combined-border);
}

.calc-card__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.calc-card__meta li {
  margin-bottom: 4px;
}

.calc-card__meta strong {
  color: var(--color-ink);
  font-weight: 600;
}

.calc-card__caution {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-soft);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

.calc-card__actions {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.calc-card__soon {
  display: inline-block;
  background: var(--color-neutral-tint);
  border: 1px solid var(--color-border);
  color: var(--color-neutral-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
}

.planned-list {
  columns: 2;
  column-gap: 36px;
  margin: 0;
  padding-left: 22px;
  color: var(--color-ink-soft);
}

.planned-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .planned-list {
    columns: 1;
  }

  .calc-card {
    padding: 18px 20px;
  }
}

/* ============================================================
   Homepage v2 — approved master mockup, 2026-08-01. Additive only:
   these rules key off new "--v2" classes used by index.html, so the
   six other pages (old header/footer markup) are unaffected except
   for the shared palette tokens above.
   ============================================================ */

/* ---------- Header v2: logo | centered nav | actions ---------- */

.site-header--v2 .site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
}

.site-header--v2 .site-nav {
  justify-content: center;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-heading);
  border: 1px solid var(--color-body);
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-nav);
}

.btn-signin:hover {
  border-color: var(--color-heading);
  background: var(--color-section-light);
}

/* Header CTA stays compact so the header doesn't feel heavy; at nav
   size it needs the text-safe fill to hold AA at normal-text scale. */
.site-header--v2 .cta-button {
  font-size: var(--fs-nav);
  padding: 10px 20px;
  background: var(--color-primary-hover);
}

.site-header--v2 .cta-button:hover {
  background: var(--color-heading);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle svg {
  stroke: var(--color-heading);
}

/* ---------- Hero v2: two-column, bright ---------- */

.hero-v2 {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

.hero-v2__inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 480px;
}

.hero-v2__eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-text);
  margin: 0 0 14px;
}

.hero-v2__headline {
  font-size: var(--fs-hero-headline);
  font-weight: 650;
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero-v2__support {
  font-size: 1.1875rem;
  color: var(--color-body);
  margin: 0 0 28px;
  max-width: 34ch;
}

.hero-v2__ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--color-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.text-link:hover {
  color: var(--color-heading);
}

/* Photo bleeds to the right viewport edge with a curved top-left sweep,
   per the approved master mockup: pale circle at its lower left, slate
   blob bleeding off the bottom-right. The img layer is independently
   replaceable. */
.hero-v2__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
}

.hero-v2__media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  border-radius: 46% 0 0 0 / 78% 0 0 0;
  display: block;
}

.hero-v2__blob {
  position: absolute;
  z-index: 1;
}

.hero-v2__blob--light {
  width: 46%;
  aspect-ratio: 1;
  left: -7%;
  bottom: -34%;
  border-radius: 50%;
  background: var(--color-section-light);
}

.hero-v2__blob--slate {
  width: 34%;
  aspect-ratio: 1.15;
  right: -6%;
  bottom: -12%;
  border-radius: 54% 46% 44% 56% / 58% 52% 48% 42%;
  background: var(--color-footer);
  opacity: 0.96;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Compact category hero (approved 2026-08-02: every category
   page opens with a main image + slogan band directly below the nav,
   shorter than the homepage hero; img layer independently replaceable) ---------- */

.page-hero {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-hero__inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
  align-items: center;
  min-height: 280px;
}

.page-hero__eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-text);
  margin: 0 0 10px;
}

.page-hero__slogan {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 750;
  color: var(--color-heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.page-hero__keywords {
  margin: 0;
  color: var(--color-body);
  font-weight: 600;
  font-size: 1rem;
}

.page-hero__keywords span {
  color: var(--color-accent-text);
}

.page-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 30% 0 0 0 / 62% 0 0 0;
  display: block;
}

@media (max-width: 768px) {
  .page-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 20px 0;
  }

  .page-hero__media {
    position: relative;
    width: 100%;
    height: 170px;
    margin-top: 20px;
  }

  .page-hero__media img {
    border-radius: 18% 0 0 0 / 52% 0 0 0;
  }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--color-section-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip__inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 18px;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
}

.trust-strip__item + .trust-strip__item {
  border-left: 1px solid var(--color-border);
}

.trust-strip__item svg {
  flex: none;
  stroke: var(--color-primary);
}

/* ---------- Section rhythm helpers ---------- */

.band {
  padding: var(--space-section) 0;
}

.band--light {
  background: var(--color-section-light);
}

.band__inner {
  position: relative;
  width: var(--content-width-desktop);
  max-width: var(--content-max);
  margin: 0 auto;
}

.band h2 {
  text-align: center;
  margin: 0 0 10px;
}

.band__lede {
  text-align: center;
  color: var(--color-body);
  max-width: 62ch;
  margin: 0 auto 30px;
}

/* ---------- Service cards v2 ---------- */

.service-cards-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 30px 0 26px;
}

.service-card-v2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.service-card-v2 svg {
  flex: none;
  stroke: var(--color-primary);
  margin-top: 2px;
}

.service-card-v2 h3 {
  margin: 0 0 6px;
  font-size: var(--fs-card-heading);
  font-weight: 650;
}

.service-card-v2 p {
  margin: 0 0 6px;
  font-size: var(--fs-small);
  color: var(--color-body);
}

.service-card-v2 .service-card__note {
  font-style: italic;
}

.service-card-v2 a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Steps v2 ---------- */

.steps-v2 {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.steps-v2 li {
  counter-increment: step;
  position: relative;
  text-align: left;
  padding-left: 62px;
  font-size: var(--fs-small);
  color: var(--color-body);
}

.steps-v2 li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  /* 18.72px bold numeral = WCAG large text on the 4.35:1 teal fill. */
  font-size: 1.17rem;
  font-weight: 700;
}

/* Light dashed connector between steps (desktop only). */
.steps-v2 li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(100% + 2px);
  width: 40px;
  border-top: 2.5px dashed var(--color-border);
}

.steps-v2 strong {
  display: block;
  color: var(--color-heading);
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

/* ---------- Security section (approved copy, HOME-C-004) ---------- */

.security-card {
  background: var(--color-section-light);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.security-card svg {
  flex: none;
  stroke: var(--color-primary);
  margin-top: 4px;
}

.security-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.security-card li {
  color: var(--color-body);
}

/* ---------- Footer v2: brand | divider | link columns, bottom bar ---------- */

.site-footer--v2 .site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr 1fr 1fr 1.15fr;
  gap: 36px;
  padding: 48px 24px 36px;
}

.site-footer__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  align-self: stretch;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer__bottom-inner {
  max-width: var(--header-footer-inner-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-footer-ink);
  opacity: 0.85;
}

.site-footer__brand-name {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--color-footer-ink);
}

.site-footer__tagline {
  margin: 0;
  font-size: var(--fs-small);
  max-width: 24ch;
}

.site-footer--v2 .state-list {
  display: block;
}

.site-footer--v2 .state-list li {
  margin-bottom: 7px;
}

.site-footer--v2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--v2 ul li {
  margin-bottom: 7px;
}

/* ---------- Homepage v2 responsive ---------- */

@media (max-width: 1023px) {
  .hero-v2__inner {
    gap: 28px;
  }

  .steps-v2 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .steps-v2 li:not(:last-child)::after {
    display: none;
  }

  .site-footer--v2 .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__divider {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Collapsible nav */
  .nav-toggle {
    display: inline-flex;
  }

  .site-header--v2 .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-header--v2 .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
  }

  .site-header--v2 .site-nav.is-open {
    display: flex;
  }

  .site-header--v2 .site-nav a {
    display: block;
    width: 100%;
    padding: 11px 4px;
    font-size: 1.0625rem;
  }

  .site-header__actions {
    gap: 8px;
  }

  .btn-signin,
  .site-header--v2 .cta-button {
    padding: 8px 10px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .site-header--v2 .site-header__logo {
    font-size: 1.15rem;
  }
}

/* Small phones: the header CTA would force horizontal overflow next to
   the logo, menu button, and Sign In. The hero CTA is immediately below,
   so the header button yields — Sign In stays. */
@media (max-width: 480px) {
  .site-header--v2 .cta-button {
    display: none;
  }

  /* Hero stacks: content above photograph */
  .hero-v2__inner {
    grid-template-columns: 1fr;
    padding: 30px 20px 0;
    min-height: 0;
  }

  .hero-v2__support {
    max-width: none;
  }

  .hero-v2__media {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 26px;
  }

  .hero-v2__media img {
    border-radius: 26% 0 0 0 / 60% 0 0 0;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px;
  }

  .trust-strip__item {
    justify-content: flex-start;
    padding: 8px 2px;
  }

  .trust-strip__item + .trust-strip__item {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .band__inner {
    width: var(--content-width-mobile);
  }

  .service-cards-v2 {
    grid-template-columns: 1fr;
  }

  .steps-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .security-card {
    flex-direction: column;
    padding: 22px 20px;
  }

  .site-footer--v2 .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- Compat tokens for the Codex three-page-design components
   (PR #6). Their rules reference these names; values map onto the
   approved master system above so a palette change stays a single edit. */
:root {
  --color-ink-muted: #6d8493;
  --color-accent-deep: var(--color-primary-hover);
  --color-footer-deep: #426d84;
  --color-footer-muted: #f4fbfd;
  --color-border-strong: #b8cdd2;
  --color-section-soft: #f6f9f9;
  --color-primary-pale: var(--color-section-light);
  --color-warning-bg: var(--color-warning-tint);
  --color-warning-border: #d4a84f;
  --color-scope-federal-bg: var(--color-scope-federal-tint);
  --color-scope-state-bg: #edf3f8;
  --color-scope-state-text: #365f76;
  --color-scope-combined-bg: var(--color-scope-combined-tint);
  --color-overlay-white: rgba(255, 255, 255, 0.94);
  --color-shadow: rgba(41, 68, 85, 0.09);
  --color-shadow-soft: rgba(41, 68, 85, 0.05);
  --color-footer-border: rgba(255, 255, 255, 0.2);
}

/* ---------- Codex three-page-design components (salvaged from PR #6;
   frame/base classes come from the master-mockup system above) ---------- */
.brand-core {
  display: inline-block;
  padding: 0.28em 0.48em 0.32em;
  border-radius: 3px;
  background: var(--color-accent-dark);
  color: var(--color-footer-text);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-now {
  color: var(--color-accent);
  font-size: 1.08em;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-accent);
  font-size: 1.45rem;
}

.real-estate-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 34px;
  margin: 28px 0;
  padding: 30px 34px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(110deg, var(--color-section-light), var(--color-primary-pale));
}

.real-estate-feature h3,
.real-estate-feature p {
  margin: 0;
}

.real-estate-feature h3 {
  font-size: 1.45rem;
}

.real-estate-feature__copy p {
  color: var(--color-ink-soft);
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    min-height: auto;
    padding: 58px 0 42px;
  }

  .main-box {
    position: relative;
    inset: auto;
    width: 100%;
    height: 430px;
    border-radius: 20% 0 0 0 / 15% 0 0 0;
  }

  .main-box::before {
    display: none;
  }

  .hero__content {
    width: min(92%, 720px);
    padding-right: 0;
  }

  .service-cards,
  .real-estate-feature,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    min-height: 72px;
    padding-inline: 20px;
  }

  .site-header__logo {
    font-size: 1.55rem;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .hero__headline {
    font-size: 2.5rem;
  }

  .hero__ctas {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__ctas a {
    text-align: center;
  }

  .main-box {
    height: 330px;
  }

  .content {
    padding-block: 54px;
  }

  .content-box {
    margin-bottom: 54px;
  }

  .content > .content-box:nth-of-type(even),
  .page-head,
  .service-card,
  .calc-card,
  .real-estate-feature,
  .final-cta {
    padding: 26px 22px;
  }

  .page-head {
    border-radius: 18px;
  }

  .page-head h1 {
    font-size: 2.35rem;
  }

  .site-footer__inner {
    padding-inline: 20px;
  }
}

/* ---------- Temporary route and authentication preview pages ---------- */

.site-header__sign-in {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-header__sign-in:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

.status-pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 11px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-accent-tint);
  color: var(--color-accent-text);
  font-size: var(--fs-small);
  font-weight: 700;
}

.coming-soon-panel {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-card-bg);
  box-shadow: var(--card-shadow);
}

.coming-soon-panel > :last-child {
  margin-bottom: 0;
}

.auth-page {
  min-height: 100vh;
}

.auth-shell {
  width: var(--content-width-mobile);
  max-width: 620px;
  min-height: 64vh;
  margin: 0 auto;
  padding: 72px 0;
}

.auth-card {
  position: relative;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-card-bg);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 2.4rem;
}

.auth-card__logo {
  display: inline-block;
  margin-bottom: 22px;
}

.auth-card__notice {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-section-light);
  color: var(--color-ink-soft);
  text-align: left;
}

.auth-switch {
  margin: 28px 0 0;
}

.auth-switch a {
  font-weight: 700;
}

@media (max-width: 600px) {
  .site-header__sign-in {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .auth-shell {
    padding: 44px 0;
  }

  .auth-card,
  .coming-soon-panel {
    padding: 28px 22px;
