:root {
  --ink: #10282d;
  --ink-2: #244047;
  --muted: #5d7074;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #e9f0ed;
  --line: #cad7d3;
  --mint: #a8e6da;
  --mint-strong: #3da897;
  --orange: #ff8f5c;
  --orange-dark: #a64019;
  --blue: #2e6d80;
  --red: #a83c42;
  --green: #286b53;
  --amber: #8a5d08;
  --shadow: 0 18px 48px rgba(16, 40, 45, 0.1);
  --shadow-small: 0 7px 20px rgba(16, 40, 45, 0.08);
  --radius: 12px;
  --radius-small: 7px;
  --content: 1180px;
  --focus: #0e76a8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.8vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.2rem); }
h3 { font-size: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { padding: 0.12rem 0.3rem; border-radius: 4px; background: var(--surface-2); font-size: 0.9em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--ink); color: #f8fbfa; }
.section-mint { background: var(--mint); }
.eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: var(--mint); }
.lede { max-width: 66ch; color: var(--ink-2); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.section-dark .lede { color: #d6e1de; }
.quiet { color: var(--muted); }
.fine-print { color: var(--muted); font-size: 0.82rem; }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-right { text-align: right; }
.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.spread { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.divider-label { display: flex; gap: 0.8rem; align-items: center; color: var(--muted); font-size: 0.83rem; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}
.button:hover { text-decoration: none; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #1e3f46; color: #fff; }
.button-accent { background: var(--orange); color: var(--ink); }
.button-accent:hover { background: #ffad86; color: var(--ink); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }
.button-danger { border-color: #dfb8bb; background: #fff7f7; color: var(--red); }
.button-small { min-height: 2.35rem; padding: 0.48rem 0.75rem; font-size: 0.88rem; }
.button-full { width: 100%; }
.button[disabled], button[disabled] { cursor: not-allowed; opacity: 0.55; }
.icon-button { border: 0; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; }
.icon-button-inverse { color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-size: 1.25rem; font-weight: 850; letter-spacing: -0.04em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-inverse { color: #fff; }
.brand-inverse:hover { color: var(--mint); }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  border: 3px solid currentColor;
  border-right-width: 8px;
  border-radius: 3px;
}
.brand-mark span { position: absolute; right: -0.42rem; bottom: -0.42rem; width: 0.65rem; height: 0.65rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--orange); }
.brand-inverse .brand-mark span { border-color: var(--ink); }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244, 247, 245, 0.96); }
.nav-row { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > a:not(.button) { color: var(--ink-2); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.nav-toggle { display: none; padding: 0.5rem; border: 0; background: transparent; }
.nav-toggle > span:not(.visually-hidden) { display: block; width: 1.5rem; margin: 0.25rem 0; border-top: 2px solid var(--ink); }
.site-footer { padding: 3.4rem 0; background: #0b2025; color: #d5e0dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr; gap: 2rem; align-items: start; }
.footer-grid nav { display: grid; gap: 0.5rem; }
.footer-grid nav a { color: #d5e0dd; }
.footer-contact { color: #b9c9c6; font-size: 0.86rem; line-height: 1.65; }
.footer-contact a { color: #d5e0dd; }
.footer-note p { margin-top: 0; }
.footer-note { color: #9fb0ad; font-size: 0.85rem; }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero h1 { max-width: 12ch; margin-bottom: 1.4rem; }
.hero h1 em { color: var(--orange-dark); font-family: Georgia, serif; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--muted); font-size: 0.85rem; }
.hero-proof span::before { content: "✓"; margin-right: 0.35rem; color: var(--green); font-weight: 900; }
.ledger-illustration { position: relative; min-height: 480px; padding: 1.1rem; border: 1px solid #9eb6b0; border-radius: 18px; background: var(--ink); box-shadow: var(--shadow); transform: rotate(1.3deg); }
.ledger-window { height: 100%; min-height: 450px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.ledger-window-bar { display: flex; gap: 0.35rem; padding: 0.8rem; border-bottom: 1px solid var(--line); }
.ledger-window-bar span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line); }
.ledger-window-body { padding: 1.3rem; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.demo-heading strong { font-size: 0.9rem; }
.demo-row { display: grid; grid-template-columns: 1.3fr 0.7fr 0.5fr; gap: 0.7rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 0.78rem; }
.demo-row span:nth-child(2) { color: var(--muted); }
.demo-row b { justify-self: end; }
.demo-timeline { margin-top: 1.2rem; padding: 1rem; border-left: 4px solid var(--orange); background: #fff7f1; }
.demo-timeline p { margin: 0; font-size: 0.78rem; }
.floating-ticket { position: absolute; right: -1.8rem; bottom: 2rem; width: 15rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mint); box-shadow: var(--shadow-small); transform: rotate(-3deg); }
.floating-ticket strong { display: block; font-size: 1.6rem; }
.section-heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; margin-bottom: 3rem; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-step { min-height: 250px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.step-number { display: inline-grid; width: 2rem; height: 2rem; margin-bottom: 2.5rem; border-radius: 50%; place-items: center; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 800; }
.workflow-step p { color: var(--muted); }
.split-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-card { min-height: 170px; padding: 1.3rem; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); background: rgba(255,255,255,0.05); }
.feature-card b { display: block; margin-bottom: 0.7rem; color: var(--mint); }
.feature-card p { margin: 0; color: #c8d7d3; font-size: 0.92rem; }
.boundary-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.boundary-list li { position: relative; margin-bottom: 0.8rem; padding-left: 1.7rem; }
.boundary-list li::before { content: "—"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.audience-card { padding: 1.5rem; border-top: 5px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-small); }
.audience-card p { color: var(--muted); }
.audit-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.audit-copy { padding: clamp(2rem, 5vw, 4rem); background: var(--mint); }
.audit-form { padding: clamp(2rem, 5vw, 4rem); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-card-featured { border: 3px solid var(--ink); transform: translateY(-0.5rem); }
.offer-chip { align-self: flex-start; margin: -0.3rem 0 1rem; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--mint); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.price { margin: 0.8rem 0; font-size: 2.8rem; font-weight: 850; letter-spacing: -0.055em; }
.price small { font-size: 0.9rem; font-weight: 500; letter-spacing: normal; }
.price-card ul { flex: 1; padding-left: 1.2rem; }
.price-card li { margin-bottom: 0.55rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.faq-list summary { font-weight: 750; }
.faq-list details p { max-width: 70ch; margin: 0.8rem 0 0; color: var(--muted); }
.legal { max-width: 760px; padding: 4rem 0 6rem; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.legal .legal-meta { margin-bottom: 2.5rem; color: var(--muted); }
.contact-layout { display: grid; gap: 2rem; }
.contact-layout > div:first-child { max-width: 820px; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-card { display: flex; min-height: 280px; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); flex-direction: column; align-items: flex-start; }
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-card p { max-width: 56ch; color: var(--muted); }
.contact-card .button { margin-top: auto; }
.contact-safety { display: grid; gap: 0.25rem; }

.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 750; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid #9eb0ac;
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid rgba(14,118,168,0.2); }
.field input[disabled], .field select[disabled], .field textarea[disabled] { background: var(--surface-2); color: var(--muted); }
.field-hint, .field-message { margin: 0.35rem 0 0; font-size: 0.79rem; }
.field-hint { color: var(--muted); }
.field-message { color: var(--red); font-weight: 650; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red) !important; }
.check-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-row input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--ink); }
.field.check-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.65rem; row-gap: 0.25rem; }
.field.check-row input { grid-column: 1; grid-row: 1; }
.field.check-row label { grid-column: 2; grid-row: 1; }
.field.check-row .field-message { grid-column: 2; margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
fieldset { min-width: 0; padding: 0; border: 0; }
.form-section { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-section + .form-section { margin-top: 1rem; }
.form-section-heading { margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); background: rgba(244,247,245,0.96); box-shadow: 0 -7px 18px rgba(16,40,45,0.06); }
.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(340px, 0.8fr) minmax(500px, 1.2fr); }
.auth-brand-panel { display: flex; padding: clamp(2rem, 6vw, 5rem); background: var(--ink); color: #fff; flex-direction: column; justify-content: space-between; }
.auth-brand-panel h1 { max-width: 9ch; margin: 4rem 0 1.5rem; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.auth-brand-panel p { max-width: 42ch; color: #c5d4d1; }
.auth-main { display: grid; padding: 2rem; place-items: center; }
.auth-card { width: min(100%, 460px); padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.auth-card h1 { margin-bottom: 0.5rem; font-size: 2rem; }
.auth-card .auth-intro { margin-bottom: 1.8rem; color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.auth-note { margin-top: 1.4rem; text-align: center; font-size: 0.88rem; }

.flash-stack { padding-top: 1rem; }
.app-flashes { display: grid; gap: 0.6rem; padding: 1rem 1.5rem 0; }
.flash { display: flex; padding: 0.8rem 1rem; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius-small); background: var(--surface); align-items: center; justify-content: space-between; box-shadow: var(--shadow-small); }
.flash-success { border-left-color: var(--green); }
.flash-error, .flash-danger { border-left-color: var(--red); }
.flash-warning { border-left-color: var(--amber); }

.app-body { background: #eef3f1; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; display: flex; height: 100vh; padding: 1.3rem 1rem; background: var(--ink); color: #fff; flex-direction: column; }
.sidebar-top { display: flex; margin: 0 0 2rem; padding: 0 0.5rem; align-items: center; justify-content: space-between; }
.sidebar-close { display: none; }
.sidebar-nav { display: grid; gap: 0.25rem; }
.sidebar-nav a { display: flex; gap: 0.7rem; padding: 0.68rem 0.75rem; border-radius: 6px; color: #d6e1de; font-size: 0.9rem; font-weight: 650; text-decoration: none; align-items: center; }
.sidebar-nav a span { width: 1.2rem; color: var(--mint); text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { background: #244047; color: #fff; }
.sidebar-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--orange); }
.sidebar-section-label { margin: 1.7rem 0 0.5rem; padding: 0 0.75rem; color: #94a9a5; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sidebar-workspace { display: grid; margin-top: auto; padding: 0.9rem; border: 1px solid #355158; border-radius: var(--radius-small); color: #bfcecb; font-size: 0.78rem; }
.sidebar-workspace .eyebrow { color: var(--mint); }
.sidebar-workspace strong { overflow: hidden; color: #fff; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.app-main-wrap { min-width: 0; }
.app-topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 4.4rem; padding: 0.7rem 1.5rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); align-items: center; gap: 1rem; }
.app-nav-toggle { display: none; }
.topbar-context { display: grid; margin-right: auto; font-size: 0.9rem; line-height: 1.1; }
.topbar-context .eyebrow { margin-bottom: 0.3rem; font-size: 0.62rem; }
.topbar-actions { display: flex; gap: 0.7rem; align-items: center; }
.user-menu { position: relative; }
.user-menu summary { display: flex; gap: 0.5rem; list-style: none; align-items: center; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 0.72rem; font-weight: 850; place-items: center; }
.user-menu-label { max-width: 150px; overflow: hidden; font-size: 0.84rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel { position: absolute; z-index: 30; top: calc(100% + 0.6rem); right: 0; display: grid; width: 210px; padding: 0.45rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow); }
.user-menu-panel a, .user-menu-panel button { width: 100%; padding: 0.55rem 0.65rem; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 0.87rem; text-align: left; text-decoration: none; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); }
.app-content { width: min(100%, 1500px); margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2.5rem) 5rem; }
.page-header { display: flex; margin-bottom: 1.5rem; align-items: end; justify-content: space-between; gap: 1rem; }
.page-header h1 { margin-bottom: 0.25rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-header p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.78rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span + span::before, .breadcrumb a + span::before { content: "/"; margin-right: 0.4rem; }
.panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(16,40,45,0.03); }
.panel-stack { display: grid; gap: 1rem; }
.panel-header { display: flex; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 1rem; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 1rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.metric-card { position: relative; min-height: 145px; padding: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card::before { content: ""; position: absolute; top: 0; right: 0; width: 3.5rem; border-top: 5px solid var(--mint-strong); }
.metric-card-risk::before { border-color: var(--orange); }
.metric-label { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.metric-value { display: block; margin: 0.55rem 0 0.25rem; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 850; letter-spacing: -0.04em; }
.metric-note { color: var(--muted); font-size: 0.74rem; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }
.risk-list, .activity-list, .timeline, .checklist, .task-list { margin: 0; padding: 0; list-style: none; }
.risk-list li, .activity-list li, .task-list li { display: flex; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.risk-list li:last-child, .activity-list li:last-child, .task-list li:last-child { border-bottom: 0; }
.list-main { min-width: 0; flex: 1; }
.list-main strong, .list-main a { display: block; overflow: hidden; font-size: 0.88rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { color: var(--muted); font-size: 0.75rem; }
.list-value { font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.deadline { display: inline-block; padding: 0.18rem 0.42rem; border-radius: 4px; background: #fff0e7; color: var(--orange-dark); font-size: 0.68rem; font-weight: 750; }
.filters { display: grid; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 0.7rem; align-items: end; }
.filters .field { margin: 0; }
.filters label { font-size: 0.72rem; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.data-table th { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); background: #f7f9f8; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 0.8rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfa; }
.data-table a { font-weight: 750; }
.numeric { font-variant-numeric: tabular-nums; text-align: right !important; white-space: nowrap; }
.status { display: inline-flex; min-height: 1.6rem; padding: 0.24rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.68rem; font-weight: 800; white-space: nowrap; align-items: center; }
.status-evidence_needed, .status-part_return_due { background: #fff0e7; color: var(--orange-dark); }
.status-ready_to_submit, .status-submitted, .status-vendor_review { background: #e7f2f7; color: #24586a; }
.status-credit_pending { background: #fff4d9; color: #74500b; }
.status-credited { background: #e5f3ec; color: var(--green); }
.status-denied, .status-written_off { background: #f8e8e9; color: var(--red); }
.pagination { display: flex; margin-top: 1rem; justify-content: flex-end; gap: 0.8rem; align-items: center; color: var(--muted); font-size: 0.8rem; }
.empty-state { display: grid; min-height: 280px; padding: 2rem; text-align: center; place-content: center; justify-items: center; }
.empty-state h2 { margin: 0.8rem 0 0.45rem; font-size: 1.25rem; }
.empty-state p { max-width: 46ch; color: var(--muted); }
.empty-symbol { display: grid; width: 3.4rem; height: 3.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-size: 1.5rem; place-items: center; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); gap: 1rem; align-items: start; }
.case-identity { display: flex; gap: 1rem; align-items: center; }
.case-identity h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.case-subnav { display: flex; gap: 0.3rem; margin-bottom: 1rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.case-subnav a { padding: 0.7rem 0.8rem; border-bottom: 3px solid transparent; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.case-subnav a:hover, .case-subnav a[aria-current="page"] { border-color: var(--orange); color: var(--ink); }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.definition-grid div { min-width: 0; }
.definition-grid dt { color: var(--muted); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.definition-grid dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; font-size: 0.88rem; }
.lead-acknowledgement-details { margin-top: 1rem; }
.recon-bar { height: 0.6rem; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.recon-bar span { display: block; width: var(--progress, 0%); height: 100%; background: var(--mint-strong); }
.recon-progress { width: 100%; height: 0.7rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.recon-progress::-webkit-progress-bar { background: var(--surface-2); }
.recon-progress::-webkit-progress-value { background: var(--mint-strong); }
.recon-progress::-moz-progress-bar { background: var(--mint-strong); }
.recon-numbers { display: grid; margin-top: 1rem; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.recon-numbers span { color: var(--muted); font-size: 0.68rem; }
.recon-numbers strong { display: block; color: var(--ink); font-size: 0.95rem; }
.checklist li { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.checklist li:last-child { border-bottom: 0; }
.checklist label { flex: 1; font-size: 0.86rem; }
.checklist input { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0.5rem; bottom: 0.5rem; left: 0.42rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem 2rem; }
.timeline-marker { position: absolute; z-index: 1; top: 0.15rem; left: 0; width: 0.9rem; height: 0.9rem; border: 3px solid var(--surface); border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 0 1px var(--line); }
.timeline strong { display: block; font-size: 0.84rem; }
.timeline time, .timeline .timeline-meta { color: var(--muted); font-size: 0.72rem; }
.timeline p { margin: 0.3rem 0 0; font-size: 0.84rem; white-space: pre-wrap; }
.file-list { display: grid; gap: 0.55rem; }
.file-row { display: flex; gap: 0.7rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-small); align-items: center; }
.file-type { display: grid; width: 2.2rem; height: 2.2rem; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 0.62rem; font-weight: 850; place-items: center; }
.file-row .list-main { flex: 1; }
.drop-zone { padding: 1.4rem; border: 2px dashed #9fb3ae; border-radius: var(--radius-small); background: #f8fbfa; text-align: center; }
.drop-zone input { max-width: 100%; }
.notice { padding: 0.85rem 1rem; border-left: 4px solid var(--blue); background: #e9f4f7; color: var(--ink-2); font-size: 0.84rem; }
.notice-warning { border-color: var(--orange); background: #fff3ec; }
.notice-danger { border-color: var(--red); background: #fff2f2; }
.notice-success { border-color: var(--green); background: #edf7f2; }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.settings-nav { display: grid; padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-nav a { padding: 0.6rem 0.7rem; border-radius: 5px; color: var(--ink-2); font-size: 0.85rem; text-decoration: none; }
.settings-nav a[aria-current="page"], .settings-nav a:hover { background: var(--surface-2); color: var(--ink); }
.plan-banner { display: flex; margin-bottom: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-left: 6px solid var(--mint-strong); border-radius: var(--radius); background: var(--surface); justify-content: space-between; gap: 1rem; align-items: center; }
.plan-banner h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.plan-banner p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.danger-zone { border-color: #ddb7ba; }
.danger-zone .panel-header { color: var(--red); }
.import-steps { display: grid; margin: 0 0 1.5rem; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
.import-steps li { padding: 0.8rem; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.import-steps li[aria-current="step"] { border-color: var(--orange); color: var(--ink); font-weight: 750; }
.error-page { display: grid; min-height: 70vh; text-align: center; place-content: center; justify-items: center; }
.error-code { color: var(--orange-dark); font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.08em; }
.error-page h1 { margin: 1rem 0 0.7rem; font-size: 2rem; }
.error-page p { max-width: 50ch; color: var(--muted); }
.nav-scrim { display: none; }

@media (max-width: 1100px) {
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card:last-child { grid-column: 1 / -1; }
  .span-3 { grid-column: span 6; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .filters > :last-child { grid-column: auto; }
}

@media (max-width: 860px) {
  html { scroll-behavior: auto; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .hero-grid, .section-heading, .split-feature, .audit-panel { grid-template-columns: 1fr; }
  .ledger-illustration { min-height: 410px; }
  .ledger-window { min-height: 380px; }
  .floating-ticket { right: 0.4rem; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 340px; }
  .auth-brand-panel h1 { margin: 3rem 0 1rem; }
  .app-shell { display: block; }
  .app-sidebar { position: fixed; z-index: 60; top: 0; left: 0; width: min(84vw, 280px); transform: translateX(-105%); transition: transform 180ms ease; }
  .app-sidebar.is-open { transform: translateX(0); }
  .sidebar-close, .app-nav-toggle { display: inline-block; }
  .nav-scrim { position: fixed; z-index: 50; inset: 0; border: 0; background: rgba(5,20,24,0.55); }
  .nav-scrim:not([hidden]) { display: block; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
}

@media (max-width: 660px) {
  .container { width: min(calc(100% - 1.2rem), var(--content)); }
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 3.2rem; }
  .hero h1 { font-size: 2.9rem; }
  .hero-proof { display: grid; gap: 0.35rem; }
  .ledger-illustration { min-height: 370px; padding: 0.55rem; transform: none; }
  .ledger-window { min-height: 350px; }
  .demo-row { grid-template-columns: 1fr auto; }
  .demo-row span:nth-child(2) { display: none; }
  .floating-ticket { position: relative; right: auto; bottom: auto; width: auto; margin: -3rem 0 0 1.3rem; transform: rotate(-1deg); }
  .workflow-grid, .feature-list, .audience-grid, .pricing-grid, .contact-options { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .price-card:last-child { grid-column: auto; }
  .contact-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .audit-form, .audit-copy { padding: 1.5rem; }
  .auth-brand-panel { min-height: 260px; padding: 1.5rem; }
  .auth-brand-panel h1 { margin: 2rem 0 0.7rem; font-size: 2.7rem; }
  .auth-main { padding: 1rem; }
  .auth-card { padding: 1.3rem; }
  .field-row, .field-row-3, .definition-grid { grid-template-columns: 1fr; gap: 0; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .app-topbar { padding: 0.6rem 0.8rem; }
  .user-menu-label, .topbar-context { display: none; }
  .app-content { padding: 1.2rem 0.7rem 4rem; }
  .app-flashes { padding: 0.7rem 0.7rem 0; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .recon-numbers { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1; }
  .plan-banner { align-items: flex-start; flex-direction: column; }
  .import-steps { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .app-sidebar, .app-topbar, .page-actions, .case-subnav, .form-actions, .button, .filters { display: none !important; }
  .app-shell, .detail-grid, .dashboard-grid { display: block; }
  body { background: #fff; color: #000; }
  .app-content { width: 100%; max-width: none; padding: 0; }
  .panel, .metric-card, .table-wrap { margin-bottom: 1rem; border-color: #999; box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
