:root {
  color-scheme: dark;
  --bg: #05050a;
  --bg-raised: #0b0b16;
  --panel: rgba(20, 20, 30, 0.4);
  --panel-strong: rgba(24, 24, 38, 0.72);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.36);
  --text: #f7fbff;
  --muted: #aab7c8;
  --muted-2: #78879a;
  --blue: #2575fc;
  --blue-soft: rgba(37, 117, 252, 0.16);
  --red: #ff4c5c;
  --yellow: #ffc21c;
  --green: #4fd34f;
  --purple: #6a11cb;
  --cyan: #15d0c5;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 50%, rgba(106, 17, 203, 0.24), transparent 44%),
    radial-gradient(circle at 85% 30%, rgba(37, 117, 252, 0.2), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(21, 208, 197, 0.13), transparent 46%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-shell {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 590px);
  gap: 84px;
  align-items: center;
  min-height: 640px;
  padding: 38px 0 28px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 7px 17px;
  border: 1px solid rgba(17, 118, 255, 0.36);
  border-radius: 999px;
  background: rgba(17, 118, 255, 0.12);
  color: #69adff;
  font-weight: 700;
  font-size: 15px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(42px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ffffff 0%, #aab7c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 40px;
  color: #d3d9e3;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button-svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-svg path {
  fill: none;
  stroke: currentColor;
}

.button-primary {
  border-color: rgba(106, 17, 203, 0.45);
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  box-shadow: 0 14px 34px rgba(37, 117, 252, 0.32), 0 4px 16px rgba(106, 17, 203, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 46px rgba(37, 117, 252, 0.48), 0 6px 22px rgba(106, 17, 203, 0.42);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-secondary:hover {
  border-color: rgba(148, 163, 184, 0.58);
  background: rgba(32, 32, 48, 0.62);
}

.button-compact {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(17, 118, 255, 0.5);
  background: rgba(17, 118, 255, 0.12);
  color: #69adff;
  font-size: 14px;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 14px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-inset), 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.url-bar:focus-within {
  border-color: rgba(37, 117, 252, 0.7);
  box-shadow: var(--glass-inset), 0 0 0 4px rgba(37, 117, 252, 0.18), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.url-bar.invalid {
  border-color: rgba(255, 76, 92, 0.7);
  box-shadow: var(--glass-inset), 0 0 0 4px rgba(255, 76, 92, 0.16), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.url-bar-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.url-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  outline: none;
}

.url-bar input::placeholder {
  color: var(--muted-2);
}

.url-bar-submit {
  min-height: 46px;
  padding: 0 22px;
}

.url-hint {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--muted-2);
  font-size: 15px;
  transition: color 160ms ease;
}

.url-hint.ok {
  color: var(--cyan);
}

.url-hint.error {
  color: var(--red);
}

.lock-dot,
.mini-shield,
.icon,
.card-icon,
.step-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.lock-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 3px;
}

.lock-dot::before {
  position: absolute;
  top: -9px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.preview-card,
.problem-card,
.check-card,
.safe-card,
.result-card,
.tool-section {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-inset), var(--shadow);
  border-radius: var(--radius);
}

.preview-card {
  padding: 28px;
  border-radius: var(--radius);
}

.preview-topline,
.brand-lockup,
.table-head,
.snapshot,
.risk-row,
.issue-row {
  display: flex;
  align-items: center;
}

.preview-topline {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  gap: 10px;
  color: #eef6ff;
  font-weight: 800;
}

.mini-shield {
  width: 21px;
  height: 24px;
  border: 2px solid var(--blue);
  border-radius: 12px 12px 14px 14px;
  background: rgba(17, 118, 255, 0.16);
  clip-path: polygon(50% 0, 92% 15%, 86% 70%, 50% 100%, 14% 70%, 8% 15%);
}

.mini-shield::after {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #dff0ff;
  border-bottom: 2px solid #dff0ff;
  transform: rotate(-45deg);
  content: "";
}

.badge-good {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(79, 211, 79, 0.14);
  color: #6def6d;
  font-size: 14px;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.metric-label {
  margin-bottom: 16px;
  color: #c6d1dd;
  font-weight: 800;
}

.risk-gauge {
  position: relative;
  width: 220px;
  max-width: 100%;
  height: 118px;
  overflow: hidden;
}

.risk-gauge::before {
  position: absolute;
  inset: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(from 270deg, var(--red) 0deg 64deg, var(--yellow) 64deg 126deg, var(--green) 126deg 180deg, transparent 180deg 360deg);
  content: "";
}

.risk-gauge::after {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #07111c;
  content: "";
}

.gauge-needle {
  position: absolute;
  z-index: 2;
  left: 103px;
  bottom: 16px;
  width: 4px;
  height: 84px;
  border-radius: 999px;
  background: #eff6ff;
  transform: rotate(45deg);
  transform-origin: bottom center;
}

.gauge-center {
  position: absolute;
  z-index: 3;
  top: 56px;
  left: 0;
  width: 220px;
  text-align: center;
}

.gauge-center strong {
  display: block;
  color: var(--red);
  font-size: 26px;
}

.gauge-center span {
  color: #d4deea;
  font-size: 14px;
}

.risk-breakdown {
  display: grid;
  align-content: start;
  gap: 12px;
}

.risk-row {
  display: grid;
  grid-template-columns: 12px 1fr 52px;
  gap: 12px;
  color: #dce6f1;
}

.risk-row strong {
  min-width: 42px;
  padding: 5px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  color: inherit;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
}

.red {
  background: var(--red);
}

.yellow {
  background: var(--yellow);
}

.green {
  background: var(--green);
}

.issue-table {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.table-head {
  justify-content: space-between;
  color: #c9d4e0;
  font-weight: 800;
}

.issue-row {
  display: grid;
  grid-template-columns: 18px 1fr 86px;
  gap: 10px;
  color: #eef5ff;
}

.warning,
.check {
  position: relative;
  width: 18px;
  height: 18px;
  clip-path: polygon(50% 5%, 98% 90%, 2% 90%);
}

.warning::after {
  position: absolute;
  inset: 5px 8px 3px;
  background: #06101a;
  content: "";
}

.check {
  border-radius: 50%;
  clip-path: none;
}

.check::after {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #06101a;
  border-bottom: 2px solid #06101a;
  transform: rotate(-45deg);
  content: "";
}

.pill {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.pill-high {
  background: rgba(255, 76, 92, 0.19);
  color: #ff6774;
}

.pill-medium {
  background: rgba(255, 194, 28, 0.18);
  color: #ffd354;
}

.pill-low {
  background: rgba(79, 211, 79, 0.16);
  color: #70ef70;
}

.snapshot {
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(17, 118, 255, 0.28);
  border-radius: 10px;
  background: rgba(17, 118, 255, 0.1);
}

.snapshot strong {
  display: block;
  margin-bottom: 4px;
}

.snapshot p {
  margin-bottom: 0;
  color: #ccd6e4;
}

.problem-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 30, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 44px 0;
}

.centered {
  text-align: center;
}

.centered > p,
.checks-overview > p,
.safe-note {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.check-grid,
.safe-grid {
  display: grid;
  gap: 14px;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.problem-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  min-height: 132px;
  padding: 24px;
  border-radius: var(--radius);
  text-align: left;
}

.problem-card p,
.check-card p,
.safe-card p,
.step-card p {
  margin-bottom: 0;
  color: #c3cede;
  line-height: 1.45;
}

.card-icon,
.step-icon {
  width: 64px;
  height: 64px;
  border: 1px solid currentColor;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.accent-red,
.user-icon {
  color: var(--red);
}

.accent-yellow,
.webhook-icon,
.speed-icon {
  color: var(--yellow);
}

.accent-green,
.key-icon,
.lock-icon,
.shield-plus-icon {
  color: var(--green);
}

.accent-purple,
.admin-icon,
.brain-icon,
.magic-icon {
  color: var(--purple);
}

.people-icon,
.database-icon,
.upload-icon,
.folder-icon,
.clipboard-icon,
.gauge-icon,
.code-icon,
.checklist-icon {
  color: var(--blue);
}

.card-icon::before,
.step-icon::before {
  position: absolute;
  inset: 18px;
  border: 3px solid currentColor;
  border-radius: 7px;
  content: "";
}

.icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.shield-icon::before {
  position: absolute;
  inset: 1px 3px 0;
  border: 2px solid currentColor;
  border-radius: 9px 9px 11px 11px;
  clip-path: polygon(50% 0, 94% 16%, 86% 72%, 50% 100%, 14% 72%, 6% 16%);
  content: "";
}

.shield-icon::after {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 6px;
  height: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.list-icon::before {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
  content: "";
}

.list-icon::after {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
  content: "";
}

.key-icon::before {
  border-radius: 50%;
}

.key-icon::after {
  position: absolute;
  top: 30px;
  left: 35px;
  width: 21px;
  height: 4px;
  background: currentColor;
  box-shadow: 12px 0 0 currentColor;
  content: "";
}

.code-icon::before {
  border: 0;
  content: "</>";
  color: currentColor;
  font-size: 25px;
  font-weight: 900;
}

.how-section,
.checks-overview,
.example-result,
.safe-section,
.tool-section {
  padding: 40px 0 22px;
  text-align: center;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 24px;
}

.steps::before {
  position: absolute;
  top: 62px;
  left: 18%;
  right: 18%;
  border-top: 1px dashed rgba(17, 118, 255, 0.55);
  content: "";
}

.step-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px 18px 22px;
}

.step-number {
  position: absolute;
  top: 36px;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 118, 255, 0.58);
  border-radius: 8px;
  background: rgba(17, 118, 255, 0.16);
  color: #69adff;
  font-size: 24px;
  font-weight: 900;
}

.step-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(17, 118, 255, 0.08);
  color: var(--blue);
}

.step-card h3 {
  margin-top: 6px;
  font-size: 18px;
}

.check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  text-align: left;
}

.check-card,
.safe-card {
  min-height: 158px;
  padding: 22px;
  border-radius: var(--radius);
}

.check-card .card-icon,
.safe-card .card-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
}

.check-card .card-icon::before,
.safe-card .card-icon::before {
  inset: 15px;
  border-width: 2px;
}

.example-result h2 {
  margin-bottom: 20px;
}

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  text-align: left;
}

.risk-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 36px;
  border-right: 1px solid var(--line);
}

.large-alert {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(255, 76, 92, 0.12);
  color: var(--red);
  font-size: 54px;
  font-weight: 900;
}

.risk-panel strong {
  color: var(--red);
  font-size: 36px;
}

.result-copy {
  padding: 30px 38px;
}

.result-copy h3 span,
.prompt-label {
  color: var(--red);
}

.result-copy p {
  color: #cbd6e4;
  font-size: 18px;
  line-height: 1.5;
}

.result-copy hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.prompt-block {
  position: relative;
  margin-top: 10px;
  padding: 19px 58px 19px 19px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 18, 0.72);
}

.prompt-block code {
  color: #e6edf6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.copy-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  width: 12px;
  height: 15px;
  border: 2px solid #9db0c5;
  border-radius: 2px;
  content: "";
}

.copy-icon::before {
  top: 8px;
  left: 10px;
}

.copy-icon::after {
  top: 5px;
  left: 14px;
  background: #07111c;
}

.safe-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  text-align: left;
}

.safe-note {
  max-width: 800px;
  margin: 24px auto 0;
}

.bottom-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 28px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 34px;
  border: 1px solid rgba(17, 118, 255, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(rgba(17, 118, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 118, 255, 0.08) 1px, transparent 1px),
    rgba(7, 18, 31, 0.92);
  background-size: 26px 26px, 26px 26px, auto;
  text-align: center;
}

.bottom-cta h2 {
  margin-bottom: 8px;
}

.bottom-cta p,
.bottom-cta small {
  margin: 0;
  color: #cbd6e4;
}

.bottom-cta small {
  grid-column: 1 / -1;
}

.tool-section {
  margin-top: 34px;
  padding: 30px;
  border-radius: var(--radius);
  text-align: left;
}

.tool-header,
.tool-grid {
  display: grid;
  gap: 24px;
}

.tool-header {
  grid-template-columns: 1fr 260px;
  align-items: end;
  row-gap: 14px;
}

.tool-header p {
  color: var(--muted);
}

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 8px 12px 8px 14px;
  border: 1px solid rgba(79, 211, 79, 0.35);
  border-radius: 999px;
  background: rgba(79, 211, 79, 0.1);
  color: #c9f0c9;
  font-size: 15px;
}

.target-chip strong {
  color: var(--text);
  font-weight: 700;
  word-break: break-all;
}

.target-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--green);
  animation: target-pulse 2s ease-out infinite;
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 211, 79, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(79, 211, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 211, 79, 0);
  }
}

.target-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  transition: background 140ms ease;
}

.target-clear:hover {
  background: rgba(255, 76, 92, 0.55);
}

.score-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.progress-track,
.reset-answers {
  grid-column: 2;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(37, 117, 252, 0.55);
  transition: width 400ms ease;
}

.reset-answers {
  justify-self: end;
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.score-card span,
.score-card small {
  display: block;
  color: var(--muted);
}

.score-card strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
}

.tool-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
}

.question-panel,
.report-panel {
  display: grid;
  gap: 16px;
}

.question-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 20, 30, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.question-block h3 {
  margin-bottom: 14px;
  color: #eff6ff;
}

.question-item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.question-item:first-of-type {
  border-top: 0;
}

.question-item p {
  margin-bottom: 0;
  color: #d9e4f0;
}

.answer-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.answer-option {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.5);
  color: #dce6f1;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.answer-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.answer-option[aria-pressed="true"] {
  border-color: rgba(37, 117, 252, 0.8);
  background: var(--blue-soft);
  color: #f4f9ff;
  box-shadow: 0 0 0 1px rgba(37, 117, 252, 0.35), 0 6px 20px rgba(37, 117, 252, 0.35);
}

.report-panel {
  position: sticky;
  top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 20, 30, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-inset), var(--shadow);
}

.report-mode {
  margin-bottom: 0;
  color: var(--muted);
}

#reportOutput {
  min-height: 320px;
  max-height: 540px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #e7eef8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.report-actions {
  display: grid;
  gap: 10px;
}

.manual-review {
  color: #69adff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, calc(100% - 56px));
  margin: 34px auto 0;
  padding: 22px 0 28px;
  color: var(--muted);
}

.footer-brand {
  display: grid;
  grid-template-columns: 28px auto;
  gap: 0 10px;
  align-items: center;
  color: #f5f9ff;
}

.footer-brand span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
  text-align: right;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  padding: 12px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.reveal-pending {
  opacity: 0;
}

.animate-in {
  animation: fade-up 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
  }

  .reveal-pending {
    opacity: 1;
  }

  .target-dot {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1040px) {
  .hero,
  .preview-grid,
  .problem-grid,
  .steps,
  .check-grid,
  .safe-grid,
  .result-card,
  .tool-header,
  .tool-grid,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: 0;
    padding-top: 30px;
  }

  .progress-track,
  .reset-answers {
    grid-column: auto;
  }

  .reset-answers {
    justify-self: start;
  }

  .steps::before {
    display: none;
  }

  .result-card {
    border-left: 0;
    border-top: 6px solid var(--red);
  }

  .risk-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1320px);
  }

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

  .button {
    width: 100%;
  }

  .url-bar {
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 26px;
  }

  .url-bar-icon {
    display: none;
  }

  .url-bar input {
    flex: 1 1 100%;
    min-height: 42px;
    padding: 0 6px;
  }

  .url-bar-submit {
    flex: 1 1 100%;
  }

  h1 {
    font-size: 40px;
  }

  h1 span {
    display: inline;
    white-space: normal;
  }

  .preview-card,
  .tool-section {
    padding: 18px;
  }

  .issue-row {
    grid-template-columns: 18px 1fr;
  }

  .issue-row .pill {
    grid-column: 2;
    justify-self: start;
  }

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

  .answer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer p {
    text-align: left;
  }
}
