/* Clawback: a quiet, evidence-led service. All type and imagery are served locally. */
@font-face {
  font-family: Instrument;
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #1c302a;
  --green: #173c33;
  --muted: #58605b;
  --line: #dcdcd5;
  --sage: #efefea;
  --gold: #877144;
  --danger: #983f36;
  --display: Instrument, Georgia, serif;
  --body: Manrope, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
button:not(.plain):not(.chip):not(.inline-button):not(.text-action),
.header-cta {
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  min-height: 48px;
  padding: 12px 23px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
button:not(:disabled):not(.plain):not(.chip):not(.inline-button):not(
    .text-action
  ):hover,
.header-cta:hover {
  background: #173b33;
  box-shadow: 0 3px 10px #183d3214;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-color: var(--gold);
}
:focus-visible {
  outline: 3px solid #a07837;
  outline-offset: 5px;
}
input:focus-visible {
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 16px;
}
em {
  font-weight: 400;
}
small {
  font-size: 13px;
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
svg.ic {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--white);
  padding: 14px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.eyebrow,
.label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.money,
.sum,
.formula,
.mini-ledger,
.stat b,
.big-number {
  font-variant-numeric: tabular-nums;
}
.plain,
.inline-button,
.text-action {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 10px 0;
  min-height: 44px;
  font-size: 14px;
}
.plain:hover,
.inline-button:hover,
.text-action:hover {
  color: #795f31;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.inline-button {
  display: inline;
  padding: 0;
  min-height: 0;
  text-decoration: underline;
  font-size: inherit;
}
.text-link,
.quiet-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 550;
}
.text-link {
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.text-link:hover {
  color: var(--gold);
}
/* The first screen is immediately usable; motion never gates navigation. */
.site-header {
  max-width: 1500px;
  margin: auto;
  min-height: 100px;
  padding: 20px 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-family: var(--display);
  font-size: 37px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.top {
  display: flex;
  align-items: center;
  gap: 30px;
}
.top a,
.top button {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.top a {
  padding: 12px 0;
}
.top a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.header-cta {
  background: transparent;
  color: var(--green);
  text-decoration: none;
  font-size: 13px !important;
  min-height: 42px !important;
  padding: 10px 18px !important;
}
.header-cta:hover {
  color: white;
}
.hero {
  position: relative;
  isolation: isolate;
  border-radius: 10px;
  overflow: hidden;
  max-width: 1500px;
  margin: 0 24px;
  min-height: 650px;
  min-height: max(650px, calc(100svh - 116px));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 62px 5.5% 104px;
  background: #e0e7e2;
}
.hero-photo,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-photo {
  object-fit: cover;
  object-position: center 68%;
}
.hero-wash {
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(248, 247, 244, 0.97) 0%,
    rgba(248, 247, 244, 0.9) 28%,
    rgba(248, 247, 244, 0.42) 52%,
    rgba(248, 247, 244, 0) 100%
  );
}
.herotext {
  max-width: 620px;
}
.herotext .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
}
.hero h1 {
  font-size: clamp(70px, 7.3vw, 112px);
  margin: 25px 0 26px;
  line-height: 0.98;
}
.hero h1 em {
  color: #466353;
}
.intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 440px;
  color: #3f5248;
}
.heroactions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 29px 0 18px;
}
.heroactions button {
  min-height: 51px !important;
  padding: 13px 25px !important;
}
.heroactions .secondary {
  background: #f7f7ef9c !important;
  color: var(--ink) !important;
  border-color: #698071 !important;
}
.heroactions .secondary:hover {
  background: var(--paper) !important;
}
.quiet-link {
  font-size: 13px;
  color: #425b4c;
}
.hero-bottom {
  position: absolute;
  bottom: 26px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.03em;
}
.hero-bottom p {
  margin: 0;
}
.hero-bottom p span {
  padding: 0 13px;
}
.place {
  color: #fefef9;
  background: #233e384f;
  padding: 6px 11px;
  border-radius: 3px;
}
.scene-card {
  justify-self: end;
  align-self: end;
  width: min(330px, 100%);
  margin: 0 6px 10px 22px;
  padding: 23px 27px 17px;
  background: rgba(255, 254, 247, 0.92);
  border: 1px solid #fffdf2a8;
  box-shadow: 0 18px 60px #0c302024;
  backdrop-filter: blur(14px);
  border-radius: 8px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
}
.mini-mark {
  font: 26px var(--display);
  width: 29px;
  height: 29px;
  border: 1px solid #8b9a8a;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
}
.sample-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  color: var(--muted);
}
.preview-copy {
  padding: 22px 0 15px;
}
.preview-copy .label {
  font-size: 10px;
  letter-spacing: 0.075em;
}
.preview-amount {
  display: block;
  font: 72px/0.98 var(--display);
  letter-spacing: -0.035em;
  margin: 12px 0;
}
.preview-amount span {
  font-size: 0.65em;
}
.preview-copy p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}
.mini-ledger {
  margin: 0;
  border-top: 1px solid #ccd3c5;
  padding: 10px 0 5px;
  font-size: 11px;
}
.mini-ledger div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  gap: 10px;
}
.mini-ledger dd {
  margin: 0;
  font-weight: 650;
}
.scene-card .text-action {
  font-size: 12px;
  font-weight: 650;
  border-bottom: 1px solid var(--ink);
  min-height: 35px;
  padding: 4px 0;
}
.service-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 31px 24px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.service-note .ic {
  width: 19px;
  height: 19px;
  opacity: 0.8;
}
.service-note p {
  margin: 0;
}
.service-note span {
  color: var(--muted);
}
/* Service journey: the explanation, examples and intake each have a different rhythm. */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 6%;
  scroll-margin-top: 28px;
}
.approach {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12%;
}
.section-intro h2 {
  font-size: clamp(45px, 4.3vw, 66px);
  margin: 21px 0 24px;
}
.section-intro > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.section-intro .text-link {
  margin-top: 8px;
}
.service-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}
.service-steps li {
  display: flex;
  gap: 25px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-steps li:first-child {
  padding-top: 8px;
}
.service-steps li:last-child {
  border: 0;
  padding-bottom: 0;
}
.service-steps .ic {
  margin-top: 3px;
  color: #6e816e;
}
.service-steps h3 {
  font-size: 18px;
  margin-bottom: 11px;
}
.service-steps p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.examples {
  max-width: none;
  background: var(--green);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 12%;
  padding: 85px max(7%, calc((100vw - 1120px) / 2));
}
.examples .eyebrow {
  color: #c1cebc;
}
.examples .section-intro > p {
  color: #d1dacf;
}
.examples h2 {
  font-size: 61px;
}
.examples-note {
  font-size: 12px !important;
  margin: 26px 0 0 !important;
  line-height: 1.8 !important;
  max-width: 330px !important;
}
.examples .text-link:hover {
  color: #e5d4ae;
}
.tries {
  display: flex;
  flex-direction: column;
}
.try {
  position: relative;
  padding: 26px 115px 25px 0;
  border-bottom: 1px solid #ffffff2f;
}
.try:first-child {
  padding-top: 4px;
}
.try:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.try h3 {
  font: 30px/1.2 var(--display);
  margin-bottom: 8px;
}
.try p {
  font-size: 13px;
  color: #d3ddd0;
  margin-bottom: 11px;
  max-width: 340px;
}
.try .exp {
  font-size: 11px;
  color: #e1e6d9;
  margin-top: 13px;
}
.try button {
  font-size: 12px !important;
  min-height: 36px !important;
  background: transparent !important;
  border: 1px solid #a8bca0 !important;
  border-radius: 3px !important;
  padding: 8px 13px !important;
  margin-top: 5px;
}
.try button:hover {
  background: #ffffff10 !important;
}
.try-outcome {
  position: absolute;
  right: 0;
  top: 28px;
  font: 35px var(--display);
  color: #e6e7cc;
}
.try:first-child .try-outcome {
  top: 4px;
}
.intake-section {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 9%;
  padding-top: 110px;
  padding-bottom: 110px;
}
.document-help {
  margin-top: 28px;
  max-width: 380px;
}
.document-help summary {
  font-size: 14px;
}
.document-help p {
  font-size: 13px;
}
.upload-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 30px 22px;
  border-radius: 10px;
  box-shadow: 0 12px 45px #29433405;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.sectionhead h3 {
  font: 29px/1.2 var(--display);
}
.sectionhead > span {
  font-size: 11px;
  color: var(--muted);
}
.upload-limit {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}
#files {
  display: grid;
  gap: 12px;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8ded2;
  border-radius: 4px;
  padding: 21px 18px;
  background: #fafaf7;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.row:focus-within {
  outline: 2px solid #a07837;
  outline-offset: 2px;
}
.row > label:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.row > label:first-child:before {
  content: "";
  width: 23px;
  height: 29px;
  border: 1px solid #82977d;
  border-radius: 2px;
  flex-shrink: 0;
  background:
    linear-gradient(#82977d, #82977d) 5px 10px/11px 1px no-repeat,
    linear-gradient(#82977d, #82977d) 5px 15px/11px 1px no-repeat,
    linear-gradient(#82977d, #82977d) 5px 20px/7px 1px no-repeat;
}
.row label span {
  min-width: 0;
}
.row strong {
  font-size: 14px;
  font-weight: 650;
  display: block;
}
.row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.row input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.choose {
  padding: 9px 0 9px 10px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.row.drop {
  background: #edf2e8;
  border-color: var(--green);
}
.row.ready {
  background: #eff3e9;
  border-color: #9bac94;
}
.row.ready > label:first-child:before {
  background: #dae4ce;
}
.row .rm {
  justify-self: end;
  grid-column: 2;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  min-height: 24px !important;
  padding: 0 !important;
  font-size: 11px !important;
  text-decoration: underline;
}
.upload-guidance {
  font-size: 12px;
  margin: 20px 0 15px;
  color: var(--muted);
}
.actions button {
  width: 100%;
}
.actions button:disabled {
  opacity: 1 !important;
  background: #e4e8df !important;
  color: #626f62 !important;
  border-color: #e4e8df !important;
}
#status {
  font-size: 13px;
  color: var(--danger);
  margin: 12px 0 0;
}
#status:empty {
  display: none;
}
.privacy-inline {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  margin: 17px 0 0;
}
.footnote {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 18px 20px 0;
}
.closing-note {
  text-align: center;
  background: #e9ede4;
  padding: 70px 24px 76px;
}
.closing-note h2 {
  font-size: 65px;
  margin: 20px 0 24px;
}
.closing-note em {
  color: #597057;
}
/* Actual processing is logged; sample walkthroughs explain completed checks. */
#tracker {
  max-width: 1080px;
  margin: 42px auto 55px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  scroll-margin-top: 30px;
}
.trackhead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.trackhead h2 {
  font-size: 42px;
  margin-top: 14px;
}
.progress-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
  margin: 20px 0;
}
.trackbtns {
  display: flex;
  gap: 15px;
}
#stages {
  display: flex;
  list-style: none;
  margin: 28px 0 26px;
  padding: 0;
  gap: 10px;
  counter-reset: stage;
}
#stages li {
  flex: 1;
  font-size: 12px;
  counter-increment: stage;
  border-top: 2px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}
#stages li:before {
  content: counter(stage);
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
#stages li[aria-current="step"] {
  border-color: #9b804b;
  color: var(--ink);
  font-weight: 650;
}
#stages li[aria-current="step"]:before {
  background: #ede5d5;
  border-color: #af9460;
}
#stages li.done {
  border-color: #6d8666;
}
#stages li.done:before {
  content: "✓";
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.review-log {
  font-size: 13px;
}
.sample-walkthrough {
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
.sample-walkthrough li {
  display: flex;
  gap: 22px;
  padding: 19px 22px;
  border-left: 2px solid var(--line);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.sample-walkthrough li.active {
  background: #f5f5f2;
  border-left-color: #9b804b;
}
.sample-walkthrough li.complete {
  border-left-color: #173c33;
}
.walkthrough-number {
  font: 30px/1.2 var(--display);
  color: #8c7854;
}
.sample-walkthrough h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
.sample-walkthrough p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.walkthrough-skip {
  white-space: nowrap;
  font-size: 12px;
  padding: 12px 16px;
}
.trackbtns {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .trackhead:has(.walkthrough-skip) {
    align-items: flex-start;
    flex-direction: column;
  }
  .trackhead:has(.walkthrough-skip) h2 {
    font-size: 31px;
  }
  .sample-walkthrough li {
    padding: 15px 12px;
    gap: 14px;
  }
}
#events {
  padding-left: 22px;
  margin: 14px 0 0;
  color: var(--muted);
}
#events li {
  padding: 5px 0;
}
#events li:last-child {
  color: var(--ink);
}
body.reviewing #start {
  display: none;
}
body.reviewing #result {
  display: none;
}
body.reviewing #tracker {
  animation: arrive 0.4s var(--ease);
}
/* Result: amount, reasoning, original page and next action share a single workspace. */
#result {
  max-width: 1240px;
  padding: 35px 40px 70px;
  margin: auto;
}
#result:focus,
#intake:focus,
#tracker:focus {
  outline: none;
}
.result-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.result-heading h1 {
  font-size: 48px;
  max-width: 850px;
  margin: 12px 0 0;
}
.result-heading .back {
  white-space: nowrap;
  font-size: 12px;
  order: 2;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}
.wsgrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.wsgrid > div {
  min-width: 0;
}
.review-summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 20px;
}
.expect {
  font-size: 11px;
  line-height: 1.7;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 18px 0;
  background: #f0f3ea;
}
.expect.bad {
  color: var(--danger);
  background: #fcf0e9;
  border-color: #dfc2b8;
}
.review-chart {
  border-radius: 8px;
  background: #173c33;
  color: #fffdf6;
  padding: 25px 29px 28px;
  border: 1px solid #173c33;
}
.balance-chart figcaption {
  font-size: 12px;
  letter-spacing: 0.025em;
}
.big-number {
  font: 95px/1.05 var(--display);
  letter-spacing: -0.04em;
  margin: 7px 0 24px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  font-size: 12px;
  margin: 14px 0 7px;
}
.bar-label strong {
  font-size: 14px;
  font-weight: 650;
}
.track {
  height: 6px;
  display: block;
  width: 100%;
  background: #456359;
  overflow: visible;
}
.track.bill rect {
  fill: #f0eee6;
}
.track.share rect {
  fill: #d4bd8d;
}
.working {
  margin: 20px 0;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.working h2 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 15px;
}
.formula {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  line-height: 2.5;
  margin-bottom: 7px;
  white-space: normal;
}
.chip {
  text-decoration: underline;
  text-underline-offset: 4px;
  background: #f5f4ef;
  border: 1px solid #c7cac2;
  color: var(--ink);
  font-size: 16px;
  min-height: 42px;
  padding: 5px 10px;
  border-radius: 4px;
  line-height: 1.5;
}
.chip:hover {
  background: #e8e8df;
}
.chip[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.plainchip {
  background: transparent;
  border-color: transparent;
  padding: 0 2px;
  cursor: default;
  opacity: 1;
}
.working small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.working .plain {
  font-size: 12px;
  text-decoration: underline;
}
.formula-note {
  font-size: 12px;
  margin: 6px 0 0;
  color: var(--muted);
}
.evid {
  position: sticky;
  top: 24px;
  overflow: auto;
  max-height: calc(100vh - 50px);
  border: 1px solid var(--line);
  background: #f0f0eb;
  border-radius: 8px;
  padding: 23px;
  scrollbar-width: thin;
  scrollbar-color: #b7c4b0 transparent;
}
.evid .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.evid h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.evid .cap {
  font-size: 12px;
  padding: 12px 14px;
  background: #fcfbee;
  border: 1px solid #d9dac4;
  line-height: 1.7;
  margin-bottom: 15px;
}
.evid .empty {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.pg {
  position: relative;
  box-shadow: 0 7px 24px #17342510;
  background: white;
}
.pg img {
  width: 100%;
  height: auto;
}
.hl,
.hit {
  position: absolute;
  background: #d2bd4345;
  border: 1.5px solid #9f873d;
  pointer-events: none;
}
.source-caption {
  font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
  margin: 0;
}
.evidence-links {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  flex-wrap: wrap;
  font-size: 12px;
}
.evidence-note {
  font-size: 12px;
  margin-top: 12px;
}
.next-step {
  padding: 23px 25px;
  border: 1px solid #cdd6c5;
  border-left: 3px solid #788b68;
  border-radius: 4px;
  margin: 20px 0 24px;
  background: #fffefa;
}
.next-step h2 {
  font: 29px/1.14 var(--display);
  margin: 10px 0 13px;
}
.next-step p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 14px;
}
.next-step small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 12px;
}
.next-step details {
  background: transparent;
  border-color: #cdd6c5;
  margin-top: 15px;
}
.next-step details summary {
  font-weight: 650;
  font-size: 13px;
}
.next-step pre {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--line);
  margin: 12px 0;
}
.next-step button {
  margin: 4px 8px 4px 0;
  font-size: 12px !important;
  min-height: 40px !important;
}
.paper {
  padding: 23px 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
}
.paper h2 {
  font-size: 29px;
  margin: 0 0 18px;
}
.paper p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.sum {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7df;
}
.sum:last-child {
  font-weight: 650;
  border-bottom: 0;
  padding-bottom: 0;
}
.sum span:last-child {
  white-space: nowrap;
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  margin-top: 8px;
}
summary {
  cursor: pointer;
  min-height: 30px;
  font-size: 13px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary:after {
  content: "+";
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary {
  margin-bottom: 15px;
}
details[open] > summary:after {
  content: "−";
}
details p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
details h3 {
  font-size: 14px;
  margin: 18px 0 8px;
}
.sample-docs {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 19px 0;
  font-size: 12px;
}
.source {
  margin: 15px 0;
  width: 100%;
  border: 1px solid var(--line);
}
.changed {
  padding: 13px;
  background: #e9efdf;
  border: 1px solid #c4d2b5;
  font-size: 12px;
  border-radius: 4px;
}
.reading {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  align-items: center;
}
.reading label {
  font-size: 12px;
}
.reading .source-line {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--muted);
}
.reading input.needs-entry {
  border: 2px solid #e8590c;
}
.reading .plain {
  justify-self: start;
  font-size: 11px;
  padding: 3px 0;
  min-height: 28px;
}
.page-hit {
  position: relative;
  grid-column: 1/-1;
  margin: 12px 0;
}
.page-hit img {
  width: 100%;
}
input:not([type="file"]) {
  border: 1px solid #aebba5;
  background: var(--white);
  padding: 11px 12px;
  border-radius: 4px;
  max-width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.editrow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.editrow input {
  width: 100%;
}
.fielderr {
  display: block;
  margin: 12px 0;
  color: var(--danger);
  font-size: 12px;
}
.recheck {
  font-size: 12px !important;
  margin-top: 15px;
}
.paper > button {
  margin: 14px 8px 0 0;
  font-size: 12px !important;
}
.paper > input {
  display: block;
  margin-top: 15px;
}
.review-tools {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 28px;
}
.review-tools .plain {
  font-size: 12px;
}
.check-status {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e6ecdf;
  margin-left: 10px;
}
.check-status.needs_review,
.check-status.blocked {
  background: #f0e5ce;
  color: #6f5625;
}
.saved-banner {
  padding: 13px 17px;
  background: #f1f0ea;
  border: 1px solid #dcdcd5;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.saved-banner button {
  font-size: 12px;
  padding: 0;
  margin-left: 10px;
  text-decoration: underline;
  min-height: 32px;
}
.wsgrid.solo {
  grid-template-columns: 1fr;
  max-width: 800px;
}
.empty-evidence {
  padding: 28px 10px;
}
.empty-evidence .ic {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: #6c8068;
}
/* Evaluation retains the underlying evidence, with explicit scope and readable tables. */
#result.tests-view {
  max-width: 1240px;
}
#result.tests-view > h1 {
  font-size: 70px;
  margin: 22px 0;
}
#result.tests-view > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 35px 0;
  overflow: hidden;
}
.stat {
  padding: 24px;
  background: #e9eee3;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  display: block;
  font: 48px var(--display);
  margin-bottom: 8px;
}
.stat span {
  display: block;
  font-size: 12px;
  line-height: 1.8;
}
.tests-view .paper {
  padding: 28px;
}
.tests-view .paper h2 {
  font-size: 34px;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 20px;
}
.tt {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 640px;
}
.tt th {
  font-size: 11px;
  text-align: left;
  font-weight: 650;
  background: #edf0e7;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.tt td {
  padding: 17px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tt tr:last-child td {
  border-bottom: 0;
}
.tt tbody tr:hover {
  background: #f8f9f2;
}
.tt .pass {
  color: #385b3d;
}
.tt .fail {
  color: #8c4f24;
}
.eval-note {
  font-size: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}
/* Supporting surfaces. */
footer {
  max-width: 1400px;
  margin: auto;
  padding: 44px 5% 30px;
}
.footer-main {
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.footer-main .brand span {
  font-size: 31px;
}
.footer-main > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.footer-main > a:last-child {
  margin-left: auto;
  font-size: 12px;
}
.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 70px;
  padding-top: 22px;
  color: var(--muted);
}
.footer-fine p {
  font-size: 10px;
  max-width: 650px;
  margin: 0;
  line-height: 1.9;
}
.footer-fine p:last-child {
  max-width: 250px;
  text-align: right;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 560px;
  width: calc(100% - 32px);
  background: var(--paper);
  color: var(--ink);
  padding: 32px 36px;
  box-shadow: 0 24px 100px #09251e35;
}
dialog::backdrop {
  background: #1c342b70;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 43px;
  margin: 15px 0 25px;
}
dialog p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
dialog .plain {
  font-size: 12px;
}
.present .site-header {
  display: none;
}
.present .top,
.present .header-cta,
.present footer,
.present #tracker,
.present .expect,
.present .saved-banner,
.present .review-summary,
.present .sample-docs,
.present .wsgrid > div > details,
.present .wsgrid > div > .paper,
.present .result-heading .back {
  display: none;
}
.present #result {
  max-width: 1380px;
  padding: 16px 40px 24px;
}
.present .result-heading {
  margin-bottom: 15px;
}
.present .result-heading h1 {
  font-size: 35px;
  margin-top: 5px;
}
.present .result-heading .tag {
  font-size: 10px;
}
.present .wsgrid {
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}
.present .review-chart {
  padding: 19px 25px;
}
.present .big-number {
  font-size: 82px;
  margin: 4px 0 10px;
}
.present .working {
  margin: 12px 0;
  padding: 14px 21px;
}
.present .working small {
  display: none;
}
.present .working h2 {
  margin-bottom: 8px;
}
.present .next-step {
  margin: 14px 0;
  padding: 15px 20px;
}
.present .next-step h2 {
  font-size: 24px;
  margin: 5px 0 9px;
}
.present .next-step > p,
.present .next-step > small {
  display: none;
}
.present .next-step details {
  padding: 9px 0 0;
}
.present .evid {
  max-height: calc(100vh - 120px);
  padding: 18px;
}
.present .review-tools {
  margin-top: 10px;
  padding-top: 0;
  border: 0;
}
.present .formula {
  font-size: 20px;
}
.present .chip {
  font-size: 20px;
}
.present .bar-label {
  font-size: 14px;
}
.present .bar-label strong {
  font-size: 16px;
}
@keyframes arrive {
  from {
    opacity: 0.25;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* A short editorial reveal: coast first, two lines of type, then the example.
   Description and primary controls stay visible and usable throughout. */
.reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.08em 0.16em;
  margin: -0.1em -0.08em -0.16em;
}
.reveal-line > span,
.reveal-line > em {
  display: block;
}
html[data-entrance="pending"] .hero-photo {
  clip-path: inset(0 0 0 100%);
}
html[data-entrance="pending"] .reveal-line > * {
  opacity: 0;
  transform: translateY(115%);
}
html[data-entrance="pending"] .scene-card {
  opacity: 0;
  transform: translateY(24px);
}
html[data-entrance="active"] .hero-photo {
  animation: coast-unfold 2.8s cubic-bezier(0.65, 0, 0.25, 1) both;
}
html[data-entrance="active"] .reveal-line > * {
  animation: headline-unfold 1.15s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html[data-entrance="active"] .reveal-line + .reveal-line > * {
  animation-delay: 1.15s;
}
html[data-entrance="active"] .scene-card {
  animation: sample-settle 1.2s 1.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes coast-unfold {
  from {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.16);
  }
  to {
    clip-path: inset(0);
    transform: scale(1);
  }
}
@keyframes headline-unfold {
  from {
    opacity: 0;
    transform: translateY(115%) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sample-settle {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1548px) {
  .hero {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 4%;
    gap: 20px;
  }
  .top {
    gap: 19px;
  }
  .hero {
    margin: 0 18px;
    min-height: 610px;
    padding-inline: 5%;
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero h1 {
    font-size: 85px;
  }
  .scene-card {
    width: 285px;
    padding: 20px 23px;
    margin-left: 15px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-bottom {
    left: 5%;
    right: 5%;
  }
  .section {
    padding: 80px 6%;
    gap: 8%;
  }
  .examples {
    padding: 75px 7%;
    gap: 8%;
  }
  .try {
    padding-right: 95px;
  }
  .try-outcome {
    font-size: 29px;
  }
  .examples h2 {
    font-size: 55px;
  }
  .upload-panel {
    padding: 23px;
  }
  .row {
    padding: 17px 13px;
    gap: 8px;
  }
  .row > label:first-child {
    gap: 9px;
  }
  .upload-limit {
    font-size: 10px;
  }
  .wsgrid {
    gap: 22px;
    grid-template-columns: 1.05fr 0.95fr;
  }
  .evid {
    padding: 18px;
  }
  #result {
    padding-inline: 30px;
  }
  .big-number {
    font-size: 85px;
  }
  .formula {
    gap: 4px;
    font-size: 14px;
  }
  .chip {
    font-size: 14px;
    padding: 5px 8px;
  }
}
@media (max-width: 800px) {
  .site-header {
    min-height: 84px;
    padding: 17px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand span {
    font-size: 34px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .top {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  .top a,
  .top button {
    font-size: 12px;
  }
  .header-cta {
    margin-left: auto;
    font-size: 12px !important;
    min-height: 40px !important;
  }
  .hero {
    margin: 0 14px;
    min-height: 660px;
    padding: 45px 6% 78px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .herotext {
    max-width: 460px;
  }
  .hero h1 {
    font-size: 80px;
  }
  .hero-wash {
    background: linear-gradient(
      100deg,
      #f3f3e9f5 0%,
      #f3f3e9c9 48%,
      #f3f3e933 100%
    );
  }
  .scene-card {
    width: 245px;
    position: absolute;
    right: 24px;
    bottom: 64px;
    margin: 0;
    padding: 18px 21px;
  }
  .preview-copy {
    padding: 15px 0 10px;
  }
  .preview-amount {
    font-size: 58px;
  }
  .preview-copy p {
    font-size: 10px;
  }
  .scene-card .mini-ledger {
    display: none;
  }
  .scene-card .label {
    font-size: 9px;
  }
  .hero-bottom {
    bottom: 20px;
    font-size: 10px;
  }
  .hero-bottom .place {
    font-size: 9px;
  }
  .hero-bottom p span {
    padding: 0 7px;
  }
  .intro {
    max-width: 360px;
  }
  .quiet-link {
    font-size: 12px;
  }
  .service-note {
    font-size: 12px;
    text-align: center;
    gap: 12px;
  }
  .approach,
  .intake-section {
    gap: 45px;
    grid-template-columns: 1fr;
    padding: 65px 8%;
  }
  .section-intro h2 {
    font-size: 55px;
  }
  .section-intro > p {
    max-width: 480px;
  }
  .service-steps li {
    padding: 22px 0;
  }
  .examples {
    grid-template-columns: 1fr;
    padding: 65px 8%;
    gap: 36px;
  }
  .examples .section-intro > p {
    max-width: 480px;
  }
  .examples h2 br {
    display: none;
  }
  .examples .examples-note {
    max-width: 480px !important;
    font-size: 11px !important;
  }
  .try {
    padding: 25px 120px 25px 0;
  }
  .try-outcome {
    font-size: 34px;
  }
  .intake-section .section-intro h2 br {
    display: none;
  }
  .document-help {
    max-width: 100%;
    margin-top: 20px;
  }
  .intake {
    width: 100%;
  }
  .upload-panel {
    padding: 27px;
  }
  .row {
    padding: 22px;
  }
  .row strong {
    font-size: 14px;
  }
  .row small,
  .choose {
    font-size: 12px;
  }
  .upload-limit {
    font-size: 12px;
  }
  .sectionhead > span {
    font-size: 12px;
  }
  .privacy-inline,
  .footnote {
    font-size: 12px;
  }
  .closing-note {
    padding: 55px 24px;
  }
  .closing-note h2 {
    font-size: 55px;
  }
  .wsgrid,
  .present .wsgrid {
    grid-template-columns: 1fr;
  }
  .evid {
    position: relative;
    top: 0;
    max-height: 720px;
    grid-row: 2;
  }
  .result-heading h1 {
    font-size: 42px;
  }
  .result-heading {
    gap: 20px;
  }
  .result-heading .back {
    font-size: 11px;
  }
  #result {
    padding: 25px 24px 60px;
  }
  .wsgrid > div {
    display: contents;
  }
  .review-summary,
  .expect,
  .saved-banner {
    grid-column: 1;
  }
  .evid {
    grid-row: auto;
  }
  .review-chart {
    grid-row: auto;
  }
  .working {
    margin: 0;
  }
  .next-step {
    margin: 0;
  }
  .wsgrid {
    gap: 18px;
  }
  .wsgrid > .evid {
    grid-row: 5;
  }
  .wsgrid > .evid:empty {
    display: none;
  }
  .wsgrid .paper {
    margin: 0;
  }
  .review-tools {
    margin-top: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .tests-view .paper {
    padding: 22px;
  }
  .footer-main {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-main > p {
    margin-left: auto;
  }
  .footer-main > a:last-child {
    margin-left: 0;
    width: 100%;
  }
  .footer-fine {
    display: block;
  }
  .footer-fine p:last-child {
    text-align: left;
    max-width: none;
    margin-top: 12px;
  }
  #tracker {
    margin: 26px 24px;
    padding: 28px;
  }
  .trackhead h2 {
    font-size: 35px;
  }
  #stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  #stages li {
    font-size: 11px;
  }
  .present .evid {
    max-height: none;
  }
  .present .wsgrid > div > .paper {
    display: none;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding-inline: 20px;
  }
  .top {
    gap: 9px;
  }
  .top a,
  .top button {
    font-size: 11px;
  }
  .hero {
    margin: 0 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 36px 26px 65px;
  }
  .herotext {
    width: 100%;
  }
  .herotext .eyebrow {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .hero h1 {
    font-size: 64px;
    line-height: 1.02;
    margin: 23px 0;
  }
  .intro {
    font-size: 14px;
    line-height: 1.85;
    max-width: 320px;
  }
  .heroactions {
    gap: 9px;
    margin-top: 24px;
  }
  .heroactions button {
    padding: 12px 16px !important;
    font-size: 12px !important;
    min-height: 47px !important;
  }
  .hero-wash {
    background: linear-gradient(
      180deg,
      #f4f4e9f0 0%,
      #f4f4e9e6 42%,
      #f4f4e92b 100%
    );
  }
  .hero-photo {
    object-position: 46% 80%;
  }
  .scene-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 320px;
    align-self: flex-end;
    margin: 32px 0 0;
    padding: 18px 22px;
  }
  .preview-copy {
    position: relative;
    padding: 15px 0 9px;
  }
  .preview-copy .label {
    font-size: 9px;
  }
  .preview-amount {
    font-size: 62px;
    margin: 9px 0;
  }
  .preview-copy p {
    font-size: 12px;
    position: static;
    max-width: none;
    margin-top: 7px;
  }
  .hero-bottom {
    left: 26px;
    right: 26px;
    font-size: 9px;
  }
  .hero-bottom .place {
    display: none;
  }
  .service-note {
    padding: 25px 27px;
    font-size: 11px;
    align-items: flex-start;
    text-align: left;
  }
  .service-note span {
    display: block;
    margin-top: 3px;
  }
  .service-note .ic {
    margin-top: 2px;
  }
  .section {
    padding: 55px 26px;
  }
  .section-intro h2,
  .examples h2 {
    font-size: 49px;
  }
  .section-intro > p {
    font-size: 14px;
  }
  .service-steps h3 {
    font-size: 16px;
  }
  .service-steps p {
    font-size: 13px;
  }
  .service-steps li {
    gap: 18px;
  }
  .try {
    padding-right: 85px;
  }
  .try h3 {
    font-size: 27px;
  }
  .try p {
    font-size: 12px;
  }
  .try-outcome {
    font-size: 28px;
  }
  .try .exp {
    font-size: 10px;
  }
  .examples .section-intro .eyebrow,
  .eyebrow {
    font-size: 10px;
  }
  .upload-panel {
    padding: 22px 18px;
  }
  .row {
    padding: 19px 13px;
    grid-template-columns: 1fr;
  }
  .row .choose {
    grid-row: 2;
    justify-self: start;
    padding-left: 35px;
    min-height: 35px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .row .rm {
    grid-row: 2;
    grid-column: 2;
    position: absolute;
    right: 15px;
    bottom: 19px;
  }
  .row strong {
    font-size: 13px;
  }
  .row small {
    font-size: 11px;
  }
  .upload-limit {
    font-size: 10px;
    line-height: 1.9;
  }
  .sectionhead h3 {
    font-size: 27px;
  }
  .sectionhead > span {
    font-size: 10px;
  }
  .footnote {
    margin-inline: 4px;
    font-size: 11px;
  }
  .privacy-inline {
    font-size: 11px;
  }
  .closing-note h2 {
    font-size: 49px;
  }
  .closing-note .eyebrow {
    font-size: 9px;
  }
  .result-heading {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .result-heading .back {
    order: -1;
    padding: 0;
    min-height: 32px;
  }
  .result-heading h1 {
    font-size: 41px;
  }
  #result {
    padding: 22px 20px 50px;
  }
  .big-number {
    font-size: 86px;
  }
  .review-chart {
    padding: 22px 23px;
  }
  .working {
    padding: 19px 18px;
  }
  .formula {
    font-size: 13px;
    gap: 3px;
  }
  .chip {
    font-size: 13px;
    padding: 5px 7px;
    min-height: 40px;
  }
  .next-step {
    padding: 21px;
  }
  .next-step h2 {
    font-size: 27px;
  }
  .paper {
    padding: 21px;
  }
  .evid {
    padding: 17px;
  }
  .source-caption {
    font-size: 11px;
  }
  .review-summary {
    font-size: 13px;
  }
  .expect {
    font-size: 10px;
  }
  .saved-banner {
    font-size: 11px;
  }
  .stats .stat {
    padding: 20px;
  }
  .stat b {
    font-size: 44px;
  }
  .stat span {
    font-size: 11px;
  }
  #result.tests-view > h1 {
    font-size: 57px;
  }
  .tests-view .paper {
    padding: 20px;
  }
  .tests-view .paper h2 {
    font-size: 31px;
  }
  .footer-main .brand span {
    font-size: 29px;
  }
  footer {
    padding: 35px 26px 25px;
  }
  dialog {
    padding: 23px 25px;
  }
  dialog h2 {
    font-size: 37px;
  }
  dialog p {
    font-size: 13px;
  }
  #tracker {
    margin: 25px 20px;
    padding: 24px 21px;
  }
  .trackhead {
    align-items: flex-start;
    gap: 13px;
  }
  .trackhead h2 {
    font-size: 32px;
  }
  .trackbtns .plain {
    font-size: 11px;
    min-width: 60px;
  }
  .progress-note {
    font-size: 13px;
  }
  .editrow {
    flex-wrap: wrap;
  }
  .editrow input {
    flex: 1;
    min-width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-entrance] .hero-photo,
  html[data-entrance] .reveal-line > *,
  html[data-entrance] .scene-card {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Coastal opening: deep photographic contrast, clear paper surfaces. */
body:has(#start:not([hidden])):not(.reviewing) .site-header {
  background: #102c26;
  color: #fcfbf5;
}
body:has(#start:not([hidden])):not(.reviewing) .site-header .plain,
body:has(#start:not([hidden])):not(.reviewing) .header-cta {
  color: #fcfbf5;
  border-color: #8fa399;
}
.hero {
  margin: 0;
  max-width: none;
  border-radius: 0;
  min-height: max(650px, calc(100svh - 98px));
  background: #102c26;
  color: #fffef9;
}
.hero-wash {
  background: linear-gradient(
    90deg,
    rgba(8, 28, 24, 0.9) 0%,
    rgba(8, 28, 24, 0.78) 35%,
    rgba(8, 28, 24, 0.35) 62%,
    rgba(8, 28, 24, 0.1) 100%
  );
}
.hero h1 em {
  color: #e8e1cc;
}
.hero .intro,
.hero .quiet-link,
.hero .eyebrow {
  color: #f2f4ec;
}
.heroactions button:first-child {
  background: #fffef8 !important;
  color: #15352c !important;
  border-color: #fffef8 !important;
}
.heroactions button:first-child:hover {
  background: #e8e1cc !important;
  color: #15352c;
}
.heroactions .secondary {
  background: transparent !important;
  border-color: #cfdbd1 !important;
  color: #fffef8 !important;
}
.heroactions .secondary:hover {
  background: #fffef8 !important;
  color: #15352c !important;
}
.hero .scene-card {
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 60px #061f2430;
}
.hero-bottom {
  color: #f0f3eb;
}
@media (max-width: 800px) {
  .hero {
    min-height: 710px;
  }
  .hero-wash {
    background: linear-gradient(
      105deg,
      #0b241fe8 0%,
      #0b241fc7 45%,
      #0b241f35 100%
    );
  }
}
@media (max-width: 520px) {
  .hero {
    min-height: 0;
    padding-bottom: 65px;
  }
  .hero-wash {
    background: linear-gradient(
      160deg,
      #0b241ff2 0%,
      #0b241fbd 48%,
      #0b241f38 100%
    );
  }
}
/* The result keeps the question, its source and its next action together. */
.saved-banner {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 15px;
  color: var(--muted);
}
.review-chart {
  padding: 22px 27px;
}
.review-chart .big-number {
  font-size: 86px;
  margin: 6px 0 15px;
}
.review-chart .bar-label {
  margin-top: 10px;
}
.working {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0;
  margin: 0 0 18px;
}
.formula {
  align-items: end;
  gap: 8px;
  line-height: 2.5;
}
.amount-control {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}
.amount-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}
.evid {
  background: #fff;
  padding: 25px;
}
.evid .cap {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  margin-bottom: 18px;
}
.source-focus {
  position: relative;
  aspect-ratio: 4;
  overflow: hidden;
  background: #fafaf6;
  border: 0;
  box-shadow: 0 0 0 1px #dcdcd5;
  border-radius: 4px;
}
.source-focus img {
  position: absolute;
  max-width: none;
  height: auto;
  opacity: 0;
}
.source-focus.loaded img {
  opacity: 1;
}
.focus-marker {
  position: absolute;
  background: #d4bd8d30;
  border: 0;
  border-left: 2px solid #a48c5e;
  pointer-events: none;
  opacity: 0;
}
.source-focus.loaded .focus-marker {
  opacity: 1;
}
.source-focus.unavailable {
  aspect-ratio: auto;
  padding: 15px;
  font-size: 12px;
}
.source-document {
  margin: 0;
  padding: 0;
}
.source-zoom summary {
  font-size: 12px;
}
.source-document .pg {
  margin: 0 auto;
  max-width: 390px;
}
.source-document .hl {
  border: 0;
  border-left: 2px solid #a48c5e;
  background: #d4bd8d38;
}
.source-zoom {
  margin: 16px 0 0;
  padding: 12px 0;
}
.source-zoom[open] .source-focus {
  margin-top: 16px;
}
.present .source-document .pg {
  max-width: min(100%, 35vh);
}
.source-pane .source-caption {
  margin: 8px 0 0;
}
.evid > .next-step {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-radius: 0;
  background: none;
}
.evid .next-step h2 {
  font-size: 29px;
}
.next-step details {
  border: 0;
  padding: 0;
}
.next-step details > summary {
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  min-height: 46px;
  border-radius: 6px;
}
.next-step details > summary:after {
  color: #fff;
}
@media (max-width: 1100px) {
  .amount-label {
    font-size: 9px;
  }
  .formula {
    gap: 4px;
  }
}
@media (max-width: 520px) {
  .evid {
    padding: 20px;
  }
  .working {
    padding: 20px 0;
  }
  .review-chart .big-number {
    font-size: 80px;
  }
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  .site-header,
  .top,
  footer,
  #start,
  #tracker,
  .back,
  .review-tools,
  .expect,
  .saved-banner,
  button,
  dialog {
    display: none !important;
  }
  #result {
    max-width: none;
    padding: 0;
  }
  .result-heading h1 {
    font-size: 30pt;
  }
  .wsgrid {
    display: block;
  }
  .review-chart,
  .working,
  .paper,
  .next-step {
    break-inside: avoid;
    background: white;
    color: #1c302a;
    border-color: #aaa;
  }
  .track.bill rect {
    fill: #173c33;
  }
  .track.share rect {
    fill: #877144;
  }
  .big-number {
    font-size: 54pt;
  }
  .evid {
    position: static;
    max-height: none;
    overflow: visible;
    background: white;
    break-before: page;
  }
  .evid img {
    max-height: 225mm;
    width: auto;
    margin: auto;
  }
  .pg {
    box-shadow: none;
    display: inline-block;
  }
  .next-step details:not([open]) {
    display: none;
  }
  .sample-docs {
    display: none;
  }
  a {
    color: black;
  }
  .review-summary {
    color: black;
  }
}
