: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;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #67b7ff;
  --blue-dark: #a7d5ff;
  --purple: #b99cff;
  --cyan: #55e3ff;
  --blue-light: rgba(84, 158, 255, 0.16);
  --ink: #edf6ff;
  --muted: #aab8cf;
  --line: rgba(165, 190, 230, 0.14);
  --soft: rgba(3, 10, 24, 0.9);
  --white: #07111f;
  --surface: rgba(7, 15, 30, 0.88);
  --surface-solid: #07111f;
  --surface-soft: rgba(9, 20, 38, 0.9);
  --input-bg: rgba(3, 9, 20, 0.94);
  --green: #5ee0a9;
  --amber: #ffc46b;
  --red: #ff7a8a;
  --accent-gradient: linear-gradient(135deg, #55e3ff 0%, #8a7dff 52%, #d38cff 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(85, 227, 255, 0.14), rgba(179, 140, 255, 0.14));
  --card-border-gradient: linear-gradient(145deg, rgba(85, 227, 255, 0.34), rgba(138, 125, 255, 0.2), rgba(211, 140, 255, 0.24));
  --page-bg: #02040b;
  --page-gradient: linear-gradient(145deg, #02030a 0%, #031026 48%, #08051a 100%);
  --ambient-glow: linear-gradient(115deg, rgba(85, 227, 255, 0.16), transparent 34%),
    linear-gradient(290deg, rgba(179, 140, 255, 0.16), transparent 42%),
    linear-gradient(12deg, rgba(23, 105, 224, 0.2), transparent 38%);
  --header-bg: rgba(2, 6, 16, 0.84);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 34px rgba(85, 227, 255, 0.1);
  --shadow-3d: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 76px rgba(0, 0, 0, 0.42), 0 6px 22px rgba(85, 227, 255, 0.07);
  --status-high-bg: rgba(119, 27, 42, 0.22);
  --status-high-border: rgba(255, 122, 138, 0.38);
  --status-high-text: #ffd7dc;
  --status-fix-bg: rgba(151, 91, 0, 0.22);
  --status-fix-border: rgba(255, 196, 107, 0.36);
  --status-fix-text: #ffe3b8;
  --status-upload-bg: rgba(24, 132, 91, 0.18);
  --status-upload-border: rgba(94, 224, 169, 0.34);
  --status-upload-text: #c6ffe8;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, 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,
.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);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(15, 31, 64, 0.05);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  letter-spacing: 0;
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--blue);
}

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

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 31, 64, 0.06);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: rgba(23, 105, 224, 0.32);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
}

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

.hero {
  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;
}

.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: 5.65rem;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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: 8px;
  background: var(--accent-gradient-soft);
  box-shadow: 0 10px 24px rgba(15, 31, 64, 0.06), 0 0 18px rgba(85, 227, 255, 0.06);
  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: 8px;
  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: 8px;
  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 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: 0 18px 36px rgba(23, 105, 224, 0.24), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.button.primary:hover {
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(124, 58, 237, 0.26), 0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

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

.button.secondary:hover {
  border-color: rgba(124, 58, 237, 0.32);
}

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

.hero-panel,
.card {
  border: 1px solid transparent;
  border-radius: 8px;
  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 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.hero-panel:hover,
.card:hover,
.mini-card:hover,
.report-section:hover,
.quick-summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 32px 84px rgba(0, 0, 0, 0.18), 0 8px 28px rgba(85, 227, 255, 0.08);
}

.mini-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  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(23, 105, 224, 0.08);
}

.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: 8px;
  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);
}

.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: 20px;
}

.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: 8px;
  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(23, 105, 224, 0.2);
  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: 8px;
  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: 8px;
  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;
}

.choice-row label:hover {
  border-color: rgba(23, 105, 224, 0.32);
  transform: translateY(-1px);
}

.choice-row label:has(input:checked) {
  border-color: rgba(124, 58, 237, 0.55);
  background: var(--accent-gradient-soft);
}

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

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

.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: 8px;
  color: #ffffff;
  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: 8px;
  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;
}

.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: 8px;
  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 li + li {
  margin-top: 7px;
}

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

.status-message {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  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: 8px;
  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;
}

.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(85, 227, 255, 0.14);
  border-radius: 8px;
  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: 8px;
  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, #5ee0a9, #55e3ff);
}

.risk-level-medium .risk-meter-fill {
  background: linear-gradient(135deg, #ffc46b, #60a5fa);
}

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

.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-button {
  border: 1px solid rgba(23, 105, 224, 0.24);
  border-radius: 8px;
  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;
}

.copy-button:hover {
  border-color: rgba(124, 58, 237, 0.42);
  transform: translateY(-1px);
}

.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: 520px;
  color: var(--ink);
  background: var(--input-bg);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

.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: 8px;
  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(23, 105, 224, 0.24);
  border-radius: 8px;
  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(124, 58, 237, 0.42);
  box-shadow: 0 14px 30px rgba(85, 227, 255, 0.1);
  transform: translateY(-2px);
}

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

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

.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(85, 227, 255, 0.18);
  border-radius: 8px;
  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;
}

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

#terms {
  min-height: calc(100vh - 84px);
}

.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: 32px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

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

@keyframes sectionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 227, 255, 0), 0 0 0 0 rgba(138, 125, 255, 0);
  }

  18% {
    box-shadow: 0 0 0 1px rgba(85, 227, 255, 0.62), 0 0 42px rgba(138, 125, 255, 0.28), 0 0 74px rgba(85, 227, 255, 0.16);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(85, 227, 255, 0), 0 0 0 0 rgba(138, 125, 255, 0);
  }
}

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

  .button,
  .card,
  .hero-panel,
  .mini-card,
  .report-section,
  .quick-summary,
  .choice-row label {
    transition: none;
  }

  .section-highlight {
    animation: none;
    box-shadow: 0 0 0 2px rgba(85, 227, 255, 0.42);
  }
}

@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;
  }

  .nav-links {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    order: 3;
  }

  .nav-links.open {
    display: grid;
  }

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

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

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 4.45rem;
  }

  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,
  .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 {
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

  .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%;
  }

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

  .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%;
  }

  .copy-section textarea {
    min-height: 320px;
  }

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

@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: 52px;
    padding-bottom: 52px;
  }

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

  h1 {
    font-size: 3.25rem;
    line-height: 1;
  }

  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;
  }

  .theme-toggle,
  .nav-toggle {
    padding: 8px 10px;
  }

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

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

  .button {
    width: 100%;
  }

  .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: 42px;
    padding-bottom: 42px;
  }

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

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

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.76rem;
  }

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

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .hero {
    padding-top: 38px;
  }

  .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;
  }

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

  .trust-badges {
    gap: 8px;
  }

  .trust-badges span {
    width: 100%;
  }
}
