:root {
  /* ============================================================
     ALEYLIN SOLUTIONS — V2 BRAND PALETTE (locked 2026-07-18)
     Roles are not interchangeable. See the Locked Decisions table
     in ALEYLIN-WEBSITE-MASTER-BLUEPRINT.md before changing any value.
     ============================================================ */
  --navy: #172a4d;           /* Authority Navy — PRIMARY: nav, links, buttons, dark fields */
  --navy-deep: #0f1d35;      /* deeper navy — layered dark surfaces, footer bottom */
  --navy-soft: #24406e;      /* lighter navy — hover state on navy buttons */
  --aubergine: #5a2e6f;      /* Royal Aubergine — SECONDARY: editorial headings, founder moments */
  --aubergine-tint: #a98bcb; /* DARK FIELDS ONLY — small aubergine-derived text on navy */
  --gold: #d4af37;           /* ACCENT ONLY. Never body text. Never on light backgrounds
                                (~2.0:1 on ivory = fails WCAG). ~6.8:1 on navy = permitted. */
  --ivory: #fff8f4;          /* Soft Ivory — warm canvas */
  --charcoal: #24272b;       /* Deep Charcoal — body ink */
  --white: #ffffff;

  /* Neutral tints derived from the brand hues, for soft surfaces */
  --navy-050: #f4f6fa;
  --aubergine-050: #f7f4f9;
  --aubergine-100: #ece4f1;

  /* ---- Compatibility aliases ----------------------------------
     The existing ruleset references purple-* / gold-* names. Rather than
     rewrite 460 lines and risk missing one, the old names now resolve to
     V2 values. Prefer the semantic names above in any NEW rule.
     NOTE: gold-600/500/200 all collapse to a single --gold. Every place the
     old design used gold as TEXT ON LIGHT is corrected in the V2 OVERRIDES
     block at the end of this file — do not "restore" gold to those rules. */
  --purple-950: var(--navy);
  --purple-900: var(--navy);
  --purple-800: var(--aubergine);
  --purple-700: var(--aubergine);
  --purple-100: var(--aubergine-100);
  --purple-50: var(--navy-050);
  --gold-600: var(--gold);
  --gold-500: var(--gold);
  --gold-200: var(--gold);

  --ink: var(--charcoal);
  --muted: #5b5f66;          /* 5.9:1 on white — passes AA for body text */
  --line: #e0ddd8;           /* warm neutral hairline, reads on both white and ivory */
  --field-border: #767c85;   /* 3.2:1 on white — WCAG 2.2 SC 1.4.11 for input borders */
  --success: #25603b;
  --warning-bg: #fff5d9;
  --shadow-sm: 0 8px 24px rgba(23, 42, 77, .08);
  --shadow-md: 0 18px 48px rgba(23, 42, 77, .13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --reading: 760px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-script: "Allura", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--purple-800); text-underline-offset: .18em; }
a:hover { color: var(--purple-950); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  color: var(--purple-950);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.14;
  margin: 0 0 .75rem;
  text-wrap: balance;
}
/* Type scale re-tuned for Cinzel (2026-07-19). The previous 4.65rem/3.2rem ceilings were
   set for Della Respira, which is materially narrower. At 4.65rem Cinzel rendered the About
   hero headline over 5-6 lines and, inside a narrow column, overflowed its container.
   Measured in-browser at 1440px against a 637px hero column, tested against the LONGEST real
   headline in each language (not a sample sentence):
     3.6rem -> EN longest had 2px slack. One character from overflowing. Rejected.
     3.4rem -> ITIN Spanish headline had 12px. Still too close. Rejected.
     3.3rem -> minimum 30px slack across every headline on the site, 4 lines, both languages.
   Do not raise these without re-measuring against the longest SPANISH headline — Spanish runs
   longer than English and is what fails first. */
h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.08rem; }
/* Focus ring is navy, not gold: gold measures 2.0:1 on light surfaces, below the
   3:1 WCAG 2.2 SC 1.4.11 requires of a focus indicator. Set here at source (not
   only in the V2 override block) so reordering this file cannot break keyboard
   accessibility. Dark bands re-enable gold — see V2 OVERRIDES at end of file. */
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, var(--reading)); margin-inline: auto; }
.section { padding: clamp(68px, 8vw, 112px) 0; }
.section-compact { padding: clamp(42px, 5vw, 68px) 0; }
.section-soft { background: var(--purple-50); }
.section-ivory { background: var(--ivory); }
.section-dark { background: var(--purple-950); color: rgba(255,255,255,.86); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.button) { color: var(--gold-200); }
.section-heading { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-heading.center { text-align: center; margin-inline: auto; }
.eyebrow {
  color: var(--purple-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  margin-bottom: .85rem;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: var(--gold-200); }
.lede { color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.65; max-width: 720px; }
.section-dark .lede { color: rgba(255,255,255,.8); }
.small { font-size: .84rem; line-height: 1.55; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--purple-950);
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.button,
.btn {
  align-items: center;
  background: var(--purple-900);
  border: 2px solid var(--purple-900);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: .95rem;
  font-weight: 700;
  gap: .5rem;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 13px 22px;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover, .btn:hover {
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.button-secondary, .btn-secondary {
  background: transparent;
  color: var(--purple-900);
}
.button-secondary:hover, .btn-secondary:hover { background: var(--purple-100); color: var(--purple-950); }
.button-light { background: var(--white); border-color: var(--white); color: var(--purple-950); }
.button-light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--purple-950); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: .86rem; }
.button-whatsapp { background: #176c4b; border-color: #176c4b; }
.text-link { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.microcopy { color: var(--muted); font-size: .82rem; line-height: 1.55; margin-top: 16px; max-width: 700px; }

.utility-bar { background: var(--purple-950); color: rgba(255,255,255,.9); font-size: .79rem; }
.utility-inner { align-items: center; display: flex; justify-content: space-between; min-height: 38px; gap: 18px; }
.utility-inner p { margin: 0; }
.utility-links { display: flex; gap: 18px; }
.utility-links a { color: var(--white); font-weight: 700; text-decoration: none; }
.site-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(53,20,88,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(37,16,57,.1); }
.admin-bar .site-header { top: 32px; }
.header-inner { align-items: center; display: flex; min-height: 88px; justify-content: space-between; gap: 22px; }
.brand { align-items: center; display: inline-flex; flex: 0 0 auto; }
.brand img { height: 70px; object-fit: contain; width: 77px; }
.primary-nav { align-items: center; display: flex; gap: clamp(12px, 1.65vw, 23px); }
.primary-nav > a:not(.button) { color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-nav > a:not(.button):hover { color: var(--purple-700); }
.primary-nav .language-link { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.menu-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-950);
  display: none;
  font-size: .85rem;
  font-weight: 700;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
}
.menu-icon, .menu-icon::before, .menu-icon::after { background: currentColor; border-radius: 2px; display: block; height: 2px; position: relative; width: 20px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

main { overflow: clip; }
.home-hero { background: linear-gradient(145deg, var(--ivory) 0%, #fff 50%, var(--purple-50) 100%); padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 105px); }
.hero-grid { align-items: center; display: grid; gap: clamp(36px, 6vw, 82px); grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.hero-copy { max-width: 680px; }
.hero-copy h1 { font-size: clamp(2.65rem, 6vw, 4.9rem); }
.hero-media { position: relative; }
.hero-media::before {
  background: var(--gold-200);
  border-radius: 40% 60% 58% 42% / 48% 38% 62% 52%;
  content: "";
  inset: -16px 18% 12% -18px;
  opacity: .52;
  position: absolute;
}
.hero-media img { aspect-ratio: 4 / 5; border-radius: 44% 44% 20px 20px; box-shadow: var(--shadow-md); object-fit: cover; object-position: center 22%; position: relative; width: 100%; }
.hero-note { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; bottom: 18px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; left: -22px; max-width: 270px; padding: 13px 16px; position: absolute; z-index: 2; }
.hero-note strong { color: var(--purple-950); display: block; font-size: .86rem; }
.hero-note span { color: var(--muted); display: block; font-size: .72rem; line-height: 1.4; }
.page-hero { background: linear-gradient(135deg, var(--purple-950), var(--purple-800)); color: rgba(255,255,255,.86); padding: clamp(65px, 8vw, 105px) 0; }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero .lede { color: rgba(255,255,255,.82); }
.page-hero .eyebrow { color: var(--gold-200); }
.page-hero .button-secondary { border-color: rgba(255,255,255,.7); color: var(--white); }
.page-hero .button-secondary:hover { background: rgba(255,255,255,.12); }
.page-hero-grid { align-items: center; display: grid; gap: clamp(35px, 6vw, 72px); grid-template-columns: 1.15fr .85fr; }
.page-hero-image img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 26px 0; }
.trust-grid { align-items: center; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr) auto; }
.trust-item { align-items: center; color: var(--purple-950); display: flex; font-size: .82rem; font-weight: 700; gap: 9px; }
.trust-item::before { align-items: center; background: var(--purple-100); border-radius: 50%; color: var(--purple-800); content: "✓"; display: inline-flex; flex: 0 0 25px; font-size: .78rem; height: 25px; justify-content: center; }
.trust-seal { align-items: center; display: flex; gap: 10px; max-width: 190px; }
.trust-seal img { height: 52px; object-fit: contain; width: 61px; }
.trust-seal span { color: var(--muted); font-size: .66rem; line-height: 1.35; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 34px);
}
.card > :last-child { margin-bottom: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card-number, .step-number {
  align-items: center;
  background: var(--purple-900);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.1rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 20px;
  width: 46px;
}
.price { color: var(--purple-900); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin: .4rem 0 1rem; }
.card ul, .check-list { list-style: none; padding: 0; }
.card li, .check-list li { padding-left: 1.55rem; position: relative; }
.card li::before, .check-list li::before { color: var(--success); content: "✓"; font-weight: 700; left: 0; position: absolute; }
.goal-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0; }
.goal-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--purple-950); font-weight: 700; padding: 18px 20px 18px 48px; position: relative; }
.goal-item::before { color: var(--gold-600); content: "•"; font-size: 2rem; left: 21px; line-height: 1; position: absolute; top: 14px; }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { border-top: 3px solid var(--gold-500); padding: 26px 24px 5px 0; }
.step p { color: var(--muted); }
.timeline { display: grid; gap: 20px; margin-top: 36px; }
.timeline-item { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--purple-700); border-radius: var(--radius); display: grid; gap: 20px; grid-template-columns: minmax(180px, .34fr) 1fr; padding: clamp(24px, 4vw, 38px); }
.timeline-label { color: var(--purple-900); font-weight: 700; }
.timeline-price { color: var(--gold-600); display: block; font-size: .86rem; margin-top: 7px; }
.pricing-summary { background: var(--purple-950); border-radius: var(--radius); color: rgba(255,255,255,.84); margin-top: 24px; padding: clamp(27px, 4vw, 42px); }
.pricing-summary strong { color: var(--white); }
.pricing-summary p:last-child { margin-bottom: 0; }
.notice { background: var(--warning-bg); border: 1px solid var(--gold-200); border-radius: var(--radius-sm); color: #4c3914; padding: 20px 22px; }
.notice strong { color: #39290c; }
.notice-purple { background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-950); }
.split { align-items: center; display: grid; gap: clamp(35px, 6vw, 78px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-media img { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover; object-position: center 18%; width: 100%; }
.founder-photo img { aspect-ratio: 4 / 5; object-position: center 20%; }
.resource-list { display: grid; gap: 16px; list-style: none; padding: 0; }
.resource-list li { border-bottom: 1px solid var(--line); padding: 0 0 16px; }
.resource-list a { font-weight: 700; }
.prose { max-width: var(--reading); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose a { font-weight: 700; }
.callout { border-left: 4px solid var(--gold-500); margin: 28px 0; padding: 4px 0 4px 22px; }

.faq-list { display: grid; gap: 13px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: clip; }
.faq-list summary { color: var(--purple-950); cursor: pointer; font-weight: 700; list-style: none; padding: 20px 54px 20px 22px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--purple-700); content: "+"; font-size: 1.65rem; font-weight: 400; position: absolute; right: 21px; top: 11px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { color: var(--muted); padding: 19px 22px 22px; }
.faq-answer > :last-child { margin-bottom: 0; }

.form-shell { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(24px, 4vw, 42px); }
.form-grid {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 19px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
}
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--purple-950); font-size: .86rem; font-weight: 700; }
.field input, .field select, .field textarea {
  background: var(--white);
  border: 1px solid #aaa1b0;
  border-radius: 10px;
  color: var(--ink);
  min-height: 49px;
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple-700); box-shadow: 0 0 0 3px rgba(97,50,126,.14); outline: 0; }
.checkbox-field { grid-column: 1 / -1; }
.checkbox-field label { align-items: flex-start; display: flex; gap: 11px; }
.checkbox-field input { flex: 0 0 19px; height: 19px; margin-top: 4px; width: 19px; }
.checkbox-field label { font-size: .83rem; line-height: 1.55; }
.form-trap { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }
.status-message { background: #eaf6ee; border: 1px solid #a5cdb2; border-radius: 10px; color: #164728; font-weight: 700; margin-bottom: 22px; padding: 16px 18px; }
.form-note { color: var(--muted); font-size: .78rem; line-height: 1.5; margin-top: 15px; }

.posts-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-content { padding: 25px; }
.post-card h2 { font-size: 1.45rem; }
.post-meta { color: var(--muted); font-size: .78rem; }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { border: 1px solid var(--line); border-radius: 8px; min-width: 42px; padding: 8px 12px; text-align: center; text-decoration: none; }
.pagination .current { background: var(--purple-900); border-color: var(--purple-900); color: var(--white); }
.article-header { background: var(--purple-50); padding: clamp(58px, 8vw, 94px) 0; }
.article-body { padding: clamp(55px, 8vw, 90px) 0; }
.article-body .prose { margin-inline: auto; }

.final-cta { background: var(--purple-900); border-radius: var(--radius-lg); color: rgba(255,255,255,.84); padding: clamp(34px, 6vw, 64px); text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { margin-inline: auto; max-width: 710px; }
.final-cta .actions { justify-content: center; }

.site-footer { background: var(--purple-950); color: rgba(255,255,255,.74); padding-top: 64px; }
.footer-grid { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1.35fr .75fr .75fr 1.1fr; }
.footer-grid h2 { color: var(--white); font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid nav, .footer-contact { align-content: start; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.88); font-size: .86rem; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-200); }
.footer-brand img { height: 96px; object-fit: contain; object-position: left center; width: 105px; }
.footer-brand p { font-size: .86rem; max-width: 280px; }
.footer-contact .small { color: rgba(255,255,255,.6); margin-top: 8px; }
.footer-disclosure { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding: 27px 0; }
.footer-disclosure p { font-size: .7rem; line-height: 1.6; margin-bottom: .55rem; }
.footer-bottom { background: rgba(0,0,0,.18); font-size: .73rem; padding: 17px 0; }
.footer-bottom .container { align-items: center; display: flex; justify-content: space-between; gap: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); }
.mobile-action-bar { display: none; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    align-items: stretch;
    background: var(--white);
    box-shadow: 0 22px 45px rgba(37,16,57,.18);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 16px 20px 24px;
    position: absolute;
    right: 0;
    top: 100%;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.button) { border-bottom: 1px solid var(--line); font-size: .98rem; padding: 14px 4px; }
  .primary-nav .language-link { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0; order: -1; }
  .primary-nav .button { margin-top: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-seal { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 92px; }
  body { font-size: 16px; padding-bottom: 70px; }
  .admin-bar .site-header { top: 46px; }
  .container, .narrow { width: min(100% - 30px, var(--container)); }
  .utility-inner { justify-content: center; min-height: 34px; }
  .utility-inner p { display: none; }
  .utility-links { justify-content: space-between; width: 100%; }
  .header-inner { min-height: 72px; }
  .brand img { height: 57px; width: 63px; }
  .hero-grid, .page-hero-grid, .split { grid-template-columns: 1fr; }
  .home-hero .hero-copy { order: -1; }
  .hero-media { margin-inline: auto; max-width: 520px; }
  .hero-note { bottom: 12px; left: 10px; }
  .page-hero { padding: 58px 0 64px; }
  .grid, .grid-2, .grid-4, .steps, .posts-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-seal { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full, .checkbox-field { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom .container { align-items: flex-start; flex-direction: column; }
  .mobile-action-bar {
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    left: 0;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1200;
  }
  .mobile-action-bar .button { min-height: 46px; padding: 10px 12px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .section { padding: 62px 0; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .hero-note { max-width: calc(100% - 20px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .utility-bar, .site-header, .mobile-action-bar, .site-footer, .actions { display: none !important; }
  body { color: #000; font-size: 12pt; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .section, .page-hero, .article-body { background: #fff !important; color: #000 !important; padding: 20px 0; }
  h1, h2, h3 { color: #000 !important; }
}

/* ================================================================
   V2 OVERRIDES — semantic corrections that a token swap can't express
   Added 2026-07-18. Each rule below fixes a specific defect; the
   comment says which. Do not delete without reading the reason.
   ================================================================ */

/* --- Editorial voice: headings carry Royal Aubergine, not the primary.
       Navy owns interaction (nav, links, buttons); aubergine owns the
       written voice. This split is what keeps the brand from reading as
       generic corporate navy. --- */
h1, h2, h3, h4 {
  color: var(--aubergine);
  letter-spacing: 0;        /* Cinzel is an inscriptional face — negative
                               tracking crushes it. Della Respira needed -.025em. */
}

/* h4 was missing from the dark-section overrides — an h4 in a dark band
   rendered aubergine on navy (~1.9:1, unreadable). */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.final-cta h1, .final-cta h2, .final-cta h3, .final-cta h4 { color: var(--white); }

/* --- GOLD CORRECTIONS -------------------------------------------
   #D4AF37 measures ~2.0:1 on white/ivory. Anywhere the old design used
   gold as text or as a meaningful mark on a LIGHT surface, it is replaced.
   Gold survives only on navy fields, where it measures ~6.8:1. --- */

/* was gold — a PRICE rendered in 2:1 text is unreadable and is the exact
   pattern the brand rules forbid */
.timeline-price { color: var(--aubergine); font-weight: 700; }

/* was gold — list bullet on a white card */
.goal-item::before { color: var(--aubergine); }

/* was gold — a 3px rule on a light surface; aubergine keeps the accent
   without the contrast failure */
.step { border-top-color: var(--aubergine); }
.callout { border-left-color: var(--aubergine); }

/* Focus ring: gold fails as a focus indicator on light (2.0:1 vs the 3:1
   that WCAG 2.2 SC 1.4.11 requires). Navy on light = 13.5:1. Gold is
   restored only inside dark bands, where it is the higher-contrast choice. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.section-dark :focus-visible,
.page-hero :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible,
.pricing-summary :focus-visible { outline-color: var(--gold); }

/* Selection: gold background with navy text reads; gold text would not. */
::selection { background: var(--gold); color: var(--navy); }

/* --- Interaction colours ----------------------------------------
   Buttons are navy and hover to a lighter navy. The alias map would have
   sent hover to aubergine, turning a shade change into a hue jump. --- */
.button:hover, .btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.button-secondary, .btn-secondary { color: var(--navy); border-color: var(--navy); }
.button-secondary:hover, .btn-secondary:hover { background: var(--navy-050); color: var(--navy); }

/* Links are navy (interaction), not aubergine (voice). */
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
.section-dark a:not(.button),
.page-hero a:not(.button),
.site-footer a:hover { color: var(--gold); }

/* --- Form controls ------------------------------------------------
   The old input border (#aaa1b0) measured ~2.5:1 — below the 3:1 that
   WCAG 2.2 SC 1.4.11 requires for UI component boundaries. --- */
.field input, .field select, .field textarea { border-color: var(--field-border); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 42, 77, .16);
}

/* --- Chrome tints that were purple-derived ------------------------ */
.site-header { border-bottom-color: rgba(23, 42, 77, .12); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(23, 42, 77, .10); }
.footer-bottom { background: var(--navy-deep); }

/* --- Cards on dark fields -----------------------------------------
   A .card keeps its white background even when it sits inside a dark band, so the
   dark-field overrides must NOT follow it in. Without this, an h2 inside a card inside
   .page-hero rendered white-on-white and vanished, body text inherited rgba(255,255,255,.86)
   on white, and inline links went gold (~2.0:1 on white). Found on the Credit Monitoring
   hero, which is the first place a card was nested inside .page-hero.
   Reset the card's interior to the light-surface palette. --- */
.section-dark .card, .page-hero .card, .final-cta .card { color: var(--ink); }
.section-dark .card h1, .section-dark .card h2, .section-dark .card h3, .section-dark .card h4,
.page-hero .card h1, .page-hero .card h2, .page-hero .card h3, .page-hero .card h4,
.final-cta .card h1, .final-cta .card h2, .final-cta .card h3, .final-cta .card h4 { color: var(--aubergine); }
.section-dark .card a:not(.button),
.page-hero .card a:not(.button),
.final-cta .card a:not(.button) { color: var(--navy); }
.section-dark .card .eyebrow, .page-hero .card .eyebrow, .final-cta .card .eyebrow { color: var(--aubergine); }
.section-dark .card .lede, .page-hero .card .lede,
.section-dark .card .microcopy, .page-hero .card .microcopy { color: var(--muted); }

/* --- Signature accent ---------------------------------------------
   Allura is permitted ONLY here: a short signature/tagline flourish,
   capped at roughly 5% of any composition. Never a heading, never body,
   never anything a visitor must read to understand the page. --- */
.signature-accent {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.section-dark .signature-accent, .page-hero .signature-accent { color: var(--gold); }

@media (max-width: 1060px) {
  .primary-nav { box-shadow: 0 22px 45px rgba(23, 42, 77, .18); }
}

/* ============================================================
   COMPARISON TABLE — added 2026-07-19 for /credit-tools/
   The three credit-builder cards were visually near-identical, which
   buried the one difference that actually decides whether a reader
   wastes money: which product accepts an ITIN. A table makes that
   difference impossible to miss.
   .table-scroll is REQUIRED around every table — without it the page
   body scrolls horizontally on a phone, and this audience is mobile-first.
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .94rem; }
.compare caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 10px; }
.compare th, .compare td { border-bottom: 1px solid var(--aubergine-100); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-family: var(--font-head, inherit); font-weight: 600; border-bottom: none; }
.compare thead th:first-child { border-top-left-radius: var(--radius-sm); }
.compare thead th:last-child { border-top-right-radius: var(--radius-sm); }
.compare tbody th { font-weight: 600; color: var(--aubergine); white-space: nowrap; }
.compare tbody tr:nth-child(even) td, .compare tbody tr:nth-child(even) th { background: var(--navy-050); }
.compare .yes { color: #1c6b3f; font-weight: 700; }
.compare .no  { color: #8a2b2b; font-weight: 700; }
