:root {
  --ink: #0b1020;
  --ink-2: #161d33;
  --ink-3: #26324f;
  --paper: #f6f8f3;
  --canvas: #eef1eb;
  --white: #ffffff;
  --muted: #59647a;
  --muted-light: #a8b1c5;
  --line: #d8ded5;
  --line-dark: #33405f;
  --lime: #bdfb5a;
  --lime-deep: #55751c;
  --cyan: #62d7ff;
  --red: #c83d3d;
  --red-soft: #fdecec;
  --amber: #c98714;
  --amber-soft: #fff4d6;
  --green-soft: #e8fbcb;
  --shadow-sm: 0 8px 26px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 28px 80px rgba(11, 16, 32, 0.16);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 2%, rgba(98, 215, 255, .12), transparent 23rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--lime); padding: .75rem 1rem; font-weight: 800; border-radius: 0 0 .75rem .75rem; }
.skip-link:focus { top: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 890px; }

.site-header {
  width: var(--shell);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand img { width: 224px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header nav a { min-height: 24px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 720; font-size: .94rem; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header .nav-cta { background: var(--ink); color: var(--paper); padding: .72rem 1.05rem; border-radius: 999px; }
.site-header .nav-cta:hover { color: var(--lime); text-decoration: none; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: 3.4rem;
  padding: 4.5rem 0 6.5rem;
}
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .76rem; line-height: 1; letter-spacing: .14em; font-weight: 850; color: var(--muted); margin: 0 0 1.5rem; }
.eyebrow span { width: 26px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.eyebrow.light { color: var(--muted-light); }
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.95rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 840;
}
.hero h1 em, .page-hero h1 em, .section-heading h2 em { font-style: normal; color: var(--lime-deep); }
.hero-lede { color: var(--muted); font-size: 1.18rem; max-width: 610px; margin: 1.8rem 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 820; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { color: var(--lime); }
.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button.full { width: 100%; }
.proof-list { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--muted); font-size: .84rem; font-weight: 700; }
.proof-list li::before { content: "✓"; color: var(--lime-deep); font-weight: 900; margin-right: .4rem; }
.hero-art img { width: 100%; filter: drop-shadow(0 28px 34px rgba(11, 16, 32, .12)); }

.dark-section { background: var(--ink); color: var(--paper); padding: 7.5rem 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.3vw, 4.45rem); line-height: 1.02; letter-spacing: -.05em; }
.dark-section .section-heading h2 em { color: var(--lime); }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.dark-section .section-heading > p { color: var(--muted-light); }
.feature-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-grid article { min-height: 245px; padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.feature-grid b { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.feature-grid h3 { margin: 3.5rem 0 .7rem; font-size: 1.35rem; }
.feature-grid p { margin: 0; color: var(--muted-light); font-size: .94rem; }

.process-section { padding: 7.5rem 0 8.5rem; }
.process { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.process li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.process li > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--lime); font-weight: 900; }
.process h3 { margin: 1.4rem 0 .4rem; font-size: 1.3rem; }
.process p { color: var(--muted); margin: 0; font-size: .95rem; }

.page-hero { padding: 6.3rem 0 5rem; }
.page-hero h1 { font-size: clamp(3rem, 6.2vw, 6.4rem); }
.page-hero > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.2rem; margin: 2rem 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-bottom: 4rem; }
.method-grid article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.method-grid article > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: var(--lime); font-weight: 900; }
.method-grid h2 { font-size: 1.35rem; margin: 2.4rem 0 .7rem; }
.method-grid p { color: var(--muted); margin: 0; }
.principle-callout { margin-top: 1rem; margin-bottom: 7rem; background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 3.2rem; display: grid; grid-template-columns: .55fr 1fr; gap: .5rem 3rem; align-items: center; }
.principle-callout p { color: var(--muted-light); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 850; }
.principle-callout strong { color: var(--lime); font-size: clamp(2.4rem, 4vw, 4.1rem); line-height: 1; }
.principle-callout small { grid-column: 2; color: var(--muted-light); font-size: .94rem; }

.app-shell { padding: 3.2rem 0 7rem; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 2rem; align-items: start; }
.app-sidebar { position: sticky; top: 1.5rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.app-sidebar .eyebrow { color: var(--muted-light); }
.app-sidebar :focus-visible { outline-color: var(--cyan); }
.app-sidebar h1 { margin: 0 0 .6rem; font-size: 2.1rem; letter-spacing: -.045em; }
.app-sidebar > div > p:not(.eyebrow), .microcopy { color: var(--muted-light); }
.app-sidebar fieldset { border: 0; padding: 0; margin: 2rem 0 1rem; }
.app-sidebar legend { font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-light); margin-bottom: .85rem; }
.app-sidebar label { display: flex; gap: .7rem; padding: .9rem; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); margin-bottom: .6rem; cursor: pointer; }
.app-sidebar label:has(input:checked) { border-color: var(--lime); background: rgba(189, 251, 90, .08); }
.app-sidebar input { accent-color: var(--lime); margin-top: .25rem; }
.app-sidebar label span { display: flex; flex-direction: column; }
.app-sidebar label small { color: var(--muted-light); margin-top: .2rem; }
.app-sidebar .button.primary { background: var(--lime); color: var(--ink); border: 0; }
.app-sidebar .button.secondary { border-color: var(--paper); color: var(--paper); margin-top: .75rem; }
.microcopy { font-size: .76rem; line-height: 1.45; margin: 1rem 0 0; }
.report-stage { min-height: 580px; }
.report-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.report-top { padding: 2rem; background: var(--ink); color: var(--paper); display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.report-kicker { color: var(--muted-light); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.report-top h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; margin: .8rem 0 1rem; letter-spacing: -.045em; }
.report-top p { color: var(--muted-light); max-width: 610px; margin: 0; }
.verdict-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; padding: .7rem 1rem; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.verdict-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.verdict-baseline_ready { background: var(--green-soft); color: #3e5812; }
.verdict-conditional { background: var(--amber-soft); color: #79520d; }
.verdict-not_ready { background: var(--red-soft); color: #7f2424; }
.report-body { padding: 2rem; }
.report-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.meta-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.meta-item span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; display: block; }
.meta-item strong { display: block; margin-top: .3rem; font-size: .94rem; overflow-wrap: anywhere; }
.coverage-block { margin-top: 2rem; display: grid; grid-template-columns: .5fr 1.5fr; gap: 1.5rem; align-items: center; }
.coverage-ring { width: 140px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; margin: auto; background: conic-gradient(var(--lime-deep) var(--coverage), #e1e5df 0); }
.coverage-ring::before { content: ""; position: absolute; width: 102px; aspect-ratio: 1; background: var(--white); border-radius: 50%; }
.coverage-ring strong, .coverage-ring small { z-index: 1; position: relative; display: block; text-align: center; }
.coverage-ring strong { font-size: 1.75rem; line-height: 1; }
.coverage-ring small { color: var(--muted); font-size: .72rem; margin-top: .25rem; }
.summary-list { margin: 0; padding-left: 1.2rem; }
.summary-list li { margin: .45rem 0; }
.coverage-counts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .8rem; padding: 0; list-style: none; font-weight: 800; }
.coverage-legend { color: var(--muted); font-size: .78rem; margin: .8rem 0 0; }
.report-section { margin-top: 2.2rem; }
.report-section h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.domain-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.domain-row span { text-transform: capitalize; font-weight: 780; }
.domain-row small { grid-column: 1 / -1; color: var(--muted); }
.finding-list { display: grid; gap: .7rem; }
.finding { border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: var(--radius-sm); padding: 1rem; }
.finding[data-severity="critical"] { border-left-color: var(--red); }
.finding h4 { margin: 0; font-size: 1rem; }
.finding p { color: var(--muted); margin: .45rem 0 0; font-size: .91rem; }
.finding-meta { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; margin-top: .7rem; }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.scope-grid > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.scope-grid h4 { margin: 0; }
.scope-grid ul { margin-bottom: 0; padding-left: 1.2rem; }
.limitations { background: var(--canvas); border-radius: var(--radius); padding: 1.3rem; }
.limitations li { color: var(--muted); font-size: .88rem; margin: .35rem 0; }
.loading-state, .error-state { min-height: 540px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; padding: 2rem; }
.loading-state span { display: block; width: 45px; height: 45px; border: 4px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.connect-shell { padding: 5rem 0 7rem; }
.connect-shell > h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.connect-lede { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.connection-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.connection-explainer section, .connection-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.connection-explainer h2, .connection-card h2 { margin-top: 0; }
.connection-explainer p, .connection-card p, .repository-list span { color: var(--muted); }
.connection-output { display: grid; gap: 1rem; }
.connection-loading { min-height: 240px; }
.connection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.connection-heading h2 { overflow-wrap: anywhere; }
.connection-heading .eyebrow { margin-bottom: .7rem; }
.connection-status { padding: .45rem .7rem; border-radius: 999px; background: var(--green-soft); color: #3e5812; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.connection-status.status-suspended { background: var(--amber-soft); color: #79520d; }
.connection-status.status-uninstalled { background: var(--red-soft); color: #7f2424; }
.repository-list, .permission-list { padding-left: 1.2rem; }
.repository-list li { margin: .7rem 0; }
.repository-list strong, .repository-list span { display: block; overflow-wrap: anywhere; }
.connection-card details { margin: 1rem 0; }
.connect-back { display: inline-block; margin-top: 1.5rem; font-weight: 800; }

.site-footer { background: var(--ink); color: var(--paper); min-height: 190px; padding: 3.5rem max(20px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.site-footer img { width: 190px; }
.site-footer p { color: var(--muted-light); margin: .5rem 0 0; }
.footer-note { max-width: 500px; color: var(--muted-light); font-size: .9rem; }
.footer-note strong { color: var(--paper); }

body.report-export-route .site-header, body.report-export-route .site-footer { display: none; }
.print-shell { width: min(900px, calc(100vw - 40px)); margin: 2rem auto 5rem; }
.print-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.print-document-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.print-document-header img { width: 190px; height: auto; }
.print-document-header p { margin: 0 0 .25rem; color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.print-document-header h1 { margin: 0; font-size: 1.6rem; line-height: 1.1; }
.print-fixture-note { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--muted); }
.print-fixture-note strong { color: var(--ink); }
.print-shell .report-stage { min-height: 0; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-art { max-width: 720px; }
  .feature-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .method-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: static; }
  .report-meta { grid-template-columns: repeat(2, 1fr); }
  .connection-explainer { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 78px; }
  .brand img { width: 190px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding: 3.5rem 0 5rem; gap: 2rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-art { margin-inline: 0; }
  .dark-section, .process-section { padding: 5.5rem 0; }
  .feature-grid, .process, .report-meta, .domain-grid, .scope-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 200px; }
  .principle-callout { grid-template-columns: 1fr; padding: 2rem; }
  .principle-callout small { grid-column: 1; }
  .report-top { flex-direction: column; }
  .coverage-block { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .connection-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: auto; margin: 12mm; }
  .site-header, .site-footer, .app-sidebar, .button { display: none !important; }
  html, body { background: #fff; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-shell { width: 100%; margin: 0; }
  .print-toolbar { display: none !important; }
  .print-document-header, .report-top, .coverage-block, .report-section h3 { break-after: avoid; }
  .app-shell { display: block; width: 100%; padding: 0; }
  .report-card { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .report-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-top { color: #000; background: #fff; border-bottom: 2px solid #000; }
  .report-top p, .report-kicker { color: #333; }
  .report-body { padding: 1rem 0; }
  .finding, .meta-item, .domain-row, .scope-grid > div, .limitations { break-inside: avoid; }
}
