@font-face { font-family: "Red Hat Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/RedHatDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/RedHatDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/RedHatDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/RedHatDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/RedHatDisplay-ExtraBold.woff2") format("woff2"); }
/*
 * Paperwork's design tokens: one set for the phone screens (miniapp/src) and the website (backend/src/web).
 * design/README.md says what each is for. Change a value here and both follow.
 */
:root {
  /* Brand: the blue of the icon, and the teal its gradient starts from. */
  --pw-brand: #0369a1;
  --pw-brand-strong: #075985;
  --pw-brand-soft: #f0f9ff;
  --pw-brand-line: #bae6fd;
  --pw-accent: #14b8a6;
  --pw-gradient: linear-gradient(135deg, #14b8a6, #0369a1 70%);

  /* Ink and surfaces. */
  --pw-ink: #0f172a;
  --pw-ink-soft: #334155;
  --pw-muted: #56627a;
  --pw-faint: #94a3b8;
  --pw-line: #e2e8f0;
  --pw-page: #f8fafc;
  --pw-sunken: #f1f5f9;
  --pw-surface: #ffffff;
  --pw-night: #0b1b2b;

  /* Meaning. Red is only for what is wrong: an error, a critical finding. */
  --pw-danger: #b91c1c;
  --pw-warn: #92400e;
  --pw-warn-soft: #fffbeb;
  --pw-live-bg: #16a34a;
  --pw-live-fg: #ffffff;
  --pw-ended-bg: #e2e8f0;
  --pw-ended-fg: #334155;

  /* A finding's severity. */
  --pw-info-bg: #f1f5f9;
  --pw-info-fg: #334155;
  --pw-minor-bg: #fef3c7;
  --pw-minor-fg: #92400e;
  --pw-major-bg: #ffedd5;
  --pw-major-fg: #9a3412;
  --pw-critical-bg: #dc2626;
  --pw-critical-fg: #ffffff;

  /* Shape. */
  --pw-radius-s: 8px;
  --pw-radius-m: 12px;
  --pw-radius-l: 16px;
  --pw-radius-xl: 24px;
  --pw-radius-pill: 999px;
  --pw-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06);
  --pw-shadow-raised: 0 24px 60px -24px rgba(3, 105, 161, 0.35), 0 2px 6px rgba(15, 23, 42, 0.06);

  /* Type: Red Hat Display, Mentra's typeface, then the device's own. */
  --pw-font: "Red Hat Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --pw-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pw-page);
  color: var(--pw-ink);
  font: 16px/1.55 var(--pw-font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pw-brand); }
img { max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 64px; }
h1 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
h2 { margin: 0 0 12px; font-size: 18px; }
h3 { margin: 0 0 6px; font-size: 16px; }
p { margin: 8px 0; }
code, .vin { font-family: var(--pw-font-mono); }
code { font-size: 13px; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--pw-brand); outline-offset: 2px; }

/* The bar across the top, and the foot */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pw-line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--pw-ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 4px; font-size: 15px; }
.nav a { padding: 6px 12px; border-radius: var(--pw-radius-s); color: var(--pw-muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--pw-ink); }
.account { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 14px; min-width: 0; }
.bar > .button { margin-left: auto; }
.who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pw-muted); }
.link { padding: 0; border: 0; background: none; color: var(--pw-brand); font: inherit; cursor: pointer; text-decoration: underline; }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
main.bleed { max-width: none; padding: 0; background: var(--pw-surface); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.foot { border-top: 1px solid var(--pw-line); background: var(--pw-surface); color: var(--pw-muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--pw-muted); }
.foot a:hover { color: var(--pw-ink); }

/* Shared pieces */
.panel { margin-bottom: 16px; padding: 24px; background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: var(--pw-radius-l); box-shadow: var(--pw-shadow-card); }
.narrow { max-width: 520px; margin: 48px auto; }
.heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.actions { display: flex; align-items: center; gap: 16px; }
.button {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--pw-brand); border-radius: var(--pw-radius-m); cursor: pointer;
  background: var(--pw-brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--pw-brand-strong); border-color: var(--pw-brand-strong); }
.button.small { padding: 7px 14px; font-size: 14px; border-radius: var(--pw-radius-s); }
.button.big { padding: 14px 26px; font-size: 17px; }
.button.secondary { background: var(--pw-surface); color: var(--pw-brand-strong); border-color: var(--pw-brand-line); }
.button.secondary:hover { background: var(--pw-brand-soft); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.button.light { background: #fff; color: var(--pw-brand-strong); border-color: #fff; }
.button.light:hover { background: var(--pw-brand-soft); }
.quiet, .muted { color: var(--pw-muted); font-size: 14px; }
.hint { margin: 16px 4px; }
.notice { padding: 10px 14px; border-radius: var(--pw-radius-m); background: var(--pw-brand-soft); color: var(--pw-brand-strong); }
.empty { padding: 28px 0; color: var(--pw-muted); text-align: center; }
.back { margin: 0 0 12px; font-size: 14px; }
.heading .badge { margin-right: 6px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--pw-radius-pill); background: var(--pw-ended-bg); color: var(--pw-ended-fg); font-size: 12px; font-weight: 700; }
.badge.live { background: var(--pw-live-bg); color: var(--pw-live-fg); }
.sev-info { background: var(--pw-info-bg); color: var(--pw-info-fg); }
.sev-minor { background: var(--pw-minor-bg); color: var(--pw-minor-fg); }
.sev-major { background: var(--pw-major-bg); color: var(--pw-major-fg); }
.sev-critical { background: var(--pw-critical-bg); color: var(--pw-critical-fg); }
.vin { display: block; color: var(--pw-muted); font-size: 13px; letter-spacing: 0.02em; }

/* The homepage */
.hero { position: relative; overflow: hidden; background: var(--pw-night); color: #fff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 27, 43, 0.94) 0%, rgba(11, 27, 43, 0.82) 34%, rgba(11, 27, 43, 0.25) 62%, rgba(11, 27, 43, 0) 80%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 120px; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.lead { margin: 20px 0 28px; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.hero .notice { display: inline-block; margin: 0 0 20px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.hero .muted { margin-top: 16px; color: rgba(255, 255, 255, 0.66); }
.heard {
  position: absolute; z-index: 1; right: 6%; bottom: 44px; max-width: 320px;
  padding: 14px 16px; border-radius: var(--pw-radius-l); background: rgba(255, 255, 255, 0.96); color: var(--pw-ink);
  box-shadow: var(--pw-shadow-raised); font-size: 15px;
}
.heard b { display: block; font-weight: 600; }
.heard span { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--pw-muted); font-size: 13px; }

.steps { border-bottom: 1px solid var(--pw-line); background: var(--pw-surface); }
.steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 32px 24px 34px 0; counter-increment: step; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--pw-line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--pw-gradient); color: #fff; font-size: 14px; font-weight: 800;
}
.steps h3 { font-size: 17px; }
.steps p { margin: 0; color: var(--pw-muted); font-size: 15px; }

.feature { padding: 88px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .feature-art { order: 2; }
.feature h2, .office h2, .closing h2 { margin: 0 0 14px; font-size: 38px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.feature p, .office-head p { margin: 0 0 14px; color: var(--pw-ink-soft); font-size: 18px; }
p.eyebrow { margin: 0 0 14px; color: var(--pw-brand); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero p.eyebrow { color: #5eead4; }
.feature-art { position: relative; }
.feature-art > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--pw-radius-xl); box-shadow: var(--pw-shadow-raised); }
.said { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.said li { justify-self: start; padding: 9px 14px; border-radius: var(--pw-radius-l); border-bottom-left-radius: 4px; background: var(--pw-brand-soft); border: 1px solid var(--pw-brand-line); color: var(--pw-brand-strong); font-size: 15px; font-weight: 600; }
.caption {
  position: absolute; left: 20px; bottom: 20px; max-width: min(340px, calc(100% - 40px));
  padding: 14px 16px; border-radius: var(--pw-radius-l); background: var(--pw-surface); box-shadow: var(--pw-shadow-raised); font-size: 15px;
}
.caption-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.caption-head b { color: var(--pw-brand); }
.caption-head span { color: var(--pw-muted); }
.checks { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--pw-ink-soft); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--pw-brand-soft); border: 1px solid var(--pw-brand-line);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px;
  border: solid var(--pw-brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.phone-art { display: grid; place-items: center; padding: 40px 0; border-radius: var(--pw-radius-xl); background: var(--pw-gradient); }
.phone { width: min(270px, 66%); padding: 10px; border-radius: 40px; background: var(--pw-night); box-shadow: 0 30px 60px -20px rgba(11, 27, 43, 0.6); }
.phone img { display: block; width: 100%; border-radius: 30px; }

.office { padding: 88px 0; background: var(--pw-page); border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.office-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.window { overflow: hidden; border: 1px solid var(--pw-line); border-radius: var(--pw-radius-l); background: var(--pw-page); box-shadow: var(--pw-shadow-raised); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--pw-surface); border-bottom: 1px solid var(--pw-line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--pw-line); }
.window-bar span { margin-left: 12px; padding: 3px 14px; border-radius: var(--pw-radius-pill); background: var(--pw-sunken); color: var(--pw-muted); font-size: 12px; }
.window-body { padding: 20px; }
.window .panel { margin: 0; }
.window .exports span + span { color: var(--pw-brand); text-decoration: underline; }
.office-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.office-points h3 { font-size: 18px; }
.office-points p { margin: 0; font-size: 16px; color: var(--pw-muted); }

.closing { padding: 80px 0; text-align: center; color: #fff; background: var(--pw-gradient); }
.closing p { margin: 0 0 26px; font-size: 18px; color: rgba(255, 255, 255, 0.9); }

/* The dashboard */
.access {
  margin-bottom: 16px; padding: 14px 20px; border-radius: var(--pw-radius-l);
  background: var(--pw-brand-soft); border: 1px solid var(--pw-brand-line);
}
.access p { margin: 4px 0 0; color: var(--pw-brand-strong); font-size: 15px; }
.role { display: inline-block; padding: 2px 10px; border-radius: var(--pw-radius-pill); background: var(--pw-brand); color: #fff; font-size: 13px; font-weight: 700; text-transform: capitalize; }
.tiles-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { padding: 16px 18px; background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: var(--pw-radius-l); box-shadow: var(--pw-shadow-card); }
.tile strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--pw-muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--pw-radius-m); background: var(--pw-sunken); font-size: 14px; }
.tabs a, .tabs span { padding: 6px 12px; border-radius: var(--pw-radius-s); color: var(--pw-muted); text-decoration: none; }
.tabs [aria-current="page"], .tabs .on { background: var(--pw-surface); color: var(--pw-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.filters label { display: grid; gap: 4px; color: var(--pw-muted); font-size: 13px; }
.filters .grow { flex: 1 1 220px; }
.filters input, .filters select {
  height: 36px; padding: 0 10px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius-s);
  background: var(--pw-surface); color: var(--pw-ink); font: inherit; font-size: 15px; width: 100%;
}
.filters .quiet { padding-bottom: 8px; }
.records { width: 100%; border-collapse: collapse; font-size: 15px; }
.records th { padding: 8px 12px; border-bottom: 1px solid var(--pw-line); color: var(--pw-muted); font-size: 13px; font-weight: 600; text-align: left; }
.records td { padding: 12px; border-bottom: 1px solid var(--pw-line); vertical-align: top; }
.records td:first-child a, .records td:first-child b { font-weight: 700; text-decoration: none; }
.records tbody tr:hover { background: var(--pw-page); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.records th.num { text-align: right; }
.row-action { text-align: right; font-size: 14px; }
.exports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 16px; font-size: 14px; }

/* A record */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.facts dt { color: var(--pw-muted); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.count { margin-left: 6px; color: var(--pw-muted); font-weight: 400; }
.findings { margin: 0; padding: 0; list-style: none; }
.finding { padding: 16px 0; border-top: 1px solid var(--pw-line); }
.finding:first-child { padding-top: 0; border-top: 0; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pw-brand-soft); color: var(--pw-brand-strong); font-size: 13px; font-weight: 700; }
.location { color: var(--pw-muted); font-size: 14px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 10px; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pw-radius-m); background: var(--pw-line); }

@media (max-width: 960px) {
  .hero .wrap { padding-top: 72px; padding-bottom: 88px; }
  .hero h1 { font-size: 44px; }
  .heard { display: none; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--pw-line); }
  .feature, .office { padding: 64px 0; }
  .feature .wrap { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-art { order: 0; }
  .feature h2, .office h2, .closing h2 { font-size: 30px; }
  .office-points { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .bar { padding: 10px 16px; gap: 12px; }
  .bar .nav { display: none; }
  .who { display: none; }
  .wrap { padding: 0 16px; }
  .panel { padding: 16px; border-radius: var(--pw-radius-m); }
  .hero-photo { position: relative; height: 240px; object-position: 78% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 27, 43, 0) 120px, var(--pw-night) 240px); }
  .hero .wrap { padding-top: 8px; padding-bottom: 48px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  .cta .button { flex: 1 1 100%; text-align: center; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--pw-line); }
  .feature, .office, .closing { padding: 48px 0; }
  .feature p:not(.eyebrow), .office-head p:not(.eyebrow) { font-size: 17px; }
  .window-body { padding: 10px; }
  .window .tiles-row { grid-template-columns: 1fr 1fr; }
  .window tbody tr:nth-child(n + 2) { display: none; }
  .records thead { display: none; }
  .records, .records tbody, .records tr, .records td { display: block; }
  .records tr { padding: 12px 0; border-bottom: 1px solid var(--pw-line); }
  .records tr:last-child { border-bottom: 0; }
  .records td { padding: 2px 0; border: 0; text-align: left; }
  .records td[data-label]::before { content: attr(data-label) ": "; color: var(--pw-muted); font-size: 13px; }
}
