:root {
  color-scheme: light;
  --blue: #1769e0;
  --blue-dark: #0e3d8f;
  --purple: #7c3aed;
  --cyan: #08a8c7;
  --blue-light: #eaf2ff;
  --ink: #0d1b35;
  --muted: #5a6680;
  --line: rgba(37, 82, 150, 0.16);
  --soft: rgba(246, 249, 255, 0.86);
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-soft: rgba(247, 250, 255, 0.9);
  --input-bg: rgba(255, 255, 255, 0.94);
  --green: #17845b;
  --amber: #b56800;
  --red: #c83232;
  --accent-gradient: linear-gradient(135deg, #1769e0 0%, #7c3aed 58%, #08a8c7 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(23, 105, 224, 0.14), rgba(124, 58, 237, 0.12));
  --card-border-gradient: linear-gradient(145deg, rgba(23, 105, 224, 0.34), rgba(124, 58, 237, 0.2), rgba(8, 168, 199, 0.24));
  --page-bg: #f5f9ff;
  --page-gradient: linear-gradient(145deg, #f9fcff 0%, #eef6ff 45%, #f7f2ff 100%);
  --ambient-glow: linear-gradient(115deg, rgba(23, 105, 224, 0.16), transparent 34%),
    linear-gradient(290deg, rgba(124, 58, 237, 0.12), transparent 42%),
    linear-gradient(12deg, rgba(8, 168, 199, 0.12), transparent 38%);
  --header-bg: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 70px rgba(15, 31, 64, 0.12);
  --shadow-soft: 0 12px 30px rgba(23, 105, 224, 0.12);
  --shadow-3d: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 18px 46px rgba(15, 31, 64, 0.12), 0 4px 16px rgba(23, 105, 224, 0.08);
  --status-high-bg: #fff1f1;
  --status-high-border: #ffc4c4;
  --status-high-text: #7d1515;
  --status-fix-bg: #fff5e7;
  --status-fix-border: #ffd69a;
  --status-fix-text: #754300;
  --status-upload-bg: #eefaf4;
  --status-upload-border: #bde8d2;
  --status-upload-text: #0f5c40;
  --radius-card: 20px;
  --radius-panel: 18px;
  --radius-control: 14px;
  --radius-small: 12px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #38BDF8;
  --blue-dark: #60A5FA;
  --purple: #A78BFA;
  --cyan: #38BDF8;
  --blue-light: rgba(56, 189, 248, 0.16);
  --ink: #F6F9FF;
  --muted: #D6E0EE;
  --muted-soft: #9FB0C8;
  --line: #263852;
  --soft: rgba(10, 22, 40, 0.82);
  --white: #07111F;
  --surface: #0E1A2B;
  --surface-solid: #0E1A2B;
  --surface-soft: #132238;
  --input-bg: rgba(7, 17, 31, 0.86);
  --green: #34D399;
  --amber: #FBBF24;
  --red: #FB7185;
  --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #60A5FA 46%, #A78BFA 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(167, 139, 250, 0.14));
  --card-border-gradient: linear-gradient(145deg, rgba(56, 189, 248, 0.36), rgba(38, 56, 82, 0.86), rgba(167, 139, 250, 0.34));
  --page-bg: #07111F;
  --page-gradient: linear-gradient(145deg, #07111F 0%, #0A1628 52%, #090D1D 100%);
  --ambient-glow: radial-gradient(circle at 16% 12%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(167, 139, 250, 0.15), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(56, 189, 248, 0.1), transparent 34%);
  --header-bg: rgba(7, 17, 31, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 14px 36px rgba(56, 189, 248, 0.14);
  --shadow-3d: 0 1px 0 rgba(246, 249, 255, 0.07) inset, 0 30px 78px rgba(0, 0, 0, 0.44), 0 8px 26px rgba(56, 189, 248, 0.1);
  --status-high-bg: rgba(251, 113, 133, 0.16);
  --status-high-border: rgba(251, 113, 133, 0.38);
  --status-high-text: #FFD8DF;
  --status-fix-bg: rgba(251, 191, 36, 0.14);
  --status-fix-border: rgba(251, 191, 36, 0.38);
  --status-fix-text: #FFE7A3;
  --status-upload-bg: rgba(52, 211, 153, 0.14);
  --status-upload-border: rgba(52, 211, 153, 0.34);
  --status-upload-text: #B9F8DF;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: auto;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--muted);
  background: var(--page-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0;
  overflow-x: clip;
  transition: background 220ms ease, color 220ms ease;
}

main,
section,
form,
aside,
.card,
.hero-panel,
.mini-card,
.scanner-panel,
.scanner-screen,
.how-it-works,
.how-step,
.sample-output-card,
.report-section,
.quick-summary,
.risk-row,
.blog-article {
  max-width: 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: var(--page-gradient);
}

body::after {
  z-index: -1;
  background: var(--ambient-glow);
}

main {
  position: relative;
  isolation: isolate;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

a:focus {
  outline: none;
}

button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.72);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease;
}

.brand-mark::before {
  content: none;
}

.brand-mark::after {
  content: none;
}

.brand-mark svg {
  width: 35px;
  height: 35px;
  display: block;
  position: relative;
  z-index: 1;
  filter: none;
}

.brand-mark .logo-cu {
  fill: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.3px;
}

.brand-mark .logo-tick {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: none;
  box-shadow: none;
}

.primary-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.93rem;
}

.primary-nav-links a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  padding: 8px 11px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-nav-links a:hover,
.primary-nav-links a:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--accent-gradient-soft);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18), 0 10px 24px rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.primary-nav-links a:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.58);
  outline-offset: 2px;
}

.nav-links {
  display: grid;
  gap: 8px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(280px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-links.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.nav-links a {
  justify-content: flex-start;
  border-radius: var(--radius-control);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  width: 44px;
  min-height: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.14), 0 1px 0 rgba(246, 249, 255, 0.05) inset;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.theme-toggle {
  border-radius: 999px;
}

.theme-toggle svg,
.nav-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .theme-icon circle {
  fill: none;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: var(--accent-gradient-soft);
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.14), 0 1px 0 rgba(246, 249, 255, 0.08) inset;
  transform: translateY(-1px);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(167, 139, 250, 0.42);
  background: var(--accent-gradient-soft);
  box-shadow: 0 16px 32px rgba(167, 139, 250, 0.14), 0 1px 0 rgba(246, 249, 255, 0.08) inset;
}

.nav-toggle {
  display: inline-grid;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  scroll-margin-top: 84px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 42px;
  padding-top: 44px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(520px, 76vw);
  height: min(520px, 76vw);
  top: 8%;
  right: -10%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(167, 139, 250, 0.1) 44%, transparent 72%);
  filter: blur(10px);
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(460px, 70vw);
  height: min(460px, 70vw);
  left: -16%;
  top: 26%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), rgba(56, 189, 248, 0.06) 38%, transparent 72%);
  filter: blur(12px);
  opacity: 0.9;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  background: linear-gradient(135deg, #F6F9FF 0%, #7DD3FC 46%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] h1 {
  background: linear-gradient(135deg, #0D1B35 0%, #1769E0 48%, #6D28D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--accent-gradient-soft);
  box-shadow: 0 10px 24px rgba(15, 31, 64, 0.06), 0 0 18px rgba(56, 189, 248, 0.08);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.68;
  letter-spacing: 0;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-badges span {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(15, 31, 64, 0.06);
  padding: 8px 11px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 31, 64, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease, border-color 240ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 31, 64, 0.14), 0 0 28px rgba(56, 189, 248, 0.08);
}

.button.primary {
  color: #07111F;
  background: var(--accent-gradient);
  box-shadow: 0 18px 38px rgba(56, 189, 248, 0.24), 0 1px 0 rgba(246, 249, 255, 0.28) inset;
}

.button.primary:hover {
  color: #07111F;
  box-shadow: 0 24px 54px rgba(167, 139, 250, 0.24), 0 1px 0 rgba(246, 249, 255, 0.3) inset;
}

.hero-cta {
  animation: heroCtaPulse 3.6s ease-in-out infinite;
  will-change: box-shadow;
}

@keyframes heroCtaPulse {
  0%,
  100% {
    box-shadow: 0 18px 38px rgba(56, 189, 248, 0.24), 0 1px 0 rgba(246, 249, 255, 0.28) inset;
  }

  50% {
    box-shadow: 0 22px 48px rgba(56, 189, 248, 0.34), 0 0 24px rgba(167, 139, 250, 0.18), 0 1px 0 rgba(246, 249, 255, 0.3) inset;
  }
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: rgba(167, 139, 250, 0.34);
  background: var(--accent-gradient-soft);
}

.button.full-width {
  width: 100%;
}

.hero-panel,
.card {
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.scanner-panel {
  position: relative;
  overflow: hidden;
  gap: 18px;
  padding: 22px;
  isolation: isolate;
}

.scanner-panel::before,
.scanner-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.scanner-panel::before {
  width: 190px;
  height: 190px;
  top: -70px;
  right: -62px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
  z-index: -1;
}

.scanner-panel::after {
  width: 170px;
  height: 170px;
  left: -64px;
  bottom: -76px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 68%);
  z-index: -1;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scanner-header strong {
  display: block;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.2;
}

.scanner-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-soft, var(--muted));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scanner-pulse {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08), 0 0 18px rgba(52, 211, 153, 0.22);
}

.scanner-screen {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(167, 139, 250, 0.04)), var(--surface-solid);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(243, 247, 255, 0.05), 0 18px 46px rgba(0, 0, 0, 0.14);
}

.scan-line {
  position: absolute;
  top: -38%;
  right: 12px;
  left: 12px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.055), transparent);
  opacity: 0.07;
}

.scanner-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.scanner-row span {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.25;
}

.scanner-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--accent-gradient-soft);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1;
  text-align: center;
}

.hero-panel:hover,
.card:hover {
  box-shadow: 0 1px 0 rgba(246, 249, 255, 0.08) inset, 0 32px 80px rgba(0, 0, 0, 0.22), 0 8px 26px rgba(56, 189, 248, 0.08);
}

.mini-card:hover,
.blog-card:hover,
.how-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(246, 249, 255, 0.08) inset, 0 22px 48px rgba(0, 0, 0, 0.2), 0 8px 22px rgba(56, 189, 248, 0.08);
}

.mini-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 14px 32px rgba(15, 31, 64, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mini-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.status-dot.low {
  background: var(--green);
}

.status-dot.medium {
  background: var(--amber);
}

.status-dot.high {
  background: var(--red);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  letter-spacing: 0;
}

.tool-trust-note {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--accent-gradient-soft);
  box-shadow: 0 10px 24px rgba(15, 31, 64, 0.06);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.tool-section {
  width: 100%;
  max-width: none;
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--soft));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sample-output-card {
  display: grid;
  gap: 16px;
  margin: -4px 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box,
    var(--card-border-gradient) border-box;
  box-shadow: var(--shadow-3d);
  padding: 22px;
}

.sample-output-card h3,
.sample-output-card p {
  margin: 0;
}

.sample-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-output-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), rgba(167, 139, 250, 0.04)), var(--surface);
  padding: 13px;
}

.sample-output-grid span {
  color: var(--muted-soft, var(--muted));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.sample-output-grid p {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.5;
}

.sample-output-card .button {
  justify-self: start;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -4px 0 24px;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 14px 34px rgba(15, 31, 64, 0.08);
  padding: 14px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.how-step:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-3d);
}

.how-step span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--accent-gradient-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.how-step strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.3;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.card {
  padding: 24px;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.upload-type-panels {
  display: grid;
  gap: 16px;
}

.upload-type-panel[hidden] {
  display: none;
}

.form-progress {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(167, 139, 250, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-progress span,
.step-label {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-progress strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.form-section,
.nested-risk-check {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: 0 14px 34px rgba(3, 10, 24, 0.1);
  overflow: clip;
}

.form-section summary,
.nested-risk-check summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 17px 18px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.form-section summary::-webkit-details-marker,
.nested-risk-check summary::-webkit-details-marker {
  display: none;
}

.form-section summary::after,
.nested-risk-check summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 3;
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--input-bg);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.form-section[open] > summary::after,
.nested-risk-check[open] > summary::after {
  content: "-";
  border-color: rgba(56, 189, 248, 0.42);
  background: var(--accent-gradient-soft);
}

.form-section summary strong,
.nested-risk-check summary {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.form-section summary small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-section-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.form-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.nested-risk-check {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.nested-risk-check summary {
  font-size: 0.98rem;
}

.field {
  display: grid;
  gap: 8px;
}

label,
legend,
.question span {
  color: var(--ink);
  font-weight: 900;
  font-size: 0.96rem;
  line-height: 1.35;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.45;
  padding: 12px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.76;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(56, 189, 248, 0.22);
  border-color: var(--blue);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.question-grid .question:last-child:nth-child(even) {
  grid-column: 1 / -1;
}

.question {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 12px 28px rgba(15, 31, 64, 0.07);
  min-width: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 31, 64, 0.06);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.choice-row label:hover {
  border-color: rgba(56, 189, 248, 0.34);
  transform: translateY(-1px);
}

.choice-row label:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.68);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.18));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 12px 26px rgba(56, 189, 248, 0.12);
  color: var(--ink);
}

.choice-row input {
  width: auto;
  accent-color: var(--blue);
}

.three-choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-submit-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  box-shadow: 0 18px 36px rgba(3, 10, 24, 0.16);
  backdrop-filter: blur(18px);
}

.form-message {
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius-small);
  background: rgba(251, 191, 36, 0.1);
  color: var(--ink);
}

.form-submit-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.report-card {
  position: sticky;
  top: 96px;
}

.empty-state {
  min-height: 450px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  color: #F6F9FF;
  background: var(--accent-gradient);
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.empty-state p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

.report {
  display: grid;
  gap: 20px;
}

.report.hidden {
  display: none;
}

.quick-summary {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rescue-plan {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.06)) padding-box, var(--card-border-gradient) border-box;
}

.rescue-plan .section-title-row {
  align-items: flex-start;
  margin-bottom: 0;
}

.rescue-plan .section-title-row .eyebrow {
  margin-bottom: 6px;
}

.rescue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: 12px;
}

.rescue-block {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: 0 12px 28px rgba(15, 31, 64, 0.08);
  padding: 14px;
}

.rescue-block span {
  color: var(--muted-soft, var(--muted));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.rescue-block p,
.rescue-block ul {
  margin: 0;
}

.rescue-block p,
.rescue-block li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.rescue-block ul {
  padding-left: 20px;
}

.rescue-block li + li {
  margin-top: 7px;
}

.rescue-primary p {
  color: var(--ink);
  font-weight: 800;
}

.rescue-decision {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 7px 11px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.decision-ready {
  color: var(--status-upload-text);
  border-color: var(--status-upload-border);
  background: var(--status-upload-bg);
}

.decision-fix {
  color: var(--status-fix-text);
  border-color: var(--status-fix-border);
  background: var(--status-fix-bg);
}

.decision-avoid {
  color: var(--status-high-text);
  border-color: var(--status-high-border);
  background: var(--status-high-bg);
}

.copy-source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.summary-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.18;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-stat,
.summary-detail {
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-solid), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 12px 28px rgba(15, 31, 64, 0.07);
}

.summary-stat {
  display: grid;
  gap: 7px;
}

.summary-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-stat strong {
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.summary-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.summary-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.summary-detail li + li {
  margin-top: 7px;
}

.summary-actions {
  display: flex;
  justify-content: flex-end;
}

.report-hidden-values {
  display: none;
}

.risk-badge,
.summary-stat .risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: var(--radius-small);
  padding: 7px 12px;
  color: #07111F;
  background: var(--amber);
  font-weight: 900;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.status-message {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(15, 31, 64, 0.08);
}

.status-high {
  color: var(--status-high-text);
  background: var(--status-high-bg);
  border-color: var(--status-high-border);
}

.status-fix {
  color: var(--status-fix-text);
  background: var(--status-fix-bg);
  border-color: var(--status-fix-border);
}

.status-upload {
  color: var(--status-upload-text);
  background: var(--status-upload-bg);
  border-color: var(--status-upload-border);
}

.risk-low {
  color: var(--green);
}

.risk-medium {
  color: var(--amber);
}

.risk-high {
  color: var(--red);
}

.badge-upload,
.final-upload strong {
  background: var(--green);
}

.badge-fix,
.final-fix strong {
  background: var(--amber);
}

.badge-high,
.final-high strong {
  background: var(--red);
}

.report-section {
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 16px 38px rgba(15, 31, 64, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.report-section h4 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.report-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.report-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

.report-section li + li {
  margin-top: 8px;
}

.report-details {
  display: grid;
  gap: 12px;
}

.report-accordion {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.report-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.report-accordion summary::-webkit-details-marker {
  display: none;
}

.report-accordion summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--accent-gradient-soft);
  font-size: 1rem;
  font-weight: 900;
}

.report-accordion[open] summary {
  border-bottom: 1px solid var(--line);
}

.report-accordion[open] summary::after {
  content: "-";
}

.report-accordion > ul,
.report-accordion > textarea,
.report-accordion > .section-title-row,
.report-accordion > .risk-breakdown,
.report-accordion > .report-details {
  margin: 16px 18px 18px;
}

.report-accordion > textarea {
  width: calc(100% - 36px);
}

.report-accordion > .section-title-row {
  margin-bottom: 10px;
}

.risk-breakdown {
  display: grid;
  gap: 16px;
}

.risk-breakdown h4,
.risk-breakdown p {
  margin: 0;
}

.risk-breakdown-list {
  display: grid;
  gap: 14px;
}

.risk-row {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: 0 12px 28px rgba(15, 31, 64, 0.08);
  min-width: 0;
}

.risk-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.risk-category {
  color: var(--ink);
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.risk-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 5px 9px;
  color: var(--ink);
  background: var(--input-bg);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.risk-meter {
  height: 12px;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(125, 155, 205, 0.16);
}

.risk-meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
  transition: width 420ms ease;
}

.risk-level-low .risk-meter-fill {
  background: linear-gradient(135deg, #34D399, #38BDF8);
}

.risk-level-medium .risk-meter-fill {
  background: linear-gradient(135deg, #FBBF24, #38BDF8);
}

.risk-level-high .risk-meter-fill {
  background: linear-gradient(135deg, #FB7185, #A78BFA);
}

.risk-score.risk-level-low {
  color: var(--status-upload-text);
  border-color: var(--status-upload-border);
  background: var(--status-upload-bg);
}

.risk-score.risk-level-medium {
  color: var(--status-fix-text);
  border-color: var(--status-fix-border);
  background: var(--status-fix-bg);
}

.risk-score.risk-level-high {
  color: var(--status-high-text);
  border-color: var(--status-high-border);
  background: var(--status-high-bg);
}

.risk-breakdown-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-title-row h4 {
  margin: 0;
}

.copy-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-button {
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius-control);
  background: var(--accent-gradient-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 44px;
  padding: 7px 10px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.copy-button:hover {
  border-color: rgba(167, 139, 250, 0.44);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.1);
}

.copy-button.copied {
  color: var(--green);
  border-color: rgba(23, 132, 91, 0.34);
  background: rgba(23, 132, 91, 0.12);
}

.copy-section textarea {
  min-height: 0;
  height: auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--input-bg);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
}

#checklist-output,
#fix-checklist-output {
  min-height: 0;
}

.summary-copy-section #checklist-output {
  min-height: 0;
}

#description-output {
  min-height: 150px;
}

#checklist-output {
  min-height: 160px;
}

#fix-checklist-output {
  min-height: 120px;
}

.output-box {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
}

.advanced-report-details {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.055), rgba(167, 139, 250, 0.035)) padding-box, var(--card-border-gradient) border-box;
}

.advanced-report-details > .report-details {
  display: grid;
  gap: 10px;
}

.advanced-report-details .report-section {
  box-shadow: none;
}

.disclaimer-box {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
}

.disclaimer-box p {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.96rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.blog-disclaimer {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
  box-shadow: 0 16px 38px rgba(15, 31, 64, 0.08);
}

.blog-disclaimer p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.62;
}

.blog-card-grid {
  margin-bottom: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card h3,
.blog-card p {
  margin: 0;
}

.read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius-control);
  background: var(--accent-gradient-soft);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.read-link:hover {
  color: var(--ink);
  border-color: rgba(167, 139, 250, 0.44);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.article-list {
  display: grid;
  gap: 22px;
}

.blog-article {
  display: none;
  scroll-margin-top: 84px;
}

.blog-article.active,
.blog-article:target {
  display: block;
}

.blog-article h3 {
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.blog-article h4 {
  margin-top: 24px;
}

.blog-article p,
.blog-article li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.blog-article ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.blog-article li + li {
  margin-top: 6px;
}

.example-box {
  margin: 10px 0 18px;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-panel);
  background: var(--accent-gradient-soft);
}

.example-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 30px;
}

.policy-section {
  padding-top: 28px;
  padding-bottom: 22px;
}

#terms {
  min-height: auto;
}

.highlight-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) padding-box, var(--card-border-gradient) border-box;
}

.required-disclaimer {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.62;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 850;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.section-highlight {
  box-sizing: border-box;
  outline: 0;
  animation: sectionPulse 700ms ease-out;
}

@keyframes sectionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0), 0 0 0 0 rgba(167, 139, 250, 0);
  }

  18% {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.26), 0 0 22px rgba(167, 139, 250, 0.12);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0), 0 0 0 0 rgba(167, 139, 250, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .card,
  .hero-panel,
  .mini-card,
  .scanner-panel,
  .scanner-row,
  .scan-line,
  .how-step,
  .report-section,
  .quick-summary,
  .choice-row label {
    animation: none;
    transition: none;
  }

  .section-highlight {
    animation: none;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.24);
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 88px;
  }

  .section {
    scroll-margin-top: 88px;
  }

  .blog-article {
    scroll-margin-top: 88px;
  }

  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav-links {
    display: none;
  }

  .nav-links {
    display: grid;
    width: min(320px, calc(100vw - 28px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    top: calc(100% + 8px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-links a {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-soft);
  }

  .hero,
  .tool-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-text {
    font-size: 1.15rem;
  }

  .report-card {
    position: static;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .tool-layout,
  .split-section,
  .card-grid,
  .how-it-works,
  .sample-output-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .tool-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .upload-form,
  .report-card,
  .blog-card,
  .blog-article,
  .policy-section .card,
  .split-section .card {
    width: 100%;
  }

  .report-card {
    position: static;
    top: auto;
  }

  .hero {
    gap: 28px;
  }

  .hero-panel,
  .card,
  .quick-summary,
  .report-section {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-wrap: nowrap;
    min-height: auto;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-links a,
  .theme-toggle,
  .nav-toggle,
  .button,
  .copy-button,
  .choice-row label {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    max-width: 100%;
  }

  .form-section summary,
  .nested-risk-check summary {
    padding: 15px;
  }

  .form-section-body {
    padding: 0 15px 15px;
  }

  .choice-row,
  .three-choice-row,
  .question-grid,
  .sample-output-grid,
  .rescue-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .rescue-plan .section-title-row {
    gap: 12px;
  }

  .rescue-plan .copy-button {
    width: 100%;
  }

  .question-grid .question:last-child:nth-child(even) {
    grid-column: auto;
  }

  .question {
    min-height: auto;
  }

  .section-title-row,
  .risk-row-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .risk-score {
    justify-content: flex-start;
    width: 100%;
  }

  #description-output,
  #checklist-output,
  #fix-checklist-output {
    min-height: 120px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 92px;
  }

  .section {
    scroll-margin-top: 92px;
  }

  .blog-article {
    scroll-margin-top: 92px;
  }

  .section,
  .tool-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .policy-section,
  .split-section {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .brand span:last-child {
    max-width: 180px;
  }

  h1 {
    line-height: 1;
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: 2.12rem;
    line-height: 1.1;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-text,
  .section-heading p:not(.eyebrow) {
    font-size: 1.02rem;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-panel.scanner-panel {
    display: none;
  }

  .how-it-works {
    gap: 10px;
  }

  .how-step {
    min-height: auto;
    padding: 12px;
  }

  .theme-toggle,
  .nav-toggle {
    padding: 0;
  }

  .hero-actions,
  .site-footer {
    gap: 12px;
    padding: 18px 0 24px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 6px 12px;
  }

  .footer-links a {
    min-height: 32px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .quick-summary {
    gap: 12px;
  }

  .summary-detail,
  .summary-stat,
  .report-section {
    padding: 13px;
  }

  .form-section summary,
  .nested-risk-check summary {
    gap: 5px 10px;
  }

  .question-grid {
    grid-template-columns: 1fr;
  }

  .three-choice-row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .risk-row-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .risk-score {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 96px;
  }

  .section,
  .blog-article {
    scroll-margin-top: 96px;
  }

  .nav,
  .section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .section,
  .tool-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .policy-section,
  .split-section {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .tool-section {
    padding-right: 10px;
    padding-left: 10px;
  }

  .form-progress,
  .form-submit-bar {
    padding: 12px;
  }

  .form-section summary,
  .nested-risk-check summary {
    padding: 14px;
  }

  .form-section-body {
    padding: 0 14px 14px;
  }


  .nav {
    gap: 10px;
    padding: 10px 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 0;
  }

  .brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .brand span:last-child {
    max-width: min(46vw, 150px);
  }

  h2 {
    font-size: 1.86rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .hero-subtitle-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    text-align: center;
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .card p,
  .blog-article p,
  .blog-article li {
    font-size: 0.98rem;
  }

  .card,
  .hero-panel,
  .quick-summary,
  .report-section,
  .blog-disclaimer,
  .blog-article,
  .risk-row,
  .question {
    padding: 15px;
  }

  .empty-state {
    min-height: 240px;
  }

  .report-card {
    padding: 14px;
  }

  .tool-layout,
  .upload-form,
  .article-list,
  .report,
  .risk-breakdown-list {
    gap: 16px;
  }

  .trust-badges {
    gap: 8px;
  }

  .trust-badges span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    width: auto;
  }

  .scanner-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .scanner-row strong {
    width: 100%;
  }
}
