@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* clearcodeMD — shared site styles. Design palette (Account.dc.html), shared with both
   apps: ink #12211F, teal #0D7377, mint #2DD4BF, canvas #EEF3F3. */

:root {
  --navy: #12211F;
  --navy-deep: #0A5457;
  --blue: #0D7377;
  --blue-light: #2DD4BF;
  --blue-pale: #D9EDEE;
  --ink: #12211F;
  --muted: #5A6B6B;
  --line: #E3EBEB;
  --bg: #EEF3F3;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Keep the page width constant whether or not the content is tall enough to
   scroll — otherwise switching account tabs adds/removes the scrollbar and the
   whole layout jumps sideways. overflow-y:scroll always shows the track on
   classic-scrollbar systems (Windows, macOS w/ "always show"); scrollbar-gutter
   covers browsers that reserve space without drawing a track. Overlay-scrollbar
   systems never had the problem and ignore both. */
html { overflow-y: scroll; scrollbar-gutter: stable; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; }
.brand img { width: 38px; height: 38px; }
.brand .clear { color: var(--navy); }
.brand .md { color: var(--blue); }
nav.main { margin-left: auto; display: flex; gap: 20px; align-items: center; }
nav.main a { color: var(--muted); font-weight: 500; }
nav.main a.cta {
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: 999px;
}
nav.main a.cta:hover { background: var(--navy-deep); text-decoration: none; }

/* Persistent account menu (avatar + dropdown) shown in the header once signed in.
   Injected by auth.js on every page, so these live in the shared stylesheet. */
.me-wrap { position: relative; }
.me-btn { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; display: block; border-radius: 50%; }
.me-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block;
  background: var(--blue-pale); border: 2px solid var(--line);
}
.me-btn:hover .me-avatar, .me-btn[aria-expanded="true"] .me-avatar { border-color: var(--blue); }
.me-drop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 34px rgba(28,58,102,.16);
}
.me-drop[hidden] { display: none; }
.me-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 10px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  color: var(--navy); cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.me-item:hover { background: var(--blue-pale); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.hero img.mark { width: 120px; height: 120px; }
.hero h1 { font-size: 2.6rem; margin: 18px 0 10px; color: var(--navy); line-height: 1.15; }
.hero h1 .md { color: var(--blue); }
.hero p.sub { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--navy);
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-deep); text-decoration: none; }
.btn.ghost { color: var(--navy); background: #fff; }
.btn.ghost:hover { background: var(--blue-pale); text-decoration: none; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding: 26px 0 60px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff;
}
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.06rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.band { background: var(--blue-pale); padding: 40px 0; }
.band .wrap { text-align: center; }
.band h2 { color: var(--navy); margin: 0 0 8px; }
.band p { color: var(--muted); max-width: 700px; margin: 0 auto; }

/* Marketing surfaces */
.page-hero { padding: 82px 0 58px; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 800px; margin: 14px auto; color: var(--navy); font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.045em; }
.page-hero .sub { max-width: 690px; margin: 0 auto 28px; color: var(--muted); font-size: 1.16rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); background: var(--blue-pale); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 750; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.proof-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 22px; margin: 26px 0 0; color: var(--muted); font-size: .87rem; }
.proof-row span { display: inline-flex; align-items: center; gap: 7px; }
.proof-row span::before { content: "✓"; color: #167449; font-weight: 800; }
.section { padding: 66px 0; }
.section.tinted { background: #F6FAFE; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 690px; margin: 0 auto 30px; text-align: center; }
.section-head h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.18; }
.section-head p { margin: 0; color: var(--muted); }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.workflow-step { position: relative; padding: 20px; min-height: 185px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.workflow-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 750; font-size: .85rem; margin-bottom: 18px; }
.workflow-step h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.workflow-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-pale); color: var(--navy); font-size: 1.2rem; margin-bottom: 14px; }
.feature-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: 0 12px 28px rgba(28,58,102,.08); }
.safety-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.safety-card { padding: 30px; border-radius: 18px; background: var(--navy); color: #fff; }
.safety-card h2 { margin: 0 0 10px; font-size: 1.75rem; line-height: 1.2; }
.safety-card p { margin: 0; color: var(--blue-light); }
.safety-list { display: grid; gap: 12px; }
.safety-list .card { display: flex; align-items: flex-start; gap: 12px; }
.safety-list .icon { flex: none; color: #167449; font-weight: 800; }
.callout { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, #F6FAFE, #fff); text-align: center; }
.callout h2 { margin: 0 0 8px; color: var(--navy); }
.callout p { max-width: 650px; margin: 0 auto 18px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 30px 0 40px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--navy); box-shadow: 0 10px 30px rgba(28,58,102,.10); position: relative; }
.plan.featured .tag {
  position: absolute; top: -13px; left: 24px; background: var(--navy); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.plan h3 { margin: 0; color: var(--navy); }
.price { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 10px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 20px; color: var(--muted); flex: 1; }
.plan li { margin: 7px 0; }
.plan .btn { text-align: center; }

/* Forms */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 22px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 8px 26px rgba(28,58,102,.07); }
.auth-card h1 { margin: 0 0 4px; font-size: 1.5rem; color: var(--navy); text-align: center; }
.auth-card p.hint { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: .95rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 5px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], input:not([type]), select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 1rem; outline: none; background: #fff; color: var(--ink);
  font-family: inherit;
}
input:focus, select:focus { border-color: var(--blue); }
/* "Remember this device" (2FA step) — an inline checkbox, not a form field. */
.remember-row {
  display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0;
  font-weight: 500; font-size: .92rem; color: var(--muted); cursor: pointer;
}
.remember-row input[type=checkbox] { width: auto; margin: 3px 0 0; accent-color: var(--navy); }
/* Waiting-for-the-phone line while a sign-in approval is pending in the app. */
.approve-wait {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 18px 0 4px; font-weight: 600; color: var(--navy);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none;
  animation: ccmd-pulse 1.2s ease-in-out infinite;
}
@keyframes ccmd-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .45; }
}
label .opt { font-weight: 400; color: var(--muted); }
/* Honeypot: parked off-screen (not display:none) so naive bots still fill it. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verify-note { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }
button.submit {
  width: 100%; margin-top: 20px; padding: 13px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 1.02rem; font-weight: 600; cursor: pointer;
}
button.submit:hover { background: var(--navy-deep); }
button.submit:disabled { opacity: .6; cursor: wait; }
.error {
  display: none; background: #FBEAEA; color: #8C2F2F; border-radius: 9px;
  padding: 10px 13px; margin-top: 16px; font-size: .93rem;
}
.swap { text-align: center; margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* Admin dashboard */
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.admin-stats .stat {
  flex: 1 1 120px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  background: #fff;
}
.admin-stats .v { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.admin-stats .k { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .8rem; }

.admin-table td .row-actions { display: flex; gap: 6px; }
.admin-table .btn-sm {
  border: 1.5px solid var(--line); background: #fff; border-radius: 7px;
  padding: 4px 10px; font-size: .82rem; cursor: pointer; color: var(--navy);
}
.admin-table .btn-sm:hover { border-color: var(--blue); }
.admin-sub { font-size: .78rem; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.admin-pending td { opacity: .8; }
.admin-toggle { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: .95rem; cursor: pointer; }
.admin-toggle input { width: 18px; height: 18px; margin: 0; flex: none; }
[data-admin-settings] textarea { width: 100%; min-height: 44px; margin: 4px 0 12px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; resize: vertical; background: var(--surface); color: var(--ink); }
.pill-active, .pill-paused, .pill-pending { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-active { color: #0f7a4a; background: #dcf2e6; }
.pill-paused { color: #8a6d1a; background: #faf1d6; }
.pill-pending { color: #0d7377; background: #d9edee; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,30,50,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal {
  background: #fff; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 440px;
  box-shadow: 0 18px 50px rgba(20,30,50,.28); max-height: 90vh; overflow-y: auto;
}
.modal .check-row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 14px; }
.modal .check-row input { width: auto; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; color: var(--navy); font-weight: 600; }
.btn-danger { background: #fff; border: 1.5px solid #E0B4B4; color: #A32F2F; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 600; }
.btn-danger:hover { background: #FBEAEA; }

/* Account billing */
.billing-note { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.billing-note.warn { color: #8C2F2F; }

/* Signed-in account surfaces */
.account-intro { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin: 30px 0 16px; }
.account-intro h1 { margin: 0; }
.account-intro .lede { margin: 2px 0 0; }
.account-note { max-width: 550px; margin: -8px 0 18px; color: var(--muted); font-size: .92rem; }
.tab-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.tab-intro h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.4rem; }
.tab-intro p { margin: 0; color: var(--muted); max-width: 650px; }
.account-card { border-radius: 16px; box-shadow: 0 6px 18px rgba(28,58,102,.035); }
.account-card .dash-card-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.status-summary { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 10px; background: #F6FAFE; color: var(--muted); font-size: .92rem; }
.status-summary .status-mark { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-pale); color: var(--navy); font-weight: 800; }
.security-list { display: grid; gap: 10px; margin: 14px 0 0; }
.security-list .security-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.security-list .security-row:last-child { border-bottom: 0; }
.security-list .security-row strong { display: block; color: var(--ink); }
.billing-privacy { margin: 16px 0 20px; padding: 12px 14px; border: 1px solid #D2E5F8; border-radius: 10px; background: #F6FAFE; color: var(--muted); font-size: .9rem; }
.billing-privacy strong { color: var(--navy); }

/* Prose pages (privacy/terms) */
.prose { max-width: 760px; margin: 40px auto 70px; padding: 0 22px; }
.prose h1 { color: var(--navy); }
.prose h2 { color: var(--navy); margin-top: 34px; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink); }
.prose .updated { color: var(--muted); font-size: .9rem; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 28px; }
.support-card { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.support-card:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.onboarding-list { margin: 4px 0 0; padding: 0; color: var(--muted); list-style: none; }
.onboarding-list li { position: relative; min-height: 24px; margin: 9px 0; padding: 2px 0 2px 32px; }
.onboarding-list li::before { content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; border: 1.5px solid #9aa8bb; border-radius: 50%; box-sizing: border-box; }
.onboarding-list li.done { color: #1a7f37; }
.onboarding-list li.done::before { content: "✓"; display: grid; place-items: center; border-color: #1a7f37; background: #1a7f37; color: #fff; font-size: .8rem; font-weight: 800; line-height: 1; }

/* Account */
.kv { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; margin-top: 20px; }
.kv .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv .row:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; color: var(--ink); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 34px;
  color: var(--muted); font-size: .92rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer.site nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  /* Hide only the top-level nav links (Pricing/Privacy) on mobile — NOT anchors
     inside the account dropdown (e.g. the admin link), which live deeper. */
  nav.main > a:not(.cta) { display: none; }
  .page-hero { padding: 54px 0 42px; }
  .page-hero h1 { font-size: 2.35rem; }
  .workflow, .safety-grid { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; }
  .section { padding: 46px 0; }
  .account-intro, .tab-intro { display: block; }
}

/* Claims dashboard */
:root {
  /* Series hues (validated pair: CVD ΔE 73.6 on white) + fixed status palette.
     Paid-the-series is aqua-green; status colors are reserved for state and
     always ship with a glyph + label, never color alone. */
  --viz-billed: #2a78d6;
  --viz-paid: #1baf7a;
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-serious: #ec835a;
  --status-critical: #d03b3b;
  --status-neutral: #5B6B7A;
}
.dash { padding-bottom: 60px; }
.dash-title { color: var(--navy); margin: 34px 0 4px; }
.dash-sub { color: var(--muted); margin: 0 0 20px; max-width: 640px; }
.dash-empty { max-width: 560px; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 16px; }
.range-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
.range-label select { width: auto; padding: 7px 10px; font-size: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 5px 14px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.tile-label { font-size: .84rem; color: var(--muted); }
.tile-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.tile-value.tile-good { color: #006300; }
.tile-sub { font-size: .82rem; color: var(--muted); }

.dash-card { margin-bottom: 14px; }
.dash-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-card-head h3 { margin: 0; flex: 1; }
.dash-count { color: var(--muted); font-weight: 500; font-size: .9rem; }
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dash-two .dash-card { margin-bottom: 0; }

.legend { display: flex; gap: 16px; font-size: .84rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }

.chart-scroll { overflow-x: auto; }
.earnings-chart svg { display: block; }
.earnings-chart .grid { stroke: var(--line); stroke-width: 1; }
.earnings-chart .baseline { stroke: #C7D0DB; stroke-width: 1; }
.earnings-chart .tick { fill: #7A8794; font-size: 11px; }
.earnings-chart .endlab { fill: var(--ink); font-size: 11px; font-weight: 600; }
.earnings-chart .hit { outline-offset: -2px; cursor: default; }
.earnings-chart .hit:hover, .earnings-chart .hit:focus { outline: 1.5px solid var(--blue-light); }
.chart-none, .table-none { color: var(--muted); font-size: .92rem; }

.viz-tooltip {
  position: fixed; z-index: 60; pointer-events: none; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  box-shadow: 0 8px 26px rgba(28,58,102,.14); font-size: .86rem; max-width: 260px;
}
.viz-tooltip .tip-row { display: flex; align-items: center; gap: 7px; padding: 1px 0; }
.viz-tooltip .tip-key { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.viz-tooltip strong { color: var(--ink); }
.viz-tooltip span { color: var(--muted); }

.status-bar { display: flex; gap: 2px; height: 16px; border-radius: 5px; overflow: hidden; margin: 6px 0 14px; }
.status-bar .seg { border: 0; padding: 0; min-width: 6px; cursor: default; }
.status-bar .seg:first-child { border-radius: 4px 0 0 4px; }
.status-bar .seg:last-child { border-radius: 0 4px 4px 0; }
.status-bar .seg:hover, .status-bar .seg:focus { filter: brightness(1.12); outline: none; }
.status-legend-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.status-legend-row:last-child { border-bottom: 0; }
.status-legend-row.none { opacity: .55; }
.status-legend-row .glyph { width: 16px; text-align: center; color: var(--muted); flex: none; }
.status-legend-row .lab { flex: 1; color: var(--ink); }
.status-legend-row .val { color: var(--muted); font-variant-numeric: tabular-nums; }

.aging-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .92rem; }
.aging-row .lab { flex: 0 0 110px; color: var(--ink); }
.aging-row .track { flex: 1; height: 12px; }
.aging-row .fill { display: block; height: 100%; background: var(--viz-billed); border-radius: 0 4px 4px 0; }
.aging-row .val { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.stale-note { color: #8a5a12; font-size: .88rem; margin: 10px 0 0; }

.table-scroll { overflow-x: auto; }
.claims-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.claims-table th, .claims-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.claims-table th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.claims-table th.num, .claims-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.claims-table .claim-row { cursor: pointer; }
.claims-table .claim-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.claims-table .claim-row:focus { outline: 1.5px solid var(--blue-light); outline-offset: -1px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: .82rem; color: var(--ink); }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.detail-box { padding: 4px 2px 10px; }
.items-table { border-collapse: collapse; font-size: .86rem; }
.items-table th, .items-table td { padding: 4px 14px 4px 0; border: 0; color: var(--muted); white-space: normal; }
.items-table th { font-size: .76rem; }
.items-table td:first-child { color: var(--ink); font-weight: 600; }
.detail-facts { margin: 6px 0 0; font-size: .84rem; color: var(--muted); white-space: normal; }
.show-more { margin-top: 12px; }
.btn-sm {
  border: 1.5px solid var(--line); background: #fff; border-radius: 7px;
  padding: 4px 10px; font-size: .82rem; cursor: pointer; color: var(--navy);
}
.btn-sm:hover { border-color: var(--blue); }

/* --------------------------------------------------------------------------
   2026 product system — shared with the supplied home/login/register concept.
   These overrides deliberately keep the existing semantic markup and account
   scripts intact while replacing the visual language across every page.
   -------------------------------------------------------------------------- */
:root {
  --bg: #eef3f3;
  --surface: #ffffff;
  --ink: #12211f;
  --muted: #5a6b6b;
  --faint: #7a8a8a;
  --line: #e3ebeb;
  --navy: #12211f;
  --navy-deep: #0a5457;
  --blue: #0d7377;
  --blue-light: #2dd4bf;
  --blue-pale: #d9edee;
  --accent: #0d7377;
  --accent-deep: #0a5457;
  --accent-soft: #d9edee;
  --radius: 16px;
  --shadow-soft: 0 18px 40px -28px rgba(10, 84, 87, .34);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1615;
  --surface: #152020;
  --ink: #e8f0ef;
  --muted: #a7b7b4;
  --faint: #93a5a2;
  --line: #243230;
  --navy: #e8f0ef;
  --navy-deep: #f4faf9;
  --blue: #2dd4bf;
  --blue-light: #7ce8d9;
  --blue-pale: #193a37;
  --accent: #2dd4bf;
  --accent-deep: #7ce8d9;
  --accent-soft: #193a37;
  --shadow-soft: 0 18px 40px -28px rgba(0, 0, 0, .88);
  /* Status + series hues re-tuned for a dark canvas: the white-tuned values above
     (esp. the slate neutral) go muddy on #152020, so lift and desaturate them. */
  --viz-billed: #5fa0ee;
  --viz-paid: #35c98f;
  --status-good: #35c98f;
  --status-warning: #f5c451;
  --status-serious: #f2a074;
  --status-critical: #ef6f6f;
  --status-neutral: #93a7b3;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(13,115,119,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13,115,119,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  line-height: 1.55;
}
body::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }
.wrap { max-width: 1200px; padding-left: 40px; padding-right: 40px; }

header.site {
  background: rgba(248,252,253,.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
header.site .wrap { min-height: 76px; padding-top: 14px; padding-bottom: 14px; gap: 24px; }
.brand { gap: 11px; font-size: 1.08rem; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand .clear { color: var(--ink); }
.brand .md { color: var(--accent-deep); }
nav.main { gap: 4px; }
nav.main a { color: var(--muted); font-size: .91rem; font-weight: 500; padding: 8px 12px; }
nav.main a:hover { color: var(--ink); text-decoration: none; }
nav.main a.cta, .btn.primary, button.submit {
  border-radius: 10px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
nav.main a.cta { padding: 10px 16px; color: #fff; }
nav.main a.cta:hover, .btn.primary:hover, button.submit:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

footer.site { background: rgba(255,255,255,.7); border-top-color: var(--line); margin-top: 0; padding: 30px 0; }
footer.site .wrap { min-height: 0; }
footer.site a { color: var(--muted); }

.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  cursor: pointer; font-size: 1.12rem; line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle:focus-visible, .theme-choice:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* Fast, understated full-page navigation buffer. The mark echoes the
   clearcodeMD diamond while the loading line confirms that the next page is
   on its way; it never intercepts a click itself. */
.page-transition {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(248,252,253,.84); /* fallback for older browsers */
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(4px);
  transition: opacity .14s ease, visibility 0s linear .14s;
}
.page-transition.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.page-transition__panel {
  display: grid; justify-items: center; gap: 14px; min-width: 156px;
  padding: 21px 24px 17px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-soft);
  transform: translateY(8px) scale(.97); transition: transform .16s ease;
}
.page-transition.is-active .page-transition__panel { transform: translateY(0) scale(1); }
.page-transition__mark {
  width: 25px; height: 25px; border: 3px solid var(--accent-deep); border-radius: 7px;
  background: var(--accent); transform: rotate(45deg); animation: page-transition-mark 1s ease-in-out infinite;
}
.page-transition__label {
  color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .69rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.page-transition__bar { width: 100%; height: 3px; overflow: hidden; border-radius: 999px; background: var(--line); }
.page-transition__bar::before { content: ""; display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--accent); animation: page-transition-bar .8s ease-in-out infinite; }
html.page-is-leaving body > *:not(.page-transition) { animation: page-content-leave .16s ease forwards; }
@keyframes page-transition-mark { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(45deg) scale(.83); } }
@keyframes page-transition-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(245%); } }
@keyframes page-content-leave { to { opacity: .5; transform: translateY(-3px); } }

/* Marketing / information pages */
.page-hero { padding: 84px 0 62px; }
.page-hero .wrap { max-width: 920px; text-align: center; }
.page-hero h1, .hero h1 {
  color: var(--ink); font-weight: 600; letter-spacing: -.045em; text-wrap: balance;
}
.page-hero h1 { font-size: clamp(2.65rem, 6vw, 4.8rem); max-width: 860px; }
.page-hero .sub, .hero p.sub { color: var(--muted); font-size: 1.16rem; line-height: 1.6; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--accent-soft);
  color: var(--accent-deep); border: 1px solid #afddeb; border-radius: 999px;
  font-size: .76rem; font-weight: 500; letter-spacing: .045em; padding: 6px 11px; text-transform: uppercase;
}
.eyebrow::before { background: var(--accent); }
.btn { border-radius: 10px; border-color: var(--line); padding: 13px 21px; font-weight: 600; }
.btn.ghost { color: var(--ink); background: var(--surface); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.proof-row { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--faint); font-size: .76rem; }
.proof-row span::before { color: var(--accent-deep); }
.section { padding: 78px 0; }
.section.tinted { background: rgba(255,255,255,.54); border-color: var(--line); }
.section-head { max-width: 720px; }
.section-head h2, .band h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; }
.section-head p, .band p { color: var(--muted); }
.workflow { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.workflow-step { min-height: 225px; border: 0; border-radius: 0; padding: 25px 22px; background: var(--surface); }
.workflow-num {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid var(--line); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500;
}
.workflow-step h3, .card h3 { color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; }
.workflow-step p, .card p { color: var(--muted); }
.features { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.features .card { border: 0; border-radius: 0; padding: 28px; }
.feature-icon { border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.feature-card:hover { transform: none; background: rgba(227,245,247,.44); box-shadow: none; border-color: transparent; }
.safety-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.safety-card { border-radius: 0; padding: 42px; background: var(--ink); }
.safety-card h2 { font-weight: 600; letter-spacing: -.03em; }
.safety-card p { color: #b9c9d0; }
.safety-list { gap: 1px; background: var(--line); }
.safety-list .card { border: 0; border-radius: 0; padding: 24px; }
.safety-list .icon { color: var(--accent-deep); }
.callout { border-radius: 20px; background-color: var(--surface); background-image: linear-gradient(rgba(220,236,239,.72) 1px, transparent 1px), linear-gradient(90deg, rgba(220,236,239,.72) 1px, transparent 1px); background-size: 40px 40px; padding: 56px 36px; }
.callout h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 600; letter-spacing: -.04em; }
.callout p { color: var(--muted); }

/* Pricing, knowledge-base, support, and legal pages */
.plans { max-width: 930px; margin: 0 auto; gap: 14px; }
.plan { border-color: var(--line); border-radius: 18px; padding: 30px; background: var(--surface); }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow-soft); }
.plan.featured .tag { left: 22px; background: var(--ink); border-radius: 7px; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em; }
.plan h3, .price { color: var(--ink); }
.price { font-size: 2.7rem; letter-spacing: -.045em; }
.prose { max-width: 800px; margin-top: 36px; margin-bottom: 76px; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 18px; padding: 44px 48px; box-shadow: var(--shadow-soft); }
.prose h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; }
.prose h2 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.support-card { border-radius: 14px; }
.support-card:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Forms adopt the supplied focused, low-noise sign-in language. */
.auth-wrap { max-width: 470px; margin: 72px auto; }
.auth-card { background: rgba(255,255,255,.9); border-color: var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-soft); }
.auth-card h1 { color: var(--ink); text-align: left; font-size: 2rem; letter-spacing: -.035em; font-weight: 600; }
.auth-card p.hint { text-align: left; line-height: 1.55; }
label { color: var(--ink); font-size: .83rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input:not([type]), select { border-color: var(--line); border-radius: 10px; padding: 12px 13px; background: var(--surface); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button.submit { margin-top: 18px; padding: 13px; }
.verify-note, .billing-privacy { background: var(--accent-soft); border-color: #b4e1ea; border-radius: 12px; color: var(--accent-deep); }
.error { border-radius: 10px; }

/* Signed-in web application. */
.acct-page { background-image: none; background-color: var(--bg); }
.acct-page header.site { background: #fff; }
.acct-page .wrap.acct { padding-left: 40px; padding-right: 40px; }
.acct h1, .acct .tab-intro h2, .tab-intro h2 { color: var(--ink); letter-spacing: -.035em; font-weight: 600; }
.tabs { gap: 3px; border-bottom-color: var(--line); }
.tab { color: var(--muted); border-bottom-width: 2px; font-family: "IBM Plex Sans", sans-serif; }
.tab:hover { color: var(--ink); background: var(--accent-soft); }
.tab[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--accent); }
.dash-tile, .tile { border-color: var(--line); border-radius: 14px; background: var(--surface); }
.tile-label, .dash-count, .dash-sub, .tile-sub { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--faint); font-size: .74rem; letter-spacing: .025em; }
.tile-value { color: var(--ink); font-weight: 600; letter-spacing: -.035em; }
.tile-value.tile-good { color: var(--accent-deep); }
.account-card, .dash-card { border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.chip { border-radius: 8px; border-color: var(--line); }
.chip.on { background: var(--ink); border-color: var(--ink); }
.btn-ghost, .btn-sm { color: var(--ink); border-color: var(--line); border-radius: 8px; background: var(--surface); }
.btn-ghost:hover, .btn-sm:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-danger { background: var(--surface); }
html[data-theme="dark"] .btn-danger { border-color: #6b3a3a; color: #ff9e9e; }
html[data-theme="dark"] .btn-danger:hover { background: #3a2226; }
/* Status pills are white-tuned (light bg + dark text); on dark, invert to a deep
   tint + light text so they don't glow against the panel. */
html[data-theme="dark"] .pill-active  { color: #7ce0a8; background: #113026; }
html[data-theme="dark"] .pill-paused  { color: #f0d68a; background: #332c12; }
html[data-theme="dark"] .pill-pending { color: #7fd7db; background: #123032; }
.onboarding-list li::before { border-radius: 7px; border-color: #a7bac0; }
.onboarding-list li.done::before { border-color: var(--accent-deep); background: var(--accent-deep); }
.status-summary { background: var(--accent-soft); }
.status-summary .status-mark { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent-deep); }
.claims-table .claim-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.me-drop, .modal { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }

.appearance-card { max-width: 820px; margin-top: 18px; }
.appearance-card h3 { margin: 0; color: var(--ink); }
.appearance-card p { margin: 5px 0 16px; color: var(--muted); }
.theme-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem; }
.theme-choice:hover, .theme-choice.is-selected { background: var(--accent-soft); border-color: var(--accent); }
.theme-choice .theme-choice-icon { color: var(--accent-deep); font-size: 1rem; }

/* Home page composition mirrors the provided redesign rather than using a generic
   centered marketing hero. */
.home-hero { position: relative; overflow: hidden; padding: 76px 0 54px; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 72% 32%, rgba(44,157,184,.16), transparent 29%); pointer-events: none; }
.home-hero > .wrap { position: relative; isolation: isolate; }
.hero-mesh { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; mask-image: radial-gradient(120% 90% at 72% 20%, #000 20%, transparent 72%); }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.home-hero-copy h1 { max-width: 12ch; margin: 22px 0 0; font-size: clamp(3.3rem, 5.6vw, 5rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.01; text-wrap: balance; }
.home-hero-copy .sub { max-width: 33ch; margin: 22px 0 0; color: var(--muted); font-size: 1.18rem; line-height: 1.6; }
.home-hero-copy .btn-row { justify-content: flex-start; margin-top: 30px; }
.home-hero-copy .proof-row { justify-content: flex-start; }
.phone-preview { position: relative; width: min(310px, 82vw); min-height: 620px; margin: 0 auto; padding: 12px; border-radius: 40px; background: var(--ink); box-shadow: 0 36px 80px -28px rgba(18,108,130,.56), 0 0 0 1px var(--line); animation: phone-preview-float 6.5s ease-in-out infinite; will-change: transform; }
.phone-preview::before { content: ""; position: absolute; top: 18px; left: 50%; width: 100px; height: 20px; border-radius: 999px; background: var(--ink); transform: translateX(-50%); z-index: 2; }
.phone-preview-screen { display: flex; flex-direction: column; min-height: 596px; overflow: hidden; border-radius: 29px; background: #f7fcfd; }
.preview-top { padding: 54px 22px 20px; }
.preview-brand { font-size: .88rem; font-weight: 600; color: var(--ink); }
.preview-brand b { color: var(--accent-deep); }
.preview-date, .preview-kicker { margin-top: 28px; color: var(--faint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; letter-spacing: .045em; }
.preview-top h3 { margin: 8px 0 4px; font-size: 1.25rem; letter-spacing: -.03em; }
.preview-top p { margin: 0; color: var(--muted); font-size: .82rem; }
.preview-new { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; animation: preview-new-pulse 3.8s ease-in-out infinite; }
.preview-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); font-size: 1.2rem; font-weight: 400; animation: preview-plus-breathe 3.8s ease-in-out infinite; }
.preview-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 22px; }
.preview-card { min-height: 86px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; }
.preview-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .65rem; font-weight: 400; }
.preview-ledger { margin: 14px 22px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .67rem; color: var(--accent-deep); line-height: 2.5; }
.preview-ledger div + div { border-top: 1px solid #eef4f5; }
.preview-nav { display: flex; justify-content: space-around; margin-top: auto; padding: 15px 8px 12px; border-top: 1px solid var(--line); background: #fff; color: var(--faint); font-size: .58rem; }
.preview-nav b { color: var(--accent-deep); }
.floating-chip { position: absolute; z-index: 2; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--ink); font-size: .8rem; }
.floating-chip small { display: block; margin-bottom: 5px; color: var(--faint); font-size: .62rem; }
.floating-chip.fee { top: 72px; right: -60px; animation: preview-chip-fee 5.4s ease-in-out infinite; }
.floating-chip.return { bottom: 62px; left: -68px; color: var(--accent-deep); animation: preview-chip-return 6.1s ease-in-out -1.6s infinite; }

@keyframes phone-preview-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.35deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.35deg); }
}
@keyframes preview-chip-fee {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -9px, 0); }
}
@keyframes preview-chip-return {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-7px, 8px, 0); }
}
@keyframes preview-new-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44,157,184,0); }
  50% { box-shadow: 0 0 0 5px rgba(44,157,184,.12); }
}
@keyframes preview-plus-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.metric-strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.metric { padding: 25px 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric small, .section-kicker { color: var(--accent-deep); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.metric strong { display: block; margin-top: 8px; color: var(--ink); font-size: 1.65rem; font-weight: 600; letter-spacing: -.04em; }
.metric span { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.editorial-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.editorial-head h2 { max-width: 18ch; margin: 12px 0 0; color: var(--ink); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.editorial-head p { max-width: 38ch; margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { display: none; }
  .phone-preview, .floating-chip, .preview-new, .preview-plus { animation: none; }
  .page-transition, .page-transition__panel { transition: none; }
  .page-transition__mark, .page-transition__bar::before, html.page-is-leaving body > *:not(.page-transition) { animation: none; }
}

@media (max-width: 800px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-hero-copy { text-align: center; }
  .home-hero-copy h1, .home-hero-copy .sub { margin-left: auto; margin-right: auto; }
  .home-hero-copy .btn-row, .home-hero-copy .proof-row { justify-content: center; }
  .floating-chip.fee { right: -20px; }
  .floating-chip.return { left: -20px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .editorial-head { display: block; }
  .editorial-head p { margin-top: 18px; }
}

@media (max-width: 800px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .page-hero { padding: 58px 0 46px; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .prose { padding: 30px 24px; margin-left: 18px; margin-right: 18px; }
}
@media (max-width: 640px) {
  header.site .wrap { min-height: 64px; }
  .brand img { width: 25px; height: 25px; }
  nav.main > a:not(.cta) { display: none; }
  .page-hero h1 { font-size: 2.55rem; }
  .workflow { grid-template-columns: 1fr; }
  .features, .safety-grid { border-radius: 14px; }
  .features { grid-template-columns: 1fr; }
  .auth-wrap { margin: 38px auto; }
  .auth-card { padding: 26px 22px; }
  .acct-page .wrap.acct { padding-left: 20px; padding-right: 20px; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
  /* Footer: stack the copyright above the link nav, and let the links wrap
     left-aligned instead of running off the right edge on phones. */
  footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer.site nav { margin-left: 0; }
}

/* Auth is intentionally more editorial than the utility pages: the supplied
   concept pairs a quiet form with a dark, reassuring product statement. */
body.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  background-image: none;
}
.auth-page header.site {
  position: absolute;
  z-index: 2;
  width: 100%;
  background: rgba(248,252,253,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.auth-page header.site .wrap { max-width: 1200px; }
.auth-page header.site nav.main { display: flex; }
.auth-page .auth-wrap {
  grid-column: 1;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 122px 48px 64px;
}
.auth-page .auth-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-page .auth-card h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.auth-page .auth-card .hint { max-width: 43ch; }
.auth-aside {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  /* Keep this editorial panel dark in every theme. In dark mode --ink is light,
     which previously made its intentionally white copy disappear. */
  background: #0c171d;
  color: #fff;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(141, 209, 224, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 209, 224, .09) 1px, transparent 1px), radial-gradient(circle at 70% 24%, rgba(44,157,184,.35), transparent 30%);
  background-size: 44px 44px, 44px 44px, auto;
}
.auth-aside-inner {
  position: relative;
  align-self: center;
  max-width: 480px;
  padding: 72px clamp(36px, 7vw, 100px);
}
.auth-aside .section-kicker { color: #8dd1e0; }
.auth-aside h2 { margin: 18px 0; color: #fff; font-size: clamp(2.35rem, 4.5vw, 4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.02; }
.auth-aside p:not(.section-kicker) { max-width: 36ch; color: #b8c9d0; font-size: 1.05rem; }
.auth-aside-list { display: grid; gap: 0; margin: 38px 0 0; padding: 0; border-top: 1px solid rgba(220,236,239,.22); list-style: none; }
.auth-aside-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(220,236,239,.22); color: #e9f3f5; font-size: .9rem; }
.auth-aside-list span { color: #8dd1e0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; }

/* Dark surfaces use the same technical grid and preserve the low-noise component system. */
html[data-theme="dark"] body { background-image: linear-gradient(rgba(87,132,144,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(87,132,144,.22) 1px, transparent 1px); }
html[data-theme="dark"] header.site { background: rgba(17,27,34,.88); }
html[data-theme="dark"] footer.site, html[data-theme="dark"] .section.tinted { background: rgba(23,36,44,.72); }
html[data-theme="dark"] .card, html[data-theme="dark"] .plan, html[data-theme="dark"] .prose, html[data-theme="dark"] .metric-strip, html[data-theme="dark"] .phone-preview-screen, html[data-theme="dark"] .preview-card, html[data-theme="dark"] .preview-ledger, html[data-theme="dark"] .preview-nav, html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .theme-choice { background-color: var(--surface); }
html[data-theme="dark"] .workflow, html[data-theme="dark"] .features, html[data-theme="dark"] .safety-grid, html[data-theme="dark"] .metric-strip { background: var(--line); }
html[data-theme="dark"] .callout { background-color: var(--surface); background-image: linear-gradient(rgba(87,132,144,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(87,132,144,.22) 1px, transparent 1px); }
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] input[type=text], html[data-theme="dark"] input[type=email], html[data-theme="dark"] input[type=password], html[data-theme="dark"] input[type=tel], html[data-theme="dark"] input[type=number], html[data-theme="dark"] input[type=url], html[data-theme="dark"] input:not([type]), html[data-theme="dark"] select { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .auth-card { background: transparent; }
html[data-theme="dark"] .acct-page header.site, html[data-theme="dark"] .acct-page .me-drop, html[data-theme="dark"] .acct-page .crop-box { background: var(--surface); }
html[data-theme="dark"] .acct-page .me-drop, html[data-theme="dark"] .acct-page .crop-box { color: var(--ink); }
html[data-theme="dark"] .acct-page .avatar-edit { border-color: var(--surface); }
html[data-theme="dark"] nav.main a.cta, html[data-theme="dark"] .btn.primary, html[data-theme="dark"] button.submit, html[data-theme="dark"] .preview-new { background: #eef7f8; border-color: #eef7f8; color: #111b22; }
html[data-theme="dark"] nav.main a.cta:hover, html[data-theme="dark"] .btn.primary:hover, html[data-theme="dark"] button.submit:hover { background: #8dd1e0; border-color: #8dd1e0; color: #111b22; }
html[data-theme="dark"] .safety-card { background: #0c171d; }

@media (max-width: 800px) {
  body.auth-page { display: block; }
  .auth-page header.site { position: static; width: auto; background: rgba(248,252,253,.86); border-bottom: 1px solid var(--line); }
  .auth-page .auth-wrap { padding: 54px 22px 62px; }
  .auth-aside { display: none; }
}
