:root {
  color-scheme: light;
  --canvas: #f5eee4;
  --paper: #fffbf3;
  --paper-alt: #faf4ea;
  --ink: #271521;
  --muted: #685559;
  --line: #d8c9bc;
  --rule: #a18b81;
  --plum: #36182b;
  --plum-hover: #4c233d;
  --ink-red: #881f36;
  --rose: #f3ded8;
  --ochre: #725020;
  --wheat: #f3e7d0;
  --green: #35523d;
  --sage: #e9eee2;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --round: .5rem;
  --gutter: clamp(1rem, 4.05vw, 3.75rem);
  font: 16px/1.53 var(--sans);
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.3rem; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.4rem; letter-spacing: -.02em; }
h1 + p, h2 + p, h3 + p { margin-top: .65rem; }
a { color: var(--ink-red); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink-red); outline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button:enabled, summary { cursor: pointer; }
button:disabled { opacity: .68; cursor: wait; }
img { max-width: 100%; display: block; }
small { font-size: .865rem; }
[hidden] { display: none !important; }
.shell { width: min(100% - var(--gutter) * 2, 85.5rem); margin-inline: auto; }
.page, .notices { max-width: 77.5rem; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 3; padding: .75rem; background: var(--paper); color: var(--ink); }
.skip:focus { top: 10px; }

.nav {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(.52rem, 1.2vw, 1rem);
  color: var(--ink);
  font: 650 clamp(1.48rem, 2.45vw, 2.24rem)/1 var(--serif);
  letter-spacing: -.038em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { flex: none; width: clamp(2.25rem, 4.8vw, 4.5rem); height: auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.nav-menu { display: flex; flex: none; align-items: center; flex-wrap: wrap; justify-content: end; gap: .28rem clamp(.8rem, 2.6vw, 2.65rem); }
.nav-menu a, .link-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font: 580 1.23rem/1.15 var(--serif);
  text-decoration: none;
}
.nav-menu a:hover, .nav-menu a[aria-current=page] { text-decoration: underline; }
.nav-menu .nav-demo-short { display: none; }
.nav-menu .nav-action, .nav-menu .link-button {
  border: 1px solid var(--plum);
  border-radius: var(--round);
  padding: .45rem 1.18rem;
  background: var(--plum);
  color: var(--paper);
}
.nav-menu .nav-action:hover, .nav-menu .link-button:hover { background: var(--plum-hover); text-decoration: none; }
.footer { margin-top: auto; }
.footer-inner {
  min-height: 6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  border-top: 1px solid var(--rule);
  padding-block: 1.15rem;
}
.footer .brand { font-size: 1.6rem; }
.footer .brand img { width: 3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-links a { color: var(--ink); }
.footer small { color: var(--muted); }
.footer .link-button { background: transparent; padding: .35rem .65rem; border: 1px solid var(--rule); border-radius: var(--round); font: inherit; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.08rem;
  min-height: 46px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: var(--round);
  text-decoration: none;
  font-weight: 650;
  text-align: center;
  line-height: 1.22;
}
.button.primary { color: #fffaf4; background: var(--plum); }
.button.primary:hover { background: var(--plum-hover); }
.button.secondary { color: var(--ink); background: var(--paper); border-color: var(--rule); }
.button.secondary:hover { background: var(--paper-alt); border-color: var(--plum); }
.button.danger { color: var(--ink-red); background: var(--paper); border-color: #b98585; }
.button.danger:hover { background: var(--rose); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  column-gap: clamp(1.3rem, 2.1vw, 2rem);
  padding-block: clamp(1.85rem, 2.65vw, 2.5rem) clamp(1.85rem, 2.5vw, 2.45rem);
}
.hero-copy { min-width: 0; padding-block: 1.05rem 1.7rem; }
.eyebrow {
  margin-bottom: clamp(1.9rem, 3.7vw, 3.48rem);
  color: var(--plum);
  font-size: clamp(.72rem, 1.22vw, 1.04rem);
  letter-spacing: .19em;
  font-weight: 530;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(3.2rem, 6.68vw, 6.25rem);
  letter-spacing: -.054em;
  font-weight: 640;
  line-height: .96;
}
.hero h1 span { display: block; }
.hero-lead {
  max-width: 35.5rem;
  margin-block: clamp(1.55rem, 3.7vw, 3.45rem) clamp(1.65rem, 3.7vw, 3.48rem);
  font: 450 clamp(1.24rem, 2.35vw, 2.1rem)/1.23 var(--serif);
  letter-spacing: -.017em;
}
.hero-actions { gap: .75rem clamp(1.15rem, 2.55vw, 2.45rem); }
.hero-actions .button {
  min-height: clamp(3rem, 4.65vw, 4.35rem);
  padding-inline: clamp(1.05rem, 2.17vw, 2.05rem);
  font: 580 clamp(1.13rem, 1.93vw, 1.65rem)/1.11 var(--serif);
}
.hero-link { color: var(--plum); font: 540 clamp(1.08rem, 1.8vw, 1.54rem)/1.2 var(--serif); min-height: 44px; display: inline-flex; align-items: center; }

.invoice-sheet {
  min-width: 0;
  padding: clamp(1.65rem, 3.1vw, 3rem) clamp(1.5rem, 3.6vw, 3.4rem) clamp(1.5rem, 2.75vw, 2.55rem);
  background: #f8efe2 url("invoice-paper.7618bef0778a.webp") center / cover;
  border: 1px solid #e6d9c8;
  border-radius: .54rem .58rem .42rem .5rem;
  box-shadow: 0 3px 4px #6245271c, 0 14px 28px #62452718;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}
.invoice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: .8rem;
  margin-bottom: .15rem;
  padding-bottom: clamp(.85rem, 1.75vw, 1.62rem);
  border-bottom: 1px solid var(--ink);
}
.invoice-heading h2 {
  flex: none;
  font-size: clamp(2.05rem, 3.72vw, 3.5rem);
  letter-spacing: -.044em;
}
.invoice-example {
  text-align: right;
  font-size: clamp(.95rem, 1.55vw, 1.43rem);
  font-style: italic;
  text-decoration: underline var(--ink-red);
  text-underline-offset: .43em;
}
.invoice-summary {
  display: grid;
  grid-template-columns: .79fr 1.21fr;
  padding-block: clamp(.9rem, 1.27vw, 1.28rem);
  border-bottom: 2px solid var(--ink);
}
.invoice-summary div:first-child { padding-right: .9rem; }
.invoice-summary div + div { border-left: 1px solid var(--rule); padding-left: clamp(.9rem, 2.55vw, 2.5rem); }
.invoice-summary dt { font-size: clamp(1rem, 1.52vw, 1.36rem); line-height: 1.18; }
.invoice-summary dd { margin-top: .25rem; font-size: clamp(1.55rem, 2.9vw, 2.65rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; white-space: nowrap; }
.invoice-table { margin-top: clamp(.55rem, 1.18vw, 1.15rem); table-layout: auto; }
.invoice-table > thead th,
.invoice-table > tbody th,
.invoice-table > tbody td { border: 0; background: transparent; font-size: clamp(.9rem, 1.45vw, 1.34rem); padding: .62rem .25rem; vertical-align: middle; }
.invoice-table > thead th { padding-block: .42rem .52rem; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 650; }
.invoice-table > thead th:not(:first-child),
.invoice-table > tbody td { text-align: right; white-space: nowrap; }
.invoice-table > tbody th:first-child { padding-block: clamp(.57rem, .81vw, .8rem); }
.invoice-table > tbody tr { background: transparent; }
.invoice-table > tbody tr.invoice-highlight { background: #c97b712f; }
.invoice-table tbody th { line-height: 1.14; }
.invoice-table tbody small { margin-top: .26rem; font: 430 clamp(.72rem, 1.22vw, 1.06rem)/1.16 var(--serif); }
.invoice-delta { position: relative; font-weight: 650; }
.invoice-highlight .invoice-delta { color: var(--ink-red); font-size: clamp(1.05rem, 1.86vw, 1.68rem); }
.invoice-highlight .invoice-delta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + .98em);
  aspect-ratio: 2.9;
  transform: translate(-50%, -50%);
  background: url("proofreader-oval.ba919505487b.webp") center / contain no-repeat;
  pointer-events: none;
}
.invoice-remainder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .69rem .25rem 0;
  border-top: 1px solid var(--ink);
  font-size: clamp(1rem, 1.48vw, 1.4rem);
}
.invoice-note {
  margin-top: clamp(.85rem, 2.28vw, 2.2rem);
  margin-right: .55rem;
  text-align: right;
  color: var(--ink-red);
  font-size: clamp(1.05rem, 2.1vw, 1.92rem);
  line-height: 1.2;
  font-style: italic;
  letter-spacing: -.027em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.source-strip {
  display: grid;
  grid-template-columns: minmax(0, .944fr) minmax(0, 1.042fr) minmax(0, 1.014fr);
  border-block: 1px solid var(--rule);
  padding: 1.16rem 0;
  margin: 0;
  list-style: none;
  font-family: var(--serif);
}
.source-strip li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .62rem; padding-inline: clamp(.5rem, 3.45vw, 3.1rem) .68rem; }
.source-strip li:first-child { padding-left: .55rem; }
.source-strip li + li { border-left: 1px solid var(--rule); }
.source-strip strong { font-size: clamp(1.34rem, 2.02vw, 1.88rem); font-weight: 680; }
.source-strip span { font-size: clamp(1rem, 1.58vw, 1.5rem); }

.section { padding-block: clamp(2.25rem, 3.5vw, 3.35rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-intro h2 { font-size: clamp(2.25rem, 4.1vw, 3.85rem); }
.section-intro p, .proof-inner p, .pricing p, .steps p { color: var(--muted); max-width: 59ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 3vw, 2.8rem); margin-top: 1.65rem; }
.steps article { padding-top: 1rem; border-top: 1px solid var(--rule); }
.steps h3 { font-size: clamp(1.4rem, 2.05vw, 1.9rem); }
.proof-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem clamp(1rem, 5vw, 4.4rem); align-items: center; }
.proof-links { border-top: 1px solid var(--line); }
.proof-links a { display: block; min-height: 44px; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 1.3rem clamp(1rem, 3.1vw, 2.8rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  border-block: 1px solid var(--rule);
  background: var(--paper-alt);
}
.pricing h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.pricing strong { display: block; font: 680 clamp(1.7rem, 3.15vw, 2.75rem)/1.06 var(--serif); white-space: nowrap; }
.pricing span { color: var(--muted); }
.pricing-home { margin: 0; }

.page { padding-block: clamp(1.7rem, 4.2vw, 3.55rem) clamp(3rem, 6vw, 5rem); }
.page h1 { font-size: clamp(2.45rem, 4.65vw, 4.1rem); }
.page-head { display: flex; justify-content: space-between; gap: 1.3rem; align-items: end; margin-bottom: 1.55rem; }
.page-head > div { min-width: 0; }
.page-head .actions { justify-content: end; }
.kicker { margin-bottom: .7rem; font-size: .77rem; letter-spacing: .105em; text-transform: uppercase; color: var(--ink-red); font-weight: 650; }
.kicker span { display: none; }
.lede { font-size: clamp(1rem, 1.47vw, 1.17rem); color: var(--muted); margin-top: .54rem; max-width: 60ch; }
.narrow { max-width: 38rem; }
.narrow .actions { margin-top: 1.2rem; }
.reading { max-width: 51rem; }
.reading h2 { margin-top: 2rem; font-size: 1.83rem; }
.reading p, .reading ul, .reading ol { max-width: 68ch; }
.reading .actions { margin-top: 1.7rem; }
.muted { color: var(--muted); }
.back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: .38rem; font-size: .94rem; }
.panel, .auth-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--paper);
}
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.64rem; margin-bottom: .68rem; }
.narrow > .panel { margin-top: 1.2rem; }
.auth-card { margin-block: .7rem; padding: clamp(1.15rem, 4vw, 2.45rem); border-top: 2px solid var(--plum); }
.auth-card h1 { font-size: clamp(2.05rem, 4.1vw, 2.8rem); }
.auth-card form { margin-top: 1.3rem; }
.form-stack { display: grid; gap: .88rem; }
.form-stack .button { justify-self: start; }
.auth-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; }
.form-layout, .workspace-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(16rem, .9fr); gap: 1rem; align-items: start; }
.form-layout .help-panel { margin: 0; background: var(--paper-alt); }
.form-layout .help-panel ul { padding-left: 1.15rem; color: var(--muted); }
.form-layout .help-panel li + li { margin-top: .35rem; }
.workspace-sidebar > .panel + .panel { margin-top: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-block: .55rem; }
.field { display: grid; gap: .32rem; min-width: 0; }
.field label { font-size: .96rem; font-weight: 650; }
.field input:not([type=hidden]), .field select, .field textarea, .mapping-panel select {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--rule);
  border-radius: .34rem;
  padding: .55rem .68rem;
  color: var(--ink);
  background: #fffcf6;
}
.field input::placeholder { color: var(--muted); opacity: .85; }
.field textarea { resize: vertical; }
.field input[type=file] { padding: .32rem .42rem; background: var(--paper-alt); }
.field input[type=file]::file-selector-button { font: inherit; color: var(--plum); background: var(--rose); border: 0; border-radius: .25rem; padding: .35rem .5rem; margin-right: .5rem; cursor: pointer; }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--ink-red); }
.field-help { font-size: .875rem; color: var(--muted); }
.field input[type=checkbox], input[type=checkbox] { accent-color: var(--ink-red); }
.import-file { min-width: 0; }
.mapping-button { border: 0; padding: .28rem 0; background: transparent; color: var(--ink-red); min-height: 40px; text-decoration: underline; text-underline-offset: .15em; }
.audit-form .mapping-status { margin: 0; color: var(--muted); font-size: .9rem; }
.mapping-panel:not([hidden]) { display: grid; gap: .55rem; margin-block: .5rem; padding: .75rem; border: 1px solid var(--line); background: var(--paper-alt); border-radius: .38rem; }
.mapping-panel label { display: grid; gap: .15rem; min-width: 0; font-size: .88rem; font-weight: 650; }
.mapping-panel .mapping-remember, .mapping-remember { display: flex; align-items: start; gap: .55rem; min-height: 44px; padding-block: .55rem; }
.mapping-remember input { width: 1.11rem; height: 1.11rem; margin: .15rem 0 0; flex: none; }
.consent-help { margin: 0 0 1.15rem 1.66rem; font-size: .93rem; }
.analytics-preferences { padding: .8rem 0; font-size: .88rem; }
.analytics-preferences p { margin: 0 0 .45rem; }
.analytics-preferences button + button { margin-left: .85rem; }
fieldset { min-width: 0; border: 0; border-bottom: 1px solid var(--line); margin: 0 0 1rem; padding: 0 0 1rem; }
legend { padding: 0; font: 660 1.52rem/1.12 var(--serif); }
.audit-form fieldset p { margin-top: .65rem; }
.errorlist { margin: 0; padding: .47rem .68rem; list-style: none; background: var(--rose); color: var(--ink-red); border-radius: .3rem; }
.audit-form > .errorlist { margin-bottom: .88rem; }
.notices { padding-top: .7rem; }
.notice { padding: .64rem .8rem; border-left: 3px solid var(--rule); background: var(--paper); }
.notice.success { border-color: var(--green); color: var(--green); }
.notice.error { border-color: var(--ink-red); color: var(--ink-red); }
.empty { padding-block: 1rem; display: grid; justify-items: start; gap: .65rem; }
.empty p { margin: 0; color: var(--muted); }
.profile-row { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem 1.15rem; justify-content: space-between; }
.workspace-plan p { color: var(--muted); }
.workspace-plan a { display: inline-flex; margin-top: .6rem; min-height: 36px; align-items: center; }
.profile-row { padding-block: .68rem; border-top: 1px solid var(--line); }
.profile-row small { display: block; color: var(--muted); }
.profile-row > div { min-width: 0; overflow-wrap: anywhere; }
.billing-actions { margin-top: .75rem; }
.delete summary { color: var(--ink-red); min-height: 36px; padding-block: .3rem; }
.delete form { margin-top: .45rem; }
.report-delete { margin-top: 1rem; }
.review-panel > p + p { margin-top: .62rem; }
.review-panel .actions, .review-panel .delete { margin-top: .85rem; }
.review-id { overflow-wrap: anywhere; font-size: .85rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 1.06rem;
  border-block: 1px solid var(--rule);
  background: var(--paper);
}
.metric { min-width: 0; padding: .86rem .95rem; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span, .report-info span { display: block; color: var(--muted); font-size: .89rem; }
.metric strong { display: block; overflow-wrap: anywhere; margin-top: .24rem; font: 690 clamp(1.33rem, 2.83vw, 2.08rem)/1.11 var(--serif); font-variant-numeric: tabular-nums; }
.metric-hit { background: var(--rose); color: var(--ink-red); }
.metric-hit span { color: var(--ink-red); }
.report-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-block: 1rem 1.28rem; }
.report-info div { min-width: 0; padding-left: .65rem; border-left: 2px solid var(--rule); }
.segmented, .pagination, .template-links { display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; }
.segmented { margin-block: .78rem; }
.segmented a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .52rem .7rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--paper);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 620;
  text-decoration: none;
}
.segmented a[aria-current=true] { border-color: var(--plum); background: var(--plum); color: #fffaf4; }
.segmented a:hover { border-color: var(--plum); }
.table-scroll { overflow-x: auto; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--round); }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { text-align: left; padding: .72rem .8rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: var(--ink); background: #eee5da; font-size: .89rem; font-weight: 600; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper-alt); }
td small, th small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-top: .15rem; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta { color: var(--ink-red); font-weight: 700; }
.result-table th:first-child { min-width: 9.5rem; overflow-wrap: anywhere; }
.result-table td:nth-child(5) { min-width: 14rem; }
.result-table td:nth-child(n+2):nth-child(-n+4), .result-table thead th:nth-child(n+2):nth-child(-n+4),
.history-table td.money, .history-table thead th:not(:first-child) { text-align: right; }
.result-table tr.is-difference > :first-child { box-shadow: inset 3px 0 var(--ink-red); }
.result-table tr.is-review > :first-child { box-shadow: inset 3px 0 #b18b54; }
.pill { display: inline-block; border-radius: .25rem; background: var(--sage); color: var(--green); padding: .16rem .39rem; font-size: .82rem; font-weight: 650; }
.pill.difference { color: var(--ink-red); background: var(--rose); }
.pill.review { color: var(--ochre); background: var(--wheat); }
.cell-label { display: none; }
.template-links { margin-block: .8rem; gap: .42rem .85rem; }
.template-links span { font-weight: 650; }
.template-links a { min-height: 36px; display: flex; align-items: center; }
.pagination { justify-content: center; margin-top: 1rem; }

@media (max-width: 1080px) {
  .hero-grid { column-gap: 1.2rem; }
  .hero h1 { font-size: clamp(3rem, 6.3vw, 5.5rem); }
  .invoice-sheet { padding-inline: 1.45rem; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 1.7rem; padding-top: 1.75rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.68rem, 8.7vw, 5.5rem); }
  .hero-lead { margin-block: 1.18rem 1.55rem; }
  .eyebrow { margin-bottom: 1.35rem; }
  .invoice-sheet { width: min(100%, 41rem); padding-inline: clamp(1rem, 4.75vw, 2.5rem); }
  .invoice-table > thead th, .invoice-table > tbody th, .invoice-table > tbody td { font-size: clamp(.85rem, 2.25vw, 1.24rem); }
  .invoice-heading h2 { font-size: clamp(2.15rem, 6.15vw, 3.2rem); }
  .invoice-highlight .invoice-delta { font-size: clamp(1.05rem, 2.72vw, 1.6rem); }
  .source-strip li { padding-inline: .85rem; }
  .source-strip li .source-divider { display: none; }
  .form-layout, .workspace-layout { grid-template-columns: 1fr; }
  .workspace-sidebar { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-sidebar > .panel + .panel { margin-top: 0; }
  .page-head .actions { justify-content: start; }
  .pricing { grid-template-columns: minmax(0, 1fr) auto; }
  .pricing .button { justify-self: start; }
  .table-scroll { overflow-x: auto; }
}
@media (max-width: 700px) {
  .nav { min-height: 4.4rem; gap: .6rem; }
  .nav-menu { column-gap: .65rem; }
  .nav-menu a, .link-button { font-size: 1.04rem; }
  .nav-menu .nav-secondary { display: none; }
  .nav-menu .nav-action, .nav-menu .link-button { padding-inline: .62rem; }
  .proof-inner, .steps { grid-template-columns: 1fr; }
  .page-head { align-items: start; flex-direction: column; }
  .metrics, .report-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table, .responsive-table tbody { display: block; }
  .responsive-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem .6rem; padding: .9rem .75rem; border-bottom: 1px solid var(--line); }
  .responsive-table tbody tr:last-child { border-bottom: 0; }
  .responsive-table tbody :is(th, td) { min-width: 0; padding: 0; border: 0; text-align: left !important; }
  .responsive-table tbody :is(th, td:nth-child(n+5), td[colspan]) { grid-column: 1 / -1; }
  .result-table tr.is-difference > :first-child, .result-table tr.is-review > :first-child { box-shadow: none; }
  .result-table tr.is-difference { box-shadow: inset 3px 0 var(--ink-red); }
  .result-table tr.is-review { box-shadow: inset 3px 0 #b18b54; }
  .responsive-table .money { white-space: normal; font-size: .9rem; overflow-wrap: anywhere; }
  .responsive-table .cell-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 450; margin: 0 0 .11rem; }
}
@media (max-width: 490px) {
  .brand { gap: .39rem; font-size: 1.39rem; }
  .brand img { width: 2rem; }
  .nav-menu { column-gap: .43rem; }
  .nav-menu a, .link-button { font-size: .95rem; }
  .is-signed-in .nav-demo { display: none; }
  .eyebrow { font-size: .72rem; letter-spacing: .13em; }
  .invoice-sheet { padding: 1.15rem .77rem 1.32rem; }
  .invoice-summary dd { font-size: clamp(1.42rem, 6vw, 2rem); }
  .invoice-example { font-size: .9rem; }
  .invoice-table > thead th, .invoice-table > tbody th, .invoice-table > tbody td { padding-inline: .14rem; }
  .invoice-table > thead th { font-size: clamp(.71rem, 3.09vw, .92rem); }
  .invoice-table > tbody td { font-size: clamp(.75rem, 3.48vw, 1rem); }
  .invoice-table tbody th { max-width: 7rem; }
  .invoice-highlight .invoice-delta::after { width: calc(100% + .35em); }
  .source-strip { padding-block: .75rem; }
  .source-strip li { padding-inline: .44rem; display: grid; gap: .12rem; }
  .source-strip li:first-child { padding-left: 0; }
  .source-strip span { line-height: 1.17; font-size: .87rem; }
  .field-grid, .workspace-sidebar { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; gap: .82rem; }
  .metric { padding-inline: .65rem; }
}
@media (max-width: 380px) {
  .nav-menu .nav-demo-full { display: none; }
  .nav-menu .nav-demo-short { display: inline; }
  .invoice-table > tbody td { font-size: .78rem; }
  .invoice-table tbody small { font-size: .64rem; white-space: nowrap; }
}

