/* ==========================================================================
   Valentine Accounting: site stylesheet
   One hand-written stylesheet for the public website and the client portal.
   Sections: 1 Fonts, 2 Tokens, 3 Base, 4 Layout, 5 Header & nav, 6 Buttons,
   7 Forms, 8 Alerts, 9 Cards & sections, 10 Home, 11 Auth pages,
   12 Portal, 13 Payment, 14 Prose, 15 Footer, 16 Utilities, 17 Motion
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL OFL; see fonts/*-OFL.txt) ---------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-var-latin-italic.woff2") format("woff2");
}

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  --ink: #14213d;
  --ink-2: #1f2f52;
  --ink-3: #2c3d63;
  --paper: #faf7f2;
  --paper-2: #f3eee5;
  --surface: #ffffff;
  --line: #e6dfd3;
  --line-strong: #d3c9b8;
  --text: #1d2433;
  --muted: #576072;
  --brass: #b08443;
  --brass-ink: #8a6227;     /* brass dark enough for text on light backgrounds */
  --brass-soft: #f5ecdc;
  --walnut: #5e3b22;
  --sky: #dbe5f5;
  --success: #24683f;
  --success-soft: #e6f2ea;
  --danger: #a02f26;
  --focus: #2f64d6;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", ui-serif, Georgia, Cambria, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 1px 1px rgba(20, 33, 61, .04);
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .18), 0 2px 6px rgba(20, 33, 61, .05);
  --shadow-lg: 0 30px 60px -20px rgba(20, 33, 61, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 76px;
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-ink); }
strong { font-weight: 650; }
address { font-style: normal; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brass-soft); color: var(--ink); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4. Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.page-main { flex: 1 0 auto; outline: none; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--surface); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #e9edf6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--ink .eyebrow { color: #e3c48f; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

/* 5. Header & nav ----------------------------------------------------------- */
.topbar { background: var(--ink); color: #c9d2e4; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar__meta { display: flex; gap: 22px; list-style: none; padding: 0; }
.topbar__meta li, .topbar__meta a { display: inline-flex; align-items: center; gap: 7px; color: #c9d2e4; text-decoration: none; }
.topbar__meta a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: var(--brass); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(20, 33, 61, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; padding: 6px 0; }
.brand img { height: 64px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 550; color: var(--text); text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link[aria-current="page"], .nav-link[data-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav-link__chev { width: 16px; height: 16px; transition: transform .2s; }
.nav-item--menu { position: relative; }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .95rem; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--paper-2); color: var(--ink); }
.nav-menu .icon { color: var(--brass-ink); }
.nav-item--menu.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-item--menu.is-open .nav-link__chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 1023px) {
  .topbar__offices { display: none; }
  .brand img { height: 46px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 38px); overflow-y: auto;
  }
  .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); padding: 14px 12px; font-size: 1.02rem; }
  .nav-link[aria-current="page"], .nav-link[data-current="true"] { box-shadow: inset 3px 0 0 var(--brass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--paper); }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .nav-item--menu.is-open .nav-menu { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { justify-content: center; padding-block: 13px; }
}
@media (max-width: 560px) {
  .topbar__welcome { display: none; }
  .topbar__inner { justify-content: center; }
}

/* 6. Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { --btn-bg: var(--ink-2); --btn-bd: var(--ink-2); color: var(--btn-fg); box-shadow: 0 8px 20px -10px rgba(20, 33, 61, .6); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { --btn-bg: var(--brass); --btn-bd: var(--brass); --btn-fg: #1b1205; }
.btn--accent:hover { --btn-bg: #c39552; --btn-bd: #c39552; --btn-fg: #1b1205; box-shadow: 0 8px 20px -10px rgba(138, 98, 39, .8); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--paper-2); --btn-fg: var(--ink); --btn-bd: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--paper-2); --btn-fg: var(--ink); --btn-bd: var(--paper-2); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-bd: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--accent.is-busy::after { border-color: rgba(27, 18, 5, .3); border-top-color: #1b1205; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.text-link .icon { width: 16px; height: 16px; }

/* 7. Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { font-size: .9rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.field__optional { font-weight: 450; color: var(--muted); }
.field__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.field__hint .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.field__error { font-size: .85rem; color: var(--danger); margin: 0; display: none; align-items: center; gap: 6px; }
.field__error .icon { width: 15px; height: 15px; }
.field.has-error .field__error { display: flex; }
.input, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #8a92a3; }
.input:hover, .textarea:hover { border-color: #b9ad98; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(47, 100, 214, .15); }
.field.has-error .input, .field.has-error .textarea, .input[aria-invalid="true"] { border-color: var(--danger); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(160, 47, 38, .14); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group__prefix, .input-group__suffix { position: absolute; color: var(--muted); font-weight: 550; pointer-events: none; }
.input-group__prefix { left: 14px; }
.input-group__suffix { right: 14px; font-size: .85rem; }
.input-group .input--prefixed { padding-left: 30px; }
.input-group .input--suffixed { padding-right: 56px; }
.input-group__btn {
  position: absolute; right: 6px; display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
}
.input-group__btn:hover { color: var(--ink); background: var(--paper-2); }
.input-group__btn .icon { width: 19px; height: 19px; }
.input-group__btn .icon--hide { display: none; }
.input-group__btn[aria-pressed="true"] .icon--show { display: none; }
.input-group__btn[aria-pressed="true"] .icon--hide { display: block; }
.input--amount { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.form-error-summary { display: none; }
.form-error-summary.is-visible { display: flex; }
.checklist { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist .icon { width: 16px; height: 16px; color: var(--line-strong); }
.checklist li.is-met { color: var(--success); }
.checklist li.is-met .icon { color: var(--success); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* 8. Alerts ----------------------------------------------------------------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 24px;
}
.alert p { margin: 0; }
.alert__icon { width: 22px; height: 22px; margin-top: 1px; }
.alert__title { font-weight: 650; }
.alert__text { font-size: .95rem; }
.alert--success { background: var(--success-soft); border-color: #b9d9c4; color: #174a2c; }
.alert--success .alert__icon { color: var(--success); }
.alert--error { background: #fbeceb; border-color: #efc2be; color: #6e1d17; }
.alert--error .alert__icon { color: var(--danger); }
.alert--info { background: #eef3fb; border-color: #cfdcf2; color: var(--ink-2); }
.alert--info .alert__icon { color: var(--ink-3); }

/* 9. Cards & shared sections ----------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 36px);
}
.card--raised { box-shadow: var(--shadow); }
.card__title { font-size: 1.3rem; margin-bottom: 6px; }
.card__sub { color: var(--muted); margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 650; letter-spacing: .03em; background: var(--sky); color: var(--ink-2);
}
.badge--per { background: #e7f0e3; color: #2e5426; }
.badge--non { background: #f6e7ef; color: #6e2448; }
.badge--count { background: var(--paper-2); color: var(--ink); min-width: 28px; justify-content: center; }

.page-hero { background: var(--ink); color: #dfe5f1; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 132, 67, .22), transparent); pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.page-hero p { max-width: 640px; color: #c8d1e3; font-size: 1.08rem; margin: 0; }
.page-hero .eyebrow { color: #e3c48f; }
.page-hero .text-link { color: #fff; }
.page-body { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }

.split { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.info-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brass-soft); color: var(--brass-ink); }
.info-list__icon .icon { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--ink); }
.info-list p { margin: 0; color: var(--muted); }
.info-list a { font-weight: 600; }

/* 10. Home ------------------------------------------------------------------ */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(176, 132, 67, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31, 47, 82, .07), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 112px); }
@media (min-width: 960px) { .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--brass-ink); font-weight: 500; }
.hero__lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; padding: 0; color: var(--ink-2); font-size: .93rem; font-weight: 550; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: var(--brass-ink); width: 18px; height: 18px; }
.hero__media { position: relative; }
.hero__photo {
  border-radius: 28px 28px 28px 120px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4; background: var(--paper-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 85%; }
.hero__badge {
  position: absolute; left: clamp(-28px, -2vw, -8px); top: 28px;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.hero__badge-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; }
.hero__badge strong { display: block; font-family: var(--font-serif); color: var(--ink); font-size: 1.08rem; line-height: 1.2; }
.hero__badge-text { font-size: .85rem; color: var(--muted); }
@media (max-width: 959px) { .hero__badge { left: 12px; top: 12px; } }

/* "How can we help" task launcher: the shortcut into everything clients do */
.launcher { position: relative; z-index: 2; margin-top: clamp(-72px, -6vw, -40px); }
.launcher__panel { background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 30px); color: #dfe5f1; }
.launcher__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.launcher__head h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0; }
.launcher__head p { margin: 0; color: #aeb9cf; font-size: .95rem; }
.launcher__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; }
.task {
  display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 12px; height: 100%;
  padding: 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; text-decoration: none; transition: background-color .18s, border-color .18s, transform .18s;
}
.task:hover { background: rgba(255, 255, 255, .12); border-color: rgba(227, 196, 143, .55); color: #fff; transform: translateY(-2px); }
.task__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(176, 132, 67, .2); color: #f0d4a3; }
.task__icon .icon { width: 22px; height: 22px; }
.task__title { display: block; font-weight: 650; line-height: 1.3; }
.task__desc { display: block; color: #aeb9cf; font-size: .86rem; line-height: 1.4; margin-top: 2px; }
.task__arrow { width: 18px; height: 18px; color: #e3c48f; transition: transform .18s; }
.task:hover .task__arrow { transform: translateX(3px); }

.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: #f0d4a3; margin-bottom: 22px; }
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service p { color: var(--muted); margin: 0; }
.service__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-serif); font-size: .95rem; color: #7a6d57; font-weight: 600; }

.audience { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; list-style: none; padding: 0; margin-top: clamp(28px, 4vw, 44px); }
.audience__label { width: 100%; text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.audience li:not(.audience__label) {
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 550; color: var(--ink-2); font-size: .93rem;
}

.team-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.profile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.profile__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile__avatar {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(145deg, var(--ink-3), var(--ink)); color: #f0d4a3;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 0 0 4px var(--brass-soft);
}
.profile h3 { margin: 0 0 2px; font-size: 1.3rem; }
.profile__role { margin: 0; font-size: .88rem; font-weight: 600; color: var(--brass-ink); letter-spacing: .02em; }
.profile__body p { color: var(--muted); font-size: .97rem; }
.profile__body p:last-child { margin-bottom: 0; }
.profile--lead { border-top: 4px solid var(--brass); }

.quotes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 32px 30px 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.quote__mark { width: 34px; height: 34px; color: var(--brass); margin-bottom: 18px; }
.quote blockquote { margin: 0 0 24px; flex: 1; }
.quote blockquote p { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.6; color: #eef1f8; margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.quote__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(176, 132, 67, .25); color: #f0d4a3; font-weight: 650; font-size: .9rem; flex: none; }
.quote cite { display: block; font-style: normal; font-weight: 650; color: #fff; }
.quote__org { display: block; font-size: .87rem; color: #aeb9cf; }
.quote__org strong { color: #d7deea; font-weight: 600; }

.offices { display: grid; gap: 20px; grid-template-columns: 1fr; }
/* Phones: full-bleed photo with a strong navy fade behind the text. */
.office { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 280px; display: flex; align-items: flex-end; color: #fff; background: var(--ink); isolation: isolate; box-shadow: var(--shadow); }
.office img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.office:hover img { transform: scale(1.04); }
.office::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 33, 61, 0) 0%, rgba(20, 33, 61, .30) 28%, rgba(20, 33, 61, .82) 58%, rgba(20, 33, 61, .95) 100%); }
.office__body { padding: 28px; width: 100%; }
/* Wider screens: split card, photo on top and text on a solid navy panel. */
@media (min-width: 720px) {
  .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office { flex-direction: column; align-items: stretch; min-height: 0; }
  .office img { position: static; display: block; height: 210px; z-index: auto; }
  .office::before { display: none; }
  .office__body { position: relative; flex: 1; background: var(--ink); padding: 24px 28px 28px; }
}
.office__label { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #f0d4a3; margin-bottom: 6px; }
.office h3 { color: #fff; margin-bottom: 6px; }
.office address { color: #e3e8f2; margin-bottom: 14px; }
.office a { color: #fff; }

.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #dfe5f1; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(176, 132, 67, .35), transparent 70%); }
.cta-band__inner { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c8d1e3; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .text-link { color: #fff; }

/* 11. Auth pages (login, password reset) ------------------------------------ */
.auth { display: grid; min-height: calc(100vh - var(--header-h) - 38px); }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.auth__aside {
  position: relative; overflow: hidden; background: var(--ink); color: #dfe5f1;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center;
}
.auth__aside::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(227, 196, 143, .25); box-shadow: 0 0 0 60px rgba(227, 196, 143, .04), 0 0 0 120px rgba(227, 196, 143, .03);
}
.auth__aside h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.auth__aside > p { color: #c8d1e3; font-size: 1.05rem; max-width: 440px; }
.auth__features { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 16px; max-width: 440px; }
.auth__features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; color: #e3e8f2; }
.auth__features span.auth__ficon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(176, 132, 67, .2); color: #f0d4a3; }
.auth__features .icon { width: 19px; height: 19px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 80px) var(--gutter); }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h2 { font-size: 1.85rem; margin-bottom: 6px; }
.auth__card .card__sub { margin-bottom: 28px; }
.auth__alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.auth__email { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); font-weight: 600; color: var(--ink); word-break: break-all; }
.auth__email .icon { color: var(--brass-ink); }
.state { text-align: center; }
.state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: var(--paper-2); color: var(--ink-3); }
.state__icon .icon { width: 28px; height: 28px; }
.state__icon--warn { background: #fbeceb; color: var(--danger); }
.state p { color: var(--muted); }
@media (max-width: 959px) {
  .auth__aside { padding-block: 28px; }
  .auth__aside h1 { font-size: 1.6rem; margin-bottom: 6px; }
  .auth__aside > p { font-size: .98rem; margin: 0; }
  .auth__features { display: none; }
}

/* 12. Portal ---------------------------------------------------------------- */
.portal-hero { background: var(--ink); color: #dfe5f1; }
.portal-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-top: clamp(28px, 4vw, 44px); }
.portal-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 4px; }
.portal-hero p { margin: 0; color: #aeb9cf; }
.portal-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 4px; }
.portal-tabs { display: flex; gap: 6px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; }
.portal-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px 12px 0 0;
  color: #c8d1e3; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.portal-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.portal-tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.portal-tabs .icon { width: 18px; height: 18px; }
.portal-body { padding-block: clamp(24px, 4vw, 40px) var(--section-y); }
.portal-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .portal-layout { grid-template-columns: 340px minmax(0, 1fr); } }
.portal-side { display: grid; gap: 24px; }
@media (min-width: 980px) { .portal-side { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 979px) {
  /* Phones and tablets: groups, then the file list, then the upload card. */
  .portal-side { display: contents; }
  .portal-groups { order: 1; }
  .portal-files { order: 2; }
  .portal-upload { order: 3; }
}
@media (max-width: 600px) {
  .portal-tabs { gap: 2px; margin-top: 20px; }
  .portal-tabs a { padding: 11px 12px; font-size: .9rem; gap: 6px; }
  .portal-tabs .icon { display: none; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel__title { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.panel__title--lg { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.panel__body { padding: 22px; }

.groups { list-style: none; padding: 8px; display: grid; gap: 4px; }
.group {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.group:hover { background: var(--paper); color: var(--ink); }
.group[aria-current="true"] { background: #eef3fb; border-color: #cfdcf2; }
.group__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); color: var(--ink-3); }
.group[aria-current="true"] .group__icon { background: var(--ink); color: #f0d4a3; }
.group__icon .icon { width: 20px; height: 20px; }
.group__name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.group__meta { display: block; margin-top: 4px; }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 26px 18px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--paper);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--brass); background: var(--brass-soft); }
.dropzone:focus-within { border-color: var(--focus); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--brass-ink); box-shadow: var(--shadow-sm); }
.dropzone__icon .icon { width: 24px; height: 24px; }
.dropzone__title { font-weight: 650; color: var(--ink); margin: 0; }
.dropzone__browse { color: var(--brass-ink); text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: .84rem; color: var(--muted); margin: 0; }
.dropzone__file { display: none; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: left; position: relative; z-index: 1; }
.dropzone.has-file .dropzone__file { display: flex; }
.dropzone__file .icon { color: var(--ink-3); }
.dropzone__fname { font-weight: 600; font-size: .9rem; color: var(--ink); overflow-wrap: anywhere; }
.dropzone__fsize { font-size: .8rem; color: var(--muted); }
.upload-note { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.upload-note .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brass-ink); }

.files-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 220px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search .input { padding: 10px 12px 10px 38px; font-size: .95rem; }
.select {
  appearance: none; padding: 10px 36px 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23576072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.select:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(47, 100, 214, .15); }
.files { list-style: none; padding: 0; }
.file {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.file:last-child { border-bottom: 0; }
.file:hover { background: #fcfbf8; }
.file__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #eef3fb; color: var(--ink-3); }
.file__icon--file-spreadsheet { background: #e7f0e3; color: #2e5426; }
.file__icon--file-image { background: #f6e7ef; color: #6e2448; }
.file__icon--file-text { background: #f8ecdf; color: #8a4b17; }
.file__icon .icon { width: 21px; height: 21px; }
.file__name { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; text-decoration: none; }
a.file__name:hover { color: var(--brass-ink); text-decoration: underline; }
.file__meta { display: block; margin-top: 3px; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.file__meta span + span::before { content: "\00b7"; margin: 0 8px; }
.files-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 22px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: #fcfbf8; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 56px 24px; color: var(--muted); }
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); margin-bottom: 8px; }
.empty__icon .icon { width: 26px; height: 26px; }
.empty__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0; }
.empty p { margin: 0; max-width: 360px; }
@media (max-width: 600px) {
  .file { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
  .file .btn { grid-column: 2; justify-self: start; }
  .file__icon { width: 40px; height: 40px; }
  .panel__head, .panel__body { padding: 16px; }
}

.profile-layout { display: grid; gap: 24px; align-items: start; max-width: 980px; }
@media (min-width: 900px) { .profile-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.tips { list-style: none; padding: 0; display: grid; gap: 14px; font-size: .94rem; color: var(--muted); }
.tips li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.tips .icon { width: 18px; height: 18px; color: var(--brass-ink); margin-top: 3px; }

/* 13. Payment --------------------------------------------------------------- */
.pay-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .pay-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; }
.fieldset + .fieldset { margin-top: 8px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--line); }
.fieldset + .fieldset > .fieldset__legend { float: left; width: 100%; margin-bottom: 20px; }
.fieldset + .fieldset > .fieldset__legend + * { clear: both; }
.fieldset__legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 4px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.fieldset__step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-sans); font-size: .85rem; font-weight: 700; }
.card-element { padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; min-height: 50px; }
.card-element.StripeElement--focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(47, 100, 214, .15); }
.card-element.StripeElement--invalid { border-color: var(--danger); }
.card-errors { min-height: 1.2em; margin: 0; font-size: .88rem; color: var(--danger); }
.pay-review { display: none; border: 1px solid #cfdcf2; background: #f4f7fd; border-radius: 14px; padding: 18px; }
.pay-review.is-visible { display: block; }
.pay-review__title { font-weight: 700; color: var(--ink); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.pay-review dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: .95rem; }
.pay-review dt { color: var(--muted); }
.pay-review dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pay-review__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-legal { font-size: .84rem; color: var(--muted); margin: 0; }
.summary { position: relative; overflow: hidden; background: var(--ink); color: #dfe5f1; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.summary h2 { color: #fff; font-size: 1.35rem; }
.summary__amount { font-family: var(--font-serif); font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); color: #fff; font-weight: 600; margin: 4px 0 18px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.summary__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #e3c48f; font-weight: 650; margin: 0; }
.summary ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 12px; font-size: .93rem; }
.summary li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.summary a { color: #fff; }
.summary .icon { width: 18px; height: 18px; color: #e3c48f; margin-top: 3px; }

/* 14. Prose (privacy policy, about) ---------------------------------------- */
.prose { font-size: 1.04rem; color: #2b3344; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brass); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose .callout { padding: 18px 20px; border-left: 4px solid var(--brass); background: var(--brass-soft); border-radius: 0 12px 12px 0; }
.toc { list-style: none; padding: 0; display: grid; gap: 4px; font-size: .93rem; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); background: var(--paper-2); border-left-color: var(--brass); }
.doc-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 260px minmax(0, 1fr); } .doc-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* 15. Footer ---------------------------------------------------------------- */
.site-footer { flex: none; background: #101a31; color: #b5bfd3; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 72px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer__brand img { width: 140px; height: auto; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; color: #c8d1e3; }
.site-footer__heading { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e3c48f; margin-bottom: 18px; }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #dfe5f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.contact-list .icon { width: 18px; height: 18px; color: var(--brass); margin-top: 3px; }
.contact-list strong { color: #fff; font-weight: 600; }
.contact-list__strong { font-weight: 700; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; font-size: .86rem; text-align: center; }
.site-footer__legal p { margin: 0; }
.site-footer__legal strong { color: #dfe5f1; font-weight: 600; }

/* 16. Utilities ------------------------------------------------------------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* 17. Motion ---------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Print: clean document output for policies and file lists */
@media print {
  .topbar, .site-header, .site-footer, .launcher, .nav-actions, .btn, .portal-tabs, .dropzone { display: none !important; }
  body { background: #fff; }
  .page-hero, .portal-hero { background: #fff; color: #000; }
  .page-hero h1, .portal-hero h1 { color: #000; }
}
