:root {
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: #5B359D;
  --brand-strong: #47297D;
  --brand-mid: #7c3aed;
  --brand-light: #efe7ff;
  --accent: #0ec97f;
  --accent-bg: rgba(14, 201, 127, .12);
  --danger: #ff6874;
  --danger-bg: rgba(255, 104, 116, .12);
  --warning: #ffbd5a;
  --text-primary: #0f172a;
  --text-secondary: #516072;
  --text-muted: #718198;
  --white: #ffffff;
  --off-white: #faf8ff;
  --border: rgba(91,53,157,.16);
  --border-light: rgba(91,53,157,.1);
  --shadow: 0 24px 56px rgba(13,17,23,.08);
  --radius: 22px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --dark: #080313;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 0% 0%, rgba(124,58,237,.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  line-height: 1.4;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: all .18s ease;
}

.btn-xl { min-height: 54px; padding: 0 26px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(91,53,157,.22);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border);
  background: rgba(255,255,255,.74);
  color: var(--brand);
}
.btn-ghost:hover { background: var(--brand-light); }

/* HERO */
.pdf-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, .92fr);
  gap: 54px;
  align-items: center;
  min-height: 860px;
  margin-top: 64px;
  width: 100%;
  padding: 110px max(48px, calc((100vw - 1240px) / 2)) 86px;
  overflow: hidden;
}

.pdf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(124,58,237,.19), transparent 31%),
    radial-gradient(circle at 18% 14%, rgba(91,53,157,.09), transparent 24%),
    linear-gradient(180deg, rgba(239,231,255,.56), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-copy,
.hero-visual { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91,53,157,.08);
  border: 1px solid rgba(91,53,157,.12);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,201,127,.12);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 800;
  max-width: 12ch;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  margin-top: 22px;
  max-width: 690px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.78;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}

.hero-points div {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.hero-points span {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 5px;
}

.hero-points strong { font-size: .94rem; line-height: 1.35; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: .9rem;
}
.hero-note svg { color: var(--accent); }

.hero-visual {
  max-width: 760px;
  width: 100%;
  justify-self: end;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(13,9,26,.96), rgba(11,7,22,.96));
  color: rgba(255,255,255,.58);
}
.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.browser-bar small {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
}

.pdf-console {
  padding: 26px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 85% 10%, rgba(124,58,237,.18), transparent 30%),
    linear-gradient(155deg, #0d0718, #06020d 72%);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 0;
  color: #fff;
  box-shadow: 0 36px 70px rgba(9, 4, 18, .28);
}

.console-head,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.console-head small,
.score-copy small {
  display: block;
  color: rgba(255,255,255,.44);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.console-head strong { font-size: 1rem; }

.verdict-pill {
  padding: 7px 11px;
  border: 1px solid rgba(255,104,116,.28);
  background: var(--danger-bg);
  color: #ff9da5;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
}

.score-row {
  justify-content: flex-start;
  padding: 24px 0;
}
.score-ring {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 27px;
  background:
    radial-gradient(circle at center, #0c0714 57%, transparent 58%),
    conic-gradient(var(--danger) 0 92%, rgba(255,255,255,.08) 92% 100%);
}
.score-ring span { font-size: 1.65rem; font-weight: 800; }
.score-ring small { color: rgba(255,255,255,.45); font-size: .7rem; }
.score-copy strong { display: block; font-size: 1.04rem; margin-bottom: 5px; }
.score-copy p { color: rgba(255,255,255,.58); font-size: .84rem; line-height: 1.5; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.signal-grid div {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.signal-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: rgba(255,255,255,.42);
  margin-bottom: 5px;
}
.signal-grid strong { font-size: .84rem; }

.console-table {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}
.console-table > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.console-table > div:last-child { border-bottom: 0; }
.console-table > div:first-child {
  background: rgba(255,255,255,.035);
  font-family: var(--font-mono);
  font-size: .62rem;
  color: rgba(255,255,255,.4);
}
.console-table strong { font-size: .8rem; font-weight: 600; }
.console-table em { font-style: normal; font-size: .72rem; color: #b9a5ff; }

/* GENERIC SECTIONS */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 48px;
}
.section-center { text-align: center; }
.eyebrow {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow.muted { color: rgba(218,204,255,.86); }
.section-title {
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-title.left,
.section-sub.left,
.feature-copy,
.audience-copy { text-align: left; }
.section-title.light { color: #fff; }
.section-sub {
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.74;
  font-size: 1.02rem;
}
.section-sub.left { margin: 0; max-width: 660px; }
.section-sub.dimmed { color: rgba(255,255,255,.7); }
.intro-strip { padding-top: 18px; }

.feature-slab {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1fr);
  gap: 46px;
  align-items: center;
}
.feature-slab.reverse { grid-template-columns: minmax(420px, 1fr) minmax(0, .94fr); }
.feature-slab.reverse .feature-copy { order: 2; }
.feature-slab.reverse .feature-visual { order: 1; }

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.58;
}
.feature-list span {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 900;
  margin-top: 1px;
}

.visual-card,
.code-card {
  background: linear-gradient(180deg, #0b0615, #06020d);
  border: 1px solid rgba(91,53,157,.24);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 68px rgba(12,7,24,.18);
}
.visual-card img { width: 100%; height: auto; }
.feature-visual.visual-card,
.feature-visual.code-card { max-width: 700px; justify-self: end; width: 100%; }

.code-card { padding: 0; color: #fff; }
.code-card-head {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.code-card-head span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: #bba8ff;
}
.code-card-head strong { font-size: .9rem; }
.code-lines { padding: 12px 20px 18px; }
.code-lines div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-lines div:last-child { border-bottom: 0; }
.code-lines span { color: rgba(255,255,255,.42); font-size: .78rem; }
.code-lines code { color: rgba(255,255,255,.88); font-family: var(--font-mono); font-size: .78rem; }
.code-lines code.warn { color: #ffd084; }

/* PRODUCT VIEWS */
.product-view {
  position: relative;
  padding: 84px 48px;
  overflow: hidden;
}
.product-view-dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(124,58,237,.22), transparent 32%),
    linear-gradient(145deg, #080313 0%, #120822 58%, #070311 100%);
  color: #fff;
}
.product-view-light {
  background:
    radial-gradient(circle at 85% 15%, rgba(91,53,157,.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
}
.product-view-inner { width: min(1180px, 100%); margin: 0 auto; }
.product-view-header {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, .78fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}
.product-view-title .section-title { margin-bottom: 0; max-width: 650px; }
.product-view-text p { color: rgba(255,255,255,.70); line-height: 1.72; font-size: .98rem; }
.product-view-text.light-text p { color: var(--text-secondary); }
.inline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.inline-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(200,181,255,.28);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-family: var(--font-mono);
  font-size: .7rem;
}
.inline-tags.light-tags span { background: var(--brand-light); border-color: var(--border); color: var(--brand); }

.detection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detection-grid article {
  min-height: 210px;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(200,181,255,.17);
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
}
.card-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(124,58,237,.2);
  color: #d8ccff;
  font-family: var(--font-mono);
  font-size: .66rem;
  margin-bottom: 18px;
}
.detection-grid strong { display: block; font-size: 1.08rem; margin-bottom: 9px; }
.detection-grid p { color: rgba(255,255,255,.65); font-size: .92rem; line-height: 1.65; }

.screenshot-window {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(200,181,255,.14);
  background: #080313;
  box-shadow: 0 28px 54px rgba(5,2,13,.24);
}
.screenshot-window-light { border-color: rgba(91,53,157,.16); box-shadow: 0 24px 46px rgba(13,17,23,.10); }
.browser-bar.compact { padding: 10px 14px; border-radius: 0; border: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.browser-bar.compact span { width: 9px; height: 9px; }
.browser-bar.compact small { font-size: .7rem; }
.light-bar { background: #fff; color: var(--text-muted); border-bottom: 1px solid var(--border-light) !important; }
.light-bar span { background: rgba(91,53,157,.16); }
.screenshot-canvas { background: #242431; padding: 0; }
.light-canvas { background: #242431; }
.screenshot-window-wide img { width: 100%; height: auto; object-fit: contain; }

/* PIPELINE */
.dark-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(124,58,237,.2), transparent 28%),
    linear-gradient(145deg, #080313 0%, #130a24 60%, #080313 100%);
}
.dark-band-inner {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: center;
}
.pipeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pipeline-grid.four-cols { grid-template-columns: repeat(2, 1fr); }
.pipeline-grid article {
  min-height: 185px;
  border-radius: 22px;
  border: 1px solid rgba(200,181,255,.18);
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  padding: 24px;
  color: #fff;
}
.pipeline-grid span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.24);
  color: #e6dcff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 18px;
}
.pipeline-grid strong { display: block; font-size: 1.05rem; margin-bottom: 10px; }
.pipeline-grid p { color: rgba(255,255,255,.68); font-size: .92rem; line-height: 1.65; }

/* MODULES */
.module-section { padding-top: 88px; }
.module-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
}
.module-pill-grid div {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--text-primary);
}

/* SIMPLIFIED VIEW */
.simplified-band {
  background:
    radial-gradient(circle at 90% 20%, rgba(14,201,127,.08), transparent 25%),
    linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.simplified-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, .78fr);
  gap: 54px;
  align-items: center;
}
.simple-verdict-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.simple-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.simple-top span { color: var(--text-muted); font-size: .82rem; }
.simple-top strong { color: #b23543; font-size: 1.05rem; }
.risk-meter {
  height: 9px;
  border-radius: 999px;
  background: #ece8f3;
  margin: 18px 0 20px;
  overflow: hidden;
}
.risk-meter i { display: block; width: 88%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffbd5a, #ff6874); }
.simple-verdict-card ul { list-style: none; display: grid; }
.simple-verdict-card li {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 13px 0;
  border-top: 1px solid var(--border-light);
  font-size: .88rem;
}
.simple-verdict-card li strong { color: var(--text-primary); }
.simple-verdict-card li span { color: var(--text-secondary); text-align: right; }

/* AUDIENCES */
.audience-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.audience-links { display: grid; gap: 12px; }
.audience-links a {
  display: block;
  background: linear-gradient(160deg, #fff, #faf8ff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.audience-links a:hover { transform: translateY(-2px); border-color: rgba(124,58,237,.32); box-shadow: var(--shadow); }
.audience-links span { display: block; color: var(--brand); font-size: .82rem; font-weight: 900; margin-bottom: 4px; }
.audience-links strong { display: block; color: var(--text-secondary); font-size: .95rem; line-height: 1.5; }

/* CONFIDENTIALITY */
.confidentiality-band {
  background:
    radial-gradient(circle at 88% 18%, rgba(14,201,127,.14), transparent 24%),
    linear-gradient(140deg, #0b0615 0%, #130b24 58%, #070311 100%);
}
.confidentiality-inner { display: grid; grid-template-columns: 86px 1fr; gap: 28px; align-items: start; }
.conf-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
}

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(280px, .55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-grid { display: grid; gap: 12px; }
.faq-grid article {
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(13,17,23,.05);
}
.faq-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-grid p { color: var(--text-secondary); line-height: 1.65; font-size: .92rem; }

/* CTA + FOOTER */
.cta-band {
  padding: 96px 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(239,231,255,.56));
}
.cta-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-radius: 28px;
  padding: 54px 40px;
  background: linear-gradient(155deg, #fff, #faf8ff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.center-actions { justify-content: center; }

footer {
  background: var(--dark);
  color: rgba(255,255,255,.42);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { color: #fff; font-weight: 900; font-size: 1.08rem; }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-size: .84rem; }
.footer-links a:hover { color: #fff; }
footer span { font-size: .8rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; }
.d1 { animation-delay: .06s; }
.d2 { animation-delay: .18s; }

@media (max-width: 1100px) {
  .feature-slab,
  .feature-slab.reverse,
  .dark-band-inner,
  .audience-section,
  .simplified-inner,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .feature-slab.reverse .feature-copy,
  .feature-slab.reverse .feature-visual { order: initial; }

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

@media (max-width: 980px) {
  .pdf-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding: 78px 20px 64px;
  }

  .section { padding: 72px 20px; }
  .hero-copy h1 { max-width: 12ch; }
  .hero-visual { justify-self: stretch; max-width: 100%; }
  .hero-points { grid-template-columns: 1fr; }
  .confidentiality-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 72px 20px; }
  .product-view { padding: 72px 20px; }
  .product-view-header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
  .detection-grid { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .module-pill-grid,
  .pipeline-grid,
  .pipeline-grid.four-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .btn-xl { width: 100%; }
  .cta-box { padding: 40px 22px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .product-view { padding: 58px 20px; }
  .screenshot-window { border-radius: 16px; }
  .browser-bar.compact small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .signal-grid { grid-template-columns: 1fr; }
  .console-head, .score-row, .simple-top { align-items: flex-start; }
  .simple-verdict-card li { flex-direction: column; gap: 3px; }
  .simple-verdict-card li span { text-align: left; }
  .code-lines div { grid-template-columns: 1fr; gap: 5px; }
}

/* PDF SAFE PREVIEW */
.pdf-preview-card {
  max-width: 680px;
  width: 100%;
  justify-self: end;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(91,53,157,.18);
  background: linear-gradient(160deg, #0c0716, #080313);
  box-shadow: 0 34px 68px rgba(12,7,24,.18);
}

.preview-head,
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  color: rgba(255,255,255,.72);
}

.preview-head {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.preview-head span,
.preview-foot span {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .08em;
  color: #bba8ff;
}

.preview-head strong,
.preview-foot strong {
  font-size: .78rem;
  font-weight: 600;
}

.preview-stage {
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 20%, rgba(124,58,237,.18), transparent 32%),
    #17121f;
}

.paper-preview {
  width: min(310px, 78%);
  aspect-ratio: .707 / 1;
  padding: 30px 26px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(0,0,0,.34);
}

.paper-logo {
  width: 68px;
  height: 18px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-mid));
}

.paper-line {
  height: 7px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #ded9e8;
}
.paper-line.large { width: 88%; height: 12px; background: #b8afc7; }
.paper-line.medium { width: 68%; }
.paper-line.short { width: 42%; }
.paper-spacer { height: 22px; }
.paper-box {
  height: 78px;
  margin: 25px 0;
  border-radius: 8px;
  border: 1px solid #ddd5eb;
  background: linear-gradient(135deg, #f5f1fb, #faf8ff);
}

.preview-foot {
  align-items: flex-start;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
}
.preview-foot strong { max-width: 280px; text-align: right; line-height: 1.45; color: rgba(255,255,255,.62); }

@media (max-width: 980px) {
  .pdf-preview-card { justify-self: stretch; max-width: 100%; }
}

@media (max-width: 700px) {
  .preview-head,
  .preview-foot { flex-direction: column; align-items: flex-start; }
  .preview-foot strong { text-align: left; }
  .preview-stage { min-height: 330px; padding: 24px; }
  .paper-preview { width: min(280px, 88%); }
}
