/* ClaimRudder design system: calm, warm healthcare look. Loaded LAST on every page, after /site.css and any page styles,
   so its tokens and component rules win. One readable sans (Source Sans 3) for body and UI, Figtree for headings,
   18px base, soft warm background, one trustworthy blue, warm amber only for money at risk. Monospace only for real codes. */
:root {
  --paper: #F7F6F2;          /* soft warm neutral page */
  --surface: #FFFFFF;
  --sunk: #F0EFEA;
  --ink: #1C2834;            /* 14.6:1 on white */
  --muted: #4B5866;          /* 7.3:1 on white, 6.8:1 on paper */
  --line: #E2E0D9;
  --line-strong: #8F8B80;   /* field and button borders, 3:1 on white */
  --bonnet: #015DAB;         /* the logo blue; 6.6:1 with white text */
  --bonnet-ink: #012443;     /* the logo navy: hover, dark bands */
  --bonnet-soft: #EAF1FA;
  --leak: #A8470B;           /* money at risk, warm amber-brown, 6.0:1 on white */
  --leak-soft: #FDF1E7;
  --warn: #855000;           /* 6.4:1 on white */
  --warn-soft: #FCF3DF;
  --ok: #17734A;             /* 5.9:1 on white */
  --ok-soft: #E8F5EC;
  --display: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: var(--body);       /* the old typewriter style is gone; numbers use tabular figures instead */
  --code: ui-monospace, "SFMono-Regular", Consolas, monospace;   /* only for real codes (CARC 197, EVV02) */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 40, 52, .05), 0 8px 24px -12px rgba(28, 40, 52, .14);
  --tap: 48px;
}

body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; }
h1, h2, h3, .brand { font-family: var(--display); letter-spacing: -0.015em; color: var(--ink); }
h1 { font-weight: 800; line-height: 1.1; }
h2 { font-weight: 700; }
h3 { font-weight: 700; font-size: 1.2rem; }
a { color: var(--bonnet); text-underline-offset: 3px; }
a:hover { color: var(--bonnet-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.btn:focus-within {
  outline: 3px solid var(--bonnet); outline-offset: 2px; }
.cta-band a:focus-visible, .cta-band button:focus-visible { outline-color: #fff; }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.55; }
.fineprint { font-size: 0.92rem; color: var(--muted); }
.muted { color: var(--muted); }
code, kbd, .code-real { font-family: var(--code); font-size: 0.9em; }

/* Small label above headings: a soft pill, not a typewriter caption */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: start; width: fit-content; max-width: 100%;
  font-family: var(--body); font-size: 0.88rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--bonnet-ink); background: var(--bonnet-soft); padding: 4px 12px; border-radius: 99px; line-height: 1.4; }

/* Header */
.nav { background: color-mix(in srgb, var(--surface) 96%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { padding-block: 10px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; gap: 10px; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--bonnet); }
.mark svg { width: 18px; height: 18px; }
.nav ul, .nav .links { font-size: 1rem; }
.nav ul a { color: var(--ink); font-weight: 500; }
.nav ul a:hover { color: var(--bonnet); }
.nav ul a[aria-current="page"] { color: var(--bonnet); font-weight: 700; }
.nav .signin { font-size: 1rem; }
.menu summary { font: 600 1rem var(--body); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border-color: var(--line-strong); }
.menu summary::before { content: ""; width: 16px; height: 12px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.menu ul { border-radius: var(--radius); padding: 8px; min-width: 240px; box-shadow: 0 20px 50px -20px rgba(28, 40, 52, .35); }
.menu ul a { padding: 12px 12px; border-radius: 10px; font-size: 1.02rem; }
.menu ul a[aria-current="page"] { background: var(--bonnet-soft); }

/* Buttons: big, rounded, one clear primary */
.btn { font: 600 1.05rem var(--body); min-height: var(--tap); padding: 12px 22px; border-radius: 12px; justify-content: center; line-height: 1.25; }
.btn-primary { background: var(--bonnet); color: #fff; box-shadow: 0 1px 2px rgba(22, 63, 112, .25); }
.btn-primary:hover { background: var(--bonnet-ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--bonnet-ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--bonnet); color: var(--bonnet-ink); background: var(--bonnet-soft); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.98rem; border-radius: 11px; }
.cta-row { gap: 12px; }
@media (max-width: 560px) {
  .page-hero .cta-row .btn, .hero .cta-row .btn, .drop .cta-row .btn, .card .cta-row .btn, .next .cta-row .btn { flex: 1 1 100%; }
  .nav .btn-sm { min-height: 44px; padding: 8px 14px; font-size: 0.95rem; }
}
@media (max-width: 380px) { .nav .btn-sm { padding: 8px 10px; } .brand { font-size: 1.05rem; } .mark { width: 28px; height: 28px; } .menu summary { padding: 8px 10px; } }

/* Sections and cards */
.page-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 0; }
.page-hero .wrap { gap: 18px; }
.section + .section { border-top: 0; }
.card, .tcard, .svc, .sym, .who-card, .contact-card, .slots, .calc, .story, .demo, .kpi, .std, .panel { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); background: var(--surface); }
.card, .tcard, .svc, .sym, .who-card { padding: clamp(20px, 3vw, 28px); }
.card.lead, .svc.lead { border: 2px solid var(--bonnet); box-shadow: var(--shadow); }
.card .price, .svc .price { font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: var(--bonnet-ink); }
.badge, .svc .badge { font-family: var(--body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-radius: 99px; padding: 3px 12px; }
.synthetic { font-family: var(--body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 2px 10px; }
.pill { font-size: 0.85rem; padding: 3px 10px; }
.ticks { font-size: 1rem; gap: 10px; }
.ticks li { padding-left: 32px; }
.ticks li::before { content: ""; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2317734A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks.never li::before { background: var(--leak-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23A8470B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.callout, .quote { border-left-width: 4px; border-radius: 0 var(--radius) var(--radius) 0; }
.quote { font-family: var(--display); }
.legal-banner { border-radius: var(--radius); }
.legal-banner b { font-family: var(--body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; }

/* Tables: friendlier headers; on phones a table marked .stack becomes a list of cards (labels from data-label) */
.tablewrap { border-radius: var(--radius); box-shadow: var(--shadow); }
table { font-size: 0.98rem; }
th { font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--muted); background: var(--sunk); padding: 12px 14px; }
td { padding: 14px; }
td.amt, th.amt { font-family: var(--body); font-variant-numeric: tabular-nums; }
td.amt { font-weight: 600; }
@media (max-width: 640px) {
  .tablewrap:has(table.stack) { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  table.stack, .tablewrap table.stack, .tablewrap table.stack.wide { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tbody { display: grid; gap: 12px; }
  table.stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 16px; }
  table.stack td { border-bottom: 1px solid var(--line); padding: 10px 0; text-align: left; white-space: normal; }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-weight: 600; font-size: 0.9rem; text-align: left; }
  table.stack td.amt[data-label], table.stack td.inline[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  table.stack td.amt[data-label]::before, table.stack td.inline[data-label]::before { font-weight: 500; font-size: 0.95rem; }
  table.stack td:first-child { font-size: 1.08rem; font-weight: 700; }
  table.stack td.amt { text-align: right; }
  table.stack tr.group { background: var(--bonnet-soft); box-shadow: none; }
  table.stack tr.group td { background: transparent; }
  table.stack tr.now td { background: transparent; }
}

/* FAQ */
.faq { border-top: 0; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); }
.faq summary { padding: 16px 18px; min-height: var(--tap); align-items: center; font-size: 1.05rem; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bonnet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23015DAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { content: ""; transform: rotate(180deg); }
.faq details p, .faq details > div { margin: 0; padding: 0 18px 18px; }

/* Forms */
.cf input, .cf select, .cf textarea, .calc input[type=number] { font: 400 1.05rem var(--body); min-height: var(--tap); padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.calc input[type=number] { font-weight: 600; font-size: 1.2rem; }
.calc .row2 { border-top-style: solid; }
.calc .row2 b { font-family: var(--body); }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 0.95rem; }
.foot-cols h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.foot-cols ul { gap: 4px; }
.foot-cols a { display: inline-block; padding: 8px 0; }
footer a, .crumbs a, nav[aria-label="Breadcrumb"] a { display: inline-block; padding-block: 6px; }
footer .maker { border-top-style: solid; }

/* Home page: sample report card (was a typewriter "tape") */
.tape { border-radius: 18px; box-shadow: 0 2px 4px rgba(28, 40, 52, .04), 0 24px 48px -20px rgba(28, 40, 52, .22); border-color: var(--line); }
.tape-head { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); padding: 16px 20px; }
.tape-row { font-family: var(--body); font-size: 1rem; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.tape-row .what { font-weight: 600; }
.tape-row .amt { font-weight: 700; font-size: 1.05rem; }
.tape-row .meta { font-size: 0.9rem; }
.tape-foot { font-family: var(--body); font-size: 1rem; padding: 16px 20px; background: var(--leak-soft); color: var(--ink); align-items: baseline; gap: 12px; }
.tape-foot b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--leak); }

/* Home page details that used the typewriter font */
.leaks, .feeds { border-radius: var(--radius); box-shadow: var(--shadow); }
.leak .code, .feed .code, .sym .code { font-family: var(--body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.step { border-top-width: 3px; border-radius: 2px; }
.step::before { font-family: var(--body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.std .mono-badge { font-family: var(--body); font-weight: 700; font-size: 0.7rem; }
.stage-card dt, .sc-step { font-family: var(--body); font-size: 0.88rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.num-dot, .progress-steps .dot { font-family: var(--body); font-weight: 700; }
.match, .applog-head, .applog-row, .log, .progress, .copyline, .cta-band .mail, .slot, .auth .id, .auth .due, .bar .val, .axis, .tag, .stages small, .progress-steps small { font-family: var(--body); }
.match { font-size: 1rem; }
.applog-head, .applog-row { font-size: 0.95rem; }
.draft pre { font-family: var(--body); font-size: 0.98rem; }
.draft-head .stamp { font-family: var(--body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-radius: 99px; }
.cta-band { background: linear-gradient(135deg, var(--bonnet-ink) 0%, #1D5490 100%); border-radius: 22px; }
.cta-band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.cta-band p { color: #E3ECF6; }
.choice { border-radius: var(--radius); }
.choice .c-amt b { font-family: var(--display); }
.pl { border-left-width: 4px; }
.kpi .value, .calc .big { font-family: var(--display); font-weight: 800; }
.avatar { font-family: var(--display); }

/* Code reference pages: real codes keep a code face, set in a soft chip */
.code-chip, .codes td:first-child code { font-family: var(--code); }

@media print { body { font-size: 12pt; background: #fff; } .tablewrap, .card, .tcard, .faq details { box-shadow: none; } }

/* Buttons on the dark call-to-action band */
.cta-band .btn-primary { background: #fff; color: var(--bonnet-ink); }
.cta-band .btn-primary:hover { background: var(--bonnet-soft); color: var(--bonnet-ink); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.cta-band a:not(.btn) { color: #fff; }

/* Logo (from the brand sheet): wordmark in the header, sized for each width */
.brand .logo { display: block; height: 40px; width: auto; }
.brand:has(.logo) { gap: 0; }
@media (max-width: 420px) { .brand .logo { height: 30px; } }
@media (max-width: 360px) { .brand .logo { height: 26px; } }
.cta-band { background: linear-gradient(135deg, var(--bonnet-ink) 0%, #0B3D73 100%); }
