@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --navy: #112d51;
  --blue: #1355a4;
  --ink: #182c41;
  --muted: #506579;
  --line: #d7e0e7;
  --wash: #eff5fa;
  --brand: #14594b;
  font: 100%/1.55 "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem,4vw,3.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.15rem,2vw,1.45rem); letter-spacing: -.023em; }
p, dd, dt, h1, h2, h3, a, label, th, td { overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #a34804; outline-offset: 3px; }
input, select, textarea, button { font: inherit; }
button, select, summary, .btn { cursor: pointer; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; border: 1px solid transparent; border-radius: 7px;
  padding: .6rem 1.15rem; background: var(--brand); color: var(--on-brand, white);
  font-weight: 650; text-decoration: none; text-align: center; line-height: 1.3;
}
button:hover, .btn:hover { box-shadow: inset 0 0 0 2px currentColor; text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { background: #dee4e9; color: #556373; cursor: default; }
button.secondary, button.quiet { color: var(--navy); background: white; border-color: #adbdcb; }
button.secondary:hover, button.quiet:hover { background: var(--wash); }
.skip { position: fixed; top: -5rem; left: 1rem; z-index: 3; padding: .7rem 1rem; background: white; }
.skip:focus { top: .4rem; }
.frame { width: min(1220px, calc(100% - clamp(2.25rem,9vw,10rem))); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; color: var(--navy); font-size: 1.75rem; font-weight: 750; letter-spacing: -.055em; line-height: 1.05; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.brand img { object-fit: contain; flex: none; }
.brand-letter { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 10px 3px; background: var(--brand); color: var(--on-brand, white); font-size: 1.45rem; font-weight: 750; line-height: 1; }
.public-header, .workspace-header { background: white; border-bottom: 1px solid var(--line); }
.public-nav, .account-nav, .public-nav nav, .hero-actions, .workspace-header { display: flex; align-items: center; }
.public-nav { min-height: 78px; gap: clamp(1.5rem,5vw,5rem); }
.public-nav nav, .account-nav { gap: clamp(1rem,2.7vw,2.5rem); }
.public-nav a:not(.brand,.btn), .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; }
.public-nav a:not(.brand,.btn):hover, .text-link:hover, .public-nav [aria-current] { text-decoration: underline; }
.account-nav { margin-left: auto; }
.hero { background: #ebf3fa; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,5vw,5rem); padding-block: clamp(2.6rem,6vw,5.3rem); }
.hero-copy h1 { font-size: clamp(3.2rem,5vw,5.1rem); line-height: .99; letter-spacing: -.06em; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-copy > p { margin-top: 1.4rem; max-width: 42ch; color: var(--muted); font-size: clamp(1.12rem,1.65vw,1.35rem); }
.hero-actions { gap: 1.45rem; flex-wrap: wrap; margin-top: 1.8rem; }
.text-link { text-decoration: underline; text-underline-offset: .28rem; }
.hero-copy .sandbox-note { font-size: .88rem; color: var(--muted); }
.hero-photo { border-radius: 14% 12px 14% 12px; overflow: hidden; }
.hero-photo img { width: 100%; display: block; height: auto; aspect-ratio: 1.28; object-fit: cover; }
.services, .integration-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem,7vw,8rem); padding-block: clamp(3.5rem,7.5vw,6.8rem); }
.section-label, .navtitle { font-size: .93rem; color: var(--blue); font-weight: 700; margin-bottom: .65rem; }
.services h2, .integration h2 { font-size: clamp(2.2rem,3.7vw,3.55rem); letter-spacing: -.05em; line-height: 1.05; }
.service-list { border-top: 2px solid var(--navy); }
.service-list div { display: grid; grid-template-columns: .8fr 1fr; gap: 1.15rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.service-list dt { font-weight: 700; font-size: 1.22rem; color: var(--navy); line-height: 1.25; }
.service-list dd, .doc-index a { color: var(--muted); }
.integration { background: var(--navy); color: #dce7f3; }
.integration-grid { align-items: center; }
.integration h2 { color: white; }
.integration .section-label { color: #a8c9ed; }
.integration h2 + p { margin-block: 1.25rem; }
.bright { color: var(--navy); background: white; }
.bright:hover { color: var(--navy); background: #e6eff9; }
.endpoints { border-block: 1px solid #647b93; }
.endpoints p { display: flex; align-items: center; gap: 1rem; padding: 1.3rem .3rem; }
.endpoints p + p { border-top: 1px solid #425f7e; }
.endpoints span { min-width: 3.4rem; color: #aecff0; font-weight: 700; font-size: .85rem; }
.endpoints code { font-size: clamp(.85rem,1.5vw,1.1rem); overflow-wrap: anywhere; }
.site-footer { background: white; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.7rem; }
.footer-row strong { color: var(--navy); font-size: 1.1rem; }
.workspace-header { min-height: 70px; padding: .7rem clamp(1rem,3vw,3rem); gap: 1.5rem; }
.mode { padding-left: 1.3rem; border-left: 1px solid var(--line); color: var(--muted); }
.identity { margin-left: auto; font-weight: 650; overflow-wrap: anywhere; }
.menu { display: none; }
.workspace { display: grid; grid-template-columns: clamp(198px,17vw,258px) minmax(0,1fr); min-height: 78vh; background: #f3f6f9; }
#sidenav { padding: 2rem 1rem; background: var(--navy); color: white; }
#sidenav .navtitle { color: #bed4ec; padding-inline: .8rem; }
#sidenav nav { display: grid; gap: .15rem; }
#sidenav a { padding: .6rem .8rem; min-height: 44px; color: white; text-decoration: none; border-radius: 5px; }
#sidenav a:hover { background: #204163; }
#sidenav a[aria-current] { background: #dceafa; color: var(--navy); font-weight: 700; }
#sidenav form { border-top: 1px solid #4a627d; margin: 1.25rem .3rem 0; padding-top: .75rem; }
#sidenav .quiet { color: white; background: transparent; border-color: transparent; padding-inline: .5rem; }
#sidenav .quiet:hover { text-decoration: underline; }
.content { width: 100%; min-width: 0; max-width: 1420px; margin-inline: auto; padding: clamp(1.1rem,3.8vw,3.75rem); }
.guest { background: #f3f6f9; padding: clamp(1rem,3vw,3.2rem) 0; min-height: 72vh; }
.guest .content { max-width: 1120px; }
.guest.auth-layout { padding: clamp(2rem,6vw,5rem) 1rem; }
.auth-layout .auth { align-self: start; max-width: 510px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.35rem,4vw,3rem); border-top: 4px solid var(--brand); }
.workspace.auth-layout .auth { margin-block: 2rem; max-width: min(510px,95%); }
.heading, .links, .subhead, .copy { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.heading { justify-content: space-between; margin: 0 0 1.75rem; }
.heading .section-label { margin-bottom: .35rem; }
.block, .balance, .facts, .stats, .links, .checkout, .notice { margin: 1.2rem 0; }
.block, .facts, .checkout, .doc { background: white; border: 1px solid var(--line); border-radius: 12px; }
.block, .facts, .doc { padding: clamp(1rem,2.3vw,2rem); }
.block > h2, .subhead { margin-bottom: 1rem; }
.block form, .fields, .copy > *, fieldset { min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 1rem 1.3rem; margin-bottom: 1.15rem; }
.fields:empty { display: none; }
.wide { grid-column: 1 / -1; }
label span, legend { display: block; font-weight: 650; margin-bottom: .35rem; color: var(--ink); }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: .62rem .8rem; border: 1px solid #899daf; border-radius: 5px; background: white; color: var(--ink); }
input:disabled, select:disabled { background: #edf0f3; color: #52606c; }
fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; margin-right: 1rem; cursor: pointer; }
.choice input { width: 1.1rem; min-height: 1.1rem; accent-color: var(--blue); }
.calc, .notice { padding: .9rem 1.1rem; border-left: 3px solid var(--blue); background: #e6f0fa; }
.calc output { display: block; white-space: pre-line; margin-top: .3rem; }
.auth .block { padding: 0; border: 0; }
.auth .fields { grid-template-columns: minmax(0, 1fr); }
.auth .block form > button { width: 100%; }
.auth .links { justify-content: space-between; margin-bottom: 0; }
.auth .links a { padding-inline: 0; background: transparent; }
.banner { display: block; width: 100%; height: auto; margin-bottom: 1rem; }
.balance { background: var(--navy); color: white; border-radius: 12px; padding: clamp(1.3rem,3vw,2.5rem); }
.balance h2 { color: #d6e9fc; font-size: 1rem; }
.balance strong, .total { display: block; font-size: clamp(2.2rem,4vw,3.75rem); font-weight: 650; line-height: 1.2; letter-spacing: -.05em; overflow-wrap: anywhere; }
.balance span { display: block; margin-top: .55rem; color: #d7e5f2; }
.balance span b { color: white; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: .75rem; }
.stats > div { padding: 1rem; border-left: 3px solid var(--brand); background: white; }
.stats dd { font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin-top: .3rem; }
.stats dt, .facts dt, .empty, .scale, .axis, .over { color: var(--muted); }
.stats, .facts, table, .total, .balance { font-variant-numeric: tabular-nums; }
.facts div { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dd { font-weight: 650; text-align: right; min-width: 0; }
.scroll, .doc pre, .doc table { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
th, td { padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--wash); color: #344e65; font-size: .91rem; }
.ledger th { white-space: nowrap; }
.ledger td { min-width: 6.5rem; }
.ledger td a { display: inline-flex; align-items: center; min-height: 44px; }
.tag { display: inline-block; padding: .16rem .5rem; border-radius: 5px; background: #e6ebef; color: #31485a; font-weight: 650; font-size: .87rem; }
.paid, .approved { background: #d9eee6; color: #18533c; }
.pending { background: #fff0ca; color: #704913; }
.rejected, .expired { background: #fce4df; color: #85392a; }
.empty { padding: .7rem 0; }
.subhead h2 { margin-right: auto; }
.subhead a, .links a, summary { display: inline-flex; align-items: center; min-height: 44px; }
.links a { padding: .4rem .75rem; border-radius: 5px; background: white; }
.scale, .axis { font-size: .9rem; }
.axis { display: flex; justify-content: space-between; gap: .8rem; }
.bars { display: flex; gap: 3px; align-items: end; height: 130px; border-bottom: 1px solid #8699a8; }
.bar { flex: 1; background: var(--blue); }
.copy input { flex: 1 1 16rem; }
.checkout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; }
.receipt, .summary { padding: clamp(1.25rem,3vw,2.3rem); }
.receipt { text-align: center; border-right: 1px dashed #9aabba; }
.receipt > *, .summary > * { margin-bottom: .75rem; }
.qrcode { display: block; margin: 1rem auto; max-width: 100%; height: auto; }
.ref { font-family: monospace; }
.summary .facts { padding: 0; border: 0; }
.docs-layout { display: grid; grid-template-columns: minmax(160px,.3fr) minmax(0,1fr); gap: clamp(1rem,2.5vw,2.2rem); }
.doc-index { display: flex; flex-direction: column; align-self: start; position: sticky; top: 1rem; }
.doc-index strong { color: var(--navy); margin-bottom: .55rem; }
.doc-index a { padding: .5rem 0; text-decoration: none; }
.doc-index a:hover { text-decoration: underline; }
.doc { min-width: 0; overflow-wrap: anywhere; padding: clamp(1rem,3vw,2.5rem); }
.doc h2 { margin: 2.2rem 0 .75rem; border-top: 1px solid var(--line); padding-top: 1.8rem; scroll-margin-top: 1rem; }
.doc h3 { margin-top: 1.5rem; }
.doc p, .doc ol, .doc ul, .doc table { margin: .8rem 0; }
.doc p:first-child { margin-top: 0; font-size: 1.16rem; }
.doc li + li { margin-top: .35rem; }
.doc pre { padding: 1.1rem; background: var(--navy); color: #eaf4fc; border-radius: 6px; line-height: 1.55; font-size: .88rem; }
.doc :not(pre) > code { font-size: .9em; background: var(--wash); padding: .06rem .23rem; border-radius: 3px; overflow-wrap: anywhere; }
.doc table { display: block; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .workspace { display: block; }
  .identity { display: none; }
  .menu { display: inline-flex; margin-left: auto; }
  #sidenav { display: none; }
  #sidenav.open { display: block; }
  .workspace-header { flex-wrap: wrap; gap: .5rem .75rem; }
  .workspace-header .brand { max-width: 100%; }
  .doc-index { position: static; }
}
@media (max-width: 700px) {
  .public-nav { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .7rem; padding-top: .65rem; }
  .public-nav nav { grid-row: 2; grid-column: 1/-1; gap: 1.4rem; }
  .account-nav { grid-column: 2; grid-row: 1; gap: .7rem; }
  .account-nav .btn { padding: .5rem .7rem; }
  .brand { font-size: 1.4rem; }
  .brand-letter { width: 28px; height: 28px; font-size: 1.1rem; }
  .hero-grid, .services, .integration-grid, .docs-layout, .checkout { grid-template-columns: minmax(0,1fr); }
  .hero-grid { gap: 1.7rem; padding-block: 2.25rem 1.5rem; }
  .hero-copy h1 { font-size: clamp(2.9rem,10.8vw,4.2rem); max-width: 14ch; }
  .hero-copy > p { margin-top: 1rem; }
  .hero-actions { margin-top: 1.15rem; }
  .hero-photo img { aspect-ratio: 1.65; }
  .services, .integration-grid { gap: 1.5rem; }
  .service-list div { grid-template-columns: 1fr; gap: .4rem; padding-block: 1.15rem; }
  .footer-row { align-items: start; flex-direction: column; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facts div { flex-wrap: wrap; }
  .doc-index { border-block: 1px solid var(--line); padding-block: .7rem; }
  .doc-index a { min-height: 44px; }
  .doc ol, .doc ul { padding-inline-start: 1.15em; }
  .docs-page { padding-inline: clamp(14px, 4vw, 28px); }
  .receipt { border-right: 0; border-bottom: 1px dashed #9aabba; }
  .mode { font-size: .82rem; padding-left: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  button:active, .btn:active { transform: none; }
}

.announcement { display: flex; align-items: center; gap: 1rem; padding: .4rem clamp(1rem,3vw,3rem); background: var(--navy); color: white; font-size: .95rem; }
.announcement-window { flex: 1; min-width: 0; overflow: hidden; }
.announcement-track ul { list-style: none; margin: 0; padding: 0; }
.announcement-track [aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .announcement:not(:focus) .announcement-track { display: flex; width: max-content; min-width: 200%; animation: announcement-scroll var(--duration) linear infinite; }
  .announcement:not(:focus) ul { display: flex; flex: 1 0 50%; align-items: center; }
  .announcement:not(:focus) li { white-space: nowrap; padding-right: 4rem; }
}
.announcement-track li { overflow-wrap: anywhere; }
@keyframes announcement-scroll { to { transform: translateX(-50%); } }
