/* Zoraveo Reports. A calm technical document: paper, hairlines, one gold accent. */

:root {
  --paper: #EEF1F5;
  --sheet: #FFFFFF;
  --ink: #0A1628;
  --muted: #5B6678;
  --rule: #D5DBE4;
  --gold: #A8842F;
  --on-gold: #0A1628;
  --error: #9B2C2C;
  --wash: #F4F6F9;
  --gold-soft: #F6EED9;
  /* The closing call to action: a navy slab in both themes. */
  --slab: #0A1628;
  --on-slab: #E9EEF6;
  /* Roof plan and year chart. The same values as src/report/palette.ts and src/storm/html.ts; a test keeps them equal. */
  --f0: #DCE7F5;
  --f1: #E9E3F4;
  --f2: #DDEFE9;
  --f3: #F3E9DC;
  --ridge: #C2410C;
  --hip: #7C3AED;
  --valley: #BE185D;
  --eave: #0F766E;
  --rake: #1D4ED8;
  --step: #0E7490;
  --wall: #4D7C0F;
  --unk: #5B6678;
  --hail: #1D4ED8;
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.05), 0 18px 40px -18px rgba(10, 22, 40, 0.18);
  --radius: 6px;
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #070D18;
    --sheet: #0F1A2C;
    --ink: #E9EEF6;
    --muted: #93A0B5;
    --rule: #24324A;
    --gold: #D9B766;
    --on-gold: #070D18;
    --error: #F2A3A3;
    --wash: #14213A;
    --gold-soft: #2B2513;
    --slab: #0F1A2C;
    --on-slab: #E9EEF6;
    --f0: #172A47;
    --f1: #231F3F;
    --f2: #12302C;
    --f3: #33291A;
    --ridge: #FB923C;
    --hip: #A78BFA;
    --valley: #F472B6;
    --eave: #2DD4BF;
    --rake: #60A5FA;
    --step: #67E8F9;
    --wall: #A3E635;
    --unk: #93A0B5;
    --hail: #60A5FA;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 56px;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wrap.wide {
  max-width: 1160px;
}

h1,
h2,
h3,
.wordmark {
  font-family: var(--display);
  font-stretch: 110%;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sheet);
  padding: 12px 16px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 7px 0;
  white-space: nowrap;
}

.wordmark-dot {
  color: var(--gold);
}

/* The links are 44px tall and sit flush with the right edge of the column. */
.site-nav {
  display: flex;
  flex: none;
  gap: 0 4px;
  margin-right: -10px;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a {
  padding: 0;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer-contact,
.footer-line {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 4px;
}

/* Home */

.lead {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 8px;
  max-width: 36em;
}

.hero {
  display: grid;
  gap: 28px;
}

.hero > * {
  min-width: 0;
}

.hero h1,
.page-head h1 {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.order-form {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 14px;
  scroll-margin-top: 12px;
}

.order-form > p:last-child {
  margin-bottom: 0;
}

.field {
  margin-bottom: 10px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.label-note {
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.combo {
  position: relative;
}

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type='text'],
input[type='email'] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  /* 16px or more stops iOS zooming the page on focus. */
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  appearance: none;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-radius: var(--radius);
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

/* The report choice: two cards side by side, each a label around a radio button. */
.choice {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  min-width: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice-card {
  position: relative;
  display: block;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.choice-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
}

.choice-card input:checked + .choice-box {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--wash);
}

.choice-card input:focus-visible + .choice-box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choice-text {
  min-width: 0;
}

.choice-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.choice-note {
  display: none;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.choice-price {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.2;
  padding-right: 28px;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 6px 0 0;
}

.field-error,
.notice {
  color: var(--error);
  font-size: 0.9375rem;
  margin: 6px 0 0;
}

.notice {
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 18px;
}

.suggestions {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  background: var(--sheet);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.14);
  max-height: 320px;
  overflow-y: auto;
}

.suggestions[hidden] {
  display: none;
}

.suggestions li {
  padding: 14px 12px;
  min-height: 48px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.3;
}

.suggestions li + li {
  border-top: 1px solid var(--rule);
}

.suggestions li[aria-selected='true'],
.suggestions li:hover {
  background: var(--paper);
}

/* The address suggestions provider's credit: the last row of the list. */
.suggestions li.suggest-attribution {
  min-height: 0;
  padding: 8px 12px 6px;
  cursor: default;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  background: none;
}

.suggestions li.suggest-attribution a {
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.button.primary:hover {
  filter: brightness(1.06);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.order-form .button {
  width: 100%;
}

.terms-line {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 10px 0 0;
  text-align: center;
}

/* The sample report card beside the form */

.sample-card {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 12px;
}

.sample-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--rule);
}

.sample-bar h2 {
  font-family: var(--body);
  font-stretch: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
  padding: 0;
  margin: 0;
}

/* Roof or storm: two radio buttons drawn as a switch. It works without the script. */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.tabs label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.tabs input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 4px;
}

.tabs input:checked + span {
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.tabs input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sample-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

/* One sample at a time. A browser without :has() shows both, one under the other. */
.sample-card:has(input[value='sample-storm']:checked) .sample-roof {
  display: none;
}

.sample-card:not(:has(input[value='sample-storm']:checked)) .sample-storm {
  display: none;
}

.sample-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.years {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 6px 4px;
}

.plan {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px;
}

.plan-svg,
.years-svg {
  display: block;
  width: 100%;
  height: auto;
}

.plan-svg polygon {
  stroke: var(--sheet);
  stroke-width: 1;
  stroke-linejoin: round;
}

.plan-svg line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.pf0 { fill: var(--f0); }
.pf1 { fill: var(--f1); }
.pf2 { fill: var(--f2); }
.pf3 { fill: var(--f3); }

.pe-ridge { stroke: var(--ridge); }
.pe-hip { stroke: var(--hip); }
.pe-valley { stroke: var(--valley); stroke-dasharray: 7 5; }
.pe-eave { stroke: var(--eave); }
.pe-rake { stroke: var(--rake); }
.pe-step { stroke: var(--step); stroke-dasharray: 7 5; }
.pe-wall { stroke: var(--wall); stroke-dasharray: 7 5; }
.pe-unk { stroke: var(--unk); stroke-dasharray: 7 5; }

.pl-ridge { fill: var(--ridge); }
.pl-hip { fill: var(--hip); }
.pl-valley { fill: var(--valley); }
.pl-eave { fill: var(--eave); }
.pl-rake { fill: var(--rake); }
.pl-step { fill: var(--step); }
.pl-wall { fill: var(--wall); }
.pl-unk { fill: var(--unk); }

.p-len {
  font: 700 11px var(--body);
  paint-order: stroke;
  stroke: var(--wash);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.p-letter {
  font-family: var(--display);
  font-weight: 800;
  fill: var(--ink);
}

.p-area {
  font: 500 10px var(--body);
  fill: var(--muted);
}

.p-n {
  font: 700 11px var(--body);
  fill: var(--ink);
}

.p-north {
  fill: var(--ink);
}

.p-scale {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.yc-a { fill: var(--hail); }
.yc-b { fill: var(--hail); opacity: 0.4; }
.yc-zero { fill: var(--rule); }
.yc-count { font: 700 12px var(--body); fill: var(--ink); }
.yc-year { font: 500 11px var(--body); fill: var(--muted); }

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.figure {
  padding: 10px 12px;
  min-width: 0;
  border-left: 1px solid var(--rule);
}

.figure:nth-child(odd) {
  border-left: 0;
}

.figure:nth-child(n + 3) {
  border-top: 1px solid var(--rule);
}

.figure dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1.15;
  white-space: nowrap;
}

.figure dd small {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--muted);
  margin-left: 3px;
}

.figure.lead {
  background: var(--gold-soft);
}

.figure.lead dd {
  color: var(--gold);
}

/* Sections */

.section {
  margin-top: 48px;
  scroll-margin-top: 16px;
}

.section.narrow {
  max-width: 760px;
}

.section-title {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 1.75rem);
  font-weight: 800;
  border: 0;
  padding: 0;
  margin-bottom: 16px;
}

.products {
  display: grid;
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: middle;
}

.swatch.yb-a,
.swatch.yb-b {
  width: 11px;
  height: 11px;
  background: var(--hail);
  vertical-align: -1px;
}

.swatch.yb-b {
  opacity: 0.4;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.product-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.price {
  margin: 0;
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 5px 0 5px 26px;
}

/* A small check mark drawn with two borders. */
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.product-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.product-link {
  margin: auto 0 0;
}

.product-link a,
.plan-actions a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.steps,
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.steps li,
.promises li {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
}

.steps p,
.promises p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* The facts strip: six short statements, each one backed by the terms or the refund policy. */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.facts li {
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
}

.facts li:first-child {
  border-top: 0;
}

.facts h3 {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
}

.facts h3::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.facts p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 40em;
}

/* The closing call to action */

.closing {
  margin-top: 48px;
  padding: 28px 20px;
  background: var(--slab);
  color: var(--on-slab);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 1.75rem);
  font-weight: 800;
  color: inherit;
  border: 0;
  padding: 0;
  margin: 0 0 6px;
}

.closing p {
  margin: 0 0 18px;
  color: inherit;
  opacity: 0.82;
}

.closing .button {
  min-width: min(100%, 280px);
  background: #D9B766;
  border-color: #D9B766;
  color: #0A1628;
}

.closing :focus-visible {
  outline-color: var(--on-slab);
}

/* Pricing */

.page-head {
  margin-bottom: 32px;
}

.plan-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  border: 0;
  padding: 0;
  margin: 0;
}

.plan-price {
  margin: 0;
}

.plan-price .amount {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-price .per {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-left: 4px;
}

.plan-note {
  margin: 0;
  color: var(--muted);
}

.included {
  font-family: var(--body);
  font-stretch: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.plan-card .ticks {
  margin-top: -8px;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 520px) {
  .choice-note {
    display: block;
  }

  .figures {
    grid-template-columns: repeat(4, 1fr);
  }

  .figure:nth-child(odd) {
    border-left: 1px solid var(--rule);
  }

  .figure:first-child {
    border-left: 0;
  }

  .figure:nth-child(n + 3) {
    border-top: 0;
  }
}

@media (min-width: 760px) {
  .wrap.wide {
    padding-left: 32px;
    padding-right: 32px;
  }

  .products {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .product {
    padding: 24px;
  }

  .steps,
  .promises {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .facts li {
    padding: 18px 20px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .facts li:nth-child(3n + 1) {
    border-left: 0;
  }

  .facts li:nth-child(n + 4) {
    border-top: 1px solid var(--rule);
  }

  .section,
  .closing {
    margin-top: 72px;
  }

  .closing {
    padding: 40px 32px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .sample-card {
    margin-top: 6px;
  }
}

/* Order status */

.status {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.status > :last-child {
  margin-bottom: 0;
}

.status .lead {
  font-size: 1rem;
}

/* Where the order stands: found, working, preview. */
.stages {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}

.stages li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.stages li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.38em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.stages li.done,
.stages li.now {
  color: var(--ink);
}

.stages li.done::before {
  background: var(--gold);
  border-color: var(--gold);
}

.stages li.now {
  font-weight: 600;
}

.stages li.now::before {
  border-color: var(--gold);
}

.assure {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.reason {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 14px;
  margin: 18px 0;
}

.progress {
  height: 4px;
  margin: 18px 0 6px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: slide 1.6s ease-in-out infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(290%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }

  .button:active {
    transform: none;
  }
}

/* Legal */

.legal h1 {
  margin-bottom: 8px;
}

.legal-body {
  margin-top: 24px;
}

.legal-body h2 {
  margin-top: 36px;
}

.legal-body h3 {
  font-size: 1rem;
  margin: 24px 0 6px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal-body li {
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .order-form {
    padding: 20px 24px;
    margin-top: 20px;
  }

  .field {
    margin-bottom: 14px;
  }

  .lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    margin-top: 14px;
  }

  .site-header .wrap {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .status {
    padding: 28px;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
  }

  main {
    padding-top: 40px;
    padding-bottom: 72px;
  }
}

@media print {
  .site-nav,
  .footer-nav,
  .skip {
    display: none;
  }
}

/* ── Site features: My reports, bot protection, Add to phone ───────────────── */

/* Three header links beside the wordmark: a little tighter on a phone, so all
   three fit at 375px. Below 360px "Samples" (also in the footer and on the
   home page) is dropped. */
@media (max-width: 439px) {
  .site-header .wrap {
    gap: 8px;
  }

  .site-nav {
    gap: 0;
    margin-right: -6px;
  }

  .site-nav a {
    padding: 0 6px;
    font-size: 0.875rem;
  }
}

@media (max-width: 359px) {
  .site-nav .nav-wide {
    display: none;
  }
}

/* The honeypot field: off screen rather than display:none, which some bots check for. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The Turnstile widget takes no room until it has something to show. */
.cf-turnstile:not(:empty) {
  margin-bottom: 10px;
}

.plain-form {
  margin-top: 18px;
  max-width: 28em;
}

.plain-form .button {
  width: 100%;
}

.report-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.report-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.report-list a {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.report-meta {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

.how-title {
  font-size: 1.0625rem;
  margin: 22px 0 6px;
}

.how-steps {
  margin: 0 0 8px;
  padding-left: 1.3em;
}

.how-steps li {
  margin-bottom: 4px;
}

/* The "add to home screen" note. Hidden until the script has something to offer. */
.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.install[hidden],
.install [hidden],
[data-install-here][hidden] {
  display: none;
}

.install-text {
  margin: 0;
  flex: 1 1 14em;
}

.install .button {
  flex: 1 1 14em;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9375rem;
}

.install-close {
  margin-left: auto;
  min-height: 44px;
  padding: 0 4px;
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media print {
  .install {
    display: none;
  }
}
