/* The public launch report (/r/<id>). It stands alone: no app styles, no
   scripts (except theme.js when Liftoff Cloud shows it inside the app).
   Neutral greys, colour only for pass and fail. */
:root {
  color-scheme: light dark;
  --font: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f3f3f2;
  --surface: #ffffff;
  --ink: #111111; --ink-2: #3d3d3b; --muted: #6f6f6b; --faint: #a3a3a0;
  --line: rgba(0, 0, 0, .085); --line-2: rgba(0, 0, 0, .055);
  --chip: rgba(0, 0, 0, .05);
  --good: #0c9466; --good-soft: rgba(31, 196, 138, .12);
  --bad: #d4283a; --bad-soft: rgba(244, 63, 94, .1);
  --primary: #1a1a19; --primary-ink: #fafaf9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b;
    --surface: #151515;
    --ink: #f2f2f0; --ink-2: #cfcfcc; --muted: #8e8e8a; --faint: #5c5c59;
    --line: rgba(255, 255, 255, .085); --line-2: rgba(255, 255, 255, .055);
    --chip: rgba(255, 255, 255, .07);
    --good: #4fe0a6; --good-soft: rgba(34, 197, 139, .14);
    --bad: #ff7486; --bad-soft: rgba(255, 90, 110, .13);
    --primary: #ededeb; --primary-ink: #111111;
  }
}
/* Inside Liftoff Cloud (html.embed), theme.js sets data-theme from the app's
   light or dark switch. The public page has no data-theme and follows the device. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: #151515;
  --ink: #f2f2f0; --ink-2: #cfcfcc; --muted: #8e8e8a; --faint: #5c5c59;
  --line: rgba(255, 255, 255, .085); --line-2: rgba(255, 255, 255, .055);
  --chip: rgba(255, 255, 255, .07);
  --good: #4fe0a6; --good-soft: rgba(34, 197, 139, .14);
  --bad: #ff7486; --bad-soft: rgba(255, 90, 110, .13);
  --primary: #ededeb; --primary-ink: #111111;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }

.top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top span::before { content: "/"; margin-right: 10px; color: var(--faint); }

h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 6px; font-weight: 680; overflow-wrap: anywhere; }
/* The app's own logo, from its code. */
h1 .app-logo { width: 1.05em; height: 1.05em; border-radius: .24em; vertical-align: -.17em; margin-right: .32em; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 12px -6px rgba(0, 0, 0, .4); }
.meta { margin: 0 0 24px; color: var(--muted); overflow-wrap: anywhere; }
.meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.meta a:hover { border-color: var(--muted); }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.i circle { fill: currentColor; stroke: none; }

.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.verdict .i { width: 26px; height: 26px; margin-top: 1px; }
.verdict .v { font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.verdict .d { color: var(--muted); }
.verdict.ok { background: var(--good-soft); border-color: transparent; color: var(--good); }
.verdict.ok .v { color: var(--good); }
.tailored { margin: 12px 2px 0; color: var(--muted); font-size: 14px; }
.since { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.since .i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.since.ok .i { color: var(--good); }
.since a { color: inherit; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.facts > div { background: var(--surface); padding: 14px 16px; min-width: 0; }
.facts .k { font-size: 12px; color: var(--muted); }
.facts .v { font-size: 20px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.facts .v span { font-size: 13px; font-weight: 500; color: var(--muted); }

section { margin-top: 36px; }
h2 { font-size: 15px; font-weight: 650; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
h2 .n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--chip); border-radius: 99px; padding: 0 8px; line-height: 20px; }
.intro { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary h2::after { content: "Show"; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
details[open] summary h2::after { content: "Hide"; }
details[open] summary { margin-bottom: 4px; }

.checks, .steps { list-style: none; margin: 10px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.checks li, .steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.checks li:first-child, .steps li:first-child { border-top: 0; }
.checks li > div, .steps li > div { flex: 1; min-width: 0; }
.checks .i, .steps .i { margin-top: 2px; color: var(--faint); }
.ok > .i { color: var(--good); }
.bad > .i { color: var(--bad); }
.t { font-weight: 550; overflow-wrap: anywhere; }
.d { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.req { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--chip); border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

.steps li { flex-wrap: wrap; }
.shot { display: block; flex: 0 0 132px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .shot { flex-basis: 100%; margin-left: 30px; }
}

footer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.cta { display: inline-block; margin-top: 4px; padding: 9px 16px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.cta:hover { opacity: .9; }

.gone h1 { margin-top: 12vh; }

/* Liftoff's own legal pages (/privacy, /terms, /refunds), and the links to
   them at the foot of every public page. */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.gone .legal-links { margin-top: 32px; }
.legal { max-width: 700px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { display: block; font-size: 17px; letter-spacing: -.01em; margin: 34px 0 6px; scroll-margin-top: 16px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 0 0 8px; padding-left: 2px; }
.legal li::marker { color: var(--faint); }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal code { font: 13px var(--mono); background: var(--chip); border-radius: 5px; padding: 1px 5px; }
.legal mark.fill { background: rgba(245, 158, 11, .2); color: inherit; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal footer .legal-links { margin-top: 0; }

/* /results: success rates per stack */
.results-scroll { overflow-x: auto; margin: 22px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.results-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.results { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.results th, .results td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: baseline; white-space: nowrap; }
.results thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.results tbody th { font-weight: 600; white-space: nowrap; }
.results td b { color: var(--good); font-weight: 650; }
.results td span { color: var(--muted); font-size: 12px; margin-left: 4px; white-space: nowrap; }
.results tr.total th, .results tr.total td { border-top: 1px solid var(--line); background: var(--chip); }
.results-empty { margin: 22px 0 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }

/* Inside Liftoff Cloud's Report tab: the card around it is the page. */
html.embed, html.embed body { background: transparent; }
html.embed main { max-width: none; padding: 4px 20px 24px; }
html.embed h1 { font-size: 26px; }
html.embed footer { margin-top: 32px; }
@media (max-width: 560px) { html.embed main { padding: 4px 14px 18px; } }
