/* ============================================================================
   HubSpot Revenue Leak Calculator - STYLES
   Canonical Hubjoy tokens + patterns (see _system/landing-page-ui-quality-process.md)
   ========================================================================== */

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

:root {
  --orange: #ff8a32;
  --orange-hover: #e67a28;
  --navy: #032241;
  --cream: #f9f1e6;
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --mid-gray: #6b6b6b;
  --gold: #ffbc4d;
  --border: #cccccc;
  --green: #1f9d6b;
  --red: #d4503a;
  --font: 'Lexend Deca', Arial, Helvetica, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .cal-fade { opacity: 1 !important; transform: none !important; }
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }

.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.container--xwide { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 640px; margin: 0 auto; padding: 0 24px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }

@keyframes calFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cal-fade { animation: calFade 0.2s ease-out; }

/* ---- Header --------------------------------------------------------------- */
.site-header { height: 96px; display: flex; align-items: center; background: var(--white); border-bottom: 1px solid rgba(3, 34, 65, 0.06); }
.site-header .container--wide { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.site-header img { width: 150px; height: auto; }

/* ---- View-state container ------------------------------------------------- */
[data-view] { display: none; }
[data-view].is-active { display: block; }

/* ============================================================================
   STATE 0: Landing hero
   ========================================================================== */
.cal-hero { padding: 64px 0 56px; background: var(--white); }
.cal-hero__grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 920px) { .cal-hero__grid { grid-template-columns: 54fr 46fr; gap: 60px; } }
.cal-hero__eyebrow { display: inline-block; background: var(--cream); color: var(--navy); font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: 0.02em; }
.cal-hero h1 { font-size: 36px; font-weight: 700; line-height: 1.14; color: var(--navy); margin-bottom: 18px; letter-spacing: -0.01em; }
.cal-hero h1 .accent { color: var(--orange); }
@media (min-width: 920px) { .cal-hero h1 { font-size: 48px; } }
.cal-hero__sub { font-size: 19px; line-height: 1.5; color: var(--navy); margin-bottom: 24px; opacity: 0.88; }
.cal-hero__points { list-style: none; margin: 0 0 28px; padding: 0; }
.cal-hero__points li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.6; color: var(--navy); margin-bottom: 8px; }
.cal-hero__points li::before { content: "\2192"; color: var(--orange); font-weight: 700; position: absolute; left: 0; top: 0; }

/* Hero preview card (right column - mock result) */
.cal-hero__preview { background: var(--cream); border-radius: 16px; padding: 28px 26px; box-shadow: 0 12px 36px rgba(3,34,65,0.10), 0 4px 12px rgba(3,34,65,0.05); }
.cal-hero__preview-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 8px; }
.cal-hero__preview-range { font-size: 34px; font-weight: 700; color: var(--orange); line-height: 1.1; margin-bottom: 4px; }
.cal-hero__preview-sub { font-size: 14px; color: var(--navy); opacity: 0.8; margin-bottom: 18px; }
.cal-hero__preview-bars { display: flex; flex-direction: column; gap: 10px; }
.cal-hero__preview-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.cal-hero__preview-bar span { font-size: 13px; color: var(--navy); }
.cal-hero__preview-track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(3,34,65,0.10); overflow: hidden; }
.cal-hero__preview-fill { height: 100%; background: var(--orange); border-radius: 999px; }
.cal-hero__preview-note { font-size: 11.5px; color: var(--mid-gray); margin-top: 16px; text-align: center; }

/* ---- Primary button (shared) --------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: var(--white); font-size: 1.05rem; font-weight: 700; padding: 16px 28px; border-radius: 10px; border: none; min-height: 52px; transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,138,50,0.30); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--lg { font-size: 1.12rem; padding: 18px 32px; min-height: 56px; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(3,34,65,0.18); }
.btn--ghost:hover { background: rgba(3,34,65,0.04); box-shadow: none; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: #0a3358; box-shadow: 0 6px 18px rgba(3,34,65,0.25); }

/* ============================================================================
   Calculator shell (presize + questions + transitions share this frame)
   ========================================================================== */
.cal-stage { min-height: calc(100vh - 96px); background: var(--light-gray); padding: 0 0 64px; }

/* Sticky progress bar */
.cal-progress { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid rgba(3,34,65,0.08); padding: 14px 0 0; }
.cal-progress__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--mid-gray); margin-bottom: 10px; }
.cal-progress__meta strong { color: var(--navy); font-weight: 600; }
.cal-progress__track { height: 6px; background: rgba(3,34,65,0.10); border-radius: 0; overflow: hidden; }
.cal-progress__fill { height: 100%; width: 0; background: var(--orange); transition: width 0.3s ease; }

/* Card frame for presize + question */
.cal-card { background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(3,34,65,0.07); padding: 36px 32px; margin: 40px auto 0; max-width: 680px; }
@media (max-width: 600px) { .cal-card { padding: 28px 20px; margin-top: 24px; border-radius: 14px; } }

.cal-card__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.cal-card__section { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--mid-gray); margin-bottom: 6px; }
.cal-card h2 { font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--navy); margin-bottom: 14px; }
@media (max-width: 600px) { .cal-card h2 { font-size: 22px; } }
.cal-card__check { font-size: 16px; line-height: 1.55; color: var(--navy); opacity: 0.86; margin-bottom: 16px; }
.cal-card__path { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--navy); background: var(--light-gray); border: 1px solid rgba(3,34,65,0.08); border-radius: 8px; padding: 8px 12px; margin-bottom: 22px; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; }
.cal-card__path::before { content: "\1F4CD"; font-family: var(--font); }

/* Severity badge */
.sev { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.sev--high { background: rgba(212,80,58,0.12); color: var(--red); }
.sev--medium { background: rgba(255,138,50,0.15); color: var(--orange-hover); }
.sev--low { background: rgba(3,34,65,0.08); color: var(--mid-gray); }

/* Answer buttons */
.cal-answers { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.cal-answer { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 18px; min-height: 56px; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; }
.cal-answer:hover { border-color: var(--orange); box-shadow: 0 4px 14px rgba(3,34,65,0.08); transform: translateY(-1px); }
.cal-answer.is-selected { border-color: var(--orange); background: rgba(255,138,50,0.06); }
.cal-answer__label { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--navy); }
.cal-answer__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cal-answer--0 .cal-answer__dot { background: var(--red); }
.cal-answer--1 .cal-answer__dot { background: var(--gold); }
.cal-answer--2 .cal-answer__dot { background: var(--green); }
.cal-answer__detail { font-size: 13.5px; line-height: 1.45; color: var(--mid-gray); padding-left: 21px; }

.cal-skip { display: block; width: 100%; text-align: center; background: none; border: none; color: var(--mid-gray); font-size: 14px; padding: 16px 0 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.cal-skip:hover { color: var(--navy); }

.cal-card__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.cal-back { background: none; border: none; color: var(--mid-gray); font-size: 14px; min-height: 44px; padding: 0 4px; }
.cal-back:hover { color: var(--navy); }
.cal-back[hidden] { visibility: hidden; }

/* Presize option list reuses .cal-answers / .cal-answer with a simpler look */
.cal-presize-opt { flex-direction: row; align-items: center; min-height: 56px; }
.cal-presize-opt .cal-answer__label { font-weight: 600; }

/* ============================================================================
   STATE 3: Section transition
   ========================================================================== */
.cal-transition { min-height: calc(100vh - 96px); display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); text-align: center; padding: 48px 24px; }
.cal-transition__inner { max-width: 540px; }
.cal-transition__tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,138,50,0.18); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 22px; }
.cal-transition h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.cal-transition p { font-size: 17px; opacity: 0.82; margin-bottom: 26px; }
.cal-transition__next { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 8px; }

/* ============================================================================
   STATE 4: Results
   ========================================================================== */
.cal-results { background: var(--white); }
.cal-results__hero { background: var(--navy); color: var(--white); padding: 56px 0 48px; text-align: center; }
.cal-results__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cal-results__scorebig { font-size: 64px; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px; }
@media (min-width: 768px) { .cal-results__scorebig { font-size: 88px; } }
.cal-results__scorebig small { font-size: 0.34em; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 0.01em; }
.cal-results__bandrow { margin-bottom: 14px; }
.cal-results__bandmeaning { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto; }
.cal-results__band { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.cal-results__band--strong { background: rgba(31,157,107,0.22); color: #7fe3b8; }
.cal-results__band--moderate { background: rgba(255,188,77,0.20); color: var(--gold); }
.cal-results__band--concerning { background: rgba(255,138,50,0.20); color: #ffb27a; }
.cal-results__band--critical { background: rgba(212,80,58,0.22); color: #ff9d8a; }
.cal-results__skipnote { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 18px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Methodology disclosure */
.cal-method { max-width: 680px; margin: 22px auto 0; }
.cal-method summary { cursor: pointer; font-size: 14px; color: rgba(255,255,255,0.78); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.cal-method summary::-webkit-details-marker { display: none; }
.cal-method__body { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78); margin-top: 14px; text-align: left; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 18px 20px; }
.cal-method__body p { margin-bottom: 10px; }
.cal-method__body p:last-child { margin-bottom: 0; }
/* Light variant for the dollar module (sits on cream, not navy) */
.cal-method--light summary { color: var(--mid-gray); }
.cal-method--light .cal-method__body { color: var(--navy); background: rgba(3,34,65,0.04); }

/* ---- Optional dollar-estimate module ------------------------------------- */
.cal-dollar { padding: 8px 0 48px; }
.cal-dollar__card { background: var(--cream); border-radius: 16px; padding: 30px 28px; text-align: center; }
@media (max-width: 600px) { .cal-dollar__card { padding: 24px 20px; } }
.cal-dollar__title { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.cal-dollar__sub { font-size: 14.5px; line-height: 1.5; color: var(--mid-gray); max-width: 480px; margin: 0 auto 20px; }
.cal-dollar__opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cal-dollar__opt { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 600; color: var(--navy); min-height: 48px; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease; }
.cal-dollar__opt:hover { border-color: var(--orange); transform: translateY(-1px); }
.cal-dollar__opt.is-selected { border-color: var(--orange); background: rgba(255,138,50,0.08); }
.cal-dollar__resultlabel { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 8px; }
.cal-dollar__range { font-size: 40px; font-weight: 700; color: var(--orange); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
@media (min-width: 768px) { .cal-dollar__range { font-size: 52px; } }
.cal-dollar__context { font-size: 14.5px; line-height: 1.55; color: var(--navy); max-width: 520px; margin: 0 auto; }
.cal-dollar__change { background: none; border: none; color: var(--mid-gray); font-size: 13.5px; min-height: 44px; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cal-dollar__change:hover { color: var(--navy); }

/* Section breakdown */
.cal-breakdown { padding: 56px 0; }
.cal-breakdown h3 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 28px; color: var(--navy); }
.cal-sections { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.cal-section-card { border: 1px solid rgba(3,34,65,0.10); border-radius: 12px; overflow: hidden; background: var(--white); }
.cal-section-card__head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 18px 20px; background: var(--white); border: none; min-height: 56px; }
.cal-section-card__head:hover { background: var(--light-gray); }
.cal-section-card__idx { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; }
.cal-section-card__title { font-size: 16px; font-weight: 700; color: var(--navy); }
.cal-section-card__sevcounts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cal-section-card__score { font-size: 15px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cal-section-card__score small { font-weight: 500; color: var(--mid-gray); }
.cal-section-card__chev { transition: transform 0.2s ease; color: var(--mid-gray); }
.cal-section-card.is-open .cal-section-card__chev { transform: rotate(180deg); }
.cal-section-card__body { display: none; padding: 4px 20px 18px; border-top: 1px solid rgba(3,34,65,0.06); }
.cal-section-card.is-open .cal-section-card__body { display: block; }
.cal-leak { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(3,34,65,0.06); }
.cal-leak:last-child { border-bottom: none; }
.cal-leak__mark { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--white); flex-shrink: 0; margin-top: 1px; }
.cal-leak__mark--0 { background: var(--red); }
.cal-leak__mark--1 { background: var(--gold); color: var(--navy); }
.cal-leak__mark--2 { background: var(--green); }
.cal-leak__title { font-size: 15px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-leak__desc { font-size: 13.5px; line-height: 1.45; color: var(--mid-gray); margin-top: 3px; }

@media (max-width: 560px) {
  .cal-section-card__head { grid-template-columns: auto 1fr auto; gap: 10px; }
  .cal-section-card__sevcounts { grid-column: 2 / -1; justify-content: flex-start; margin-top: 2px; }
}

/* Results CTAs */
.cal-cta-stack { max-width: 540px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 12px; }
.cal-cta-tertiary { text-align: center; }
.cal-cta-tertiary button { background: none; border: none; color: var(--mid-gray); font-size: 14px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.cal-cta-tertiary button:hover { color: var(--navy); }

/* Post-download success / calendar */
.cal-postpdf { background: var(--cream); padding: 56px 0; text-align: center; }
.cal-postpdf__inner { max-width: 640px; margin: 0 auto; }
.cal-postpdf h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cal-postpdf p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; }
.cal-success { display: inline-flex; align-items: center; gap: 8px; background: rgba(31,157,107,0.12); color: var(--green); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }

/* ============================================================================
   STATE 5: Email capture modal
   ========================================================================== */
.cal-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3,34,65,0.55); }
.cal-modal.is-open { display: flex; }
.cal-modal__panel { background: var(--white); border-radius: 16px; max-width: 460px; width: 100%; padding: 32px 28px; box-shadow: 0 24px 60px rgba(3,34,65,0.30); position: relative; }
.cal-modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--light-gray); color: var(--mid-gray); font-size: 18px; line-height: 1; }
.cal-modal__close:hover { background: rgba(3,34,65,0.10); color: var(--navy); }
.cal-modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.25; padding-right: 28px; }
.cal-modal__sub { font-size: 14.5px; color: var(--mid-gray); margin-bottom: 20px; line-height: 1.45; }
.cal-modal label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.cal-modal input[type="email"] { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 1rem; background: var(--white); color: var(--navy); min-height: 48px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.cal-modal input[type="email"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,50,0.15); }
.cal-modal__error { color: var(--red); font-size: 13px; margin-top: 8px; display: none; }
.cal-modal__error.is-visible { display: block; }
.cal-modal__reducer { font-size: 12.5px; color: var(--mid-gray); margin-top: 14px; text-align: center; line-height: 1.5; }
.cal-modal .btn { margin-top: 16px; }
.cal-spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: calSpin 0.7s linear infinite; }
@keyframes calSpin { to { transform: rotate(360deg); } }

/* ---- Resume banner -------------------------------------------------------- */
.cal-resume { background: var(--gold); color: var(--navy); }
.cal-resume__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 12px 24px; font-size: 14.5px; font-weight: 600; }
.cal-resume__btns { display: flex; gap: 10px; }
.cal-resume button { background: var(--navy); color: var(--white); border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; min-height: 40px; }
.cal-resume button.is-secondary { background: transparent; color: var(--navy); border: 1.5px solid rgba(3,34,65,0.30); }
.cal-resume[hidden] { display: none; }

/* ============================================================================
   Footer (canonical)
   ========================================================================== */
.site-footer { background: var(--navy); padding: 28px 0 32px; color: rgba(255,255,255,0.72); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; } }
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-logos { display: flex; align-items: center; gap: 20px; }
.footer-logos img.footer-logo { width: 150px; height: auto; max-width: none; }
.footer-logos img.footer-badge { width: 200px; height: 200px; max-width: none; }
@media (max-width: 540px) {
  .footer-logos { flex-wrap: wrap; }
  .footer-logos img.footer-badge { width: 140px; height: 140px; }
}
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer-links { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.88rem; padding: 11px 0; display: inline-block; min-height: 44px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 12px; }
@media (min-width: 768px) {
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-content: start; }
  .footer-links a { padding: 5px 0; min-height: 28px; }
  .footer-copy { grid-column: 1 / -1; margin-top: 8px; }
}

/* Off-screen PDF template host */
#pdf-template { position: absolute; left: -9999px; top: 0; width: 612pt; }

/* Utility */
[hidden] { display: none !important; }
.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; }
