/* ==========================================================================
   Union AI: site stylesheet
   Profile: animation-led. Theme: light. One accent (vermilion), one neutral family.
   ========================================================================== */

/* ---------- 1. Font (local file, metric-matched fallback) ---------- */
@font-face {
    font-family: 'Sora Fallback';
    src: local('Arial');
    size-adjust: 113.42%;
    ascent-override: 93.98%;
    descent-override: 121.76%;
    line-gap-override: 113.64%;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */
:root {
    --bg: #fbf5ee;             /* warm paper */
    --surface: #fffdfb;        /* card */
    --surface-2: #f5eadf;      /* tinted panel */
    --surface-3: #ece0d2;
    --border: #e6d6c8;
    --border-strong: #d3bfb0;
    --text: #16130f;           /* ink */
    --text-soft: #3a332c;
    --text-muted: #5a524b;
    --accent: #d63c2a;         /* ACCENT_COLOR */
    --accent-hover: #b9321f;
    --accent-ink: #b3311f;     /* accent used as text on light surfaces */
    --accent-tint: #fce7e1;
    --on-accent: #fffdfa;
    --ok: #1e7a4f;
    --ok-tint: #e4f2ea;
    --danger: #b3261e;
    --danger-tint: #fbe9e7;

    --radius-pill: 999px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(54, 30, 14, .06), 0 1px 1px rgba(54, 30, 14, .03);
    --shadow-md: 0 1px 2px rgba(54, 30, 14, .05), 0 12px 30px -14px rgba(54, 30, 14, .22);
    --shadow-lg: 0 28px 60px -24px rgba(54, 30, 14, .38);

    --font: 'Sora', 'Sora Fallback', 'Helvetica Neue', Arial, sans-serif;
    --header-h: 72px;
    --ring: var(--bg);

    --tex-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 .5H.5V44' fill='none' stroke='%23e6d6c8' stroke-opacity='.55'/%3E%3C/svg%3E");
    --tex-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23d3bfb0' fill-opacity='.7'/%3E%3C/svg%3E");
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.3rem + 2.7vw, 3.25rem); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(1.625rem, 1.22rem + 1.35vw, 2.375rem); line-height: 1.12; }
h3 { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: 0 0 .35rem; }
a { color: var(--accent-ink); text-decoration-thickness: from-font; text-underline-offset: .18em; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
p a, li a, dd a, td a, figcaption a, .plan-note a, .risk-card__step a { padding-block: 4px; }
strong { font-weight: 700; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.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; }
.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }

.skip-link {
    position: absolute; left: 16px; top: -200px; z-index: 200;
    padding: .7rem 1.2rem; border-radius: var(--radius-pill);
    background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
    transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- 4. Buttons, badges, marks ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .68rem 1.5rem;
    border: 1.5px solid transparent; border-radius: var(--radius-pill);
    font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.icon-badge {
    display: inline-grid; place-items: center; flex: none;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--accent-tint); color: var(--accent-ink);
}
.icon-badge--ink { background: var(--text); color: var(--bg); }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 16px; }

.mark { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; }
.mark--yes { background: var(--ok-tint); color: var(--ok); }
.mark--no { background: var(--danger-tint); color: var(--danger); }

/* Small three-node device used instead of an eyebrow label on major sections */
.node-mark {
    display: inline-flex; align-items: center; gap: 6px; height: 12px; margin-bottom: .9rem;
    color: var(--accent);
}
.node-mark::before, .node-mark::after {
    content: ""; display: block; width: 40px; height: 2px; border-radius: 2px; background: var(--border-strong);
}
.node-mark i { display: block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-tint); }

/* ---------- 5. Bands and sections ---------- */
.site-main { display: block; }
.band--paper { background-color: var(--bg); --ring: var(--bg); }
.band--tint { background-color: var(--surface-2); background-image: var(--tex-dots); --ring: var(--surface-2); }
.band--warm { background-color: var(--bg); background-image: radial-gradient(58% 70% at 88% 0%, var(--accent-tint) 0%, rgba(252, 231, 225, 0) 70%), var(--tex-grid); --ring: var(--bg); }
.band--line { background-color: var(--surface); background-image: var(--tex-grid); --ring: var(--surface); }

.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-head { max-width: 780px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .node-mark { justify-content: center; }
.section-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-muted); }
.section__art { position: absolute; pointer-events: none; color: var(--accent); opacity: .14; z-index: 0; }
.section--art { position: relative; overflow: hidden; }
.section--art > .container { position: relative; z-index: 1; }
.section-more { margin: 1.75rem 0 0; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; }
.section-foot p { margin: 0; max-width: 64ch; }
.figure--narrow { align-self: center; max-width: 360px; }
.figure--narrow svg { max-width: 300px; margin-inline: auto; }
.hero__risk {
    margin: 1.25rem 0 0; padding: .8rem 1rem;
    color: var(--text-soft); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .9375rem;
}
.hero__risk a { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .6, .2, 1); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 6. Header and navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 245, 238, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--border); box-shadow: var(--shadow-md); }
.header__inner { position: relative; display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; color: var(--text); border-radius: 8px; }
.brand svg { display: block; width: auto; height: 32px; }

.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__group { position: relative; margin: 0; }
.nav__trigger {
    display: inline-flex; align-items: center; gap: .3rem;
    min-height: 44px; padding: .35rem .85rem;
    border: 0; border-radius: var(--radius-pill); background: none; color: var(--text);
    font: 600 .9375rem/1.2 var(--font); cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.nav__trigger:hover, .nav__group.is-open > .nav__trigger { background: var(--surface-2); }
.nav__caret { transition: transform .18s ease; color: var(--text-muted); }
.nav__group:hover > .nav__trigger .nav__caret, .nav__group.is-open > .nav__trigger .nav__caret { transform: rotate(180deg); }
.nav__submenu {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 110;
    min-width: 268px; margin: 0; padding: 8px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease;
}
.nav__submenu::before {   /* notch pointing at the trigger */
    content: ""; position: absolute; top: -6px; left: 24px; width: 11px; height: 11px;
    background: var(--surface); border-top: 1px solid var(--border); border-left: 1px solid var(--border);
    transform: rotate(45deg); border-top-left-radius: 2px;
}
.nav__submenu::after { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
/* With JS running, the open state is the .is-open class set by the script. The hover and
   focus-within rules open the panels only when JavaScript is unavailable. */
html:not(.js) .nav__group:hover > .nav__submenu,
html:not(.js) .nav__group:focus-within > .nav__submenu,
.nav__group.is-open > .nav__submenu { opacity: 1; pointer-events: auto; transform: none; }
.nav__group--end > .nav__submenu { left: auto; right: 0; }
.nav__group--end > .nav__submenu::before { left: auto; right: 26px; }
.nav__submenu li { margin: 0; }
.nav__submenu a {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: var(--text); font-size: .9375rem; font-weight: 500; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav__submenu a:hover, .nav__submenu a:focus-visible, .nav__submenu a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-ink); }
.nav__cta { display: none; }
.header__cta { flex: none; margin-left: auto; }
.nav-toggle {
    display: none; place-items: center; flex: none;
    width: 48px; height: 48px; margin-left: auto;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1023px) {
    :root { --header-h: 64px; }
    .header__inner { min-height: var(--header-h); }
    .brand svg { height: 28px; }
    .nav-toggle { display: grid; }
    .header__cta { display: none; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        padding: .25rem 0 1rem;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: block; animation: nav-in .18s ease; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0 8px; }
    .nav__group { border-bottom: 1px solid var(--border); }
    .nav__trigger { width: 100%; justify-content: space-between; min-height: 52px; border-radius: var(--radius-sm); padding: .5rem .8rem; font-size: 1rem; }
    .nav__submenu, .nav__group--end > .nav__submenu {
        position: static; display: none; min-width: 0; padding: 0 0 .5rem .8rem;
        background: none; border: 0; box-shadow: none; opacity: 1; transform: none;
    }
    .nav__submenu::before, .nav__submenu::after { display: none; }
    .nav__group.is-open > .nav__submenu { display: block; pointer-events: auto; }
    .nav__group > .nav__trigger .nav__caret, .nav__group:hover > .nav__trigger .nav__caret { transform: rotate(-90deg); }
    .nav__group.is-open > .nav__trigger .nav__caret, .nav__group.is-open:hover > .nav__trigger .nav__caret { transform: rotate(0); }
    .nav__cta { display: inline-flex; margin: 1rem 8px 0; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs { padding-block: .75rem; border-bottom: 1px solid var(--border); background: var(--bg); font-size: .875rem; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: .25rem 0; list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.breadcrumbs__list li { display: flex; align-items: center; margin: 0; }
.breadcrumbs__list li + li::before { content: ""; width: 6px; height: 6px; margin: 0 .6rem; border-radius: 50%; background: var(--border-strong); }
.breadcrumbs__list a { display: inline-block; padding: 3px 0; color: var(--text-muted); text-decoration: none; }
.breadcrumbs__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs__list [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- 8. Home hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 95% 0%, rgba(244, 166, 148, .4), transparent 60%),
        radial-gradient(ellipse at 4% 92%, rgba(223, 180, 141, .28), transparent 50%),
        var(--tex-grid),
        linear-gradient(117deg, #fffaf5 16%, #fbebdf 100%);
}
.hero { --hero-pad: clamp(2rem, 5vw, 4.5rem); }
.hero__inner {
    position: relative; z-index: 1; display: grid; align-items: start;
    grid-template-columns: minmax(0, 5fr) 1px minmax(0, 7fr);
    column-gap: clamp(1.5rem, 4.5vw, 4.25rem);
    padding-block: var(--hero-pad) clamp(2rem, 4vw, 3.5rem);
}
.hero__inner::before {   /* the vertical rule between the form and the copy */
    content: ""; grid-column: 2; grid-row: 1;
    background: linear-gradient(to bottom, rgba(211, 191, 176, 0), var(--border-strong) 10%, var(--border-strong) 90%, rgba(211, 191, 176, 0));
}
.hero__copy { position: relative; grid-column: 3; grid-row: 1; }
.hero__aside { grid-column: 1; grid-row: 1; min-width: 0; }
.hero__title { margin-bottom: 1rem; }
.hero__title .hero-accent { color: var(--accent-ink); }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--text-soft); margin-bottom: 1.25rem; }
.hero__body > :last-child { margin-bottom: 0; }
/* Node motif: anchored to the copy column, so its position relative to the text is the same at
   every two-column width. Every node sits either in the band above the headline or in the right
   margin beyond the column; the left part fades out so nothing competes with the copy. */
.hero__motif {
    position: absolute; z-index: -1; top: calc(var(--hero-pad) * -1); right: -80px;
    width: 520px; height: auto; pointer-events: none; will-change: transform;
    -webkit-mask-image: linear-gradient(to left, #000 0, #000 25%, rgba(0, 0, 0, .2) 62%, rgba(0, 0, 0, 0) 88%);
    mask-image: linear-gradient(to left, #000 0, #000 25%, rgba(0, 0, 0, .2) 62%, rgba(0, 0, 0, 0) 88%);
}
.hero .form-block { box-shadow: var(--shadow-lg); }

.step-strip {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem .75rem;
    list-style: none; margin: 1rem 0 0; padding: .85rem .9rem;
    background: var(--surface-2); border-radius: var(--radius-md);
}
.step-strip li { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.step-strip__num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .8125rem; }

.signal-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.signal-list li { position: relative; margin: 0; padding-left: 1.55rem; }
.signal-list li::before { content: ""; position: absolute; left: .25rem; top: .58em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.signal-list li:not(:last-child)::after { content: ""; position: absolute; left: .56rem; top: calc(.58em + .75rem); bottom: -.5rem; width: 2px; background: var(--border); }

.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.trust-link { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.trust-link:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.trust-link .icon-badge { width: 34px; height: 34px; border-radius: 50%; }
.flag-chip { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; font-weight: 600; color: var(--text-soft); }
.hero .flag-chip { padding: .55rem .75rem; border-radius: var(--radius-pill); background: var(--surface); }
.flag { display: block; width: 30px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(22, 19, 15, .12); }

@media (max-width: 960px) {
    /* Mobile order: headline, then the form and the three-step strip, then the remaining text.
       The motif (now positioned against the grid container) stays in a band above the headline. */
    .hero__inner { --hero-pad: 5.5rem; display: flex; flex-direction: column; }
    .hero__inner::before { display: none; }
    .hero__copy { display: contents; }
    .hero__title { order: 1; }
    .hero__aside { order: 2; margin-top: 1.25rem; }
    .hero__lead { order: 3; margin-top: 1.5rem; }
    .hero__body { order: 4; }
    .hero__motif { top: -.4rem; right: -70px; width: 320px; }
}
@media (max-width: 520px) {
    .step-strip { grid-template-columns: 1fr; }
}

/* ---------- 9. Inner page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background-color: var(--surface-2); background-image: var(--tex-grid);
    border-bottom: 1px solid var(--border);
}
.page-hero__inner {
    position: relative; z-index: 1; display: grid; align-items: center;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: clamp(2rem, 5vw, 4rem);
}
.page-hero--text .page-hero__inner { grid-template-columns: minmax(0, 62rem); }
.page-hero__title { margin-bottom: .75rem; }
.page-hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--text-soft); margin-bottom: 1.25rem; max-width: 62ch; }
.page-hero__body > :last-child { margin-bottom: 0; }
.page-hero__aside { position: relative; z-index: 2; }
.page-hero__aside .form-block { box-shadow: var(--shadow-lg); }
.page-hero__motif { position: absolute; z-index: -1; right: -6%; top: -14%; width: min(48%, 600px); height: auto; pointer-events: none; }
@media (max-width: 900px) {
    .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .page-hero__motif { width: 420px; right: -140px; top: -60px; opacity: .6; }
}

/* ---------- 10. Cards, ledger, grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.25rem; }
.card {
    display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    color: var(--text); text-decoration: none;
    transition: transform .18s cubic-bezier(.2, .6, .2, 1), box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin: 0; font-size: 1.125rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.card ul { margin: 0; font-size: .9375rem; color: var(--text-muted); }
.card .icon-badge { margin-bottom: .25rem; }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .35rem; font-weight: 600; font-size: .9375rem; color: var(--accent-ink); }
.card__note { font-size: .875rem; color: var(--text-muted); }
.card--accent { background: var(--surface-2); }
.card--ink { background: var(--text); border-color: var(--text); color: var(--bg); }
.card--ink p, .card--ink ul { color: rgba(251, 245, 238, .82); }

.grid--stagger { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 28px; }
.grid--stagger > :nth-child(3n + 2) { margin-top: 28px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.ledger__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--border-strong); }
.ledger__item:nth-child(odd) { padding-right: 1.75rem; border-right: 1px solid var(--border-strong); }
.ledger__item:nth-child(even) { padding-left: 1.75rem; }
.ledger__item:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.ledger__item h3 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.ledger__item p { margin: 0; font-size: .9375rem; color: var(--text-muted); }
.ledger__item p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > * { min-width: 0; }
@media (max-width: 960px) { .grid--stagger { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--stagger > :nth-child(3n + 2) { margin-top: 0; } .grid--stagger > :nth-child(2n) { margin-top: 24px; } }
@media (max-width: 860px) { .split, .split--even, .ledger { grid-template-columns: minmax(0, 1fr); }
    .ledger__item:nth-child(odd), .ledger__item:nth-child(even), .ledger__item:last-child:nth-child(odd) { padding: 1.2rem 0; border-right: 0; }
}
@media (max-width: 700px) { .grid--stagger, .grid--stagger > :nth-child(2n), .grid--stagger > :nth-child(3n + 2) { margin-top: 0; } .grid--stagger, .card-grid--2, .card-grid--3 { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; } }

/* ---------- 11. Steps and timelines ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 20px; left: calc(12.5% - 10px); right: calc(12.5% - 10px); height: 2px; background: var(--border-strong); }
.steps li { position: relative; margin: 0; padding: 3rem 1.25rem 1.4rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 2px; left: 50%; margin-left: -19px;
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 6px var(--ring);
}
.steps h3 { margin: 0 0 .4rem; font-size: 1.0625rem; }
.steps p { margin: 0; font-size: .9375rem; color: var(--text-muted); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--3::before { left: calc(16.66% - 10px); right: calc(16.66% - 10px); }
@media (max-width: 860px) { .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 0; }
    .steps::before { display: none; }
    .steps li { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; padding: 1.1rem 1.25rem 1.1rem 1.1rem; text-align: left; }
    .steps li::before { position: static; margin: 0; grid-row: span 2; align-self: start; box-shadow: none; }
}

.timeline { position: relative; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--border-strong); }
.timeline > li { position: relative; margin: 0; padding: 0 0 1.75rem 4rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 6px var(--ring);
}
.timeline h3 { margin: .35rem 0 .4rem; font-size: 1.125rem; }
.timeline p { margin-bottom: .5rem; }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- 12. Tables ---------- */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table caption { caption-side: top; text-align: left; padding: .9rem 1.1rem .5rem; font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.table th, .table td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface-2); font-size: .875rem; color: var(--text); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: rgba(245, 234, 223, .32); }
.table tbody th { font-weight: 600; }
.table--wide { min-width: 680px; }
.table--narrow { min-width: 520px; }
.table--compare thead th:nth-child(n + 2), .table--compare td:nth-child(n + 2) { text-align: center; width: 18%; }
.table--compare th[scope="row"] { font-weight: 500; }
.table--compare thead th.is-us { background: var(--accent-tint); color: var(--accent-ink); }
.table--compare tbody td.is-us { background: var(--accent-tint); }
.table--compare tbody tr:nth-child(even) td.is-us { background: var(--accent-tint); }
.table--plans { min-width: 760px; }
.table--plans thead th:nth-child(3) { background: var(--accent-tint); color: var(--accent-ink); }
.table--plans td:nth-child(3) { background: rgba(252, 231, 225, .55); }
.table--plans td:not(:first-child), .table--plans th:not(:first-child) { text-align: center; }
.table--plans td:first-child { text-align: left; font-weight: 500; width: 34%; }
.table--facts { max-width: 760px; }
.table--facts th { width: 42%; background: var(--surface-2); }
.table td .mark { vertical-align: middle; }

/* ---------- 13. Callouts, definition lists, tags ---------- */
.callout {
    display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: start;
    margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.callout__icon { color: var(--accent-ink); margin-top: .1rem; }
.callout__body > :last-child { margin-bottom: 0; }
.callout--risk { background: var(--accent-tint); border-color: #f1c3b8; }
.callout--line { background: var(--surface); }
.callout h3, .callout h4 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.callout p { margin-bottom: .5rem; font-size: .9375rem; }
@media (max-width: 520px) { .callout { grid-template-columns: minmax(0, 1fr); } }

.def-list { margin: 0 0 1.5rem; }
.def-list > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: .35rem 1.25rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.def-list > div:first-child { border-top: 1px solid var(--border); }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--text-muted); }
@media (max-width: 640px) { .def-list > div { grid-template-columns: minmax(0, 1fr); } }

.check-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.check-list li { position: relative; margin: 0; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- 14. Exchange logo chips (logos.md 3) ---------- */
.exchange-row { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.exchange-chip {
    display: flex; align-items: center; justify-content: center;
    width: 168px; height: 60px; margin: 0;
    border: 1px solid rgba(22, 19, 15, .08); border-radius: 14px;
}
.exchange-chip--light { background: #ffffff; }
.exchange-chip--dark { background: #0f172a; border-color: rgba(255, 255, 255, .06); }
.exchange-chip img { display: block; height: 26px; width: auto; max-width: 100%; }
@media (max-width: 640px) {
    .exchange-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exchange-chip { width: 100%; height: 56px; }
    .exchange-chip img { height: 22px; }
}

/* ---------- 15. Forms (formFactory markup, styled through generic elements) ---------- */
.form-block {
    padding: clamp(1.15rem, 2.2vw, 1.75rem);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.form-block__title { margin: 0 0 1.1rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.form-block__intro { margin: 0 0 1rem; font-size: .9375rem; color: var(--text-muted); }
.form-block form > div + div { margin-top: .85rem; }
.form-block label { display: block; margin: 0 0 .35rem; font-size: .9375rem; font-weight: 600; }
.form-block input:not([type="checkbox"]):not([type="radio"]), .form-block select, .form-block textarea,
.calc-modal form input:not([type="checkbox"]):not([type="radio"]), .calc-modal form select, .calc-modal form textarea {
    width: 100%; min-height: 48px; padding: .62rem .9rem; margin: 0;
    border: 1.5px solid var(--border-strong); border-radius: 12px;
    background: #fffdfa; color: var(--text); font: 400 1rem/1.3 var(--font);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-block input::placeholder, .form-block textarea::placeholder { color: #8a8178; }
.form-block input:focus, .form-block select:focus, .form-block textarea:focus,
.calc-modal form input:focus, .calc-modal form select:focus, .calc-modal form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
}
.form-block input[aria-invalid="true"], .calc-modal form input[aria-invalid="true"] { border-color: var(--danger); }
.form-block input[aria-invalid="true"] + p, .form-block [aria-invalid="true"] ~ p { color: var(--danger); font-weight: 600; font-size: .875rem; }
.form-block form p { margin: .4rem 0 0; font-size: .9375rem; }
.form-block form p[role="status"] { margin-top: .9rem; padding: .65rem .9rem; border-radius: var(--radius-sm); background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.form-block label:has(> input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem .65rem; margin-top: 1rem; font-weight: 400; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.form-block input[type="checkbox"] { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form-block label:has(> input[type="checkbox"]) > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.form-block label:has(> input[type="checkbox"]) > span:last-child:not(:nth-child(2)) { flex-basis: 100%; padding-left: 1.9rem; color: var(--text-muted); font-size: .875rem; }
.form-block label:has(> [aria-invalid="true"]) > span:last-child:not(:nth-child(2)) { color: var(--danger); font-weight: 600; }
.form-block button[type="submit"],
.calc-modal form button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 50px; margin: 1.1rem 0 0; padding: .7rem 1.5rem;
    border: 1.5px solid transparent; border-radius: var(--radius-pill);
    background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--font); cursor: pointer; box-shadow: var(--shadow-sm);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.form-block button[type="submit"]:hover, .calc-modal form button[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-legal { margin: .9rem 0 0; font-size: .875rem; color: var(--text-muted); }
.form-block__note { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--border-strong); font-size: .9375rem; font-weight: 600; color: var(--text); }
.form-block__note svg { color: var(--accent); flex: none; }

/* ---------- 16. Calculator section (module plus host overrides by class) ---------- */
.calc-panel { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.calc-widget { --calc-skeleton-bg: #eadfd3; --calc-skeleton-shimmer: rgba(255, 255, 255, .6); }
.calc-widget__title { font-size: clamp(1.625rem, 1.22rem + 1.35vw, 2.375rem); line-height: 1.12; }
.calc-widget__subtitle { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; }
.calc-widget .calc-widget__cta {
    min-height: 48px; padding: .6rem 1.7rem; box-shadow: none;
    font-family: var(--font); font-weight: 600; font-size: 1rem;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.calc-widget__cta:hover { opacity: 1; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.calc-widget__cta:focus-visible, .calc-widget__range:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.calc-widget__range { cursor: pointer; }
/* Larger hit area for touch: the module paints a 6px track as the input background; padding is added around it. */
.calc-widget .calc-widget__range { height: 28px; padding-block: 10px; border-radius: 0; background-clip: content-box !important; }
.calc-widget__range::-webkit-slider-thumb { width: 22px; height: 22px; border-width: 5px; }
.calc-widget__result { border-color: rgba(255, 253, 250, .1); }
.calc-modal__overlay { background: rgba(22, 19, 15, .62); }
.calc-modal__content { border: 1px solid rgba(255, 253, 250, .1); }
.calc-modal__legal a { color: #f3b4a8; }
.calc-modal__legal a:hover { color: #ffd9d1; }
.calc-modal__close { top: 6px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; }
.calc-modal__close:hover { opacity: 1; transform: none; background: rgba(255, 253, 250, .1); }
.calc-modal__close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-modal form label { color: #fffdfa; }
.calc-modal form input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255, 253, 250, .07); border-color: rgba(255, 253, 250, .28); color: #fffdfa; }
.calc-modal form label:has(> input[type="checkbox"]) { color: rgba(251, 245, 238, .82); }

.calc-note { max-width: 62ch; margin: 1.5rem auto 0; text-align: center; font-size: .9375rem; color: var(--text-muted); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2rem; }
.market-figure { margin: 0; padding: 1.1rem 1.1rem .9rem; background: var(--surface-2); border-radius: var(--radius-md); }
.market-canvas { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--surface); }
.market-figure figcaption { margin-top: .7rem; font-size: .875rem; color: var(--text-muted); }
@media (max-width: 860px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 17. FAQ accordion (text stays in the layout tree) ---------- */
.faq { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--border-strong); }
.faq__item:first-child { border-top: 1px solid var(--border-strong); }
.faq__q { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.faq__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
    padding: 1rem .25rem; border: 0; background: none; color: var(--text); text-align: left;
    font: 600 1.0625rem/1.35 var(--font); cursor: pointer; border-radius: var(--radius-sm);
    transition: color .15s ease;
}
.faq__toggle:hover { color: var(--accent-ink); }
.faq__toggle svg { flex: none; color: var(--accent); transition: transform .2s ease; }
.faq__item.is-open .faq__toggle svg { transform: rotate(180deg); }
.faq__panel { padding: 0 .25rem; }
.faq__a { overflow: hidden; min-height: 0; }
.faq__a > :last-child { margin-bottom: 1.1rem; }
.faq__a ul, .faq__a ol { margin-bottom: 1.1rem; }
/* Closed panels stay in the layout tree (zero height, clipped); only the transition depends on motion. */
.js .faq__panel { display: grid; grid-template-rows: 0fr; }
.js .faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: no-preference) { .js .faq__panel { transition: grid-template-rows .24s ease; } }

/* ---------- 18. Special offer page ---------- */
.so-band { position: relative; overflow: hidden; isolation: isolate; background-color: var(--accent-tint); }
.so-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--tex-dots); opacity: .7; }
.so-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.so-modal.is-open { display: flex; }
body.so-lock { overflow: hidden; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(22, 19, 15, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.so-modal__card {
    position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    animation: so-in .22s cubic-bezier(.2, .6, .2, 1);
}
.so-modal__card h2 { margin: .9rem 0 .5rem; font-size: 1.5rem; }
.so-modal__card p { color: var(--text-soft); }
.so-modal__close {
    position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.so-modal__close:hover { background: var(--surface-3); transform: rotate(90deg); }
.so-modal__art { display: block; width: 100%; height: auto; margin: .25rem 0 .75rem; padding: .5rem .6rem; border-radius: var(--radius-md); background: var(--surface-2); }
@keyframes so-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .so-modal__card, .site-nav.is-open { animation: none; } }

/* ---------- 19. Footer ---------- */
.site-footer { background-color: var(--surface-2); background-image: var(--tex-dots); border-top: 1px solid var(--border); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.footer__brand .brand svg { height: 28px; }
.footer__tagline { margin: 1rem 0 1.1rem; color: var(--text-muted); max-width: 30ch; }
.footer__facts { margin: 0; }
.footer__facts > div { margin-bottom: .6rem; }
.footer__facts dt { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.footer__facts dd { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; }
.footer__title { margin: 0 0 .8rem; font-weight: 700; color: var(--text); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0; }
.footer__list a { display: inline-block; padding: 3px 0; color: var(--text-soft); text-decoration: none; }
.footer__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer__disclaimer { margin-top: 2.25rem; padding: 1.25rem 1.4rem; background: rgba(255, 253, 251, .6); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: .875rem; color: var(--text-muted); }
.footer__disclaimer p { margin: 0; }
.footer__disclaimer-title { margin-bottom: .35rem; font-weight: 700; color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-strong); color: var(--text-muted); }
.footer__bottom p { margin: 0; }
.footer__bottom a { font-weight: 600; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 20. Small page-specific compositions ---------- */
.point { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding: 1.9rem 0; border-top: 1px solid var(--border-strong); }
.point:first-child { padding-top: .5rem; border-top: 0; }
.point:last-child { padding-bottom: 0; }
.point__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.point h2 { margin-bottom: .7rem; font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); }
.point > div > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .point { grid-template-columns: minmax(0, 1fr); gap: .75rem; } }

.card--toc { flex-direction: row; align-items: center; gap: .8rem; padding: .8rem .9rem; }
.card--toc h3 { margin: 0; font-size: 1rem; }
.card--toc .icon-badge { width: 40px; height: 40px; border-radius: 12px; margin: 0; }

.risk-card h2 { margin: 0 0 .35rem; font-size: 1.25rem; line-height: 1.3; }
.risk-card p { color: var(--text-soft); }
.risk-card__num { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.risk-card__step { margin-top: auto; padding: .85rem .95rem; border-radius: var(--radius-sm); background: var(--accent-tint); font-size: .9375rem; color: var(--text); }

.map-figure { margin: 0; max-width: 760px; min-width: 0; }
.map-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); background: var(--surface-2); }
@media (min-width: 600px) { .map-embed { min-height: 320px; } }
@media (max-width: 599px) { .map-embed { aspect-ratio: auto; height: 300px; } }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-figure figcaption { margin-top: .7rem; font-size: .875rem; color: var(--text-muted); }
.who-card__num { font-size: .875rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .04em; }
.article { padding-top: 1.5rem; border-top: 1px solid var(--border-strong); }
.article + .article { margin-top: 2.5rem; }
.article__kicker { margin: 0 0 .35rem; font-size: .875rem; font-weight: 700; color: var(--accent-ink); }
.article h3 { margin: .35rem 0 .6rem; font-size: 1.125rem; }
.article__meta { font-size: .875rem; color: var(--text-muted); }
.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .link-cards { grid-template-columns: minmax(0, 1fr); } }
.plan-note { font-size: .9375rem; color: var(--text-muted); }
.page-404 { padding-block: clamp(3rem, 8vw, 6rem); }
.figure { margin: 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: .6rem; font-size: .875rem; color: var(--text-muted); }

.tv-ticker-wrapper {
    padding-top: 0px !important;
    height: 58px !important;
}

/* Homepage background artwork */
.hero-art {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 68% 34%, rgb(255 248 239 / 97%), rgb(255 248 239 / 72%) 30%, transparent 74%),
        linear-gradient(180deg, rgb(255 248 239 / 62%), rgb(255 248 239 / 43%) 45%, transparent 85%);
}
.hero__motif { opacity: .25; }
@media (max-width: 767px) {
    .hero-art { inset: auto 0 0; height: clamp(320px, 88vw, 520px); }
    .hero-art::after {
        background: linear-gradient(180deg, var(--bg), rgb(255 248 239 / 90%) 26%, rgb(255 248 239 / 42%) 58%, transparent 88%);
    }
    .hero__inner { padding-bottom: clamp(128px, 38vw, 222px); }
}

/* Account button in the site header and its mobile menu. */
.site-header .header-signup {
    min-height: 44px; gap: 8px; padding: 5px 7px 5px 15px;
    font-size: .875rem; font-weight: 700; line-height: 1.15;
    white-space: nowrap; text-align: center; text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    color: #fffdfb; background: linear-gradient(108deg, #c13925, #aa2d20);
    border: 1px solid #aa2d20; border-radius: 999px;
    box-shadow: 0 4px 13px rgb(179 49 31 / 24%), inset 0 1px rgb(255 230 216 / 26%);
}
.site-header .header-signup__icon {
    display: grid; place-items: center; flex: none;
    width: 29px; height: 26px; border-radius: 999px;
    color: #992b20; background: #fff1e9;
}
.site-header .header-signup__icon svg { display: block; width: 16px; height: 16px; transition: transform .18s ease; }
.site-header .header-signup:focus-visible { outline: 2px solid #b3311f; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .site-header .header-signup:hover {
    color: #fffdfb; background: #a8291b; box-shadow: 0 6px 15px rgb(179 49 31 / 35%);
  }
  .site-header .header-signup:hover svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .header-signup, .site-header .header-signup:hover, .site-header .header-signup .header-signup__icon svg { transition: none; transform: none; }
}
@media (max-width: 1023px) {
    .site-header .nav__cta { width: calc(100% - 16px); }
}
