:root {
  color-scheme: light;
  --ink: #19333a;
  --ink-soft: #31535a;
  --muted: #6c8083;
  --muted-light: #87999a;
  --paper: #f4f8f6;
  --panel: #ffffff;
  --panel-soft: #eaf3f0;
  --line: #d6e3df;
  --line-strong: #b9d0c9;
  --teal: #0f6b6b;
  --teal-dark: #084c50;
  --teal-pale: #dff0ec;
  --gold: #bd7c2f;
  --gold-pale: #fff2dc;
  --danger: #a3484b;
  --danger-pale: #fcecec;
  --shadow: 0 24px 70px rgba(25, 51, 58, .08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--paper); }

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { cursor: pointer; }

button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15, 107, 107, .25);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.site-shell { min-height: 100vh; overflow: hidden; }

.site-header { position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 22px 28px; }

.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }

.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #fff; background: var(--teal); box-shadow: 0 7px 17px rgba(15, 107, 107, .22); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1; }

.brand-copy { display: grid; gap: 1px; }

.brand-name { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: -.025em; }

.brand-note { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.nav-links, .nav-account { display: flex; align-items: center; gap: 17px; }

.nav-links { margin-left: auto; }

.nav-links a, .nav-account a, .nav-account button { color: var(--ink-soft); font-size: 12px; font-weight: 700; text-decoration: none; }

.nav-links a:hover, .nav-account a:hover { color: var(--teal-dark); }

.nav-account { gap: 11px; }

.nav-account .nav-user { max-width: 170px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.nav-account .nav-button { min-height: 35px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--teal-dark); background: rgba(255, 255, 255, .6); }

.nav-account .nav-button:hover { border-color: var(--teal); background: var(--teal-pale); }

.nav-account .nav-button.primary { border-color: var(--teal); color: #fff; background: var(--teal); }

.nav-account .nav-button.primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }

.nav-error { position: absolute; top: calc(100% + 2px); right: 28px; max-width: 300px; padding: 8px 10px; border: 1px solid #e5b9b9; border-radius: 7px; color: var(--danger); background: var(--danger-pale); font-size: 11px; line-height: 1.45; }

.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }

.local-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .58); font-size: 10px; font-weight: 750; letter-spacing: .04em; }

.local-pill::before { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); content: ""; }

.hero-eyebrow { margin-top: 28px; }

.hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 78px 28px 96px; }

.hero::before { position: absolute; z-index: -1; top: -180px; right: -140px; width: 640px; height: 620px; border-radius: 48% 52% 58% 42%; background: radial-gradient(circle at 45% 45%, rgba(179, 218, 205, .75), rgba(179, 218, 205, 0) 67%); content: ""; filter: blur(2px); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(46px, 8vw, 110px); align-items: center; }

.hero h1 { max-width: 700px; margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7.2vw, 88px); font-weight: 500; letter-spacing: -.065em; line-height: .96; }

.hero h1 em { color: var(--teal); font-style: normal; }

.hero-lede { max-width: 570px; margin: 25px 0 0; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 33px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 11px 17px; font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }

.button:hover { transform: translateY(-1px); }

.button:disabled { cursor: wait; opacity: .55; transform: none; }

.button-primary { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 10px 18px rgba(15, 107, 107, .13); }

.button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.button-secondary { color: var(--teal-dark); background: rgba(255, 255, 255, .62); border-color: var(--line-strong); }

.button-secondary:hover { background: var(--teal-pale); border-color: var(--teal); }

.button-quiet { min-height: 40px; color: var(--ink-soft); background: transparent; border-color: transparent; }

.button-quiet:hover { color: var(--teal-dark); background: var(--teal-pale); }

.hero-note { display: flex; align-items: flex-start; gap: 9px; max-width: 560px; margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }

.hero-note::before { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--gold); content: ""; }

.hero-card { position: relative; padding: 25px; border: 1px solid rgba(185, 208, 201, .9); border-radius: 17px; background: rgba(255, 255, 255, .75); box-shadow: var(--shadow); backdrop-filter: blur(12px); }

.hero-card::after { position: absolute; right: 24px; bottom: -26px; width: 90px; height: 90px; border-radius: 28px; background: var(--gold-pale); content: ""; opacity: .7; transform: rotate(18deg); z-index: -1; }

.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.card-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; letter-spacing: -.02em; }

.card-meta { color: var(--muted); font-size: 10px; font-weight: 700; }

.card-body { display: grid; gap: 13px; margin-top: 20px; }

.card-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e6efec; }

.card-row:last-child { border-bottom: 0; }

.card-number { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--teal-dark); background: var(--teal-pale); font-size: 11px; font-weight: 850; }

.card-row strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }

.card-row span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }

.card-foot strong { color: var(--teal-dark); font-size: 11px; }

.card-foot span { color: var(--muted); font-size: 10px; text-align: right; }

.section { max-width: 1240px; margin: 0 auto; padding: 87px 28px; }

.section-rule { border-top: 1px solid var(--line); }

.section-heading { max-width: 650px; }

.section-heading h2 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 4.7vw, 59px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }

.section-heading p { max-width: 560px; margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; }

.step { min-height: 195px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .53); }

.step-number { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 28px; border-radius: 8px; color: #fff; background: var(--teal); font-size: 11px; font-weight: 850; }

.step h3 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }

.step p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.scope-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; margin-top: 42px; }

.scope-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--panel-soft); }

.scope-card h3 { margin: 0 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }

.scope-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

.scope-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.scope-list li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

.scope-list li:last-child { border-bottom: 0; }

.scope-list li::before { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--teal); content: ""; }

.cta-section { padding-top: 72px; padding-bottom: 105px; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 31px 34px; border-radius: 15px; color: #fff; background: var(--teal-dark); box-shadow: 0 21px 45px rgba(8, 76, 80, .18); }

.cta-panel h2 { max-width: 600px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.7vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }

.cta-panel p { max-width: 480px; margin: 10px 0 0; color: rgba(255, 255, 255, .74); font-size: 12px; line-height: 1.55; }

.cta-panel .button { flex: 0 0 auto; color: var(--teal-dark); background: #fff; border-color: #fff; box-shadow: none; }

.cta-panel .button:hover { color: var(--teal-dark); background: var(--teal-pale); border-color: var(--teal-pale); }

.site-footer { max-width: 1240px; margin: 0 auto; padding: 24px 28px 37px; border-top: 1px solid var(--line); }

.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

.footer-copy { max-width: 420px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.footer-copy strong { display: block; margin-bottom: 6px; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; font-weight: 700; }

.footer-links a:hover { color: var(--teal-dark); }

/* Shared state and result surfaces */
.page-main { max-width: 1120px; margin: 0 auto; padding: 55px 28px 105px; }

.page-intro { max-width: 760px; margin-bottom: 37px; }

.page-intro h1 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 70px); font-weight: 500; letter-spacing: -.06em; line-height: .98; }

.page-intro p { max-width: 650px; margin: 19px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.status { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .6); font-size: 12px; line-height: 1.5; }

.status::before { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--gold); content: ""; }

.status.error { color: var(--danger); border-color: #e2b5b6; background: var(--danger-pale); }

.status.error::before { background: var(--danger); }

.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }

.result-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px; border-bottom: 1px solid var(--line); }

.result-card-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }

.result-card-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.result-chip { display: inline-flex; flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: 10px; font-weight: 800; }

.result-card-body { padding: 25px; }

.result-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }

.summary-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #f8fbfa; font-size: 11px; }

.summary-chip strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

.result-table { width: 100%; min-width: 390px; border-collapse: collapse; font-size: 12px; }

.result-table th { padding: 11px 12px; color: var(--muted); background: #f1f7f4; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }

.result-table td { padding: 12px; border-top: 1px solid var(--line); color: var(--ink); }

.result-table tbody tr:hover { background: #f8fcfa; }

.result-empty { padding: 22px; color: var(--muted); font-size: 12px; }

.sample-failure-title { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }

.sample-failure-detail { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.sample-failure-action { margin-top: 20px; }

.result-lower { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 17px; margin-top: 20px; }

.result-panel { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }

.result-panel h3 { margin: 0 0 11px; color: var(--ink-soft); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }

.result-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.provenance-panel summary { color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }

.provenance-panel[open] summary { margin-bottom: 15px; }

.provenance-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 13px; margin: 0; font-size: 11px; }

.provenance-grid dt { color: var(--muted); font-weight: 750; }

.provenance-grid dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); line-height: 1.45; }

.provenance-grid code { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; white-space: pre-wrap; }

.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }

.page-cta p { max-width: 590px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Auth */
.auth-main { display: grid; min-height: calc(100vh - 83px); place-items: center; padding: 35px 22px 80px; }

.auth-card { width: min(100%, 500px); padding: clamp(24px, 5vw, 39px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }

.auth-card h1 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 5vw, 51px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }

.auth-card .lede { margin: 14px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

.auth-form { display: grid; gap: 16px; margin-top: 27px; }

.field { display: grid; gap: 7px; }

.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 12px; font-weight: 800; }

.field label span { color: var(--muted); font-size: 10px; font-weight: 500; }

.field input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: #fbfdfc; font-size: 14px; }

.field input::placeholder { color: #a0b0ad; }

.field-help { margin: -2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.auth-form .button { width: 100%; margin-top: 3px; }

.auth-message { min-height: 0; margin-top: 17px; }

.auth-switch { margin: 23px 0 0; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }

.auth-switch a { color: var(--teal-dark); font-weight: 800; }

.local-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 12px; border: 1px solid #e6d4b4; border-radius: 8px; color: #7d5a2d; background: var(--gold-pale); font-size: 10px; line-height: 1.5; }

.local-note::before { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--gold); content: ""; }

.signed-in-card { display: grid; gap: 12px; margin-top: 25px; padding: 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--teal-pale); }

.signed-in-card strong { color: var(--teal-dark); font-size: 13px; }

.signed-in-card span { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }

.signed-in-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Local test-mode plan and usage */
.billing-main { padding-top: 48px; }
.billing-intro { margin-bottom: 30px; }
.billing-intro .local-pill { margin-bottom: 24px; }
.billing-intro h1 { max-width: 760px; }
.billing-intro p:last-child { max-width: 690px; }
.billing-alert { margin: -7px 0 22px; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 17px; }
.billing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.billing-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.billing-card-header h2 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.billing-card-body { padding: 24px; }
.plan-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.plan-price-row strong { display: block; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 41px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.plan-price-row span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.plan-status, .reconciliation-status { display: inline-flex; align-items: center; min-height: 29px; padding: 6px 10px; border: 1px solid #b7d9d6; border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.plan-status.is-revoked, .reconciliation-status.is-warning { border-color: #e2b5b6; color: var(--danger); background: var(--danger-pale); }
.billing-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 20px 0 0; }
.billing-facts div { min-width: 0; }
.billing-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.billing-facts dd { overflow-wrap: anywhere; margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 1.45; }
.billing-copy { max-width: 680px; margin: 21px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.billing-actions .button { min-height: 39px; font-size: 11px; }
.billing-actions .button-quiet { padding-right: 9px; padding-left: 9px; }
.billing-action-note { margin: 14px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.5; }
.usage-day { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.limit-list { display: grid; gap: 22px; margin-top: 24px; }
.limit-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 12px; }
.limit-heading strong { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.limit-track { height: 9px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--panel-soft); }
.limit-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.limit-row p { margin: 7px 0 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.usage-rule { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; }
.usage-rule .note-dot { margin-top: 4px; }
.reconciliation-card { margin-top: 17px; }
.reconciliation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 9px; margin-top: 22px; }
.reconciliation-stat { display: grid; gap: 8px; min-height: 79px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; }
.reconciliation-stat span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.reconciliation-stat strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; }
.billing-details { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 14px; }
.billing-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 800; }
.billing-details summary:hover { color: var(--teal-dark); }
.billing-events { display: grid; gap: 8px; max-height: 350px; margin-top: 13px; overflow-y: auto; }
.billing-event { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfc; }
.billing-event-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.billing-event-type { color: var(--ink); font-size: 11px; font-weight: 800; }
.billing-event-state { flex: 0 0 auto; color: var(--teal-dark); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.billing-event-state.is-denied, .billing-event-state.is-failed { color: var(--danger); }
.billing-event-meta, .billing-event-detail, .billing-events-empty { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.billing-event-detail { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; }
.billing-events-empty { padding: 2px; }
.billing-footnote { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 24px; padding: 25px 27px; border-radius: 13px; color: #fff; background: var(--teal-dark); box-shadow: 0 18px 39px rgba(8, 76, 80, .15); }
.billing-footnote .eyebrow { color: rgba(255, 255, 255, .66); }
.billing-footnote h2 { max-width: 620px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 35px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.billing-footnote p:last-child { max-width: 630px; margin: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 11px; line-height: 1.55; }
.billing-footnote .button { flex: 0 0 auto; color: var(--teal-dark); background: #fff; border-color: #fff; }
.billing-footnote .button:hover { color: var(--teal-dark); background: var(--teal-pale); border-color: var(--teal-pale); }

@media (max-width: 860px) {
  .site-nav { align-items: flex-start; flex-wrap: wrap; }
  .nav-account { max-width: 100%; margin-left: auto; flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .scope-grid, .result-lower, .billing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .site-header { padding: 16px 17px; }
  .site-nav { align-items: flex-start; }
  .nav-links { display: none; }
  .nav-account { max-width: 205px; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
  .nav-account .nav-user { display: none; }
  .nav-account a, .nav-account button { font-size: 11px; }
  .nav-account .nav-button { min-height: 33px; padding: 7px 9px; }
  .hero { padding: 57px 17px 70px; }
  .hero h1 { font-size: 49px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-card { padding: 19px; }
  .section { padding: 64px 17px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .cta-section { padding-top: 47px; padding-bottom: 75px; }
  .cta-panel { align-items: stretch; flex-direction: column; padding: 25px 22px; }
  .cta-panel .button { width: 100%; }
  .site-footer { padding: 22px 17px 29px; }
  .footer-row { flex-direction: column; }
  .page-main { padding: 37px 17px 77px; }
  .result-card-header, .result-card-body { padding: 18px; }
  .result-card-header { flex-direction: column; gap: 12px; }
  .page-cta { align-items: stretch; flex-direction: column; }
  .page-cta .button { width: 100%; }
  .provenance-grid { grid-template-columns: 1fr; gap: 3px; }
  .provenance-grid dd { margin-bottom: 7px; }
  .billing-main { padding-top: 37px; }
  .billing-card-header, .billing-card-body { padding: 18px; }
  .billing-card-header { flex-direction: column; gap: 12px; }
  .billing-facts { grid-template-columns: 1fr; gap: 12px; }
  .reconciliation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-footnote { align-items: stretch; flex-direction: column; padding: 22px; }
  .billing-footnote .button { width: 100%; }
  .auth-main { padding: 24px 17px 58px; }
}

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