:root {
  --navy-900: oklch(0.32 0.09 250);
  --navy-700: oklch(0.4 0.13 250);
  --accent: oklch(0.55 0.14 30);
  --accent-hover: oklch(0.48 0.14 30);
  --success: oklch(0.55 0.14 150);
  --ink-900: oklch(0.25 0.02 250);
  --ink-600: oklch(0.45 0.02 250);
  --ink-500: oklch(0.5 0.02 250);
  --ink-400: oklch(0.55 0.02 250);
  --border: oklch(0.9 0.01 250);
  --border-strong: oklch(0.85 0.01 250);
  --bg: oklch(0.98 0.005 250);
  --placeholder: oklch(0.6 0.01 250);
  --diagram-bg: oklch(0.975 0.006 250);
  --diagram-border: oklch(0.92 0.008 250);
  --glow: oklch(0.95 0.02 250);

  --pad-inline: 48px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  min-width: 320px;
}

a { color: var(--navy-700); }
a:hover { color: oklch(0.32 0.13 250); }

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

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

/* ---------- Header / Footer ---------- */

.site-header, .site-footer {
  background: var(--navy-900);
  padding: 14px var(--pad-inline);
}

.site-header {
  display: flex;
  align-items: center;
}

.header-stripe {
  height: 4px;
  background: var(--accent);
}

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

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-footer {
  padding: 16px var(--pad-inline);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: oklch(0.85 0.02 250);
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px var(--pad-inline) 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: radial-gradient(ellipse at 50% -10%, var(--glow) 0%, var(--diagram-bg) 55%);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  max-width: 800px;
  line-height: 1.15;
}

.hero-underline {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: oklch(0.55 0.14 30 / 0.5);
}

.hero-copy {
  margin: 0;
  font-size: 16px;
  color: var(--ink-600);
  max-width: 580px;
  line-height: 1.5;
}

.btn-accent {
  display: inline-block;
  margin-top: 6px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px oklch(0.55 0.14 30 / 0.28);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: white;
  box-shadow: 0 8px 20px oklch(0.55 0.14 30 / 0.35);
}

.btn-accent:disabled {
  background: oklch(0.85 0.02 30);
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
  font-size: 15px;
  padding: 13px;
}

/* ---------- Explainer ---------- */

.explainer {
  background: white;
  padding: 56px var(--pad-inline) 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.explainer h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
}

.explainer-copy {
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--ink-600);
  text-align: center;
  max-width: 640px;
  line-height: 1.55;
}

.flow-diagram {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--diagram-bg);
  border: 1px solid var(--diagram-border);
  border-radius: 14px;
  overflow: hidden;
}

.flow-diagram svg { display: block; width: 100%; height: auto; }

.diagram-node-shadow { filter: drop-shadow(0 2px 3px oklch(0.2 0.02 250 / 0.25)); }

.diagram-label {
  font-size: 12px;
  font-weight: 700;
}
.diagram-label-navy { fill: var(--navy-700); }
.diagram-label-accent { fill: var(--accent); }
.diagram-label-bg { fill: var(--diagram-bg); }

.diagram-name {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink-900);
}

.diagram-desc {
  font-size: 12px;
  fill: var(--ink-500);
}

.flow-diagram-mobile {
  display: none;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 360px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.flow-icon::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 7px;
  left: 14px;
}
.flow-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 17px;
  border-radius: 14px 14px 0 0;
  background: white;
  bottom: -1px;
  left: 8px;
}
.flow-icon-navy { background: var(--navy-700); }
.flow-icon-accent { background: var(--accent); }
.flow-icon-navy-dark { background: var(--navy-900); }

.flow-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.flow-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.4;
}

.flow-connector {
  margin: 4px 0 4px 22px;
  padding-left: 22px;
  border-left: 2px dashed var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
}
.flow-connector-navy { color: var(--navy-700); border-left-color: var(--navy-700); }
.flow-connector-accent { color: var(--accent); border-left-color: var(--accent); border-left-style: solid; }

/* ---------- Report form ---------- */

.report {
  padding: 44px var(--pad-inline) 60px;
  display: flex;
  justify-content: center;
  flex: 1;
  background: radial-gradient(ellipse at 50% 110%, var(--glow) 0%, var(--diagram-bg) 55%);
}

.report-panel {
  width: 100%;
  max-width: 440px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
}

#report-form-el {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.4 0.02 250);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: white;
  color: var(--ink-900);
  width: 100%;
}

.field textarea { resize: none; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
}

.fine-print {
  margin: 0;
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
}

.form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.5 0.19 25);
  background: oklch(0.96 0.03 25);
  border: 1px solid oklch(0.85 0.09 25);
  border-radius: 7px;
  padding: 10px 12px;
  text-align: left;
}

.report-confirmation {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.confirm-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.confirm-copy {
  margin: 0;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --pad-inline: 28px; }
}

@media (max-width: 699px) {
  .flow-diagram { display: none; }
  .flow-diagram-mobile { display: block; }
}

@media (max-width: 480px) {
  :root { --pad-inline: 20px; }

  .hero { padding-top: 48px; padding-bottom: 40px; gap: 14px; }

  .explainer { padding-top: 40px; padding-bottom: 44px; }

  .report { padding-top: 40px; padding-bottom: 56px; }

  .report-panel { padding: 24px 20px; }

  .field-row {
    flex-direction: column;
    gap: 16px;
  }
}
