/* Ownli verification report: an inspection report, not an app screen. Ownli purple, one typeface
   (the same stack as the check-in app), weight and size carry the hierarchy. */
:root {
  --paper: #f6f5fb;
  --paper-2: #eceaf6;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #3d3a4a;
  --mute: #6f6b80;
  --line: #e0ddee;
  --accent: #6b4eff;
  --accent-deep: #4f3ccc;
  --accent-soft: #eeedfe;
  --ok: #0e7a4d;
  --ok-soft: #dcf1e5;
  --warn: #b35309;
  --warn-soft: #fbedd6;
  --bad: #c3262e;
  --bad-soft: #fae1df;
  --night: #1a1528;
  --night-2: #2a2140;

  /* One typeface throughout, matching the check-in app. */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(91, 61, 245, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(179, 83, 9, 0.06), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* Paper grain: a whisper of texture so the page doesn't read as a flat app screen. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --- top bar --- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(246, 245, 251, 0.82);
  position: sticky; top: 0; z-index: 10;
}
.wordmark { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.wordmark.small { font-size: 1.05rem; }
.topbar-title { font-size: 0.85rem; color: var(--mute); display: flex; gap: 10px; align-items: baseline; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.ghost {
  font: 500 0.85rem var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px;
  transition: border-color 160ms, transform 160ms var(--ease);
}
.ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* --- layout --- */
.report { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 40px; }
.rp-section { margin-top: clamp(56px, 8vw, 104px); }
.rp-section-head { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; align-items: baseline; margin-bottom: 28px; max-width: 900px; }
.rp-section-num { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); border-top: 1px solid var(--ink); padding-top: 10px; }
.rp-section-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.01em; margin: 0; }
.rp-section-head p { grid-column: 2; margin: 12px 0 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; max-width: 62ch; }

/* --- hero --- */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rp-eyebrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.82rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.rp-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.rp-headline {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(3.4rem, 8.4vw, 7.6rem); margin: 18px 0 14px; font-variant-numeric: tabular-nums;
}
.rp-headline em { font-style: normal; color: var(--accent); }
.rp-headline .unit { font-size: 0.42em; letter-spacing: 0; color: var(--ink-2); margin-left: 0.12em; }
.rp-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }

.rp-verdict {
  display: inline-flex; gap: 14px; align-items: center; padding: 12px 20px 12px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
}
.rp-verdict.is-review { background: var(--warn-soft); color: var(--warn); }
.rp-verdict.is-declined { background: var(--bad-soft); color: var(--bad); }
.verdict-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: currentColor; display: grid; place-items: center; }
.verdict-icon svg { width: 22px; height: 22px; color: #fff; }
.verdict-icon svg * { stroke: #fff; }
.rp-verdict-text strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.rp-verdict-text span { color: var(--ink-2); font-size: 0.92rem; }
.topbar-title .mono:not([hidden]) {
  font: 600 0.7rem var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute);
  border: 1px dashed var(--mute); border-radius: 999px; padding: 3px 9px;
}

/* The hero photo: a tilted print with depth, damage drawn on top. */
.rp-hero-media { position: relative; }
.rp-hero-media .frame { box-shadow: 0 40px 80px -30px rgba(42, 33, 64, 0.35), 0 2px 0 rgba(255, 255, 255, 0.6) inset; }
.rp-hero-media .frame-caption {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--ink); color: var(--paper); font: 500 0.78rem var(--mono); padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}
.frame {
  position: relative; display: block; width: 100%; padding: 10px; border: 0; cursor: zoom-in;
  background: var(--card); border-radius: var(--radius);
}
.frame .shot { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1d1c1a; }
.frame .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); background: linear-gradient(135deg, var(--paper-2), #dcd9ec); }
.frame .placeholder svg { width: 70%; height: auto; opacity: 0.55; }

/* Damage outline: drawn in (clip-path wipe), labelled. Coordinates are fractions of the photo. */
.box {
  position: absolute; border: 2px solid #ff3b47; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 24px rgba(255, 59, 71, 0.45);
  animation: draw 900ms var(--ease) both; animation-delay: var(--delay, 400ms);
}
.box::after { content: ""; position: absolute; inset: -8px; border-radius: 12px; border: 1px solid rgba(255, 59, 71, 0.5); animation: pulse 2.4s ease-out infinite; animation-delay: calc(var(--delay, 400ms) + 900ms); }
.box-tag {
  position: absolute; left: -2px; bottom: calc(100% + 6px); white-space: nowrap;
  background: #ff3b47; color: #fff; font: 600 0.7rem var(--sans); padding: 4px 8px; border-radius: 6px; text-transform: capitalize;
  animation: fade-up 500ms var(--ease) both; animation-delay: calc(var(--delay, 400ms) + 600ms);
}
.box.is-top .box-tag { bottom: auto; top: calc(100% + 6px); }
/* Stickers: a quieter dashed purple outline, no pulse; damage stays the loud red. */
.box.is-sticker { border: 2px dashed var(--accent); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 16px rgba(107, 78, 255, 0.35); }
.box.is-sticker::after { display: none; }
.box.is-sticker .box-tag { background: var(--accent); text-transform: none; }

/* --- key facts strip --- */
.rp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.fact { padding: 18px 20px 4px 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 20px; }
.fact:last-child { border-right: 0; }
.fact-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); font-weight: 600; }
.fact-value { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; margin-top: 8px; overflow-wrap: anywhere; }
.fact-value.mono { font-family: var(--mono); font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: 0.04em; margin-top: 12px; }
.plate-chip { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 10px; background: var(--card); box-shadow: 0 3px 0 var(--ink); }
.fact-note { display: block; font-size: 0.85rem; color: var(--mute); margin-top: 6px; }

/* --- reason --- */
.rp-reason {
  margin-top: 36px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 24px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid #f0d6ad;
}
.rp-reason.is-declined { background: var(--bad-soft); border-color: #f2c4c0; }
.rp-reason-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #fff; font-weight: 700; }
.rp-reason.is-declined .rp-reason-icon { background: var(--bad); }
.rp-reason strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.rp-reason p { margin: 0; font-size: 1.08rem; line-height: 1.45; }

/* --- damage map --- */
.rp-damage { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.carmap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.carmap svg { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.carmap .zone { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 1.5; transition: fill 300ms; }
.carmap .zone.is-hit { fill: rgba(255, 59, 71, 0.18); stroke: #ff3b47; animation: zone 2.4s ease-in-out infinite; }
.carmap .zone.is-unseen { fill: var(--paper-2); stroke: var(--line); }
.carmap .body { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.carmap .glass { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.2; }
.carmap .label { font: 600 10px var(--mono); fill: var(--mute); letter-spacing: 1px; text-transform: uppercase; }
.carmap-legend { display: flex; gap: 16px; justify-content: center; margin-top: 18px; font-size: 0.8rem; color: var(--mute); }
.carmap-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.finding {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  animation: fade-up 600ms var(--ease) both;
}
/* A zoomed crop of the photo around the damage: background-size/position computed from its box. */
.crop { width: 150px; aspect-ratio: 1; border-radius: 12px; background-color: var(--paper-2); background-repeat: no-repeat; position: relative; overflow: hidden; }
.crop::after { content: ""; position: absolute; inset: 22%; border: 2px solid #ff3b47; border-radius: 8px; box-shadow: 0 0 18px rgba(255, 59, 71, 0.5); }
.crop.is-empty::after { display: none; }
.crop.is-empty { display: grid; place-items: center; color: var(--mute); background: linear-gradient(135deg, var(--paper-2), #dcd9ec); }
.crop.is-empty svg { width: 82%; height: auto; opacity: 0.55; }
.crop-mark { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #ff3b47; box-shadow: 0 0 0 4px rgba(255, 59, 71, 0.25); }
.crop-mark::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #ff3b47; animation: pulse 1.8s ease-out infinite; }
.finding h3 { margin: 0 0 4px; font-size: 1.1rem; text-transform: capitalize; }
.finding p { margin: 0; color: var(--ink-2); }
.sev { display: inline-block; font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; background: var(--warn-soft); color: var(--warn); }
.sev.is-severe, .sev.is-major { background: var(--bad-soft); color: var(--bad); }
.sev.is-minor { background: var(--paper-2); color: var(--ink-2); }
.sev.is-sticker { background: var(--accent-soft); color: var(--accent-deep); }
.findings.stickers { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.finding.is-sticker h3 { text-transform: none; }
.finding.is-sticker .crop-mark { background: var(--accent); box-shadow: 0 0 0 6px rgba(107, 78, 255, 0.25); }
.finding.is-sticker .crop-mark::after { border-color: rgba(107, 78, 255, 0.5); }
.no-damage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 16px; align-items: center; }
.no-damage strong { font-family: var(--serif); font-weight: 700; font-size: 2rem; display: block; }

/* --- photos --- */
.rp-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rp-gallery.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.rp-gallery figure { margin: 0; }
.rp-gallery .frame { padding: 6px; border: 1px solid var(--line); transition: transform 300ms var(--ease), box-shadow 300ms; }
.rp-gallery .frame:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(42, 33, 64, 0.35); }
.rp-gallery figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 0.88rem; }
.rp-gallery figcaption span { color: var(--mute); }
.rp-gallery.has-readings, .rp-gallery.has-readings.is-pair { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: none; }
.rp-gallery.has-readings figure {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.rp-gallery.has-readings figure:first-child { border-top: 0; padding-top: 0; }
.photo-notes figcaption { margin-top: 0; font-size: 1.15rem; }
.photo-notes figcaption strong { font-weight: 700; }
.readings { margin: 14px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.reading { display: grid; grid-template-columns: 14px 112px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.reading::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); transform: translateY(-1px); }
.reading.is-ok::before { background: var(--ok); }
.reading.is-warn::before { background: var(--warn); }
.reading.is-bad::before { background: var(--bad); }
.reading.is-info::before { background: transparent; border: 1.5px solid var(--mute); width: 5px; height: 5px; }
.reading dt { color: var(--mute); font-weight: 500; }
.reading dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.reading.is-bad dd { color: var(--bad); }
.finding-confidence { margin-top: 6px !important; font-size: 0.85rem; color: var(--mute) !important; font-variant-numeric: tabular-nums; }
.rp-gallery figcaption .hit { color: #d92d38; font-weight: 600; }

/* --- checks --- */
.rp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: grid; grid-template-rows: auto auto 1fr; gap: 8px; position: relative; overflow: hidden;
  animation: fade-up 600ms var(--ease) both;
}
.check::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ok); }
.check.is-warn::before { background: var(--warn); }
.check.is-fail::before { background: var(--bad); }
.check-top { display: flex; justify-content: space-between; align-items: center; }
.check-badge { font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.check.is-warn .check-badge { background: var(--warn-soft); color: var(--warn); }
.check.is-fail .check-badge { background: var(--bad-soft); color: var(--bad); }
.check-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.check.is-warn .check-icon { background: var(--warn); }
.check.is-fail .check-icon { background: var(--bad); }
.check-icon svg { width: 16px; height: 16px; }
.check h3 { margin: 6px 0 0; font-size: 1.02rem; }
.check p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.rp-score { display: flex; align-items: baseline; gap: 12px; margin: -8px 0 24px; }
.rp-score strong { font-family: var(--serif); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.rp-score span { color: var(--mute); }

/* --- what the underwriter gets: the one dark moment on the page --- */
.rp-payload {
  margin: clamp(56px, 8vw, 104px) calc(-1 * var(--gutter)) 0;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  background: radial-gradient(800px 400px at 90% 0%, rgba(91, 61, 245, 0.35), transparent 60%), var(--night);
  color: #ecebf5; border-radius: 28px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.rp-payload .rp-section-num { color: #8f8ba8; border-color: #ecebf5; display: inline-block; padding-right: 24px; }
.rp-payload h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin: 18px 0 16px; }
.rp-payload p { color: #b9b6cf; line-height: 1.6; margin: 0 0 14px; max-width: 46ch; }
.rp-why { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.rp-why li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #ecebf5; line-height: 1.45; }
.rp-why li::before { content: "→"; color: #a796ff; font-family: var(--mono); }
/* What the insurer receives: the feed's fields in words, then what stays in the report. */
.share { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 24px 26px; align-self: start; }
.share-title { margin: 0 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a796ff; }
.share-title.is-muted { margin-top: 26px; color: #8f8ba8; }
.share-list { margin: 0; display: grid; }
.share-list div { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.2fr; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.share-list div:first-child { border-top: 0; }
.share-list dt { color: #b9b6cf; font-size: 0.9rem; }
.share-list dd { margin: 0; color: #fff; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.share-kept { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-kept li { font-size: 0.82rem; color: #ecebf5; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, 0.22); }

/* --- footer, loading, errors, viewer --- */
.rp-footer { max-width: 1280px; margin: 64px auto 0; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: baseline; color: var(--mute); font-size: 0.88rem; }
.rp-footer p { margin: 0; max-width: 70ch; }
.rp-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--mute); }
.rp-scan { width: 160px; height: 110px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.rp-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scan 1.6s ease-in-out infinite alternate; }
/* No insights yet: a calm "still reading" panel that re-checks itself (no placeholder data). */
.rp-processing { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 0 var(--gutter); }
.rp-processing h1 { margin: 10px 0 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -0.03em; color: var(--ink); }
.rp-processing p { margin: 0; max-width: 46ch; color: var(--ink-2); line-height: 1.55; }
.rp-processing .rp-processing-checked { font-size: 0.85rem; color: var(--mute); min-height: 1.2em; }
.rp-processing-back { margin-top: 8px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.rp-processing-back:hover { text-decoration: underline; }
.rp-error { margin: 15vh auto; max-width: 520px; text-align: center; font-size: 1.1rem; }
.rp-viewer { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); }
.rp-viewer::backdrop { background: rgba(16, 15, 24, 0.86); backdrop-filter: blur(6px); }
.rp-viewer img { display: block; max-width: 100%; max-height: 84vh; border-radius: 14px; }
.rp-viewer p { color: #fff; text-align: center; font-weight: 500; }

/* --- staged reveal --- */
.reveal { animation: fade-up 800ms var(--ease) both; }
.reveal-2 { animation-delay: 120ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 360ms; }

@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { clip-path: inset(0 100% 100% 0 round 8px); opacity: 0.4; } to { clip-path: inset(-40px -320px -40px -40px); opacity: 1; } } /* wide on the right: a tag can outgrow a small box */
@keyframes pulse { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
@keyframes zone { 50% { fill: rgba(255, 59, 71, 0.32); } }
@keyframes scan { from { top: 8%; } to { top: 90%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* --- responsive --- */
@media (max-width: 1000px) {
  .rp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-payload { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .rp-hero { grid-template-columns: 1fr; }
  .rp-hero-media { order: -1; }
  .rp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rp-damage { grid-template-columns: 1fr; }
  .carmap { position: static; }
  .topbar-title { display: none; }
}
@media (max-width: 560px) {
  .rp-gallery.has-readings figure { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reading { grid-template-columns: 14px 96px minmax(0, 1fr); }
  .rp-checks { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 96px 1fr; gap: 14px; }
  .crop { width: 96px; }
  .rp-section-head { grid-template-columns: 1fr; }
  .rp-section-head p { grid-column: 1; }
  .rp-section-num { width: 48px; margin-bottom: 12px; }
  .rp-hero-media .frame-caption { left: 8px; }
  #rp-back { display: none; }
  .rp-payload { border-radius: 0; }
}

/* --- print / PDF: the report is the deliverable --- */
@media print {
  body { background: #fff; }
  body::before, .topbar-actions, .rp-footer .wordmark { display: none; }
  .topbar { position: static; background: #fff; }
  .box::after, .carmap .zone.is-hit { animation: none; }
  .rp-section, .rp-payload, .finding, .check { break-inside: avoid; }
  .rp-payload { margin: 40px 0 0; border-radius: 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Why it matters: capture → insurance value, rows from this check-in tinted. */
.value-table { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 1rem; }
.value-table th { text-align: left; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); padding: 0 16px 10px; border-bottom: 1px solid var(--ink); }
.value-table td { padding: 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); vertical-align: top; line-height: 1.45; }
.value-table td:first-child { font-weight: 600; width: 40%; }
.value-table tr.is-here td { background: var(--accent-soft); }
.value-here { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--accent); color: #fff; vertical-align: 2px; }
@media (max-width: 560px) { .value-table td, .value-table th { padding-left: 10px; padding-right: 10px; } .value-here { display: table; margin: 6px 0 0; } }

/* The Ownli wordmark in the top bar and footer. */
.wordmark img { display: block; height: 25px; width: auto; }
.wordmark.small img { height: 20px; }
