/* RefundClaimers — design system */

:root {
  /* colour — warm neutrals, deep navy, restrained green */
  --c-bg: #f6f5f1;
  --c-surface: #ffffff;
  --c-surface-muted: #faf9f6;
  --c-navy-900: #0a1d35;
  --c-navy-800: #0d2747;
  --c-navy-700: #173b68;
  --c-navy-100: #e9eef6;
  --c-text: #142033;
  --c-text-secondary: #485366;
  --c-text-muted: #5f6878;
  --c-border: #e4e1d9;
  --c-border-strong: #cdc9be;
  --c-primary: #0d2747;
  --c-primary-hover: #173b68;
  --c-accent: #13795b;
  --c-positive: #12704f;
  --c-positive-bg: #e8f3ed;
  --c-negative: #b3261e;
  --c-negative-bg: #fcebe9;
  --c-warning-bg: #fdf5e2;
  --c-info-bg: #edf2f9;
  --c-focus: #2f6fd6;

  /* type */
  --font-sans: "Inter", "SF Pro Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2.25rem;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;

  /* shape */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 51, 0.05);
  --shadow-md: 0 1px 2px rgba(20, 32, 51, 0.06), 0 6px 18px rgba(20, 32, 51, 0.06);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.22);
  --focus-ring: 0 0 0 3px rgba(47, 111, 214, 0.35);

  --content-max: 1180px;
  --sidebar-w: 248px;

  /* chart marks (validated pair: chroma, CVD and contrast checks) */
  --chart-1: #2f5d9a;
  --chart-pos: #0e8a5f;
  --chart-neg: #c2321f;
  --chart-grid: #e7ebf1;
}

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

/* The hidden attribute must win over component display rules (e.g. .btn). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hover); }
img, svg { flex-shrink: 0; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  background: var(--c-surface); color: var(--c-text);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
  z-index: 100; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--sp-3); }

.mono, .num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.95em; }
.muted { color: var(--c-text-muted); }
.small { font-size: var(--fs-sm); }
.strong { font-weight: 600; }

/* ---- app shell: top bar + sidebar ---------------------------------------- */

.topbar {
  background: var(--c-navy-800); color: #fff;
  border-bottom: 1px solid var(--c-navy-900);
  position: sticky; top: 0; z-index: 50;
}
.topbar__inner { padding: 0 var(--sp-5); min-height: 60px; display: flex; align-items: center; gap: var(--sp-4); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--sp-2); color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand__name { font-size: var(--fs-lg); }
.brand__tag {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 999px;
}
.account-menu { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.account-menu__avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-navy-700); font-weight: 600; font-size: var(--fs-sm); border: 1px solid rgba(255,255,255,0.18);
}
.account-menu__name { display: flex; flex-direction: column; line-height: 1.2; font-size: var(--fs-sm); font-weight: 600; }
.account-menu__name small { font-weight: 400; color: rgba(255,255,255,0.65); font-size: var(--fs-xs); }
.account-menu__logout { margin: 0; }

.nav-toggle {
  display: none; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm);
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle--dark { color: var(--c-text); border-color: var(--c-border-strong); margin-left: auto; }

.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - 60px); }
/* Paint the sidebar column full height, even when the page is taller than the sticky sidebar. */
.shell { background: linear-gradient(to right, var(--c-surface) calc(var(--sidebar-w) - 1px), var(--c-border) calc(var(--sidebar-w) - 1px), var(--c-border) var(--sidebar-w), transparent var(--sidebar-w)); }
.sidebar {
  background: var(--c-surface); border-right: 1px solid var(--c-border);
  padding: var(--sp-5) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-1);
  position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto;
}
.sidebar__heading {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-text-muted); padding: var(--sp-3) var(--sp-3) var(--sp-1);
}
.sidebar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3); padding: 9px var(--sp-3);
  border-radius: var(--radius-md); color: var(--c-text-secondary); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
}
.sidebar__link:hover { background: var(--c-surface-muted); color: var(--c-text); }
.sidebar__link[aria-current="page"] { background: var(--c-navy-100); color: var(--c-navy-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--c-primary); }
.sidebar__link .icon { color: currentColor; opacity: 0.85; }
.sidebar__badge {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--c-negative); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-align: center;
}
.sidebar__note {
  margin-top: auto; display: flex; gap: var(--sp-2); align-items: flex-start;
  font-size: var(--fs-xs); color: var(--c-text-muted); background: var(--c-surface-muted);
  border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-3);
}
.icon { vertical-align: middle; flex-shrink: 0; }
.hide-sm { display: inline; }

/* ---- layout ------------------------------------------------------------- */

.page {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.page:focus { outline: none; }
.narrow { max-width: 560px; width: 100%; margin: var(--sp-6) auto 0; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.eyebrow {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-text-muted); font-weight: 600; margin-bottom: var(--sp-1);
}
.page-title {
  font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; overflow-wrap: anywhere;
}
.section-title { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }

.grid { display: grid; gap: var(--sp-5); }
.grid--overview { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--support { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; font-size: var(--fs-sm); }
.breadcrumbs li + li::before { content: "/"; color: var(--c-text-muted); margin-right: var(--sp-2); }
.breadcrumbs [aria-current] { color: var(--c-text-secondary); }

/* ---- cards ---------------------------------------------------------------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card--padded { padding: var(--sp-5); }
.card__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.card__header--toolbar { align-items: center; flex-wrap: wrap; }
.card__header .muted { margin-top: var(--sp-1); }

.balance-card {
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-navy-800);
  color: #fff; border-color: var(--c-navy-900);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.balance-card__label { font-size: var(--fs-sm); font-weight: 500; color: rgba(255,255,255,0.75); }
.balance-card__amount {
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 650; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere;
}
.balance-card__meta { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); }
.balance-card__note { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); margin-top: auto; padding-top: var(--sp-3); }
.balance-card .button-row { margin-top: auto; padding-top: var(--sp-4); }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-4); }
.details dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-muted); font-weight: 600; }
.details dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.stat { padding: var(--sp-4) var(--sp-5); }
.stat__label { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-secondary); }
.stat__value { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; margin-top: var(--sp-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 2px; }
.stats__error { grid-column: 1 / -1; }

.skeleton {
  display: inline-block; width: 5ch; height: 1em; border-radius: 4px;
  background: linear-gradient(90deg, #eceff4, #f6f8fb, #eceff4);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear; vertical-align: middle;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- buttons ---------------------------------------------------------------- */

.btn {
  --btn-bg: var(--c-surface); --btn-fg: var(--c-text); --btn-bd: var(--c-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 40px; padding: 0 var(--sp-4);
  border-radius: var(--radius-md); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: var(--btn-fg); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-bd: var(--c-primary); }
.btn--primary:hover:not(:disabled) { --btn-bg: var(--c-primary-hover); }
.btn--secondary:hover:not(:disabled) { --btn-bg: var(--c-surface-muted); --btn-bd: var(--c-text-muted); }
.btn--danger { --btn-bg: var(--c-negative); --btn-fg: #fff; --btn-bd: var(--c-negative); }
.btn--danger:hover:not(:disabled) { --btn-bg: #951f17; }
.btn--danger-outline { --btn-fg: var(--c-negative); --btn-bd: #e9b3ae; }
.btn--danger-outline:hover:not(:disabled) { --btn-bg: var(--c-negative-bg); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-navy-800); --btn-bd: #fff; }
.btn--light:hover:not(:disabled) { --btn-bg: var(--c-navy-100); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.3); }
.btn--ghost-light:hover:not(:disabled) { --btn-bg: rgba(255,255,255,0.1); }
.btn--sm { min-height: 34px; padding: 0 var(--sp-3); }
.btn--xs { min-height: 30px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--c-text-secondary); cursor: pointer;
}
.icon-btn:hover { background: var(--c-surface-muted); color: var(--c-text); }

.button-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.button-row--top { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }

.spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.is-busy .spinner { display: inline-block; }
.spinner--lg { display: inline-block; width: 24px; height: 24px; color: var(--c-primary); border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- forms ------------------------------------------------------------------ */

.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.form .field { margin-bottom: 0; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }
.field__error { font-size: var(--fs-sm); color: var(--c-negative); font-weight: 500; }
.field__error::before { content: "⚠ "; }

.input {
  width: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3);
  font: inherit; font-size: var(--fs-md); color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8b96a8; }
.input:hover { border-color: var(--c-text-muted); }
.input:focus { outline: none; border-color: var(--c-focus); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--c-negative); }

.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group__btn {
  min-width: 64px; border: 1px solid var(--c-border-strong); border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--c-surface-muted); color: var(--c-text-secondary);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.input-group__btn:hover { color: var(--c-text); }
.input-group__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.input-affix { position: relative; }
.input-affix__prefix { position: absolute; left: var(--sp-3); top: 50%; transform: translateY(-50%); color: var(--c-text-muted); }
.input-affix .input { padding-left: 1.75rem; }

.segmented { border: 0; padding: 0; margin: 0 0 var(--sp-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.segmented legend { margin-bottom: var(--sp-2); }
.segmented__option { position: relative; }
.segmented__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: var(--sp-2); border: 1px solid var(--c-border-strong); border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-secondary); background: var(--c-surface);
}
.segmented__option input:checked + span { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-navy-100); box-shadow: inset 0 0 0 1px var(--c-primary); }
.segmented__option input:focus-visible + span { box-shadow: var(--focus-ring); }

.search { position: relative; width: min(320px, 100%); }
.search__icon { position: absolute; left: var(--sp-3); top: 50%; transform: translateY(-50%); color: var(--c-text-muted); pointer-events: none; }
.search__input { padding-left: 2.25rem; min-height: 40px; }

/* ---- alerts, badges, chips -------------------------------------------------- */

.alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert--error { background: var(--c-negative-bg); color: #8a1c14; border-color: #f3c3be; }
.alert--success { background: var(--c-positive-bg); color: #0d5443; border-color: #b8e2d2; }
.alert--info { background: var(--c-info-bg); color: var(--c-navy-700); border-color: #c9d9f1; }
.dialog .alert { margin-top: var(--sp-4); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active { background: var(--c-positive-bg); color: var(--c-positive); border-color: #bfe3d4; }
.badge--inactive { background: #f0f2f5; color: #535f73; border-color: var(--c-border-strong); }
.badge--role { background: var(--c-navy-100); color: var(--c-navy-700); border-color: #cbd7ea; margin-left: var(--sp-2); }
.badge--role::before { display: none; }

.chip { display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 600; background: var(--c-surface-muted); border: 1px solid var(--c-border); color: var(--c-text-secondary); white-space: nowrap; }
.chip--set { background: var(--c-info-bg); color: var(--c-navy-700); border-color: #cfdcf0; }

.amount { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount__icon { font-size: 0.65em; }
.amount--pos { color: var(--c-positive); }
.amount--neg { color: var(--c-negative); }
.amount--zero { color: var(--c-text-muted); }

/* ---- tables ----------------------------------------------------------------- */

.table-wrap { overflow-x: auto; transition: opacity .15s; }
.is-loading .table-wrap { opacity: 0.55; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-text-muted); background: var(--c-surface-muted);
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); white-space: nowrap;
}
.table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .reason { max-width: 280px; overflow-wrap: anywhere; color: var(--c-text-secondary); }
.table tr.is-muted td { color: var(--c-text-muted); }
.table tr.is-new { background: var(--c-positive-bg); }
.strong-link { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.strong-link:hover { text-decoration: underline; }
.row-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; }
.actions-cell { text-align: right; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-border);
}
.pager__summary { font-size: var(--fs-sm); color: var(--c-text-muted); padding: var(--sp-3) var(--sp-4); }
.pager .pager__summary { padding: 0; }
.pager__buttons { display: flex; align-items: center; gap: var(--sp-3); }
.pager__page { font-size: var(--fs-sm); color: var(--c-text-secondary); }

/* loading / empty / error */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-7) var(--sp-5); }
.state__title { font-weight: 600; }
.state__text { font-size: var(--fs-sm); color: var(--c-text-muted); max-width: 42ch; }
.state--error .state__title { color: var(--c-negative); }
.state .btn { margin-top: var(--sp-2); }

/* ---- dialogs ---------------------------------------------------------------- */

.dialog {
  width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--c-text); background: var(--c-surface);
}
.dialog--sm { width: min(440px, calc(100vw - 2rem)); }
.dialog::backdrop { background: rgba(11, 31, 58, 0.5); }
.dialog__body { padding: var(--sp-5); margin: 0; }
.dialog__header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.dialog__title { font-size: var(--fs-lg); font-weight: 650; }
.dialog__footer { display: flex; justify-content: flex-end; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }

.summary-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--c-surface-muted); border: 1px solid var(--c-border); border-radius: var(--radius-md); margin-bottom: var(--sp-4); }
.summary-strip > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.summary-strip__label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.review { margin-top: var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; }
.review > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); }
.review > div:last-child { border-bottom: 0; }
.review dt { color: var(--c-text-secondary); font-size: var(--fs-sm); }
.review dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.review__total { background: var(--c-navy-100); }
.review__total dd { font-size: var(--fs-lg); }

.secret { margin-top: var(--sp-4); }
.secret__row { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-2) 0; }
.secret__value {
  flex: 1; min-width: 0; padding: var(--sp-3); border-radius: var(--radius-md);
  background: var(--c-surface-muted); border: 1px dashed var(--c-border-strong);
  font-family: var(--font-mono); font-size: var(--fs-lg); letter-spacing: 0.04em; overflow-wrap: anywhere;
}

/* ---- toasts ----------------------------------------------------------------- */

.toast-region {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 1000;
  display: flex; flex-direction: column; gap: var(--sp-2); width: min(400px, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md);
  background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
  box-shadow: var(--shadow-md); font-size: var(--fs-sm); animation: toast-in .2s ease-out;
}
.toast--success { border-left-color: var(--c-positive); }
.toast--error { border-left-color: var(--c-negative); }
.toast__text { flex: 1; }
.toast__close { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--c-text-muted); padding: 0 2px; }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- auth ------------------------------------------------------------------- */

.auth-bg { background: radial-gradient(1200px 600px at 50% -10%, #e3eaf5, var(--c-bg)); }
.auth { display: grid; place-items: center; padding: var(--sp-7) var(--sp-4); min-height: calc(100vh - 360px); }
.auth__panel { width: min(440px, 100%); }
.auth__panel--wide { width: min(560px, 100%); }
.auth__card { padding: var(--sp-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--sp-4); }
.auth__title { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em; }
.auth__subtitle { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: calc(var(--sp-2) * -1); }
.auth__switch { text-align: center; font-size: var(--fs-sm); color: var(--c-text-secondary); padding-top: var(--sp-2); border-top: 1px solid var(--c-border); }

.error-page__code { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); margin-bottom: var(--sp-2); text-transform: uppercase; letter-spacing: 0.06em; }
.error-page .section-title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.error-page .button-row { margin-top: var(--sp-5); }

/* ---- public website ---------------------------------------------------------- */

.site-body { background: var(--c-surface); }
.site-container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-5); }
.site-main:focus { outline: none; }
.site-notice {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--c-navy-800); color: #fff; font-size: var(--fs-sm); padding: var(--sp-2) var(--sp-4); text-align: center;
}
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--c-border); backdrop-filter: saturate(1.4) blur(6px); }
.site-header__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-5); min-height: 68px; display: flex; align-items: center; gap: var(--sp-5); position: relative; }
.site-brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-lg); color: var(--c-navy-800); text-decoration: none; letter-spacing: -0.02em; }
.site-brand img { border-radius: 7px; }
.site-brand--light { color: #fff; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.site-nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); }
.site-nav__links a { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); color: var(--c-text-secondary); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.site-nav__links a:hover { color: var(--c-text); background: var(--c-surface-muted); }
.site-nav__links a[aria-current="page"] { color: var(--c-navy-800); background: var(--c-navy-100); }
.site-nav__actions { display: flex; gap: var(--sp-2); align-items: center; }

.site-section { padding: 72px 0; }
.site-section--tinted { background: var(--c-bg); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section-head { max-width: 680px; margin-bottom: var(--sp-6); }
.section-head__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: var(--sp-3); }
.section-head__lead { color: var(--c-text-secondary); font-size: var(--fs-lg); }

.hero { background: radial-gradient(900px 480px at 85% 0%, #e2ebf8 0%, rgba(226,235,248,0) 70%), linear-gradient(180deg, #f7f9fc, #fff); padding: 72px 0 80px; border-bottom: 1px solid var(--c-border); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-7); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--c-navy-700); background: var(--c-navy-100); border-radius: 999px; padding: 4px 12px; margin-bottom: var(--sp-4); }
.hero__title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; color: var(--c-navy-900); }
.hero__lead { margin-top: var(--sp-4); font-size: 1.15rem; color: var(--c-text-secondary); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__points { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--c-text-secondary); }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--c-positive); }

.mock { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: 0 24px 60px rgba(11,31,58,0.16); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--c-surface-muted); border-bottom: 1px solid var(--c-border); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe5; }
.mock__bar em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); color: var(--c-text-muted); }
.mock__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.mock__balance { background: linear-gradient(160deg, var(--c-navy-800), var(--c-navy-700)); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-5); }
.mock__balance p { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); }
.mock__balance strong { display: block; font-size: 2rem; letter-spacing: -0.02em; }
.mock__balance small { color: rgba(255,255,255,0.6); font-size: var(--fs-xs); }
.mock__chart { width: 100%; height: 90px; }
.mock__area { fill: var(--chart-1); opacity: 0.1; }
.mock__line { fill: none; stroke: var(--chart-1); stroke-width: 2.5; stroke-linejoin: round; }
.mock__rows { list-style: none; margin: 0; padding: 0; }
.mock__rows li { display: flex; justify-content: space-between; padding: var(--sp-2) 0; border-top: 1px solid var(--c-border); font-size: var(--fs-sm); }
.mock__rows .pos { color: var(--c-positive); }
.mock__rows .neg { color: var(--c-negative); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.feature { padding: var(--sp-5); border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-navy-100); color: var(--c-navy-700); margin-bottom: var(--sp-4); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--c-text-secondary); font-size: var(--fs-sm); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.step { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.step__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; margin-bottom: var(--sp-3); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--c-text-secondary); font-size: var(--fs-sm); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-7); align-items: center; }
.split--top { align-items: start; }
.checklist { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
.checklist li { display: flex; gap: var(--sp-2); align-items: center; }
.checklist .icon { color: var(--c-positive); }
.quote-card { background: var(--c-info-bg); border: 1px solid #cfdcf0; border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); color: var(--c-navy-800); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.cta-band { background: var(--c-navy-800); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.cta-band h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: var(--sp-1); }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.page-hero { background: linear-gradient(180deg, #f3f6fb, #fff); border-bottom: 1px solid var(--c-border); padding: 56px 0 48px; }
.page-hero__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; color: var(--c-navy-900); max-width: 24ch; }
.page-hero__lead { margin-top: var(--sp-3); color: var(--c-text-secondary); font-size: var(--fs-lg); max-width: 62ch; }

.prose { color: var(--c-text-secondary); line-height: 1.7; }
.prose h2 { color: var(--c-text); font-size: 1.25rem; margin: var(--sp-6) 0 var(--sp-2); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; display: grid; gap: var(--sp-2); }
.prose--narrow { max-width: 760px; }
.info-stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.info-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--c-surface); }
.info-card h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); margin-bottom: var(--sp-2); color: var(--c-navy-800); }
.info-card p { font-size: var(--fs-sm); color: var(--c-text-secondary); margin-bottom: var(--sp-3); }
.info-card--accent { background: var(--c-info-bg); border-color: #cfdcf0; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag-list li { font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--c-surface-muted); border: 1px solid var(--c-border); color: var(--c-text-secondary); }
.mini-dl { display: grid; gap: var(--sp-3); }
.mini-dl dt { font-weight: 600; font-size: var(--fs-sm); color: var(--c-text); }
.mini-dl dd { font-size: var(--fs-sm); color: var(--c-text-secondary); }

.faq { max-width: 820px; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.faq__item summary { cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-5); font-weight: 600; display: flex; justify-content: space-between; gap: var(--sp-4); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--c-text-muted); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 var(--sp-5) var(--sp-4); color: var(--c-text-secondary); }
.faq__more { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.faq__help { margin-top: var(--sp-5); padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq__help h2 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.faq__help p { color: var(--c-text-secondary); margin-bottom: var(--sp-4); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { min-height: 40px; width: auto; padding-right: var(--sp-6); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-4); }
.success-state__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-positive-bg); color: var(--c-positive); }
.success-state p { color: var(--c-text-secondary); max-width: 46ch; }
.checkbox { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-secondary); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); flex-shrink: 0; }
.strength { height: 6px; border-radius: 999px; background: var(--c-surface-muted); border: 1px solid var(--c-border); overflow: hidden; margin-top: var(--sp-2); }
.strength span { display: block; height: 100%; width: 0; background: var(--c-negative); transition: width .2s; }
.strength span[data-level="1"] { width: 25%; background: var(--c-negative); }
.strength span[data-level="2"] { width: 50%; background: #c98a0b; }
.strength span[data-level="3"] { width: 75%; background: var(--chart-pos); }
.strength span[data-level="4"] { width: 100%; background: var(--c-positive); }

.site-footer { background: var(--c-navy-900); color: rgba(255,255,255,0.78); padding-top: 56px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.site-footer__text { font-size: var(--fs-sm); margin: var(--sp-3) 0 var(--sp-4); max-width: 42ch; }
.site-footer__heading { font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.site-footer__links a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--sp-4); padding-bottom: var(--sp-5); font-size: var(--fs-xs); }
.site-footer__bottom p { display: flex; gap: var(--sp-2); align-items: flex-start; }

.btn--lg { min-height: 48px; padding: 0 var(--sp-5); font-size: var(--fs-md); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--c-text-secondary); }
.btn--ghost:hover:not(:disabled) { --btn-bg: var(--c-surface-muted); }
.link-btn { background: none; border: 0; padding: 0; margin-left: var(--sp-2); color: var(--c-negative); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---- dashboard components ------------------------------------------------------ */

.welcome-banner { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.welcome-banner h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.welcome-banner p { color: var(--c-text-secondary); font-size: var(--fs-sm); }

.announcements { display: flex; flex-direction: column; gap: var(--sp-3); }
.announcement { border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); background: var(--c-surface); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); }
.announcement--success { border-left-color: var(--c-positive); background: #f6fbf9; }
.announcement--warning { border-left-color: #c98a0b; background: #fffbf0; }
.announcement__head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-1); }
.announcement__date { margin-left: auto; font-size: var(--fs-xs); color: var(--c-text-muted); }
.announcement p { font-size: var(--fs-sm); color: var(--c-text-secondary); white-space: pre-line; }
.ann-list { list-style: none; margin: 0; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.ann-list .row-actions { margin-top: var(--sp-3); }
.row-actions--start { justify-content: flex-start; }

.balance-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,0.14); }
.balance-card__stats dt { font-size: var(--fs-xs); color: rgba(255,255,255,0.65); }
.balance-card__stats dd { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-card__note { display: flex; gap: 6px; align-items: center; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-5); }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2); border: 1px solid var(--c-border); border-radius: var(--radius-md); text-decoration: none; color: var(--c-text-secondary); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.quick-link:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-surface-muted); }
.details--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--sp-4); }
.details--rows { grid-template-columns: minmax(0, 1fr); }
.details--rows > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border); }
.details--rows dd { text-align: right; margin: 0; }
.section-title .icon { margin-right: 6px; color: var(--c-text-muted); }

/* stats */
.stats--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.stat__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--c-navy-100); color: var(--c-navy-700); }

/* charts */
.chart-box { padding: var(--sp-4) var(--sp-5) var(--sp-4); position: relative; min-height: 120px; }
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--chart-grid); stroke-width: 1; }
.chart-grid line.chart-zero { stroke: #c5cedb; }
.chart-axis { font-size: 11px; fill: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.chart-label { font-size: 12px; font-weight: 600; fill: var(--c-text); font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--chart-1); opacity: 0.1; }
.chart-dot { fill: var(--chart-1); stroke: var(--c-surface); stroke-width: 2; }
.chart-cross { stroke: var(--c-border-strong); stroke-width: 1; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit.is-hover { fill: rgba(23, 58, 102, 0.05); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--c-navy-900); color: #fff; border-radius: var(--radius-sm); padding: 6px 10px; font-size: var(--fs-xs); display: flex; flex-direction: column; white-space: nowrap; box-shadow: var(--shadow-md); }
.chart-tip strong { font-weight: 600; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-text-muted); font-size: var(--fs-sm); pointer-events: none; }
.chart-table { margin-top: var(--sp-2); font-size: var(--fs-sm); }
.chart-table summary { cursor: pointer; color: var(--c-primary); font-weight: 600; font-size: var(--fs-xs); }
.chart-table .table-wrap { max-height: 240px; overflow: auto; margin-top: var(--sp-2); border: 1px solid var(--c-border); border-radius: var(--radius-md); }

.segmented-sm { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: var(--radius-md); overflow: hidden; }
.segmented-sm button { border: 0; background: var(--c-surface); padding: 6px 12px; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-secondary); cursor: pointer; }
.segmented-sm button + button { border-left: 1px solid var(--c-border-strong); }
.segmented-sm button[aria-pressed="true"] { background: var(--c-navy-100); color: var(--c-navy-800); }

/* feeds */
.feed { list-style: none; margin: 0; padding: var(--sp-2) 0; }
.feed__item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); }
.feed__item + .feed__item { border-top: 1px solid var(--c-border); }
.feed__main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.feed__main .strong-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__sub { font-size: var(--fs-xs); color: var(--c-text-muted); }
.feed__empty { display: flex; justify-content: center; padding: var(--sp-6) var(--sp-4); color: var(--c-text-muted); font-size: var(--fs-sm); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-navy-100); color: var(--c-navy-700); font-weight: 700; font-size: var(--fs-sm); flex-shrink: 0; }
.rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-muted); border: 1px solid var(--c-border); font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-secondary); flex-shrink: 0; }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--c-navy-100); overflow: hidden; margin-top: 4px; }
.meter__fill { display: block; height: 100%; width: 0; background: var(--chart-1); border-radius: 999px; }

.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.action-tile { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--radius-md); text-decoration: none; color: var(--c-text); transition: border-color .15s, background-color .15s; }
.action-tile .icon { color: var(--c-primary); margin-bottom: var(--sp-1); }
.action-tile span { font-size: var(--fs-xs); color: var(--c-text-muted); }
.action-tile:hover { border-color: var(--c-primary); background: var(--c-surface-muted); color: var(--c-text); }

/* accounts table extras */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.filters .input { min-height: 38px; font-size: var(--fs-sm); padding-top: 6px; padding-bottom: 6px; }
.filters .search { width: 240px; }
.card__header > a, .card__header > .text-link { white-space: nowrap; flex-shrink: 0; }
.filters__date { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 600; }
.filters__date .input { min-height: 40px; width: auto; }
.search--sm { width: 200px; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); background: var(--c-navy-100); border-bottom: 1px solid #cbd7ea; font-size: var(--fs-sm); }
.select-cell { width: 40px; text-align: center; }
.select-cell input { width: 17px; height: 17px; accent-color: var(--c-primary); }
.cell-stack { display: flex; flex-direction: column; gap: 2px; }
.block { display: block; }
.bulk-results { margin-top: var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); max-height: 200px; overflow: auto; font-size: var(--fs-sm); }
.bulk-results__list { margin: var(--sp-2) 0 0; padding-left: 1.1rem; }
.bulk-results__list .ok { color: var(--c-positive); }
.bulk-results__list .fail { color: var(--c-negative); }
.chip--warn { background: var(--c-warning-bg); color: #7a5300; border-color: #f0d9a6; }

/* notes */
.note-form { display: flex; gap: var(--sp-3); align-items: flex-end; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--c-border); }
.note-form .textarea { min-height: 64px; }
.notes { list-style: none; margin: 0; padding: 0; }
.note { padding: var(--sp-3) var(--sp-5); }
.note + .note { border-top: 1px solid var(--c-border); }
.note__body { white-space: pre-line; overflow-wrap: anywhere; }
.note__meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 2px; }
.notes__empty { padding: var(--sp-4) var(--sp-5); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* messages */
.inbox { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--sp-5); align-items: start; }
.tabs { display: inline-flex; gap: 2px; background: var(--c-surface-muted); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-secondary); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--c-surface); color: var(--c-navy-800); box-shadow: var(--shadow-sm); }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li + li { border-top: 1px solid var(--c-border); }
.msg-row { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: var(--c-surface); border: 0; padding: var(--sp-3) var(--sp-5); font: inherit; cursor: pointer; color: var(--c-text); }
.msg-row:hover { background: var(--c-surface-muted); }
.msg-row.is-active { background: var(--c-navy-100); box-shadow: inset 3px 0 0 var(--c-primary); }
.msg-row.is-unread .msg-row__subject { font-weight: 700; }
.msg-row.is-unread .msg-row__top strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); margin-right: 6px; vertical-align: middle; }
.msg-row__top { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.msg-row__date { margin-left: auto; font-size: var(--fs-xs); color: var(--c-text-muted); white-space: nowrap; }
.msg-row__subject { font-size: var(--fs-sm); }
.msg-row__preview { font-size: var(--fs-xs); color: var(--c-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__detail { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: 76px; }
.msg-detail__head { display: flex; flex-direction: column; gap: var(--sp-1); align-items: flex-start; }
.msg-detail__body { white-space: pre-line; overflow-wrap: anywhere; background: var(--c-surface-muted); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); line-height: 1.6; }
.state__art { color: var(--c-text-muted); }

.thread-list { list-style: none; margin: 0; padding: 0; }
.thread { padding: var(--sp-4) var(--sp-5); }
.thread + .thread { border-top: 1px solid var(--c-border); }
.thread__head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.thread__date { margin-left: auto; font-size: var(--fs-xs); color: var(--c-text-muted); }
.thread__body { margin-top: var(--sp-2); white-space: pre-line; color: var(--c-text-secondary); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.thread__reply { margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--c-info-bg); border-left: 3px solid var(--c-primary); border-radius: var(--radius-sm); font-size: var(--fs-sm); white-space: pre-line; }
.thread__reply-label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-navy-700); margin-bottom: 4px; }

/* settings */
.switch { display: flex; gap: var(--sp-3); align-items: flex-start; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.switch__track { width: 44px; height: 24px; border-radius: 999px; background: var(--c-border-strong); position: relative; flex-shrink: 0; transition: background-color .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--c-positive); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus-ring); }
.switch__text { display: flex; flex-direction: column; gap: 2px; }
.switch__text small { color: var(--c-text-muted); font-size: var(--fs-xs); }
.share-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.share-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--radius-md); }
.share-list__label { font-weight: 600; font-size: var(--fs-sm); }
.share-list__url { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- sign-in / sign-up --------------------------------------------------------- */

.signin { min-height: 100vh; background: var(--c-surface); }
.signin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.signin__brand {
  position: relative; overflow: hidden;
  background: var(--c-navy-800); color: #fff;
  padding: 48px clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-6);
}
.signin__brand::after {
  content: ""; position: absolute; right: -180px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 191, 143, 0.18), rgba(63, 191, 143, 0) 70%); pointer-events: none;
}
.signin__logo, .signin__mobile-logo { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.signin__logo { color: #fff; }
.signin__logo img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.signin__pitch { max-width: 440px; position: relative; z-index: 1; }
.signin__pitch h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; }
.signin__points { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-5); }
.signin__points li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.signin__points .icon { margin-top: 2px; color: #7fd6b3; }
.signin__points strong { display: block; font-size: var(--fs-md); }
.signin__points span { font-size: var(--fs-sm); color: rgba(255,255,255,0.72); }
.signin__points strong + * { display: block; }
.signin__steps { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.signin__steps li { display: flex; align-items: center; gap: var(--sp-3); color: rgba(255,255,255,0.88); }
.signin__steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.12); font-weight: 700; font-size: var(--fs-sm); flex-shrink: 0; }
.signin__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: rgba(255,255,255,0.65); }
.signin__card-art {
  position: relative; z-index: 1; max-width: 360px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: var(--sp-5);
}
.signin__card-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: rgba(255,255,255,0.72); }
.signin__card-art strong { display: block; font-size: 1.9rem; letter-spacing: -0.02em; margin: var(--sp-2) 0 var(--sp-4); }
.signin__bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.signin__bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(127, 214, 179, 0.55); }
.signin__bars i:nth-child(1) { height: 30%; } .signin__bars i:nth-child(2) { height: 45%; }
.signin__bars i:nth-child(3) { height: 38%; } .signin__bars i:nth-child(4) { height: 60%; }
.signin__bars i:nth-child(5) { height: 52%; } .signin__bars i:nth-child(6) { height: 78%; }
.signin__bars i:nth-child(7) { height: 100%; background: #7fd6b3; }

.signin__panel { display: flex; align-items: center; justify-content: center; padding: 48px var(--sp-5); background: var(--c-surface); }
.signin__panel-inner { width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--sp-4); }
.signin__panel-inner--wide { width: min(480px, 100%); }
.signin__mobile-logo { display: none; color: var(--c-navy-800); margin-bottom: var(--sp-4); }
.signin__mobile-logo img { border-radius: 7px; }
.signin__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; color: var(--c-navy-900); }
.signin__subtitle { color: var(--c-text-muted); margin-top: calc(var(--sp-3) * -1); }
.signin__switch { font-size: var(--fs-sm); color: var(--c-text-secondary); text-align: center; padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.signin__switch a, .field__aside { font-weight: 600; }
.signin__foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--c-text-muted); }
.signin__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--c-text-muted); text-decoration: none; }
.signin__foot a .icon { transform: rotate(180deg); }
.signin__foot a:hover { color: var(--c-text); }
.signin .alert--error { display: flex; gap: var(--sp-2); align-items: flex-start; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.field__aside { font-size: var(--fs-xs); text-decoration: none; }
.field__aside:hover { text-decoration: underline; }
.input--lg { min-height: 48px; }
.input-group .input--lg + .input-group__btn { min-width: 72px; }

.demo-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--c-surface-muted); color: var(--c-text-muted); border: 1px solid var(--c-border);
}
.demo-tag--light { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.site-footer .demo-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.18); margin-right: var(--sp-2); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.sidebar__note { align-items: center; flex-wrap: wrap; }

/* ---- responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .signin__grid { grid-template-columns: minmax(0, 1fr); }
  .signin__brand { display: none; }
  .signin__mobile-logo { display: inline-flex; }
  .signin__panel { align-items: flex-start; padding-top: 40px; background: var(--c-bg); }
  .signin__panel-inner { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .nav-toggle { display: inline-flex; }
  .sidebar {
    display: none; position: fixed; top: 60px; left: 0; bottom: 0; width: min(300px, 86vw); height: auto;
    z-index: 60; box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { display: flex; }
  .grid--overview, .grid--two, .grid--three, .grid--support { grid-template-columns: minmax(0, 1fr); }
  .stats--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-surface);
    border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; padding: var(--sp-4); }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .page { padding: var(--sp-5) var(--sp-4) var(--sp-6); }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header .btn { width: 100%; }
  .card__header { padding: var(--sp-4); flex-direction: column; align-items: flex-start; }
  .card--padded, .balance-card { padding: var(--sp-4); }
  .search { width: 100%; }
  .sidebar__link { padding-inline: var(--sp-2); }

  /* Tables become stacked cards. */
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td {
    display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
    padding: var(--sp-1) 0; border: 0; text-align: right;
  }
  .table--stack td::before {
    content: attr(data-label); flex-shrink: 0; text-align: left;
    font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted);
  }
  .table--stack td.reason { max-width: none; }
  .table--stack .actions-cell { padding-top: var(--sp-2); }
  .table--stack .actions-cell::before { display: none; }
  .row-actions { justify-content: flex-start; width: 100%; }
  .row-actions .btn { flex: 1 1 auto; min-height: 38px; }
}

@media (max-width: 520px) {
  .brand__tag { display: none; }
  .filters .search, .filters .select { width: 100%; }
  .share-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .share-list__label { grid-column: 1 / -1; }
  .note-form { flex-direction: column; align-items: stretch; }
  .stats, .stats--8 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .steps, .form-row, .action-grid, .balance-card__stats, .details--four { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .topbar__inner { padding: 0 var(--sp-3); gap: var(--sp-2); }
  .account-menu__name { display: none; }
  .hero__title { font-size: 2rem; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .summary-strip { grid-template-columns: minmax(0, 1fr); }
  .segmented { grid-template-columns: minmax(0, 1fr); }
  .page-header .btn { width: 100%; }
  .dialog__body { padding: var(--sp-4); }
  .dialog__footer .btn { flex: 1 1 auto; }
  .auth__card { padding: var(--sp-5); }
  .account-menu__name small { display: none; }
  .pager { justify-content: center; }
  .claim-overview, .claim-card__header, .claim-detail__header { flex-direction: column; align-items: stretch; }
  .claim-overview__main { align-items: flex-start; }
  .claim-card__facts, .claim-review-form__fields { grid-template-columns: minmax(0, 1fr); }
  .claim-queue__top, .claim-queue__bottom { align-items: flex-start; }
  .claim-filters { flex-direction: column; }
  .claim-filters .input, .claim-reply-template { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner, .spinner--lg { animation-duration: 1.5s !important; animation-iteration-count: infinite !important; }
}

/* Product refinement layer: shared visual language for public and authenticated screens. */
:root {
  --c-bg: #f7f8f7; --c-surface: #fff; --c-surface-muted: #f1f5f2;
  --c-navy-900: #102a2a; --c-navy-800: #143534; --c-navy-700: #20514e; --c-navy-100: #e0efeb;
  --c-text: #183130; --c-text-secondary: #49615e; --c-text-muted: #6d807c;
  --c-border: #dce5e1; --c-border-strong: #bccdc7; --c-primary: #166b61; --c-primary-hover: #0f554d;
  --c-accent: #d79b39; --c-positive: #15704f; --c-positive-bg: #e3f4eb; --c-focus: #146cbd;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --radius-sm: 7px; --radius-md: 12px; --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 50, 47, .04); --shadow-md: 0 10px 28px rgba(19, 50, 47, .07); --shadow-lg: 0 22px 56px rgba(10, 45, 42, .14);
}
body { letter-spacing: -.007em; }
h1, h2, h3, .site-brand, .brand__name { text-wrap: balance; }
.page-title, .hero__title, .page-hero__title, .signin__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.045em; }
.eyebrow, .hero__eyebrow { color: var(--c-primary); font-weight: 750; letter-spacing: .105em; }
.demo-tag { background: #fff5df; border: 1px solid #f2ddad; color: #765017; font-weight: 700; }

/* Public pages */
.site-header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--c-border); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 76px; }
.site-brand { color: var(--c-navy-900); font-weight: 750; letter-spacing: -.04em; }
.site-brand:hover, .site-nav__links a[aria-current="page"], .site-nav__links a:hover { color: var(--c-primary); }
.site-nav__links a { color: var(--c-text-secondary); font-weight: 620; }
.site-nav__links a[aria-current="page"]::after { background: var(--c-accent); height: 2px; }
.btn { border-radius: 999px; font-weight: 720; letter-spacing: -.01em; box-shadow: none; }
.btn--primary { background: var(--c-primary); border-color: var(--c-primary); box-shadow: 0 8px 16px rgba(22, 107, 97, .17); }
.btn--primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); transform: translateY(-1px); }
.btn--secondary { border-color: var(--c-border-strong); color: var(--c-text); background: #fff; }
.btn--secondary:hover { background: var(--c-surface-muted); border-color: var(--c-primary); color: var(--c-primary); }
.site-footer { background: #102b2a; border-top: 0; padding-top: 64px; }
.site-footer__heading { color: #eaf4f0; }.site-footer__text, .site-footer__links a, .site-footer__bottom { color: #b3c8c1; }.site-footer__links a:hover { color: #fff; }
.hero--ledger { background: linear-gradient(120deg, #eff6f2 0%, #f9faf7 48%, #e4f0eb 100%); border-bottom: 1px solid var(--c-border); padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; overflow: hidden; }
.hero--ledger::before { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid rgba(22, 107, 97, .16); border-radius: 50%; right: -165px; top: -210px; }
.hero--ledger .hero__grid { align-items: center; gap: clamp(2.5rem, 7vw, 7rem); position: relative; }.hero--ledger .hero__copy { max-width: 650px; }
.hero--ledger .hero__title { max-width: 620px; font-size: clamp(3rem, 6vw, 5.55rem); line-height: .98; color: var(--c-navy-900); }
.hero--ledger .hero__lead { max-width: 590px; font-size: clamp(1.1rem, 1.8vw, 1.27rem); color: var(--c-text-secondary); line-height: 1.65; }
.hero__points { gap: .8rem 1.5rem; }.hero__points li { color: var(--c-text-secondary); }
.ledger-brief { background: #123d3b; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.2rem); color: #eef8f3; box-shadow: var(--shadow-lg); max-width: 420px; }
.ledger-brief__eyebrow { color: #a6d8c6; font-size: .74rem; font-weight: 750; letter-spacing: .12em; margin-bottom: .8rem; text-transform: uppercase; }
.ledger-brief h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.035em; line-height: 1.05; }
.ledger-brief__steps { list-style: none; padding: 0; margin: 1.7rem 0; display: grid; gap: 1.15rem; }.ledger-brief__steps li { display: grid; grid-template-columns: 36px 1fr; gap: .85rem; }.ledger-brief__steps li > span { color: #a6d8c6; font-size: .72rem; font-weight: 760; padding-top: .15rem; }.ledger-brief__steps strong { display: block; color: #fff; font-size: .98rem; }.ledger-brief__steps p { color: #c4d9d1; font-size: .89rem; line-height: 1.45; margin-top: .18rem; }.ledger-brief__note { border-top: 1px solid rgba(255,255,255,.18); color: #b8cec5; font-size: .78rem; padding-top: 1rem; }
.site-section { padding: clamp(4rem, 8vw, 7rem) 0; }.site-section--tinted { background: #edf5f1; border-block: 1px solid var(--c-border); }.section-head { max-width: 650px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }.section-head__title { font-family: var(--font-display); color: var(--c-navy-900); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.05; }.section-head__lead { color: var(--c-text-secondary); line-height: 1.65; }
.feature-grid { gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }.feature { border: 0; border-radius: 0; box-shadow: none; padding: 2rem; min-height: 230px; }.feature:nth-child(3n + 2) { border-inline: 1px solid var(--c-border); }.feature:nth-child(n + 4) { border-top: 1px solid var(--c-border); }.feature__icon { color: var(--c-primary); background: #e7f2ee; border-radius: 10px; }.feature h3 { color: var(--c-navy-900); font-size: 1.1rem; }.feature p { color: var(--c-text-secondary); line-height: 1.6; }.steps { counter-reset: none; gap: clamp(1.5rem, 4vw, 4rem); }.step { background: transparent; border: 0; padding: 0; box-shadow: none; }.step__num { background: var(--c-primary); border-radius: 50%; color: #fff; }

/* Signed-in product shell */
.topbar { background: #113836; border-bottom-color: rgba(255,255,255,.12); box-shadow: 0 2px 20px rgba(11, 41, 38, .15); }.topbar__inner { min-height: 68px; max-width: 1500px; margin: auto; }.brand { font-weight: 750; }.brand__tag { background: rgba(215, 155, 57, .18); border: 1px solid rgba(215, 155, 57, .3); color: #ffe0a1; }.shell { background: linear-gradient(to right, #fbfdfc calc(var(--sidebar-w) - 1px), var(--c-border) calc(var(--sidebar-w) - 1px), var(--c-border) var(--sidebar-w), var(--c-bg) var(--sidebar-w)); }.sidebar { background: #fbfdfc; padding: 1.65rem .85rem; top: 68px; height: calc(100vh - 68px); }.sidebar__heading { color: #71857f; font-weight: 760; padding-top: 1.15rem; }.sidebar__link { padding: .7rem .75rem; border-radius: 9px; font-weight: 620; }.sidebar__link[aria-current="page"] { background: #e0f0ea; color: #115b53; box-shadow: inset 3px 0 0 #198071; }
.page { max-width: 1360px; padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1rem, 4vw, 3rem) 5rem; gap: 1.75rem; }.page-header { padding-bottom: .4rem; }.page-title { color: var(--c-navy-900); font-size: clamp(2rem, 3.5vw, 3rem); }.card { border-color: var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }.card:hover { box-shadow: var(--shadow-md); }.card__header { padding: 1.35rem 1.5rem 1.15rem; }.card--padded { padding: 1.5rem; }.section-title { color: var(--c-navy-900); font-size: 1.15rem; font-weight: 740; }
.balance-card { background: linear-gradient(135deg, #10413e, #1c5c54); border: 0; border-radius: 18px; padding: 1.8rem 2rem; box-shadow: 0 18px 36px rgba(16, 65, 62, .18); }.balance-card__amount { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.3rem); font-weight: 600; letter-spacing: -.055em; }.balance-card__stats { border-top-color: rgba(255,255,255,.18); margin-top: .7rem; padding-top: 1.2rem; }.balance-card__stats dd { font-size: 1.1rem; }.details { gap: 1.25rem 1.5rem; }.details dd { color: var(--c-navy-900); font-weight: 680; }.quick-link { border-radius: 10px; background: #f4f8f6; border-color: #dbe8e2; color: var(--c-primary); }.quick-link:hover { background: #e6f3ed; }.stats { gap: 1rem; }.stat { padding: 1.2rem 1.3rem; border-top: 3px solid #c7e7dc; }.stat__top { margin-bottom: .45rem; }.stat__icon { color: #137164; background: #e7f3ed; border-radius: 8px; }.stat__value { color: var(--c-navy-900); font-family: var(--font-display); font-size: 2.05rem; font-weight: 600; letter-spacing: -.04em; }
.input { border-color: var(--c-border-strong); background: #fff; border-radius: 9px; min-height: 43px; color: var(--c-navy-900); }.input:hover { border-color: #8eaaa1; }.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(22,107,97,.14); }.field__label { color: var(--c-navy-900); font-weight: 680; }.table thead { background: #f1f6f3; }.table th { color: #55706a; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }.table td { border-color: #e5ece8; }.table tbody tr:hover { background: #f5faf7; }.badge { border-radius: 999px; font-weight: 720; letter-spacing: .01em; }.filters { gap: .6rem; }.search { border-radius: 9px; }.dialog { border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--shadow-lg); }.dialog__header { background: #f3f8f5; border-bottom-color: var(--c-border); }.dialog::backdrop { background: rgba(8, 35, 33, .48); backdrop-filter: blur(2px); }.alert { border-radius: 10px; }

/* Sign in */
.signin { background: #f5f8f6; }.signin__grid { min-height: 100vh; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr); }.signin__brand { background: #103b38; padding: clamp(2rem, 6vw, 5.5rem); position: relative; overflow: hidden; }.signin__brand::after { content: ""; position: absolute; width: 680px; height: 680px; border: 1px solid rgba(196, 231, 216, .18); border-radius: 50%; bottom: -440px; left: -250px; }.signin__logo { font-weight: 760; letter-spacing: -.04em; }.signin__pitch { max-width: 470px; position: relative; z-index: 1; }.signin__kicker { color: #a9d9c8; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 760; margin-bottom: .9rem; }.signin__pitch h2 { font-family: var(--font-display); font-size: clamp(2.35rem, 4.2vw, 4rem); line-height: .98; letter-spacing: -.055em; }.signin__points { margin-top: 2.2rem; }.signin__points li { color: #cee2da; }.signin__points strong { color: #fff; }.signin__trust { margin-top: auto; border: 1px solid rgba(205, 236, 223, .25); background: rgba(255,255,255,.07); border-radius: 14px; color: #d7e9e2; display: flex; gap: .8rem; padding: 1rem 1.1rem; position: relative; z-index: 1; max-width: 470px; }.signin__trust-mark { color: #f3c979; }.signin__trust p { font-size: .85rem; line-height: 1.5; }.signin__trust strong { color: #fff; display: block; margin-bottom: .1rem; }.signin__panel { background: #fff; }.signin__panel-inner { max-width: 440px; }.signin__title { color: var(--c-navy-900); font-size: clamp(2.5rem, 4vw, 3.45rem); }.signin__subtitle { color: var(--c-text-secondary); line-height: 1.6; }.signin__foot { border-top-color: var(--c-border); }

@media (max-width: 960px) { .topbar__inner { min-height: 60px; }.sidebar { top: 60px; height: calc(100vh - 60px); }.hero--ledger .hero__grid { grid-template-columns: 1fr; }.ledger-brief { max-width: 620px; }.signin__grid { grid-template-columns: 1fr; }.signin__brand { display: block; min-height: auto; padding: 2rem 1.5rem; }.signin__pitch { margin: 3rem 0 0; }.signin__trust { margin-top: 2rem; } }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; }.feature:nth-child(3n + 2) { border-inline: 0; }.feature:nth-child(n + 2) { border-top: 1px solid var(--c-border); }.hero--ledger { padding: 3.6rem 0; }.hero--ledger .hero__title { font-size: clamp(2.8rem, 14vw, 4.1rem); }.balance-card { padding: 1.5rem; }.card__header { padding: 1.15rem; }.signin__brand { display: none; }.signin__panel { min-height: 100vh; } }

/* Motion layer: scroll reveals, hero entrance, FAQ accordion, micro-interactions.
   Gated on html.reveal-on so content is fully visible if JS is off or reduced-motion is set. */
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }

html.reveal-on .hero__copy--enter { animation: hero-rise .8s cubic-bezier(.2,.6,.2,1) both; }
html.reveal-on .hero__aside--enter { animation: hero-rise .8s cubic-bezier(.2,.6,.2,1) .12s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.faq__panel { overflow: hidden; transition: height .28s cubic-bezier(.2,.6,.2,1); }

/* Refined hover / focus micro-interactions */
.feature { transition: background-color .2s ease, transform .2s ease; }
.feature:hover { background: #f4f9f6; }
.action-tile, .quick-link, .card, .btn, .stat, .site-nav__links a, .sidebar__link { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .2s ease, transform .18s ease; }
.action-tile:hover, .quick-link:hover { transform: translateY(-2px); }
.stat { transition: box-shadow .2s ease, transform .18s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feed__item { transition: background-color .15s ease; }
.feed__item:hover { background: #f5faf7; }
.input-group__btn { transition: color .15s ease, background-color .15s ease; }

@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  html.reveal-on .hero__copy--enter, html.reveal-on .hero__aside--enter { animation: none !important; }
}

/* ===== Typography: self-hosted Inter (UI) + Figtree (display) ===== */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family:"Figtree"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/figtree-700.woff2") format("woff2"); }
@font-face { font-family:"Figtree"; font-style:normal; font-weight:800; font-display:swap; src:url("/static/fonts/figtree-800.woff2") format("woff2"); }

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-family: var(--font-sans); letter-spacing: -0.006em; }

/* Clean, modern display headings (no serif) */
.hero__title, .page-hero__title, .signin__title, .section-head__title, .page-title,
.hero--ledger .hero__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.028em; line-height: 1.02;
}
.section-title, .signin__pitch h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
/* Numeric displays in the friendly sans, not serif */
.balance-card__amount, .stat__value, .device__card-amount, .signin__card-art strong {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
}

/* ===== Hero product mockup + friendly motion ===== */
.hero--ledger { background: linear-gradient(135deg, #e9f4ee 0%, #f7faf6 46%, #e7f1ea 100%); }
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.device {
  position: relative; width: min(400px, 100%); background: #fff; border-radius: 22px;
  border: 1px solid var(--c-border); box-shadow: 0 30px 60px rgba(16, 65, 62, .18);
  overflow: hidden; z-index: 2;
}
.device__top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f6f3; border-bottom: 1px solid var(--c-border); }
.device__top span { width: 9px; height: 9px; border-radius: 50%; background: #cdd9d3; }
.device__top em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--c-text-muted); font-weight: 600; }
.device__screen { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.device__card { background: linear-gradient(135deg, #10413e, #1c5c54); border-radius: 16px; padding: 20px; color: #fff; }
.device__card-label { font-size: .78rem; color: rgba(255,255,255,.72); }
.device__card-amount { font-size: 2.3rem; margin: 4px 0 14px; }
.device__spark { display: flex; align-items: flex-end; gap: 7px; height: 52px; }
.device__spark i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(127, 214, 179, .5); }
.device__spark i:last-child { background: #7fd6b3; }
.device__rows { list-style: none; margin: 0; padding: 0; }
.device__rows li { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--c-border); font-size: .9rem; color: var(--c-text-secondary); }
.device__rows li:first-child { border-top: 0; }
.device__rows b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.device__rows .up { color: var(--c-positive); } .device__rows .down { color: var(--c-negative); }
.device__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.device__dot--up { background: var(--c-positive); } .device__dot--down { background: var(--c-negative); }

.hero__chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 999px;
  padding: 9px 15px; font-size: .82rem; font-weight: 700; color: var(--c-navy-900);
  box-shadow: 0 12px 28px rgba(16, 65, 62, .14);
}
.hero__chip .icon { color: var(--c-primary); }
.hero__chip--1 { top: 8%; right: 2%; animation: float-a 5.5s ease-in-out infinite; }
.hero__chip--2 { bottom: -3%; left: -3%; animation: float-b 6.5s ease-in-out infinite; }
.device--float { animation: float-a 7s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

@media (max-width: 960px) {
  .hero__visual { min-height: 0; margin-top: .5rem; }
  .hero__chip--1 { right: 0; } .hero__chip--2 { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .device--float, .hero__chip--1, .hero__chip--2 { animation: none !important; }
}

/* spark bar heights (no inline styles, CSP-safe) */
.device__spark i:nth-child(1){height:34%}.device__spark i:nth-child(2){height:46%}.device__spark i:nth-child(3){height:40%}.device__spark i:nth-child(4){height:58%}.device__spark i:nth-child(5){height:52%}.device__spark i:nth-child(6){height:72%}.device__spark i:nth-child(7){height:100%}

/* ===== Brighter palette + NerdWallet-style sections ===== */
:root { --c-lime: #2fc275; --c-lime-ink: #06361f; }

/* Scrolling tagline strip */
.marquee { background: var(--c-lime); overflow: hidden; border-top: 1px solid #27a863; border-bottom: 1px solid #27a863; }
.marquee__track { display: flex; align-items: center; gap: 2rem; white-space: nowrap; width: max-content; padding: .85rem 0; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--c-lime-ink); letter-spacing: -.01em; }
.marquee i { color: var(--c-lime-ink); opacity: .55; font-style: normal; font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Colourful category tiles */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.feature-grid > .feature,
.feature-grid > .feature:nth-child(3n+2),
.feature-grid > .feature:nth-child(n+4) {
  border: 1px solid var(--c-border); border-radius: 18px; background: #fff;
  padding: 28px; min-height: 0; box-shadow: var(--shadow-sm);
}
.feature { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7e3d4; background: #fff; }
.feature__emoji { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 29px; margin-bottom: 16px; line-height: 1; }
.feature--mint .feature__emoji { background: #e6f6ee; }
.feature--sky .feature__emoji { background: #e9f1fb; }
.feature--gold .feature__emoji { background: #fbf1d9; }
.feature h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: var(--c-navy-900); margin-bottom: 6px; }
.feature p { color: var(--c-text-secondary); line-height: 1.6; }

/* "Why choose us" statement band */
.trust-band { background: radial-gradient(640px 320px at 88% -10%, rgba(47,194,117,.22), rgba(47,194,117,0) 70%), #0f3a33; color: #eaf6f0; padding: clamp(4rem, 7vw, 6rem) 0; }
.trust-band__head { max-width: 640px; }
.eyebrow--lime { color: var(--c-lime); }
.trust-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.trust-band__head p { color: rgba(255,255,255,.76); margin-top: .7rem; font-size: 1.08rem; line-height: 1.6; }
.trust-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem 2rem; margin: 2.6rem 0 1.6rem; }
.trust-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4vw, 3.4rem); color: var(--c-lime); letter-spacing: -.03em; line-height: 1; }
.trust-stat span { display: block; color: rgba(255,255,255,.8); font-size: .94rem; margin-top: .5rem; line-height: 1.4; }
.trust-band__note { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; color: rgba(255,255,255,.62); font-size: .82rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; margin-top: .5rem; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > .feature:nth-child(n+2) { border: 1px solid var(--c-border); }
  .marquee span { font-size: .9rem; }
}
@media (max-width: 480px) { .trust-stats { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none !important; } }

/* ===== Photographic sections ===== */
.showcase { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase__media { position: relative; }
.showcase__media img {
  width: 100%; aspect-ratio: 11 / 8; object-fit: cover; display: block;
  border-radius: 20px; border: 1px solid var(--c-border); box-shadow: 0 24px 48px rgba(16,65,62,.16);
}
.showcase__tag {
  position: absolute; left: -14px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: 10px 16px;
  font-weight: 700; font-size: .85rem; color: var(--c-navy-900); box-shadow: 0 12px 28px rgba(16,65,62,.16);
}
.showcase__tag .icon { color: var(--c-primary); }
.showcase__text .eyebrow { color: var(--c-primary); }
.showcase__text .checklist { margin: 1.4rem 0; gap: .7rem; }
.showcase__text .checklist .icon { color: var(--c-accent, #137164); }

.photo-card { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--c-border); background: #fff; box-shadow: var(--shadow-md); }
.photo-card img { width: 100%; aspect-ratio: 11 / 7; object-fit: cover; display: block; }
.photo-card figcaption { display: flex; gap: 8px; align-items: flex-start; padding: 16px 18px; font-size: .9rem; color: var(--c-text-secondary); line-height: 1.5; }
.photo-card figcaption .icon { color: var(--c-primary); margin-top: 2px; flex-shrink: 0; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { order: -1; }
  .showcase__tag { left: 12px; }
}

/* Professional line icons in tinted badges (replacing emoji) */
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; margin-bottom: 16px; background: #e6f6ee; }

/* RefundClaimers public homepage */
.home-hero { position: relative; overflow: hidden; background: #075b42; color: #fff; }
.home-hero__photo { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; object-fit: cover; object-position: center 38%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #075b42 0%, #075b42 31%, rgba(7, 91, 66, .93) 45%, rgba(7, 91, 66, .12) 82%); }
.home-hero__inner { position: relative; z-index: 1; min-height: 470px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .75fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-top: 3rem; padding-bottom: 3rem; }
.home-hero__copy { max-width: 610px; }
.home-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #b7efd1; font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.home-hero h1 { max-width: 20ch; color: #fff; font-family: var(--font-display); font-size: clamp(2.8rem, 5.2vw, 4.65rem); font-weight: 800; line-height: 1; }
.home-hero__lead { max-width: 54ch; margin-top: 1.15rem; color: rgba(255,255,255,.86); font-size: 1.1rem; line-height: 1.6; }
.home-hero .hero__actions { margin-top: 1.6rem; }
.home-hero .btn--primary { --btn-bg: #a7e83c; --btn-bd: #a7e83c; --btn-fg: #123b25; background-color: #a7e83c; border-color: #a7e83c; color: #123b25; }
.home-hero .btn--primary:hover:not(:disabled) { --btn-bg: #bbf266; --btn-bd: #bbf266; background-color: #bbf266; border-color: #bbf266; color: #123b25; }
.home-hero .btn--secondary { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.65); }
.home-hero .btn--secondary:hover:not(:disabled) { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }
.home-hero__disclosure { margin-top: 1.15rem; color: rgba(255,255,255,.72); font-size: .79rem; line-height: 1.5; }
.home-record { justify-self: end; width: min(100%, 360px); padding: 1.4rem; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; background: rgba(248,255,250,.94); color: var(--c-text); box-shadow: 0 22px 50px rgba(0,35,25,.2); }
.home-record__eyebrow { color: #34745d; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.home-record h2 { margin-top: .55rem; color: #143d32; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.home-record dl { margin: 1rem 0; }
.home-record dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid #dce8e1; }
.home-record dt { color: #64736c; font-size: .8rem; }
.home-record dd { margin: 0; color: #183f34; font-size: .82rem; font-weight: 650; text-align: right; }
.home-record > a { display: inline-flex; align-items: center; gap: .45rem; color: #087451; font-size: .83rem; font-weight: 700; text-decoration: none; }
.home-record > a:hover { text-decoration: underline; }
.home-tools { position: relative; z-index: 2; max-width: var(--content-max); margin: -32px auto 0; padding: 0 var(--sp-5); }
.home-tools__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid #d9eae1; border-radius: 14px; background: #eff8f3; box-shadow: 0 16px 38px rgba(18,73,53,.1); }
.home-tool { min-height: 168px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem; border: 1px solid #e3ebe5; border-radius: 9px; background: #fff; color: var(--c-text); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-tool:hover { transform: translateY(-3px); border-color: #a9d8bd; box-shadow: var(--shadow-md); color: var(--c-text); }
.home-tool__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .8rem; border-radius: 10px; background: #e4f4eb; color: #087451; }
.home-tool__title { font-family: var(--font-display); font-size: .96rem; font-weight: 800; }
.home-tool__text { margin-top: .35rem; color: var(--c-text-muted); font-size: .78rem; line-height: 1.45; }
.home-rate-preview { padding: clamp(3rem, 6vw, 5rem) 0; background: #f5faf7; }
.home-rate-preview__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.home-rate-preview__copy { max-width: 530px; }
.home-rate-preview__copy .eyebrow { color: #087451; }
.home-rate-preview__copy h2 { color: var(--c-navy-900); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; }
.home-rate-preview__copy > p:last-child { margin-top: .7rem; color: var(--c-text-secondary); font-size: 1rem; line-height: 1.6; }
.home-rate-card { padding: 1.5rem; border: 1px solid #d6e8dd; border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); }
.home-rate-card__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: var(--c-text-secondary); font-size: .83rem; font-weight: 650; }
.home-rate-card__tag { padding: 4px 8px; border-radius: 999px; background: #edf5f0; color: #356b55; font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.home-rate-card__value { margin-top: 1.25rem; color: #087451; font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.home-rate-card__value span { font-size: .55em; }
.home-rate-card__label { margin-top: .35rem; color: var(--c-text-secondary); font-size: .9rem; }
.home-rate-card__note { margin-top: 1.3rem; padding-top: .85rem; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: .74rem; line-height: 1.45; }
.home-explainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.home-explainer__image img { display: block; width: 100%; aspect-ratio: 11 / 8; object-fit: cover; border-radius: 12px; }
.home-explainer__copy .section-head__title { max-width: 14ch; }
.home-explainer__copy .section-head__lead { font-size: 1rem; }
.home-explainer__copy .checklist { margin: 1.4rem 0 0; }
.home-explainer__copy .checklist li { align-items: flex-start; }
.home-truth { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: #103c32; color: #fff; }
.home-truth__heading { max-width: 650px; }
.home-truth__heading h2 { margin-top: .35rem; color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.08; }
.home-truth__heading > p:last-child { margin-top: .7rem; color: rgba(255,255,255,.76); font-size: 1.02rem; }
.home-truth__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.4rem; }
.home-truth__grid article { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.25); }
.home-truth__grid article > span { color: #a7e83c; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.home-truth__grid h3 { margin-top: .75rem; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.home-truth__grid p { margin-top: .4rem; color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.55; }
.home-truth__note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.65); font-size: .8rem; }
.home-truth .eyebrow--lime { color: #a7e83c; }

@media (max-width: 1000px) {
  .home-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-tool { min-height: 150px; }
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 2rem; }
}
@media (max-width: 720px) {
  .home-hero__photo { width: 100%; opacity: .35; object-position: center; }
  .home-hero::after { background: linear-gradient(90deg, rgba(5,69,49,.97), rgba(5,69,49,.8)); }
  .home-hero__inner { min-height: auto; grid-template-columns: 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 4.5rem; }
  .home-hero h1 { max-width: 12ch; font-size: clamp(2.65rem, 11vw, 4rem); }
  .home-record { justify-self: start; width: min(100%, 420px); }
  .home-rate-preview__inner { grid-template-columns: 1fr; }
  .home-rate-card { width: min(100%, 430px); }
  .home-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-explainer { grid-template-columns: 1fr; }
  .home-explainer__image { order: -1; }
  .home-truth__grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 460px) {
  .home-tools { padding: 0 12px; }
  .home-tools__grid { gap: 8px; padding: 9px; }
  .home-tool { min-height: 150px; padding: .9rem; }
  .home-hero__inner { padding-left: 18px; padding-right: 18px; }
  .home-hero__actions { align-items: stretch; flex-direction: column; }
  .home-hero__actions .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tool { transition: none; }
  .home-tool:hover { transform: none; }
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature--mint .feature__icon { background: #e6f6ee; color: #137a5a; }
.feature--sky  .feature__icon { background: #e9f1fb; color: #2f5d9a; }
.feature--gold .feature__icon { background: #fbf1d9; color: #a9791a; }

/* Refund claim workflow */
.claim-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: var(--sp-5); align-items: start; }
.claim-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.claim-list-panel, .claim-admin-queue, .claim-admin-detail { min-width: 0; }
.claim-list { display: grid; gap: 12px; padding: var(--sp-4); }
.claim-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; }
.claim-card__header, .claim-detail__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.claim-card__header h3 { color: var(--c-navy-900); font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }
.claim-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; margin: 1rem 0; }
.claim-card__facts dt { color: var(--c-text-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.claim-card__facts dd { margin-top: 2px; color: var(--c-text); font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.claim-card__description { color: var(--c-text-secondary); font-size: .88rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.claim-state { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #edf2f9; color: #355a83; font-size: .7rem; font-weight: 750; }
.claim-state--under_review { background: #e7f2ff; color: #245c93; }
.claim-state--awaiting_customer { background: #fff4dc; color: #805600; }
.claim-state--approved { background: #e7f4ed; color: #1b6a48; }
.claim-state--declined, .claim-state--cancelled { background: #f2f3f5; color: #626b78; }
.claim-section-heading { margin-top: 1.15rem; color: var(--c-navy-900); font-size: .88rem; font-weight: 750; }
.claim-timeline { display: grid; gap: 0; margin: .85rem 0 0; padding: 0; list-style: none; }
.claim-timeline__event { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: .65rem; padding-bottom: 1rem; }
.claim-timeline__event:not(:last-child)::before { position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: var(--c-border); content: ""; }
.claim-timeline__dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: #168065; box-shadow: 0 0 0 1px #168065; }
.claim-timeline__content { min-width: 0; }
.claim-timeline__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .35rem .75rem; font-size: .78rem; }
.claim-timeline__content > p { margin-top: .35rem; color: var(--c-text-secondary); font-size: .82rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.claim-reply { display: grid; gap: .6rem; margin-top: .3rem; padding-top: .8rem; border-top: 1px solid var(--c-border); }
.claim-reply textarea { min-height: 76px; }
.claim-admin-layout { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr); gap: var(--sp-5); align-items: start; }
.claim-admin-detail { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 84px; }
.claim-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.claim-filters .input { min-height: 38px; width: auto; max-width: 170px; font-size: .82rem; }
.claim-queue { margin: 0; padding: 0; list-style: none; }
.claim-queue > li + li { border-top: 1px solid var(--c-border); }
.claim-queue__row { display: grid; gap: .38rem; width: 100%; padding: .9rem 1rem; border: 0; background: transparent; color: var(--c-text); text-align: left; cursor: pointer; }
.claim-queue__row:hover, .claim-queue__row.is-active { background: #f0f7f3; }
.claim-queue__top, .claim-queue__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .8rem; }
.claim-queue__top strong, .claim-queue__merchant { overflow-wrap: anywhere; }
.claim-queue__merchant { color: var(--c-text-secondary); font-size: .83rem; }
.claim-queue__bottom { justify-content: flex-start; font-size: .75rem; }
.claim-queue__bottom > strong { margin-left: auto; }
.claim-detail__header h2 { margin-top: .2rem; overflow-wrap: anywhere; }
.claim-review-form { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.claim-review-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.claim-review-form .field { margin: 0; }
.claim-review-form .textarea { min-height: 78px; }
.claim-timeline__event--internal .claim-timeline__dot { background: #bd8a24; box-shadow: 0 0 0 1px #bd8a24; }
.claim-overview { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.1rem 1.35rem; border-inline-start: 4px solid #168065; }
.claim-overview__main { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.claim-overview__main .home-tool__icon { margin: 0; flex: 0 0 auto; }
.claim-overview h2 { color: var(--c-navy-900); font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.claim-overview .eyebrow { margin-bottom: 0; }
.claim-overview .muted { margin-top: .2rem; }
.claim-file-input { padding: .55rem; font-size: .85rem; }
.claim-evidence { margin-top: .9rem; padding: .85rem; border: 1px solid #dfe9e3; border-radius: 8px; background: #f7faf8; }
.claim-evidence__list { display: grid; gap: .45rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.claim-evidence__list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; font-size: .82rem; }
.claim-evidence__list a { color: #087451; font-weight: 650; overflow-wrap: anywhere; }
.claim-metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .75rem; }
.claim-metric { min-width: 0; display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; }
.claim-metric span { color: var(--c-text-muted); font-size: .7rem; font-weight: 700; }
.claim-metric strong { color: var(--c-navy-900); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.claim-metric--urgent { border-top: 3px solid #d19b35; }
.claim-review-form__reply { display: grid; gap: .25rem; }
.claim-reply-template { margin-bottom: .35rem; font-size: .82rem; }
@media (max-width: 960px) {
  .claim-layout, .claim-admin-layout { grid-template-columns: minmax(0, 1fr); }
  .claim-admin-detail { position: static; }
  .claim-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .claim-form .form-row, .claim-review-form__fields { grid-template-columns: minmax(0, 1fr); }
  .claim-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-admin-detail { padding: 1rem; }
  .claim-filters { width: 100%; }
  .claim-filters .input { max-width: none; flex: 1 1 140px; }
  .claim-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-overview { align-items: flex-start; flex-direction: column; }
}

/* Claim review additions: metrics, insights, flags, credit, assignment, duplicates */
.claim-metric__label { color: var(--c-text-muted); font-size: .7rem; font-weight: 700; }
.claim-metric__value { color: var(--c-navy-900); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.claim-insights { padding: 0; }
.claim-insights__summary { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.25rem; cursor: pointer; font-weight: 700; color: var(--c-navy-900); }
.claim-insights__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 0 1.25rem 1.25rem; }
.table--compact th, .table--compact td { padding: .45rem .6rem; font-size: .82rem; }
.insight-list { display: grid; gap: .45rem; margin: .6rem 0 0; padding-left: 1.2rem; font-size: .85rem; }
.insight-list li span + span { display: block; }
.claim-queue__flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.claim-credit { display: grid; gap: .6rem; padding: 1rem; border: 1px solid #cfe5da; border-radius: 10px; background: #f3faf6; }
.claim-credit__row { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.claim-credit__row .field { margin: 0; flex: 0 1 200px; }
.claim-credit .field { margin: 0; }
.claim-assign { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.claim-assign .field { margin: 0; flex: 0 1 240px; }
.claim-duplicates ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .82rem; }
.claim-duplicates .link-btn { margin: 0; color: var(--c-primary); }
.claim-link { display: block; margin-top: 2px; color: #087451; font-size: .76rem; font-weight: 650; }
.approved-by { display: block; }

/* Account-holder claim tracking */
.claim-card { scroll-margin-top: 90px; }
.claim-card.has-update, .thread.has-update { border-color: #9ccdb8; box-shadow: 0 0 0 3px rgba(22, 107, 97, .08); }
.claim-card.is-highlighted { border-color: var(--c-primary); }
.claim-card__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.claim-progress { display: flex; gap: 0; margin: 1rem 0 .4rem; padding: 0; list-style: none; counter-reset: step; }
.claim-progress__step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; color: var(--c-text-muted); font-size: .72rem; font-weight: 650; text-align: center; }
.claim-progress__step:not(:first-child)::before { position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--c-border); content: ""; }
.claim-progress__step.is-done:not(:first-child)::before, .claim-progress__step.is-current:not(:first-child)::before { background: #168065; }
.claim-progress__dot { position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--c-border-strong); border-radius: 50%; background: #fff; }
.claim-progress__step.is-done .claim-progress__dot { border-color: #168065; background: #168065; }
.claim-progress__step.is-current { color: var(--c-navy-900); }
.claim-progress__step.is-current .claim-progress__dot { border-color: #168065; box-shadow: 0 0 0 3px rgba(22, 128, 101, .18); }
.claim-next { margin: .6rem 0 0; padding: .65rem .8rem; border-radius: 8px; background: var(--c-surface-muted); color: var(--c-text-secondary); font-size: .84rem; }
.claim-next--action { background: var(--c-warning-bg); color: #6b4a00; }
.claim-next a { color: #087451; font-weight: 650; }
.claim-card__tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.claim-edit { margin-top: .8rem; padding: 1rem; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface-muted); }
.input--file { padding: .55rem; min-height: auto; }

/* Settings, approvals, security, profile */
.saved-replies { display: grid; gap: .5rem; margin: .8rem 0 1rem; padding: 0; list-style: none; }
.saved-reply { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--c-border); border-radius: 8px; }
.saved-reply__main { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.card__padded-text { padding: 0 1.5rem 1.25rem; }
.totp-status, .recovery-status { margin: .75rem 0 1rem; }
.totp-steps { display: grid; gap: .7rem; margin: 0 0 1rem; padding-left: 1.2rem; font-size: .88rem; }
.totp-setup { margin-top: 1rem; }
.recovery-codes { display: grid; gap: .8rem; margin-top: 1rem; }
.recovery-codes__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem; margin: 0; padding: .9rem 1rem .9rem 2rem; border: 1px dashed var(--c-border-strong); border-radius: 8px; background: var(--c-surface-muted); font-size: .95rem; }
.signin-history { display: grid; gap: .5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.signin-history li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-border); font-size: .86rem; }
.card--danger { border-color: #f3c3be; }
.form--inline { max-width: 460px; }

@media (max-width: 720px) {
  .claim-insights__body { grid-template-columns: minmax(0, 1fr); }
  .recovery-codes__list { grid-template-columns: minmax(0, 1fr); }
  .claim-progress__step { font-size: .66rem; }
}

/* Footer brand: must outrank the later .site-brand colour rules on the dark background. */
.site-footer .site-brand--light, .site-footer .site-brand--light:hover { color: #fff; }
.site-footer .site-brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.site-footer__contact { margin: 0; font-size: var(--fs-sm); }
.site-footer__contact a { display: inline-flex; align-items: center; gap: var(--sp-2); color: #eaf4f0; text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: #fff; text-decoration: underline; }
