@font-face {
  font-family: "Phoenix Sans";
  src: local("ABC Diatype Variable"), local("ABC Diatype"), local("Helvetica Neue");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #09090b;
  --ink: #18181b;
  --panel: #212126;
  --line: #374151;
  --muted: #94a3b8;
  --white: #f4f4f5;
  --accent: #ff8d2a;
  --accent-soft: #ffa548;
  --green: #4ade80;
  --coral: #ef4444;
  --danger: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 141, 42, .15), transparent 28rem),
    radial-gradient(circle at 15% 40%, rgba(255, 165, 72, .07), transparent 24rem),
    var(--black);
  color: var(--white);
  font-family: "Phoenix Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.brand img { display: block; width: 158px; height: auto; }
.header-link {
  color: var(--muted);
  font-size: .87rem;
  text-decoration: none;
}
.header-link:hover { color: var(--white); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 96px 0 86px; max-width: 970px; }
.eyebrow, .section-kicker {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow span { width: 24px; height: 1px; background: var(--accent); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 580;
}
.hero h1 em { color: var(--accent-soft); font-style: normal; }
.hero > p {
  max-width: 690px;
  margin: 32px 0 0;
  color: #c4c4c4;
  font-size: 1.12rem;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; color: var(--muted); font-size: .8rem; }
.trust-row span::before { content: "✓"; color: var(--accent); margin-right: 8px; }

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
  padding-bottom: 100px;
}
.journey { position: sticky; top: 28px; }
.journey ol { list-style: none; margin: 0; padding: 0; }
.journey li {
  position: relative;
  display: flex;
  gap: 16px;
  min-height: 83px;
  color: #666;
}
.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  height: 40px;
  border-left: 1px solid #292929;
}
.journey li > span {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border: 1px solid #333;
  border-radius: 50%;
  font-size: .66rem;
}
.journey li div { padding-top: 2px; }
.journey strong { display: block; color: #8d8d8d; font-size: .86rem; }
.journey small { display: block; margin-top: 3px; font-size: .73rem; }
.journey li.active > span, .journey li.complete > span { border-color: var(--accent); color: var(--accent); }
.journey li.active strong, .journey li.complete strong { color: var(--white); }
.journey li.complete > span { background: var(--accent); color: var(--black); }

.form-shell { min-width: 0; }
.identity-card, .form-section, .submit-section, .signed-in {
  border: 1px solid var(--line);
  background: rgba(13, 13, 13, .94);
}
.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px;
  border-radius: var(--radius);
}
h2 { margin: 7px 0 8px; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; }
.identity-card p, .submit-section p { max-width: 530px; margin: 0; color: var(--muted); font-size: .9rem; }
.github-button, .submit-button, .secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s, background .16s, border-color .16s;
}
.github-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--black);
  padding: 13px 20px;
  font-size: .86rem;
}
.github-button svg { width: 20px; height: 20px; }
.github-button:hover, .submit-button:hover:not(:disabled) { transform: translateY(-1px); }
.signed-in {
  margin-bottom: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
}
.researcher { display: flex; align-items: center; gap: 12px; }
.researcher img { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); }
.researcher small, .researcher strong { display: block; }
.researcher small { color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .09em; }
.researcher strong { font-size: .88rem; }
.text-button, .copy-button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .76rem;
}

#reportForm { display: grid; gap: 14px; }
.form-section {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 38px 42px 42px 0;
  border-radius: var(--radius);
}
.section-number { color: #555; text-align: center; padding-top: 2px; font: 600 .72rem ui-monospace, monospace; }
.section-body { min-width: 0; }
.section-body > h2 { margin-bottom: 28px; }
.terms-preview {
  height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090909;
  color: #aaa;
  font-size: .76rem;
}
.check-row { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 11px; margin-top: 18px; color: #ccc !important; }
.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.check-row span { font-size: .84rem; }
.check-row a { color: var(--accent-soft); }

.section-body > label { display: flex; flex-direction: column; gap: 8px; margin-top: 21px; color: #dedede; font-size: .8rem; font-weight: 650; }
label > span, legend > span { color: var(--coral); }
label small { color: #777; font-weight: 400; font-size: .7rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid #333;
  border-radius: 9px;
  outline: none;
  background: #080808;
  color: var(--white);
  padding: 12px 13px;
  font-size: .88rem;
}
input::placeholder, textarea::placeholder { color: #595959; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 141, 42, .14); }
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.code-input, code, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
fieldset { min-width: 0; margin: 21px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; color: #dedede; font-size: .8rem; font-weight: 650; }
.severity-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.severity-options label { position: relative; cursor: pointer; }
.severity-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.severity-options span {
  display: block;
  padding: 11px 7px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #9b9b9b;
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.severity-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.severity-options input:checked + span { border-color: var(--coral); background: rgba(253, 128, 88, .1); color: var(--white); }

.severity-hint { display: block; margin-top: 8px; color: var(--muted); font-size: .7rem; font-weight: 400; }
.burn-section { background: linear-gradient(145deg, rgba(255, 141, 42, .08), rgba(24, 24, 27, .96) 48%); }
.warning { margin-bottom: 23px; padding: 15px 17px; border: 1px solid rgba(253, 128, 88, .4); border-radius: 10px; background: rgba(253, 128, 88, .07); }
.warning strong { color: var(--coral); font-size: .82rem; }
.warning p { margin: 4px 0 0; color: #bababa; font-size: .76rem; }
.burn-facts { display: grid; gap: 8px; margin-top: 18px; }
.burn-facts > div { position: relative; padding: 12px 75px 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #080808; overflow: hidden; }
.burn-facts small { display: block; margin-bottom: 3px; color: #777; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.burn-facts code { display: block; overflow: hidden; text-overflow: ellipsis; color: #d0d0d0; font-size: .73rem; }
.burn-facts .copy-button { position: absolute; top: 18px; right: 13px; }
details { margin-top: 17px; border: 1px solid var(--line); border-radius: 10px; background: #080808; }
summary { padding: 13px 15px; cursor: pointer; color: #c9c9c9; font-size: .78rem; font-weight: 650; }
.instructions { padding: 0 15px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.instructions pre { overflow-x: auto; margin: 12px 0; padding: 12px; border-radius: 7px; background: var(--black); color: var(--accent-soft); white-space: pre-wrap; word-break: break-all; }
.secondary-button { padding: 10px 15px; border: 1px solid #3a3a3a; background: #191919; color: var(--white); font-size: .75rem; }
.secondary-button:hover { border-color: var(--accent); }
.verify-button { margin-top: 18px; }
.burn-status { display: flex; align-items: center; gap: 9px; margin-top: 15px; color: var(--muted); font-size: .78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #666; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.burn-status.checking .status-dot { background: var(--accent); animation: pulse 1s infinite; }
.burn-status.verified { color: var(--green); }
.burn-status.verified .status-dot { background: var(--green); }
.burn-status.error { color: var(--coral); }
.burn-status.error .status-dot { background: var(--coral); }
@keyframes pulse { 50% { opacity: .35; } }

.submit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 42px;
  border-radius: var(--radius);
}
.submit-button { flex: 0 0 auto; padding: 14px 22px; background: var(--accent); color: var(--black); }
.submit-button:disabled { cursor: not-allowed; opacity: .35; }
.result { padding: 17px; border: 1px solid var(--green); border-radius: 12px; background: rgba(74, 201, 165, .08); color: var(--green); font-size: .85rem; }
.result.error { border-color: var(--coral); background: rgba(253, 128, 88, .08); color: var(--coral); }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6f6f6f;
  font-size: .75rem;
}
footer img { width: 24px; height: 24px; }

.terms-page main { width: min(780px, calc(100% - 40px)); padding: 80px 0 100px; }
.terms-page h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -.05em; }
.terms-page .lead { color: var(--muted); }
.terms-document { margin-top: 40px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); white-space: pre-wrap; color: #c7c7c7; font: .86rem/1.75 ui-monospace, monospace; }

@media (max-width: 850px) {
  .hero { padding: 70px 0 60px; }
  .layout { grid-template-columns: 1fr; }
  .journey { position: static; }
  .journey ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .journey li { min-height: 0; display: block; }
  .journey li::after, .journey small { display: none; }
  .journey li > span { margin-bottom: 7px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 74px; }
  .brand img { width: 135px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .trust-row { gap: 10px 18px; }
  .identity-card, .submit-section { flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .github-button, .submit-button { justify-content: center; text-align: center; }
  .form-section { grid-template-columns: 42px minmax(0, 1fr); padding: 28px 20px 32px 0; }
  .journey strong { font-size: .72rem; }
  .terms-document { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
