/* =============================================================
   Redakt — styles.css (single file, sectioned)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f7fb;
  --bg-alt: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f2f2f8;
  --ink: #14151a;
  --ink-soft: #4b4d5c;
  --muted: #767a8c;
  --border: #e2e3ee;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #eceafe;
  --accent-hover: #362da3;
  --ok: #157a4a;
  --ok-soft: #e5f6ee;
  --warn: #92600a;
  --warn-soft: #fdf1dd;
  --danger: #b3261e;
  --danger-soft: #fbe9e8;
  --redact: #101114;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, 0.06);
  --shadow: 0 8px 24px rgba(20, 21, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 21, 26, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111218;
    --bg-alt: #16171f;
    --surface: #191a22;
    --surface-2: #20212b;
    --ink: #f2f2f6;
    --ink-soft: #c7c8d6;
    --muted: #9294a6;
    --border: #2b2d3a;
    --accent: #7c6ff0;
    --accent-ink: #101116;
    --accent-soft: #241f4a;
    --accent-hover: #9086f5;
    --ok: #55c690;
    --ok-soft: #12271e;
    --warn: #e7b155;
    --warn-soft: #2c2412;
    --danger: #f0847c;
    --danger-soft: #2c1917;
    --redact: #05060a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out), color .18s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--bg); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.logo-mark {
  display: inline-block; background: var(--redact); color: #fff; padding: .1rem .5rem;
  border-radius: 5px; font-size: .95em; position: relative; transition: background .25s var(--ease-out);
}
.logo:hover .logo-mark { background: var(--accent); }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .18s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.nav-lang button { padding: .35rem .65rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.nav-lang button.is-active { background: var(--accent); color: var(--accent-ink); }
.nav-burger { display: inline-flex; padding: .5rem; border-radius: 8px; }
.nav-burger:hover { background: var(--surface-2); }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: .6rem 0; font-weight: 500; }
@media (min-width: 860px) { .mobile-menu { display: none !important; } }

/* App top bar (calm, no marketing) */
.appbar {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.appbar-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem; gap: 1rem; }
.credit-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: transform .3s var(--ease-out);
}
.credit-pill.is-bumped { transform: scale(1.08); }
.appbar-menu { position: relative; }
.appbar-menu-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--border); }
.appbar-menu-list {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .4rem; display: none; flex-direction: column;
}
.appbar-menu-list.is-open { display: flex; }
.appbar-menu-list a, .appbar-menu-list button { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 6px; font-size: .9rem; }
.appbar-menu-list a:hover, .appbar-menu-list button:hover { background: var(--surface-2); }

/* Demo mode badge */
.demo-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem;
  background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: 999px; font-size: .82rem; font-weight: 700;
}

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title { font-size: clamp(2.2rem, 5.4vw, 3.6rem); max-width: 20ch; margin-bottom: 1.1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1rem; }
.hero-trust { font-size: .85rem; color: var(--muted); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Redaction demo visual */
.redact-demo {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-lg);
}
.redact-demo-tabs { display: flex; gap: .4rem; margin-bottom: .9rem; }
.redact-demo-tabs button {
  flex: 1; padding: .5rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem;
  background: var(--surface-2); color: var(--muted);
}
.redact-demo-tabs button.is-active { background: var(--accent); color: var(--accent-ink); }
.doc-mock { background: #fff; color: #1a1a1a; border-radius: var(--radius-sm); padding: 1.4rem; font-size: .82rem; line-height: 1.9; border: 1px solid #e6e6e6; }
.doc-mock .bar { display: inline-block; height: .75em; background: #e2e2ea; border-radius: 3px; vertical-align: middle; }
.doc-mock .redacted { background: var(--redact); border-radius: 3px; color: transparent; display: inline-block; }
.doc-mock p { margin-bottom: .6rem; color: #2a2a2a; }
.doc-mock strong { display: block; margin-bottom: .3rem; }
.demo-caption { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 1.25rem; }
.step-card { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step-card p { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Use cases grid */
.grid-2 { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.usecase { display: flex; gap: 1rem; }
.usecase-icon {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.usecase h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.usecase p { color: var(--ink-soft); font-size: .92rem; }

/* Trust / features */
.trust-item { padding: 1.5rem; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.trust-item p { color: var(--ink-soft); font-size: .92rem; }
.trust-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.pricing-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.is-popular { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -.75rem; left: 1.5rem; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
}
.plan-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem; }
.plan-desc { color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: .25rem; margin-bottom: .25rem; }
.plan-price .amount { font-family: var(--display); font-size: 2.4rem; font-weight: 700; }
.plan-price .period { color: var(--muted); font-size: .95rem; }
.plan-credits { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.4rem; }
.plan-cta { margin-top: auto; }
.pricing-demo-note { text-align: center; margin-top: 1.75rem; }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s var(--ease-out); flex-shrink: 0; color: var(--muted); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem 2rem; background: var(--bg-alt); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .75rem; max-width: 32ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .8rem; }
.footer-col a { display: block; padding-block: .35rem; color: var(--ink-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .18s var(--ease-out);
}
.field input:focus { border-color: var(--accent); }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.form-note button { color: var(--accent); font-weight: 600; }

.google-signin-slot { display: flex; justify-content: center; margin-bottom: 1.1rem; min-height: 40px; }
.auth-divider {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
  color: var(--muted); font-size: .82rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* our own `display` above beats the browser's default [hidden]{display:none} —
   without this, .hidden = true on either element would stop being invisible */
.google-signin-slot[hidden], .auth-divider[hidden] { display: none; }

/* Modal / dialog */
dialog {
  border: none; border-radius: var(--radius-lg); padding: 0; width: min(440px, 92vw);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(10, 10, 14, 0.55); backdrop-filter: blur(2px); }
.modal-body { padding: 1.75rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-head h2 { font-size: 1.35rem; }
.modal-close { padding: .4rem; border-radius: 8px; }
.modal-close:hover { background: var(--surface-2); }

/* Checkout card fake */
.fake-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem;
  font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; background: var(--surface-2); margin-bottom: 1rem;
  color: var(--muted); display: flex; justify-content: space-between; align-items: center;
}

/* Dropzone */
.dropzone {
  display: block; /* it's a <label>, which defaults to inline — without this the
    border/background fragment around its block-level children instead of
    wrapping the whole box */
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center; transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
  cursor: pointer; background: var(--surface);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-icon { margin-bottom: 1rem; color: var(--accent); }
.dropzone-icon svg { display: block; margin-inline: auto; }
.dropzone h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.dropzone p { color: var(--muted); font-size: .9rem; }
.dropzone input[type="file"] { display: none; }

[data-state] .dz-idle, [data-state] .dz-working, [data-state] .dz-review, [data-state] .dz-error { display: none; }
[data-state="idle"] .dz-idle { display: block; }
[data-state="uploading"] .dz-working, [data-state="working"] .dz-working { display: block; }
[data-state="review"] .dz-review { display: block; }
[data-state="error"] .dz-error { display: block; }

.progress-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 1.2rem 0 .6rem; }
.progress-fill { height: 100%; background: var(--accent); width: 8%; transition: width .5s var(--ease-out); border-radius: 999px; }
.progress-label { font-size: .9rem; color: var(--ink-soft); }
.spinner {
  width: 2.2rem; height: 2.2rem; border-radius: 999px; border: 3px solid var(--border);
  border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin-inline: auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } }

/* Document review workspace */
.review-layout { display: grid; gap: 1.5rem; }
@media (min-width: 980px) { .review-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.page-canvas-wrap { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; background: #fff; scroll-margin-top: 90px; }
.page-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.redact-box {
  position: absolute; background: var(--redact); cursor: pointer; opacity: .92;
  transition: opacity .15s var(--ease-out), outline .15s var(--ease-out);
}
.redact-box.is-off { background: transparent; outline: 2px dashed var(--accent); opacity: 1; }
.redact-box.is-manual.is-off { outline-color: var(--warn); }
.detections-panel { display: flex; flex-direction: column; gap: .6rem; max-height: 70vh; overflow-y: auto; }
.detection-item {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); font-size: .85rem;
}
.detection-item .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .15rem .45rem; border-radius: 5px; flex-shrink: 0; }
.detection-item .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.detection-item.is-missing .tag { color: var(--warn); background: var(--warn-soft); }
.detection-item input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex-shrink: 0; }
.detection-item .del { color: var(--muted); flex-shrink: 0; }
.detection-item .del:hover { color: var(--danger); }
.page-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.page-nav .pos { font-weight: 600; font-size: .92rem; }

/* Toasts (never alert()) */
.toast-region { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: .6rem; max-width: min(360px, 90vw); }
.toast {
  background: var(--ink); color: var(--bg); padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; align-items: flex-start; gap: .6rem;
  animation: toast-in .25s var(--ease-out);
}
.toast.is-error { background: var(--danger); color: #fff; }
.toast.is-ok { background: var(--ok); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Account page */
.account-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding-block: .7rem; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--muted); font-size: .9rem; }
.stat-row .value { font-weight: 700; }
.history-item { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.history-item:last-child { border-bottom: none; }
.history-item .date { color: var(--muted); }
.history-item .cost { font-weight: 700; color: var(--accent); }

/* Legal pages */
.legal-body { max-width: 720px; margin-inline: auto; }
.legal-body h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .75rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: .8rem; font-size: .96rem; }
.legal-body li { list-style: disc; margin-left: 1.3rem; }

/* =============================================================
   6. Responsive breakpoints reference
   ============================================================= */
/* 540 / 720 / 960 / 1280 / 1600 — used inline above */

/* =============================================================
   7. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}
