/* ============================================================
   main.css -- America's Tax Professionals design system
   Palette: Evolved from live site colors (#000055 navy, #99ccff steel blue, #ff0000 red).
   Primary = midnight navy. Accent = controlled crimson. Secondary = slate blue.
   All colors in OKLCH. No hex values in source.
   Mobile-first. Breakpoints: md 768px, lg 1024px, xl 1280px.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */

:root {

  /* --- Color: primary palette (heritage-evolved) --- */

  /* Midnight navy: evolved from #000055. Primary brand surface. */
  --color-primary:        oklch(0.22 0.10 264);
  --color-primary-dark:   oklch(0.17 0.12 264);   /* hover/press darker */
  --color-primary-press:  oklch(0.14 0.12 264);
  --color-primary-tint:   oklch(0.22 0.10 264 / 0.08);

  /* Controlled crimson: evolved from #ff0000. Accent/credential marker. */
  --color-accent:         oklch(0.42 0.18 17.6);
  --color-accent-dark:    oklch(0.36 0.20 17.6);
  --color-accent-tint:    oklch(0.42 0.18 17.6 / 0.08);

  /* Polished slate blue: evolved from #99ccff. Secondary/focus. */
  --color-secondary:      oklch(0.58 0.10 240);
  --color-secondary-dark: oklch(0.48 0.12 240);

  /* --- Color: backgrounds --- */
  --color-bg:             oklch(1.000 0.000 0);    /* pure white */
  --color-surface:        oklch(0.968 0.006 264);  /* barely-perceptible navy tint panel */
  --color-surface-raised: oklch(0.952 0.009 264);  /* card bg, slightly deeper tint */

  /* --- Color: ink/text --- */
  --color-ink:            oklch(0.14 0.018 264);   /* near-black with navy hue at low chroma */
  --color-muted:          oklch(0.44 0.010 264);   /* secondary text, same axis */

  /* --- Color: semantic --- */
  --color-success:        oklch(0.52 0.15 145);
  --color-warning:        oklch(0.72 0.16 65);
  --color-error:          oklch(0.46 0.20 25);     /* error red, same family as accent */

  /* --- Color: UI utility --- */
  --color-border:         oklch(0.86 0.008 264);   /* subtle rule lines, navy-tinted */
  --color-border-strong:  oklch(0.72 0.012 264);   /* visible dividers */
  --color-focus:          oklch(0.58 0.10 240);    /* slate blue focus ring */

  /* --- Color: hero / credential surfaces (deep navy) --- */
  --color-hero-bg:        oklch(0.22 0.10 264);    /* midnight navy -- same as primary */
  --color-hero-ink:       oklch(0.97 0.006 264);   /* near-white with cool cast */
  --color-hero-muted:     oklch(0.72 0.030 264);   /* mid-blue muted text on dark */

  /* --- Typography: families --- */
  --font-display:  'Barlow Condensed', system-ui, sans-serif;
  --font-body:     'Source Serif 4', Georgia, serif;
  --font-mono:     'Fira Code', 'Courier New', monospace;

  /* --- Typography: scale (fluid clamp) --- */
  --text-display:  clamp(2.75rem, 5.5vw, 5rem);
  --lh-display:    1.02;
  --ls-display:    -0.02em;

  --text-h1:       clamp(2rem, 4vw, 3.25rem);
  --lh-h1:         1.08;
  --ls-h1:         -0.015em;

  --text-h2:       clamp(1.5rem, 2.8vw, 2.25rem);
  --lh-h2:         1.15;
  --ls-h2:         -0.01em;

  --text-h3:       clamp(1.125rem, 2vw, 1.625rem);
  --lh-h3:         1.22;
  --ls-h3:         -0.005em;

  --text-lead:     clamp(1.0625rem, 1.5vw, 1.25rem);
  --lh-lead:       1.65;

  --text-body:     1rem;
  --lh-body:       1.7;

  --text-small:    0.875rem;
  --lh-small:      1.6;

  --text-label:    0.8125rem;
  --lh-label:      1.4;
  --ls-label:      0.04em;

  /* --- Spacing scale (exponential) --- */
  --space-1:   0.25rem;    /*  4px */
  --space-2:   0.5rem;     /*  8px */
  --space-3:   0.75rem;    /* 12px */
  --space-4:   1rem;       /* 16px */
  --space-5:   1.5rem;     /* 24px */
  --space-6:   2rem;       /* 32px */
  --space-7:   3rem;       /* 48px */
  --space-8:   4.5rem;     /* 72px */
  --space-9:   6.5rem;     /* 104px */
  --space-10:  9rem;       /* 144px */

  /* --- Grid / layout --- */
  --grid-cols:    12;
  --grid-gutter:  clamp(1rem, 3vw, 1.5rem);
  --grid-margin:  clamp(1rem, 5vw, 4rem);
  --content-max:  1280px;
  --prose-max:    68ch;
  --narrow-max:   760px;

  /* --- Border radii --- */
  --radius-sm:    3px;   /* buttons */
  --radius-md:    4px;   /* form fields, credential panels */
  --radius-lg:    6px;   /* pricing cards */

  /* --- Shadows --- */
  --shadow-nav:   0 1px 8px oklch(0.14 0.018 264 / 0.10);
  --shadow-card:  0 2px 16px oklch(0.22 0.10 264 / 0.12);
  --shadow-lift:  0 4px 24px oklch(0.22 0.10 264 / 0.18);

  /* --- Motion --- */
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast:   100ms;
  --duration-base:   150ms;
  --duration-slow:   300ms;
  --duration-reveal: 400ms;

  /* --- Z-index scale --- */
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal-bg: 300;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;
}


/* ============================================================
   2. BASE RESET
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-hero-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: var(--z-tooltip);
  transition: top var(--duration-base) var(--ease-out-quart);
}

.skip-link:focus {
  top: var(--space-4);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  text-wrap: balance;
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}

.text-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.text-lead {
  font-size: var(--text-lead);
  line-height: var(--lh-lead);
  text-wrap: pretty;
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--lh-small);
}

.text-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Prose line-length cap */
.prose {
  max-width: var(--prose-max);
}

.prose p + p {
  margin-top: var(--space-5);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

/* Narrow container (centered single-column) */
.container-narrow {
  width: 100%;
  max-width: var(--narrow-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

/* Section spacing */
.section {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.section-tight {
  padding-block: var(--space-7);
  padding-inline: var(--grid-margin);
}

/* Short intro lead section between hero and main content */
.section-intro-lead {
  padding-block: var(--space-6);
  padding-inline: var(--grid-margin);
  background-color: var(--color-bg);
}

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

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
}

/* CSS Grid helpers */
.grid {
  display: grid;
  gap: var(--grid-gutter);
}

/* Auto-fit responsive grid (for cards, features) */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Two-column layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Three-column layout */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Color utilities */
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-muted); }
.text-hero-ink { color: var(--color-hero-ink); }
.text-ink      { color: var(--color-ink); }

.bg-primary  { background-color: var(--color-primary); }
.bg-surface  { background-color: var(--color-surface); }
.bg-ink      { background-color: var(--color-ink); }

/* Spacing utilities */
.mt-4  { margin-top: var(--space-4); }
.mt-5  { margin-top: var(--space-5); }
.mt-6  { margin-top: var(--space-6); }
.mt-7  { margin-top: var(--space-7); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-5  { margin-bottom: var(--space-5); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-7  { margin-bottom: var(--space-7); }

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-border);
  border: none;
  margin-block: var(--space-6);
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) var(--ease-out-quart);
}

.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .nav-inner {
    height: 64px;
  }
}

/* Logo / brand mark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-ink);
}

.nav-seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  display: none;
}

@media (min-width: 480px) {
  .nav-wordmark {
    display: block;
  }
}

/* Primary nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-2);
  transition: color var(--duration-base) var(--ease-out-quart);
}

/* Active nav indicator: accent red underline (not primary navy, follows DESIGN.md usage rules) */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-quart);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Nav actions (CTA + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  transition: color var(--duration-base) var(--ease-out-quart);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform var(--duration-slow) var(--ease-out-quart),
              opacity var(--duration-base) var(--ease-out-quart);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: var(--z-modal);
  padding: var(--space-6) var(--grid-margin);
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    top: 64px;
  }
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.nav-mobile-links a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  letter-spacing: 0.01em;
  color: var(--color-ink);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration-base) var(--ease-out-quart);
}

.nav-mobile-links a:hover {
  color: var(--color-primary);
}

.nav-mobile-links a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding-block: var(--space-3);
  padding-inline: var(--space-6);
  transition:
    background-color var(--duration-base) var(--ease-out-quart),
    border-color var(--duration-base) var(--ease-out-quart),
    color var(--duration-base) var(--ease-out-quart),
    transform var(--duration-fast) var(--ease-out-quart),
    box-shadow var(--duration-base) var(--ease-out-quart);
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary button: navy background, white text */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-primary:active {
  background-color: var(--color-primary-press);
  transform: scale(0.97);
}

/* Secondary button: navy outline, navy text */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-tint);
}

/* Ghost button (on dark/hero backgrounds) */
.btn-ghost {
  background-color: transparent;
  color: var(--color-hero-ink);
  border: 1.5px solid var(--color-hero-ink);
}

.btn-ghost:hover {
  background-color: oklch(1 0 0 / 0.12);
}

/* Accent button (for high-emphasis conversion on light surfaces) */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-hero-ink);
  border: 2px solid transparent;
}

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

/* Small button variant */
.btn-sm {
  min-height: 40px;
  padding-block: var(--space-2);
  padding-inline: var(--space-4);
  font-size: var(--text-label);
}

/* Large button variant */
.btn-lg {
  min-height: 56px;
  padding-block: var(--space-4);
  padding-inline: var(--space-7);
  font-size: 1.0625rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}


/* ============================================================
   7. ATP CIRCULAR SEAL (SVG component)
   ============================================================ */

.atp-seal {
  display: block;
  flex-shrink: 0;
}

/* Seal in hero: large, given breathing room; fades in on load */
.atp-seal-hero {
  width: clamp(100px, 15vw, 160px);
  height: clamp(100px, 15vw, 160px);
  opacity: 0;
  animation: seal-reveal var(--duration-reveal) var(--ease-out-quart) 100ms forwards;
}

@keyframes seal-reveal {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .atp-seal-hero {
    opacity: 1;
    animation: none;
  }
}


/* ============================================================
   8. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  background-color: var(--color-hero-bg);
  color: var(--color-hero-ink);
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: center;
}

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

/* Hero background image with navy overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: oklch(0.22 0.10 264 / 0.88);
}

/* Venetian blind texture: subtle horizontal lines per creative direction */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    oklch(0 0 0 / 0.04) 0px,
    oklch(0 0 0 / 0.04) 2px,
    transparent 2px,
    transparent 8px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: var(--z-raised);
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
  }
}

.hero-credential-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .hero-credential-col {
    align-items: flex-start;
  }
}

.hero-since-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.02em;
  color: var(--color-hero-muted);
  text-transform: uppercase;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--color-hero-ink);
  text-wrap: balance;
}

.hero-lead {
  font-size: var(--text-lead);
  line-height: var(--lh-lead);
  color: var(--color-hero-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Interior page hero: navy band, no image */
.hero-interior {
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
  padding-block: clamp(var(--space-7), 8vw, var(--space-9));
  padding-inline: var(--grid-margin);
}

.hero-interior .breadcrumb {
  font-family: var(--font-display);
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-hero-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-interior .breadcrumb a {
  color: var(--color-hero-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out-quart);
}

.hero-interior .breadcrumb a:hover {
  color: var(--color-hero-ink);
}

.hero-interior .breadcrumb a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.hero-interior h1 {
  color: var(--color-hero-ink);
}

.hero-interior .hero-trust-line {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  color: var(--color-hero-muted);
  max-width: 70ch;
  text-wrap: pretty;
}


/* ============================================================
   9. TRUST SIGNAL BAR
   ============================================================ */

.trust-bar {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-2);
}

@media (min-width: 768px) {
  .trust-bar-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.trust-item-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-ink);
}

.trust-item-sub {
  font-size: var(--text-small);
  color: var(--color-muted);
  line-height: 1.3;
  margin-top: var(--space-1);
}

/* Since 2001 mark within trust bar: accent red, strong presence */
.trust-since {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/* Vertical divider between trust items */
.trust-divider {
  width: 1px;
  height: 36px;
  background-color: var(--color-border-strong);
  display: none;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .trust-divider {
    display: block;
  }
}


/* ============================================================
   10. INTENT PATH CARDS (Three paths section)
   ============================================================ */

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .paths-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.path-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  gap: var(--space-4);
  transition:
    box-shadow var(--duration-slow) var(--ease-out-quart),
    transform var(--duration-slow) var(--ease-out-quart);
}

.path-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Featured (primary) card: accent top border */
.path-card-primary {
  background-color: var(--color-surface);
  border-top: 3px solid var(--color-accent);
}

.path-card h3 {
  color: var(--color-ink);
  margin-bottom: 0;
}

.path-card p {
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  flex: 1;
  margin-bottom: var(--space-2);
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .path-card {
    transition: none;
  }
  .path-card:hover {
    transform: none;
  }
}


/* ============================================================
   11. CREDENTIAL SECTION
   ============================================================ */

.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 760px;
}

.credential-item {
  display: grid;
  grid-template-columns: var(--space-2) 1fr;
  gap: var(--space-4);
  align-items: start;
}

.credential-item::before {
  content: '';
  display: block;
  width: var(--space-2);
  height: var(--space-2);
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.45em;
}

.credential-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body);
  color: var(--color-ink);
}

.credential-item p {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* IRS verify link */
.irs-verify-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-small);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--duration-base) var(--ease-out-quart);
}

.irs-verify-link:hover {
  opacity: 0.75;
}

.irs-verify-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}


/* ============================================================
   12. PRICING CARDS
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    box-shadow var(--duration-slow) var(--ease-out-quart),
    transform 200ms var(--ease-out-quart);
}

.pricing-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Scroll-reveal: pricing cards enter staggered (pricing section only) */
.pricing-card.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
}

.pricing-card.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--duration-slow) var(--ease-out-quart),
    transform var(--duration-slow) var(--ease-out-quart),
    box-shadow var(--duration-slow) var(--ease-out-quart);
}

.pricing-card.reveal-in:hover {
  transform: translateY(-2px);
}

/* Featured card: accent top border */
.pricing-card-featured {
  background-color: var(--color-surface);
  border-top: 3px solid var(--color-accent);
}

.pricing-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.pricing-card-desc {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

/* Price: accent red (credential number, not a warning) */
.pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.pricing-price-sub {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-6);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-ink);
  line-height: 1.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.45em;
}

.pricing-features-excluded {
  color: var(--color-muted);
}

.pricing-features-excluded::before {
  background-color: var(--color-border-strong) !important;
}

.pricing-card-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card.reveal-ready {
    opacity: 1;
    transform: none;
  }
  .pricing-card.reveal-in {
    transition: none;
  }
  .pricing-card:hover {
    transform: none;
  }
}


/* ============================================================
   13. FAQ SECTION (native details/summary)
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--color-ink);
  transition: color var(--duration-base) var(--ease-out-quart);
}

/* Remove default disclosure triangle */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: none; }

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--ease-out-quart),
              border-color var(--duration-base) var(--ease-out-quart);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--color-accent);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-ink);
  border-radius: 1px;
  transition: background-color var(--duration-base) var(--ease-out-quart);
}

.faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background-color: var(--color-accent);
}

.faq-answer {
  padding-bottom: var(--space-6);
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  max-width: var(--prose-max);
}

.faq-answer p + p {
  margin-top: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon {
    transition: none;
  }
}


/* ============================================================
   14. PURCHASE PROCESS STEPS
   ============================================================ */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.process-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}

.process-step-num {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-content h3,
.process-step-content h4 {
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  font-size: 1rem;
  line-height: 1.4;
}

.process-step-content p {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--lh-small);
}


/* ============================================================
   15. SECTION: LONGEVITY / SOCIAL PROOF
   ============================================================ */

.longevity-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 768px) {
  .longevity-inner {
    grid-template-columns: auto 1fr;
    gap: var(--space-9);
  }
}

.longevity-mark {
  text-align: center;
}

/* Year: accent red for visual anchor */
.longevity-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  display: block;
}

.longevity-since {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-top: var(--space-2);
}

.longevity-text h2 {
  margin-bottom: var(--space-5);
}

.longevity-text p {
  color: var(--color-muted);
  font-size: var(--text-lead);
  line-height: var(--lh-lead);
  max-width: 60ch;
  text-wrap: pretty;
}

.longevity-text p + p {
  margin-top: var(--space-5);
}


/* ============================================================
   16. CTA SECTION
   ============================================================ */

.cta-section {
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
  text-align: center;
  padding-block: clamp(var(--space-8), 8vw, var(--space-10));
}

.cta-section h2 {
  color: var(--color-hero-ink);
  margin-bottom: var(--space-5);
}

.cta-section p {
  color: var(--color-hero-muted);
  font-size: var(--text-lead);
  margin-bottom: var(--space-6);
  max-width: 56ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}


/* ============================================================
   17. FORM FIELDS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-ink);
}

.form-label .required {
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  width: 100%;
  transition:
    border-color var(--duration-base) var(--ease-out-quart),
    outline-color var(--duration-base) var(--ease-out-quart);
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-focus);
  outline-color: var(--color-focus);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--color-error);
  font-size: var(--text-small);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}


/* ============================================================
   18. INFO CALLOUT
   ============================================================ */

.callout {
  background-color: oklch(0.52 0.15 145 / 0.08);
  border: 1px solid oklch(0.52 0.15 145 / 0.30);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.callout-warning {
  background-color: oklch(0.72 0.16 65 / 0.08);
  border-color: oklch(0.72 0.16 65 / 0.30);
}

.callout-info {
  background-color: oklch(0.58 0.10 240 / 0.06);
  border-color: oklch(0.58 0.10 240 / 0.25);
}

.callout-body {
  font-size: var(--text-small);
  color: var(--color-ink);
  line-height: var(--lh-body);
}

.callout-body strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-weight: 600;
}


/* ============================================================
   19. INLINE FEATURE LIST
   ============================================================ */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-body);
  color: var(--color-ink);
  line-height: var(--lh-body);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.5em;
  flex-shrink: 0;
}


/* ============================================================
   20. SECTION HEADINGS WITH CREDENTIAL RULE
   ============================================================ */

.section-heading-group {
  margin-bottom: var(--space-6);
}

.section-heading-group h2 {
  margin-bottom: var(--space-5);
}

.section-heading-group .section-intro {
  font-size: var(--text-lead);
  line-height: var(--lh-lead);
  color: var(--color-muted);
  max-width: 70ch;
  text-wrap: pretty;
}

/* Horizontal rule: accent red, document separator */
.rule-primary {
  width: 3rem;
  height: 3px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-5);
  border: none;
}


/* ============================================================
   21. FOOTER
   ============================================================ */

/*
 * Footer architecture:
 *   .site-footer
 *     .footer-accent-rule       -- 4px crimson top bar, hard break from page above
 *     .footer-credential-bar    -- full-width IRS authorization statement strip
 *     .footer-main.container    -- grid: brand+contact | Products | Resources | Customer
 *     .footer-bottom            -- legal strip: copyright, IRS disclaimer, photo credits
 */

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-hero-ink);
  position: relative;
}

/* 4px crimson accent rule: visual break between page content and footer dark field */
.footer-accent-rule {
  height: 4px;
  background-color: var(--color-accent);
  width: 100%;
}

/* Credential statement strip: tonal surface within the dark navy field */
.footer-credential-bar {
  background-color: oklch(0.19 0.09 264);  /* slightly deeper than primary for depth */
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  padding-block: var(--space-5);
}

.footer-credential-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-credential-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-hero-muted);
  line-height: 1.3;
}

.footer-credential-statement strong {
  font-weight: 700;
  color: var(--color-hero-ink);
  font-family: var(--font-display);
}

.footer-credential-contact-quick {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  letter-spacing: 0.02em;
  color: var(--color-hero-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--duration-base) var(--ease-out-quart);
}

.footer-credential-contact-quick:hover {
  color: var(--color-hero-ink);
}

.footer-credential-contact-quick:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Main footer grid: brand col + 3 nav cols */
.footer-main {
  padding-block: var(--space-8) var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    /* Brand column gets more room; four nav columns equal-width */
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-9);
    align-items: start;
  }
}

/* Brand column: seal + wordmark + tagline + contact block */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Seal + wordmark row */
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-seal {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.footer-brand-wordmark-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.375rem);
  color: var(--color-hero-ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.footer-brand-est {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Tagline under the mark row */
.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-hero-muted);
  line-height: 1.65;
  max-width: 34ch;
  text-wrap: pretty;
  margin-bottom: var(--space-5);
}

/* Contact block: phone prominent, rest muted */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding-top: var(--space-5);
}

.footer-contact-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.375rem);
  letter-spacing: 0.01em;
  color: var(--color-hero-ink);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out-quart);
  display: inline-block;
}

.footer-contact-phone:hover {
  color: var(--color-hero-muted);
}

.footer-contact-phone:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}

.footer-contact-item {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-hero-muted);
  line-height: 1.6;
}

.footer-contact-item a {
  color: var(--color-hero-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out-quart);
}

.footer-contact-item a:hover {
  color: var(--color-hero-ink);
}

.footer-contact-item a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Footer nav columns */
.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-hero-ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid oklch(1 0 0 / 0.10);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footer-nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-hero-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--duration-base) var(--ease-out-quart);
  display: inline-block;
}

.footer-nav-links a:hover {
  color: var(--color-hero-ink);
}

.footer-nav-links a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Footer bottom legal strip */
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.10);
  padding-block: var(--space-5);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
  }
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-hero-muted);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 64ch;
}

.footer-legal a {
  color: var(--color-hero-muted);
  text-decoration: none;
  border-bottom: 1px solid oklch(1 0 0 / 0.20);
  transition: border-color var(--duration-base) var(--ease-out-quart),
              color var(--duration-base) var(--ease-out-quart);
}

.footer-legal a:hover {
  color: var(--color-hero-ink);
  border-bottom-color: oklch(1 0 0 / 0.45);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}

.footer-irs-disclaimer {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: oklch(0.60 0.025 264);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 60ch;
}

.footer-photo-credits {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: oklch(0.52 0.020 264);
  line-height: 1.5;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .footer-photo-credits {
    text-align: left;
  }
}

.footer-photo-credits a {
  color: oklch(0.60 0.025 264);
  text-decoration: none;
  border-bottom: 1px solid oklch(1 0 0 / 0.15);
  transition: color var(--duration-base) var(--ease-out-quart);
}

.footer-photo-credits a:hover {
  color: var(--color-hero-muted);
}

.footer-photo-credits a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 1px;
}


/* ============================================================
   22. PAGE-SPECIFIC: SOFTWARE PAGE and shared card/panel patterns
   ============================================================ */

/* Named card panel: replaces inline style blocks to satisfy linter padding detection */
.card-panel {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-panel-surface {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.card-panel-featured {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Package comparison note below grid */
.pricing-footnote {
  margin-top: var(--space-5);
  font-size: var(--text-small);
  color: var(--color-muted);
  font-style: italic;
  text-wrap: pretty;
}

/* Why buy section features */
.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-body);
  color: var(--color-ink);
  line-height: var(--lh-body);
}

.why-list li::before {
  content: '';
  display: block;
  width: var(--space-2);
  height: var(--space-2);
  min-width: var(--space-2);
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.5em;
  flex-shrink: 0;
}


/* ============================================================
   23. RESPONSIVE HELPERS
   ============================================================ */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: flex;
  }

  .hide-desktop {
    display: none;
  }
}


/* ============================================================
   24. FOCUS MANAGEMENT (global)
   ============================================================ */

/* Remove the default browser outline, but only when a custom
   :focus-visible ring is provided on the element. Elements
   without an explicit :focus-visible rule retain browser default. */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}


/* ============================================================
   25. PRINT
   ============================================================ */

@media print {
  .site-header,
  .nav-mobile,
  .hero-overlay,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}


/* ============================================================
   26. DATA TABLES
   ============================================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  min-width: 32rem;
}
.data-table caption.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;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-surface-raised);
  border-bottom: 2px solid var(--color-border-strong);
}
.data-table tbody th {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--color-ink);
}
.data-table tbody td {
  color: var(--color-muted);
}
.data-table tbody tr:nth-child(even) th,
.data-table tbody tr:nth-child(even) td {
  background: var(--color-primary-tint);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}
