/* Celetu homepage v3
   Evidence-first, product-led. One ground, one ink, one accent. */

:root {
  --paper: #ffffff;
  --ink: #111110;
  --ink-2: #2b2b27;
  --muted: #64645c;
  --line: #e4e1db;
  --stage: #ffffff;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-ink: #9a3412;

  /* Aliases used by shared includes (cookie banner). */
  --rule: var(--line);
  --gutter-x: var(--gutter);
  --font-body: var(--font);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 144px);

  --h1: clamp(2.6rem, 7.4vw, 6.5rem);
  --h2: clamp(2rem, 3.6vw, 3.4rem);
  --lede: clamp(1.125rem, 1.35vw, 1.375rem);
  --body: 1.0625rem;
  --small: 0.8125rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); line-height: 1.02; letter-spacing: -0.03em; }
.accent { color: var(--accent); }

.lede {
  font-size: var(--lede);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
}

.body {
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.statement {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 60ch;
  color: var(--ink);
}

.caption {
  font-size: var(--small);
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}

.micro {
  font-size: var(--small);
  color: var(--muted);
}

.source {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.source a:hover { color: var(--ink); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-sm { height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent-ink); }

/* ---------- Nav ---------- */

.nav {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img { width: 32px; height: 32px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--accent-ink); }

.nav-actions { display: inline-flex; align-items: center; gap: 18px; }
.nav-login { display: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.nav-login:hover { color: var(--accent-ink); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 500;
}
.nav-mobile .btn { margin-top: 12px; color: #fff; }

@media (min-width: 900px) {
  .nav-links, .nav-login { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 5vw, 72px) 0 var(--section); }

.hero h1 { max-width: 15ch; }

.demo-confirm {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 0 6px 12px;
  border-left: 4px solid var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.hero-actions { justify-self: end; width: 100%; max-width: 430px; }
.hero-actions .micro { margin-top: 18px; }
.hero-proof {
  margin-top: 12px;
  font-size: var(--small);
  color: var(--ink-2);
}
.hero-proof b { font-weight: 700; }

.hero-shot { margin-top: clamp(36px, 4.5vw, 64px); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

@media (max-width: 820px) {
  .demo-confirm {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 0 6px 12px;
  border-left: 4px solid var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-intro { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero-actions { justify-self: start; max-width: none; }
}

/* ---------- Sections ---------- */

section { padding: var(--section) 0; }
section[id] { scroll-margin-top: 96px; }

.band { background: var(--stage); }

.section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { max-width: 14ch; }
.section-head .body { margin-top: 18px; }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.split-head h2 { max-width: 14ch; }
.split-head .caption { margin-top: 18px; }

@media (max-width: 820px) {
  .split-head { grid-template-columns: 1fr; gap: 18px; }
  .split-head h2 { max-width: 20ch; }
}

/* ---------- Screenshots ---------- */

.shot-wrap { margin: 0; min-width: 0; }
.shot-wrap.hero-shot { margin-top: clamp(36px, 4.5vw, 64px); }

.shot {
  display: block;
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: auto;
}
.shot:hover img { opacity: .94; }

.shot-wide { max-width: 100%; }

/* Browser frame: a tone step and a chrome bar, no border, no shadow. */
.browser {
  padding: 6px;
  background: #f1f1ef;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 4px 10px;
}
.browser-dots {
  display: flex;
  gap: 5px;
  flex: none;
}
.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7c6c2;
}
.browser-url {
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-wrap figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin-top: 12px;
  font-size: var(--small);
  color: var(--muted);
}
.shot-wrap figcaption a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shot-wrap figcaption a:hover { color: var(--accent-ink); }

.prompt-caption { margin-top: 24px; max-width: 62ch; }

/* Engine coverage strip */
.engine-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0 0 28px;
}
.engine-row > p { font-size: 0.8125rem; color: var(--muted); }
.engine-row ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.engine-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.engine-row img { height: 18px; width: auto; }

@media (max-width: 520px) {
  .engine-row { gap: 10px 16px; }
  .engine-row ul { gap: 12px 16px; }
  .engine-row img { height: 16px; }
}

/* ---------- Ads ---------- */

.ads { background: var(--accent); color: var(--ink); }
.ads h2 { max-width: 16ch; margin-bottom: 26px; }

.math {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin: clamp(40px, 5vw, 64px) 0 26px;
  max-width: 820px;
}
.math-num {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.math-num-accent { color: var(--ink); }
.math-label { font-size: 0.9375rem; color: var(--ink); margin-top: 10px; max-width: 26ch; }
.ads .statement { color: var(--ink); }
.ads .source { color: var(--ink); }
.ads .source a { color: var(--ink); }
.ads .source a:hover { color: var(--ink); text-decoration-thickness: 2px; }

@media (max-width: 620px) {
  .math { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Proof ---------- */

.proof .body { max-width: 44ch; }

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats b {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.stats div:first-child b { color: var(--accent); }
.stats span { font-size: 0.875rem; color: var(--muted); }

.proof .caption { margin-top: 32px; }

@media (max-width: 820px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing page ---------- */

.pricing-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.pricing-hero h1 { max-width: none; }
.pricing-hero .lede { margin-top: 22px; }
.pricing-hero .micro { margin-top: 14px; }

.pricing-page { padding: 0 0 var(--section); }
.pricing-page .plan { background: #f6f6f4; }
.pricing-page .plan-featured { background: var(--ink); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 34px);
}
.plan-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.plan-price {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 18px;
}
.plan-price span { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-blurb { font-size: 0.9375rem; color: var(--ink-2); margin-top: 10px; }
.plan ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 24px 0 32px;
}
.plan li {
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.plan .btn { width: 100%; margin-top: 0; }

.plan-featured { background: var(--ink); color: #fff; }
.plan-featured .plan-blurb, .plan-featured li, .plan-featured .plan-price span { color: #d9d6cf; }
.plan-featured li::before { background: var(--accent); }
.plan-flag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.pricing-page .micro { margin-top: 28px; }

@media (max-width: 940px) {
  .plans { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent-ink); font-size: 1.25rem; font-weight: 400; flex: none; }
.faq-list details[open] summary span { transform: rotate(45deg); display: inline-block; }
.faq-list details p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  padding-bottom: 22px;
}

@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Founder ---------- */

.founder { background: var(--stage); }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.founder-copy p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  max-width: 52ch;
  color: var(--ink-2);
}
.founder-photo { margin: 0 0 22px; }
.founder-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
}
.sign {
  font-size: 0.9375rem !important;
  font-weight: 600;
  color: var(--ink) !important;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .founder-grid { grid-template-columns: 1fr; }
}

/* ---------- Free scan ---------- */

.scan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.scan h2 { max-width: 12ch; margin-bottom: 20px; }
.scan-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.scan-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.scan-form input {
  height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}
.scan-form input::placeholder { color: #9a978f; }
.scan-form .btn { width: 100%; }
.scan-note { font-size: 0.75rem; color: var(--muted); }
.scan-ok { font-size: 0.8125rem; color: #1f6b45; font-weight: 600; }
.scan-err { font-size: 0.8125rem; color: var(--accent-ink); font-weight: 600; }

@media (max-width: 820px) {
  .scan-grid { grid-template-columns: 1fr; }
  .scan-form { justify-self: start; }
}

/* ---------- Closing CTA ---------- */

.closing { background: var(--ink); color: #fff; }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.closing h2 { color: #fff; max-width: 14ch; }
.closing-copy p {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: #d9d6cf;
  max-width: 42ch;
  margin-bottom: 26px;
}
.closing .text-link { color: #fff; }
.closing .text-link:hover { color: var(--accent); }

@media (max-width: 820px) {
  .closing-grid { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}

/* ---------- Footer ---------- */

.footer { padding: clamp(56px, 6vw, 88px) 0 40px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-brand img { width: 28px; height: 28px; }
.footer-line {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 12px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 0.8125rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-cols a { font-size: 0.9375rem; color: var(--muted); }
.footer-cols a:hover { color: var(--accent-ink); }

.footer-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 0;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 72ch;
}
.footer-foot p:last-child { max-width: 52ch; }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cookie-banner .cookie-banner__text a { color: var(--accent-ink); }

.cookie-banner .btn-cookie {
  height: auto;
  min-height: 38px;
  border-radius: 0;
}

/* Tabular figures keep columns steady. */
.stats b,
.plan-price,
.math-num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.2,.65,.3,1), transform .65s cubic-bezier(.2,.65,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

.hero-actions { transition-delay: .07s; }
.hero-shot.reveal { transition-delay: .12s; }
.split-head .body { transition-delay: .07s; }
.split-head .caption { transition-delay: .14s; }
.shot-wrap.reveal { transition-delay: .08s; }
.stats.reveal { transition-delay: .1s; }
.plan:nth-child(2) { transition-delay: .06s; }
.plan:nth-child(3) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Tight screens ---------- */

@media (max-width: 520px) {
  .shot-wrap figcaption { font-size: 0.75rem; }
  .browser { padding: 4px; }
  .browser-bar { gap: 8px; padding: 2px 2px 7px; }
  .browser-dots i { width: 6px; height: 6px; }
  .browser-url { padding: 4px 8px; font-size: 0.6875rem; }
  .stats { gap: 12px; }
  .stats b { font-size: 3rem; }
  .stats span { font-size: 0.75rem; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Sample report ---------- */

.report-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.report-hero h1 { max-width: none; }
.report-hero .lede { margin-top: 22px; }

.report-showcase { background: var(--accent); padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.report-sheet {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  background: #fff;
  padding: clamp(22px, 3.5vw, 48px);
}
.report-sheet h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.rs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
}
.rs-kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.rs-brand { margin-top: 6px; }
.rs-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }

.rs-head-stats { display: flex; gap: clamp(20px, 4vw, 48px); align-self: center; }
.rs-head-stats b {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rs-head-stats span { font-size: 13px; color: var(--muted); }

.rs-score { display: flex; align-items: center; gap: 14px; flex: none; }
.rs-ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.rs-ring-track { fill: none; stroke: #ecece9; stroke-width: 9; }
.rs-ring-fill { fill: none; stroke: var(--accent); stroke-width: 9; }
.rs-score-label b { display: block; font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 1; }
.rs-score-label span { font-size: 13px; color: var(--muted); }

.rs-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
}
.rs-summary-stats { display: flex; gap: clamp(16px, 3vw, 32px); }
.rs-summary-stats b {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rs-summary-stats span { font-size: 13px; color: var(--muted); }
.rs-summary p { font-size: 15px; line-height: 1.5; max-width: 70ch; }
.rs-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

.rs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 26px 0;
}
.rs-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }

.rs-engines ul { display: flex; flex-direction: column; gap: 14px; }
.rs-engines li {
  display: grid;
  grid-template-columns: 92px 32px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}
.rs-name { font-size: 14px; font-weight: 600; }
.rs-count { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-bar { display: block; height: 7px; background: #ecece9; }
.rs-bar i { display: block; height: 100%; background: var(--accent); }
.rs-bar-pct { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.rs-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rs-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.rs-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table td:first-child { font-weight: 600; }

.rs-comp-table th:nth-child(1) { width: 40%; }
.rs-comp-table th:nth-child(2),
.rs-comp-table th:nth-child(3),
.rs-comp-table td:nth-child(2),
.rs-comp-table td:nth-child(3) { text-align: right; }
.rs-comp-table th:nth-child(2) { width: 24%; }
.rs-comp-table th:nth-child(3) { width: 36%; }

.rs-share {
  display: inline-block;
  width: 56px;
  height: 6px;
  background: #ecece9;
  vertical-align: middle;
  margin-right: 8px;
}
.rs-share i { display: block; height: 100%; background: var(--accent); }

.rs-prompts { padding: 26px 0; }
.rs-prompt-table th:nth-child(1) { width: 40%; }
.rs-prompt-table th:nth-child(2) { width: 20%; }
.rs-prompt-table th:nth-child(3) { width: 26%; }
.rs-prompt-table th:nth-child(4) { width: 14%; }

.rs-status { font-size: 13px; font-weight: 700; }
.rs-lost { color: var(--accent-ink); }
.rs-won { color: #1f6b45; }

.rs-actions { padding: 26px 0 8px; }
.rs-actions-list { display: flex; flex-direction: column; }
.rs-actions-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.rs-action-title { font-size: 14px; font-weight: 600; }
.rs-action-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rs-action-state { font-size: 13px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }

.rs-foot {
  font-size: 13px;
  color: var(--muted);
  padding-top: 22px;
}

@media (max-width: 760px) {
  .report-sheet { width: calc(100% - 24px); padding: 18px; }
  .rs-head { flex-direction: column; gap: 18px; }
  .rs-head-stats { align-self: flex-start; }
  .rs-summary { grid-template-columns: 1fr; }
  .rs-score { align-self: flex-start; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-engines li { grid-template-columns: 82px 28px minmax(0, 1fr) 36px; }
  .rs-prompt-table thead { display: none; }
  .rs-prompt-table,
  .rs-prompt-table tbody,
  .rs-prompt-table tr,
  .rs-prompt-table td { display: block; width: 100%; }
  .rs-prompt-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rs-prompt-table td { border: 0; padding: 2px 0; }
  .rs-prompt-table td:first-child { font-weight: 600; margin-bottom: 4px; }
  .rs-prompt-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-weight: 600;
  }
  .rs-actions-list li { align-items: flex-start; }
}
