/* ------------------------------------------------------------------
   PoGuard
   Paper, ink, and a red pen. Nothing else.

   Newsreader for things you read, IBM Plex Sans for things you click,
   IBM Plex Mono for anything with a number in it, because part codes
   and rupee figures need to line up under each other.
   ------------------------------------------------------------------ */

:root {
  --paper:      #f7f4ee;
  --paper-2:    #fffdf8;
  --ink:        #1a1813;
  --ink-soft:   #413c33;
  --muted:      #6b665c;
  --faint:      #a39c8e;
  --rule:       #d8d2c6;
  --rule-soft:  #e8e2d6;

  --flag:       #9e3b22;   /* red pen: money and risk */
  --flag-bg:    #fbf0ec;
  --warn:       #8a6418;   /* amber: dates */
  --warn-bg:    #fbf4e4;
  --ok:         #4f6235;   /* olive: nothing wrong */
  --ok-bg:      #f1f4ea;
  --mark:       #f3dc9b;   /* highlighter */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 36rem;
  --wide: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #16150f;
    --paper-2:   #1e1c15;
    --ink:       #ece7da;
    --ink-soft:  #cdc6b5;
    --muted:     #9b9484;
    --faint:     #6e675a;
    --rule:      #332f25;
    --rule-soft: #272419;
    --flag:      #e08365;
    --flag-bg:   #2a1a14;
    --warn:      #d6ad5c;
    --warn-bg:   #262013;
    --ok:        #9db877;
    --ok-bg:     #1b2015;
    --mark:      #6a5520;
  }
}

* { box-sizing: border-box; }

/* Any display rule beats the hidden attribute's own display:none, which
   silently un-hides anything we style as flex or grid. Every toggle in
   this app sets .hidden, so this has to win. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A faint horizontal rule texture, like ledger paper. Very low contrast
   on purpose: you should feel it rather than see it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 31px, color-mix(in srgb, var(--rule) 26%, transparent) 31px 32px);
  opacity: .5;
}
@media (prefers-reduced-motion: no-preference) { body::before { opacity: .5; } }

.shell { position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--measure); }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--flag); }

/* ---------------------------------------------------------------- head */

.masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; padding: 22px 0 18px; border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 600 20px/1 var(--sans); letter-spacing: -.02em;
  text-decoration: none; display: inline-flex; align-items: baseline; gap: 1px;
}
.wordmark .po { color: var(--ink); }
.wordmark .guard { color: var(--flag); }
.masthead nav { font-size: 14px; color: var(--muted); display: flex; gap: 20px; }
.masthead nav a { text-decoration: none; color: var(--muted); }
.masthead nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .masthead nav .hide-xs { display: none; } }

/* ---------------------------------------------------------------- hero */

.hero { padding: 54px 0 8px; }
.hero h1 {
  font: 500 clamp(31px, 6vw, 50px)/1.08 var(--serif);
  letter-spacing: -.018em; margin: 0 0 20px; max-width: 24ch;
}
.hero h1 .pen {
  /* the pen-mark under "change" */
  background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 93%, transparent 93%);
  padding: 0 .06em;
}
.lede { font-size: 19px; line-height: 1.52; color: var(--ink-soft); max-width: 44ch; margin: 0 0 6px; }
.lede + .lede { margin-top: 10px; }
.hero .quiet { color: var(--muted); font-size: 15.5px; margin-top: 18px; max-width: 46ch; }

/* ------------------------------------------------------------- uploads */

.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0 0; align-items: stretch; }
@media (max-width: 680px) { .bench { grid-template-columns: 1fr; } }

.tray {
  position: relative; display: block; cursor: pointer;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  /* the dashed inner line reads as a document sleeve, not a dropzone widget */
  box-shadow: inset 0 0 0 1px var(--paper-2), inset 0 0 0 2px transparent;
  padding: 22px 20px 20px;
  min-height: 176px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tray::after {
  content: ""; position: absolute; inset: 7px; border: 1px dashed var(--rule);
  pointer-events: none; transition: border-color .15s;
}
.tray:hover { transform: translateY(-1px); border-color: var(--ink-soft); }
.tray:focus-within { outline: 2px solid var(--flag); outline-offset: 2px; }
.tray.is-over { border-color: var(--flag); background: var(--flag-bg); }
.tray.is-over::after { border-color: var(--flag); }
.tray.has-file { border-color: var(--ink-soft); }
.tray.has-file::after { border-style: solid; border-color: var(--rule-soft); }
.tray input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.tray .tag {
  font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 12px;
}
.tray .what { font: 500 21px/1.25 var(--serif); margin: 0 0 6px; }
.tray .how { font-size: 14px; color: var(--muted); margin: 0; }
.tray .picked {
  display: none; font-family: var(--mono); font-size: 13px; line-height: 1.45;
  word-break: break-all; color: var(--ink);
}
.tray .picked .size { color: var(--muted); }
.tray.has-file .what, .tray.has-file .how { display: none; }
.tray.has-file .picked { display: block; }
.tray .swap {
  display: none; margin-top: 10px; font-size: 13px; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--rule);
}
.tray.has-file .swap { display: inline-block; }

/* ------------------------------------------------------------- action */

.action { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 0; }

.go {
  font: 600 16px/1 var(--sans); letter-spacing: .04em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); padding: 15px 30px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 11px;
  transition: background .15s, transform .08s;
}
.go:hover:not(:disabled) { background: var(--flag); border-color: var(--flag); }
.go:active:not(:disabled) { transform: translateY(1px); }
.go:disabled { opacity: .34; cursor: not-allowed; }
.go .arrow { transition: transform .15s; }
.go:hover:not(:disabled) .arrow { transform: translateX(3px); }

.allowance { font-size: 14px; color: var(--muted); }
.allowance b { font-family: var(--mono); color: var(--ink); font-weight: 500; }

.smallprint {
  margin: 26px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted);
  max-width: 48ch;
}
.smallprint strong { color: var(--ink-soft); font-weight: 500; }

/* ------------------------------------------------------------ working */

.working { display: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); }
.working.on { display: block; }
.working p { margin: 0 0 4px; font-size: 15.5px; }
.working .step { color: var(--muted); font-size: 14px; font-family: var(--mono); }
.working .bar { height: 2px; background: var(--rule-soft); margin: 14px 0 0; overflow: hidden; }
.working .bar i {
  display: block; height: 100%; width: 34%; background: var(--flag);
  animation: crawl 1.9s ease-in-out infinite;
}
@keyframes crawl { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .working .bar i { animation: none; width: 100%; opacity: .5; } }

.oops {
  display: none; margin: 24px 0 0; padding: 14px 16px;
  border-left: 3px solid var(--flag); background: var(--flag-bg); font-size: 15.5px;
}
.oops.on { display: block; }
.oops a { color: inherit; }

/* ------------------------------------------------------------- result */

.result { display: none; margin: 40px 0 0; }
.result.on { display: block; }

.verdict { border-top: 2px solid var(--ink); padding: 20px 0 0; }
.verdict .status {
  font: 600 11.5px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase;
  color: var(--flag); margin-bottom: 10px;
}
.verdict.clean .status { color: var(--ok); }
.verdict h2 { font: 500 clamp(25px, 4.4vw, 34px)/1.15 var(--serif); margin: 0 0 8px; }
.verdict .sub { color: var(--ink-soft); font-size: 17px; margin: 0; }
.verdict .figure {
  font: 500 clamp(27px, 5vw, 38px)/1 var(--mono); color: var(--flag);
  margin: 16px 0 0; letter-spacing: -.02em;
}
.verdict .figure small { display: block; font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 7px; letter-spacing: 0; }

.docline {
  display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 20px 0 0;
  padding: 13px 0; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  font-size: 13.5px; color: var(--muted);
}
.docline b { font-weight: 500; color: var(--ink); font-family: var(--mono); font-size: 13px; }

.heads-up { margin: 22px 0 0; }
.heads-up li {
  list-style: none; padding: 11px 14px; margin: 0 0 8px;
  background: var(--warn-bg); border-left: 3px solid var(--warn);
  font-size: 15px; line-height: 1.5;
}
.heads-up { padding: 0; }

h3.section {
  font: 600 11.5px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin: 38px 0 0; padding-bottom: 9px; border-bottom: 1px solid var(--rule);
}

.findings { list-style: none; margin: 0; padding: 0; }
.finding { padding: 20px 0; border-bottom: 1px solid var(--rule-soft); }
.finding:last-child { border-bottom: 0; }

.finding .row1 { display: flex; align-items: baseline; gap: 14px; }
.finding .kind {
  flex: none; font: 600 10.5px/1.6 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  padding: 2px 7px; border: 1px solid currentColor;
}
.finding.money .kind { color: var(--flag); }
.finding.schedule .kind { color: var(--warn); }
.finding.terms .kind { color: var(--ink-soft); }
.finding.check .kind { color: var(--faint); }
.finding h4 { font: 500 19px/1.3 var(--serif); margin: 0; flex: 1; }
.finding .hit { font: 500 16px/1.3 var(--mono); color: var(--flag); white-space: nowrap; }
.finding .hit.up { color: var(--ok); }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0; background: var(--rule-soft); }
@media (max-width: 620px) { .sides { grid-template-columns: 1fr; } }
.sides div { background: var(--paper-2); padding: 11px 13px; }
.sides .who {
  font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 6px;
}
.sides .val { font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.sides .theirs .val { color: var(--flag); }

.finding .why { margin: 12px 0 0; font-size: 15.5px; line-height: 1.58; color: var(--ink-soft); }
.finding .favours { font-size: 13px; color: var(--muted); margin-top: 7px; }

/* full line-item table */
.ledger { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 13.5px; }
.ledger th {
  text-align: left; font: 600 10.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule);
}
.ledger td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledger .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .moved { color: var(--flag); }
.ledger .desc { max-width: 22em; }
.ledger .part { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: block; }
.scroller { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }

/* ------------------------------------------------------------- share */

.afterward { margin: 36px 0 0; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.afterward h3 { font: 500 21px/1.25 var(--serif); margin: 0 0 8px; }
.afterward p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; max-width: 46ch; }
.sharebar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  font: 500 14.5px/1 var(--sans); background: transparent; color: var(--ink);
  border: 1px solid var(--ink-soft); padding: 11px 17px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.said { border-color: var(--ok); color: var(--ok); }
.btn.said:hover { background: var(--ok); color: var(--paper); }
.linkbox {
  font-family: var(--mono); font-size: 13px; padding: 10px 12px;
  background: var(--paper-2); border: 1px solid var(--rule); width: 100%;
  margin-top: 12px; color: var(--muted);
}

/* -------------------------------------------------------- prose pages */

.prose { max-width: var(--measure); padding: 44px 0 0; }
.prose .kicker {
  font: 600 11.5px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase;
  color: var(--flag); margin-bottom: 14px;
}
.prose h1 { font: 500 clamp(28px, 5vw, 42px)/1.12 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
.prose h2 { font: 500 25px/1.25 var(--serif); margin: 42px 0 12px; }
.prose h3 { font: 600 16px/1.35 var(--sans); margin: 30px 0 8px; }
.prose p { margin: 0 0 17px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--faint); }
.prose blockquote {
  margin: 24px 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--rule);
  font: italic 400 18px/1.55 var(--serif); color: var(--ink-soft);
}
.prose .dek { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 26px; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; border: 1px solid var(--rule-soft); }

.worked {
  margin: 26px 0; border: 1px solid var(--rule); background: var(--paper-2);
}
.worked .cap {
  font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--rule);
}
.worked table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.worked th { text-align: left; font: 600 10.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.worked td { padding: 9px 14px; border-bottom: 1px solid var(--rule-soft); font-family: var(--mono); font-size: 13px; }
.worked tr:last-child td { border-bottom: 0; }
.worked .moved { color: var(--flag); }
.worked .plain { font-family: var(--sans); font-size: 13.5px; }

.inlinecta {
  margin: 34px 0; padding: 22px; border: 1px solid var(--rule); background: var(--paper-2);
}
.inlinecta p { margin: 0 0 14px; font-size: 16px; }
.inlinecta .go { padding: 13px 24px; font-size: 15px; }

.faq dt { font: 600 16px/1.4 var(--sans); margin: 24px 0 7px; }
.faq dd { margin: 0; color: var(--ink-soft); }

.alsoread { margin: 46px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.alsoread .cap { font: 600 11.5px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.alsoread ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .alsoread ul { columns: 1; } }
.alsoread li { margin-bottom: 9px; font-size: 15px; }

/* -------------------------------------------------------------- foot */

.underneath {
  margin: 76px 0 0; padding: 26px 0 50px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.underneath .cols { display: flex; gap: 34px; flex-wrap: wrap; justify-content: space-between; }
.underneath a { color: var(--muted); }
.underneath a:hover { color: var(--ink); }
.underneath .sig { max-width: 40ch; }

/* ----------------------------------------------------------- drawings */

.drawing { display: block; width: 100%; height: auto; }
.drawing .stroke { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drawing .thin { fill: none; stroke: var(--faint); stroke-width: 1.2; stroke-linecap: round; }
.drawing .pen { fill: none; stroke: var(--flag); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.drawing .sheet { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.6; }
.drawing .note { fill: var(--flag); font: 400 13px/1 var(--serif); font-style: italic; }
.drawing .mark { fill: var(--mark); }

.exhibit { margin: 40px 0 10px; }
.exhibit figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; max-width: 42ch; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------- auth */

.signin {
  margin: 34px 0 0; padding: 24px 22px;
  background: var(--paper-2); border: 1px solid var(--rule);
  max-width: 34rem;
}
.signin .tag {
  font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 12px;
}
.signin .why { margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.signin .fineprint { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.ways { display: flex; flex-direction: column; gap: 14px; }
.btn.google {
  width: 100%; justify-content: center; gap: 11px; padding: 13px 18px;
  font-size: 15px; background: var(--paper-2);
}
.btn.google svg { flex: none; }

.ways .or {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--faint); text-transform: lowercase;
}
.ways .or::before, .ways .or::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

.emailform { display: flex; gap: 9px; flex-wrap: wrap; margin: 0; }
.emailform input {
  flex: 1 1 14rem; min-width: 0; padding: 12px 13px;
  font: 400 15px/1 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule);
}
.emailform input:focus { outline: 2px solid var(--flag); outline-offset: 1px; border-color: var(--flag); }
.emailform button { flex: none; }

.authnote {
  margin: 16px 0 0; padding: 11px 13px; font-size: 14.5px;
  border-left: 3px solid var(--flag); background: var(--flag-bg);
}

.whoami {
  margin: 30px 0 0; padding: 11px 0; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
}
.whoami .who-email { color: var(--ink); font-family: var(--mono); font-size: 13px; }
.whoami b { font-family: var(--mono); color: var(--ink); font-weight: 500; }

.gate {
  margin: 30px 0 0; padding: 30px 22px; text-align: center;
  border: 1px dashed var(--rule); color: var(--muted); font-size: 15px;
}
.gate p { margin: 0; }

/* ------------------------------------------------------- locked result */

.finding.is-locked h4 { color: var(--muted); }
.finding.is-locked .sides { opacity: .85; }

.blurred {
  color: var(--rule);
  letter-spacing: -.06em;
  user-select: none;
  -webkit-user-select: none;
}
.finding.is-locked .hit.blurred { color: var(--rule); }

.unlock {
  margin: 34px 0 0; padding: 24px 22px;
  border: 1px solid var(--ink-soft); background: var(--paper-2);
}
.unlock h3 { font: 500 22px/1.25 var(--serif); margin: 0 0 8px; }
.unlock p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-soft); max-width: 48ch; }
.unlock .nudge { color: var(--flag); font-size: 15px; margin-bottom: 0; }
.unlock + .signin { margin-top: 0; border-top: 0; max-width: none; }

.signin-link { font-size: 14px; color: var(--muted); text-decoration-color: var(--rule); }
.signin-link:hover { color: var(--ink); }

/* ===================================================================
   Showing the product instead of describing it.

   The hand-drawn sheets explained the problem; they did not show that
   anything had been built. A buyer deciding whether to upload their
   own pricing wants to see the output first, so the output is now the
   largest thing on the page after the headline.
   =================================================================== */

.showcase { margin: 64px 0 0; }
.showcase-head { max-width: 46ch; margin-bottom: 26px; }
.showcase-head h2 { font: 500 29px/1.2 var(--serif); margin: 0 0 10px; }
.showcase-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Window chrome, so this reads as software rather than as a diagram. */
.screen {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: 0 1px 0 var(--rule-soft), 0 18px 44px -28px rgba(26,24,19,.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .screen { box-shadow: 0 18px 44px -30px #000; }
}

.screen-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--rule-soft) 45%, var(--paper-2));
}
.screen-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rule); flex: none;
}
.screen-bar .url {
  margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.screen-body { padding: 26px 24px 20px; }

.screen-verdict { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 4px; }
.screen-verdict .status {
  font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--flag); margin-bottom: 9px;
}
.screen-verdict h3 { font: 500 30px/1.12 var(--serif); margin: 0 0 5px; }
.screen-verdict .sub { margin: 0; color: var(--ink-soft); font-size: 15px; }
.screen-verdict .bignum {
  font: 500 40px/1 var(--mono); color: var(--flag);
  letter-spacing: -.02em; margin: 16px 0 6px;
}
.screen-verdict .bignote { margin: 0 0 4px; font-size: 13px; color: var(--muted); }

.screen-findings { list-style: none; margin: 18px 0 0; padding: 0; }
.screen-findings li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 0; border-top: 1px solid var(--rule-soft);
}
.screen-findings li > div { flex: 1; min-width: 0; }
.screen-findings .k {
  flex: none; font: 600 9.5px/1.7 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  padding: 1px 6px; border: 1px solid currentColor; margin-top: 2px;
}
.screen-findings .k.money { color: var(--flag); }
.screen-findings .k.terms { color: var(--ink-soft); }
.screen-findings b { display: block; font: 500 15.5px/1.4 var(--sans); margin-bottom: 5px; }
.screen-findings .sbs {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.screen-findings .sbs i, .screen-findings .sbs em {
  font-style: normal; font-family: var(--sans); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
}
.screen-findings .sbs em { color: var(--flag); }
.screen-findings .amt {
  flex: none; font: 500 15px/1.4 var(--mono); color: var(--flag); white-space: nowrap;
}
.screen-findings .more {
  color: var(--muted); font-size: 14px; display: block; padding-bottom: 2px;
}

/* ------------------------------------------------------------- trust */

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 42px 0 0; background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (max-width: 820px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; } }
.trust div {
  background: var(--paper); padding: 17px 16px;
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.trust b {
  display: block; font: 600 11px/1 var(--sans); letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 7px;
}

/* ===================================================================
   Logo, and making it obvious where the files go.

   The trays used to be bordered boxes with a heading and a sentence.
   They read as cards, not as something you click, which is a failure
   of the one interaction the whole product depends on.
   =================================================================== */

.wordmark { display: inline-flex; align-items: center; }
/* Margin on the mark, not gap on the container - gap would also push
   "Guard" away from "Po". */
.wordmark .mark { width: 25px; height: 25px; flex: none; border-radius: 5.5px; margin-right: 9px; }
.wordmark .mark rect:first-child { fill: var(--ink); }
.wordmark .mark .pp { fill: var(--paper); }
.wordmark .mark .rr { fill: var(--flag); }
.wordmark .mark .rr.dim { opacity: .38; }

/* ------------------------------------------------------------- steps */

.steps {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  list-style: none; margin: 36px 0 14px; padding: 0;
  font-size: 14px; color: var(--muted);
}
.steps li { display: flex; align-items: center; gap: 9px; }
.steps b {
  width: 21px; height: 21px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 50%;
  font: 600 11.5px/1 var(--mono); color: var(--ink);
}

/* ------------------------------------------------------------- trays */

.bench { margin-top: 0; }

.tray { padding: 0; min-height: 232px; display: flex; flex-direction: column; }
/* Once a file is in, the box has nothing left to prompt for, so it
   stops reserving room for a prompt. */
.tray.has-file { min-height: 0; }

.tray .num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--mono); border-radius: 50%;
}
.tray .tag {
  position: absolute; top: 18px; left: 46px; z-index: 2;
  margin: 0; font: 600 11.5px/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* The clickable middle. */
.tray .drop {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 52px 18px 22px; gap: 2px;
}
.tray .dropicon { width: 40px; height: 40px; margin-bottom: 12px; }
.tray .dropicon .sheet { fill: none; stroke: var(--faint); stroke-width: 2; stroke-linejoin: round; }
.tray .dropicon .fold  { fill: none; stroke: var(--faint); stroke-width: 2; stroke-linejoin: round; }
.tray .dropicon .arrow { fill: none; stroke: var(--flag); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.tray .dropmain {
  font: 500 16.5px/1.3 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.tray .dropsub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.tray .dropmeta {
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  margin-top: 11px; letter-spacing: .01em;
}

.tray:hover .dropmain { text-decoration-color: var(--flag); }
.tray:hover .dropicon .sheet, .tray:hover .dropicon .fold { stroke: var(--ink-soft); }
.tray.is-over .dropicon .arrow { stroke: var(--flag); }
.tray.is-over .dropmain { color: var(--flag); text-decoration-color: var(--flag); }

/* Filled state: the icon and prompt give way to the filename. */
.tray.has-file .drop { display: none; }
.tray .picked { padding: 50px 18px 0; }
.tray .swap { padding: 0 18px 22px; margin-top: 9px; }

.tray.has-file::before {
  content: "";
  position: absolute; top: 17px; right: 16px; z-index: 2;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ok);
  /* a tick, drawn with a mask so it follows the theme */
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tray.has-file::after { border-color: var(--ok); border-style: solid; }

/* --------------------------------------------------- "I want more" */

.wantmore {
  margin: 26px 0 0; padding: 24px 22px; max-width: 34rem;
  border: 1px solid var(--ink-soft); background: var(--paper-2);
}
.wantmore h3 { font: 500 22px/1.25 var(--serif); margin: 0 0 9px; }
.wantmore > p { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-soft); }
.wm-row { display: block; margin-bottom: 16px; }
.wm-row span {
  display: block; margin-bottom: 7px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.wm-row textarea, .wm-row input {
  width: 100%; padding: 11px 12px; font: 400 15px/1.5 var(--sans);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); resize: vertical;
}
.wm-row textarea:focus, .wm-row input:focus {
  outline: 2px solid var(--flag); outline-offset: 1px; border-color: var(--flag);
}
.wm-done {
  margin: 0; padding: 13px 15px; font-size: 15px;
  border-left: 3px solid var(--ok); background: var(--ok-bg);
}

/* ------------------------------------------------- account, masthead */

.masthead nav #nav-signin, .masthead nav .nav-cta { color: var(--ink); }
.masthead nav #nav-signin { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.masthead nav #nav-signin:hover { text-decoration-color: var(--flag); }

.nav-account { display: inline-flex; align-items: center; gap: 11px; }
.nav-account .nav-email {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  max-width: 17ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-account #nav-signout { color: var(--muted); font-size: 13.5px; }
@media (max-width: 620px) {
  .nav-account .nav-email { max-width: 10ch; }
  .masthead nav { gap: 13px; font-size: 13.5px; }
}

/* ------------------------------------------------- sign-in as overlay */

.signin { position: relative; }
.signin-close {
  display: none; position: absolute; top: 10px; right: 12px;
  background: none; border: 0; cursor: pointer; padding: 4px 8px;
  font: 400 24px/1 var(--sans); color: var(--muted);
}
.signin-close:hover { color: var(--ink); }

.signin.as-modal {
  position: fixed; z-index: 60;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(34rem, calc(100vw - 28px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  box-shadow: 0 30px 70px -22px rgba(26, 24, 19, .5);
}
.signin.as-modal .signin-close { display: block; }

.signin-backdrop {
  position: fixed; inset: 0; z-index: 59;
  background: color-mix(in srgb, var(--ink) 48%, transparent);
}
body.modal-open { overflow: hidden; }
