/* Bottom Line Metrics — site styles
   Layout concept: a left-aligned working page. Text columns sit on the left, the
   framed "ledger" panel (echoing the logo's orange frame) carries dates and figures. */
:root {
  --navy: #132650;
  --navy-deep: #0c1a3a;
  --orange: #ef7622;
  --orange-ink: #b04f0b;      /* orange for text on white: 5.3:1 */
  --bg: #ffffff;
  --surface: #f3f5f9;
  --surface-2: #e9edf4;
  --line: #d9dfe9;
  --fg: #132650;
  --muted: #4a5878;
  --llc: #000000;
  --band: #132650;
  --band-fg: #ffffff;
  --band-muted: #c6cfe0;
  --btn-fg-on-orange: #132650; /* navy on orange: 5.1:1 (white on orange fails at 2.9:1) */
  --focus: #b04f0b;
  --ok: #1d6b43;
  --err: #a5281b;
  --header-bg: rgba(255, 255, 255, 0.94);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --fs-hero: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);

  --radius: 6px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1428; --surface: #101d37; --surface-2: #172747; --line: #253760;
    --fg: #e8ecf4; --muted: #a8b4cb; --llc: #e8ecf4; --orange-ink: #f6a466;
    --band: #142a57; --band-fg: #ffffff; --band-muted: #c6cfe0;
    --focus: #f6a466; --ok: #6fcf97; --err: #ff9a8b;
    --header-bg: rgba(10, 20, 40, 0.94);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1428; --surface: #101d37; --surface-2: #172747; --line: #253760;
  --fg: #e8ecf4; --muted: #a8b4cb; --llc: #e8ecf4; --orange-ink: #f6a466;
  --band: #142a57; --band-fg: #ffffff; --band-muted: #c6cfe0;
  --focus: #f6a466; --ok: #6fcf97; --err: #ff9a8b;
  --header-bg: rgba(10, 20, 40, 0.94);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.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; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--surface { background: var(--surface); }
.eyebrow {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--orange-ink);
}
.lede { font-size: var(--fs-md); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: var(--btn-fg-on-orange); border-color: var(--orange); }
.btn--primary:hover { background: #f58a3f; border-color: #f58a3f; }
.btn--secondary { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--secondary:hover { background: var(--surface-2); }
.btn--light { background: transparent; color: var(--band-fg); border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: rgba(255,255,255,.1); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand img { width: 54px; height: 40px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.brand__llc { color: var(--llc); font-weight: 600; font-size: 0.8em; margin-left: 2px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 0.9875rem; color: var(--fg);
}
.nav__list a:hover { background: var(--surface-2); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__cta { margin-left: 8px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: 600 0.9375rem var(--font-display); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(12, 26, 58, .12);
    padding: 8px var(--gutter-r) 20px var(--gutter);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav__cta { margin: 16px 0 0; }
}
@media (max-width: 480px) {
  .menu-btn { width: 44px; padding: 0; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 400px) { .brand { gap: 9px; } .brand__name { font-size: 0.95rem; } .brand img { width: 46px; height: 34px; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips__label { font-size: var(--fs-sm); color: var(--muted); margin-right: 4px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em;
  padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--fg);
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ledger panel (framed like the logo) */
.ledger { border: 3px solid var(--orange); background: var(--bg); padding: 24px 24px 18px; min-width: 0; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.ledger__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.ledger__src { font-size: var(--fs-sm); color: var(--muted); }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger time { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange-ink); white-space: nowrap; }
.ledger li span { color: var(--fg); line-height: 1.45; }
.ledger__foot { margin-top: 6px; font-size: var(--fs-sm); }

/* Trust strip */
.trust { background: var(--band); color: var(--band-fg); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: none; }

/* Services */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.service { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); color: var(--fg); flex: none; }
.service__icon svg { width: 24px; height: 24px; }
.form-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--orange-ink); text-align: right; text-transform: uppercase; padding-top: 4px; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.service .note { font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

.obbba { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-items: center; }
.section--surface .obbba { background: var(--bg); }
.obbba__copy { display: grid; gap: 10px; }
.obbba dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.obbba dl div { border-left: 3px solid var(--orange); padding-left: 12px; min-width: 0; }
.obbba dt { font-size: var(--fs-sm); color: var(--muted); }
.obbba dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.obbba dd small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 960px) { .obbba { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .obbba dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--orange-ink); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px; }
.step__num::after { content: ""; height: 2px; flex: 1; background: var(--line); }
.step:last-child .step__num::after { background: transparent; }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .step__num::after { display: none; }
}

/* Promo band */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band .eyebrow { color: #f6a466; }
.band h2 { color: var(--band-fg); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.band p { color: var(--band-muted); max-width: 56ch; }
.band__copy { display: grid; gap: 16px; }
.band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.band__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--band-fg); }
.band__list svg { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Newsletter teaser + forms */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.issue { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); border-top: 5px solid var(--orange); min-width: 0; }
.issue__meta { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.issue h3 { font-size: var(--fs-lg); }
.issue p { color: var(--muted); }
.issue ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.subscribe { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.section--surface .subscribe { background: var(--bg); }
.subscribe h3 { font-size: var(--fs-lg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--muted); background: var(--bg); color: var(--fg); font: inherit;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; font-size: 0.9375rem; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.fineprint { font-size: 0.8125rem; color: var(--muted); }

/* Affiliate cards */
.tool { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.tool h3 { font-size: 1.125rem; }
.tool p { color: var(--muted); }
.tool a.tool__link { font-weight: 700; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.tool a.tool__link svg { width: 16px; height: 16px; }
.disclosure { font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--orange); padding: 4px 0 4px 12px; max-width: 70ch; }

/* About */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__tile { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.about__tile img { width: 72%; }
.about__copy { display: grid; gap: 16px; max-width: 66ch; }
.about__copy p { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.facts li { font-size: var(--fs-sm); font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about__tile { max-width: 140px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__rows { display: grid; gap: 14px; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.contact-row__label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.contact-row__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .9rem + .6vw, 1.25rem); user-select: all; overflow-wrap: anywhere; }
.contact-row__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } .contact-row__actions { justify-content: flex-start; } }
.copy-btn { min-height: 40px; padding: 8px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: 600 0.9rem var(--font-display); cursor: pointer; }
.copy-btn:hover { border-color: var(--fg); }

/* Page header (inner pages) */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); max-width: 22ch; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Book page */
.book { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }
.cal-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; position: relative; }
#cal-inline { width: 100%; overflow: auto; }
.cal-box.is-loaded #cal-inline { min-height: 640px; }
.cal-fallback { display: grid; gap: 14px; padding: 28px; }
.cal-box.is-loaded .cal-fallback { display: none; }
.checklist { display: grid; gap: 22px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.checklist h2 { font-size: var(--fs-lg); }
.checklist h3 { font-size: 1rem; font-family: var(--font-display); margin-bottom: 8px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); }
.side-links { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Newsletter issue page */
.issue-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #eef1f5; display: block; min-height: 900px; }
.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.archive li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.archive time { font-family: var(--font-display); font-weight: 600; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .archive li { grid-template-columns: 1fr; gap: 4px; } }

/* Prose (privacy) */
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-lg); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--fg); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #dfe5f0; padding-block: 56px 32px; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand img { width: 72px; height: auto; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.125rem; color: #fff; }
.footer-brand .llc { color: #ffffff; opacity: .85; } /* "LLC" stays neutral; black would vanish on navy */
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.09em; text-transform: uppercase; color: #f6a466; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #f6a466; }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.social a:hover { background: rgba(255,255,255,.1); }
.social svg { width: 18px; height: 18px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: #c6cfe0; }
.footer-base p { max-width: 70ch; }

.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Pay an invoice */
.pay { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } }
.pay .ledger { display: grid; gap: 16px; padding: 24px; }
.pay form { display: grid; gap: 16px; }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.pay-done { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.pay-done svg { width: 24px; height: 24px; color: var(--ok); }
.pay-done p { font-weight: 600; }
.pay-aside { display: grid; gap: 18px; min-width: 0; }
.pay-aside .issue h2 { font-size: var(--fs-md); }
.pay-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.pay-preview { padding: 12px 14px; border: 1.5px dashed var(--orange); border-radius: var(--radius); font-size: 0.9375rem; }
.pay [hidden] { display: none !important; }   /* .issue / .pay-done set display:grid; keep the hidden attribute authoritative */
.pay .form-status:empty { display: none; }
.linkish { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { text-decoration-thickness: 2px; }
