:root {
  color-scheme: dark;
  --canvas: #06101a;
  --panel: #0e1c29;
  --panel-raised: #132535;
  --panel-edge: #345066;
  --text: #f4f8fb;
  --muted: #a9bac8;
  --accent: #65e3c0;
  --accent-ink: #06251d;
  --danger: #ffb7ad;
  --danger-bg: #381b1c;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
html { background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  color: var(--text);
  background:
    linear-gradient(rgba(101, 227, 192, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 227, 192, .035) 1px, transparent 1px),
    var(--canvas);
  background-size: 2rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.poc-disclaimer {
  position: fixed;
  right: 1rem;
  bottom: .75rem;
  left: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.business-shell {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--panel-edge);
  border-top: 3px solid var(--accent);
  border-radius: .45rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, .38);
}
.business-shell--wide { width: min(100%, 68rem); }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.15; }
h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
.intro { margin: .75rem 0 1.75rem; color: var(--muted); }
.step { color: var(--text); font-weight: 650; }
.feedback {
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
  border-left: 3px solid currentColor;
}
.feedback--error { color: var(--danger); background: var(--danger-bg); }
.feedback--success { color: var(--accent); background: #0b302b; }
form { display: grid; gap: .75rem; }
label { font-weight: 650; }
input {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: 1px solid #5b7184;
  border-radius: .25rem;
  color: var(--text);
  background: #08131d;
  font: inherit;
}
.otp-input {
  min-height: 3.5rem;
  font: 700 1.5rem/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .22em;
  text-align: center;
}
button {
  min-height: 2.75rem;
  margin-top: .75rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: .25rem;
  color: var(--accent-ink);
  background: var(--accent);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:hover { background: #89ecd1; }
button:active { transform: translateY(1px); }
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b4f6e4;
  outline-offset: 3px;
}
.notice {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: .875rem;
}
.business-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--panel-edge);
}
.secondary-button {
  border: 1px solid #60778a;
  color: var(--text);
  background: transparent;
}
.secondary-button:hover {
  color: #06251d;
  background: #89ecd1;
}
.restart-form { margin-top: .75rem; }
.restart-form button { width: 100%; }
.status { margin: 2rem 0 1rem; color: var(--accent); font-weight: 700; }
.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, .6fr);
  gap: 1rem;
}
.content-card {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--panel-edge);
  border-radius: .35rem;
  background: var(--panel-raised);
}
.content-card p { margin: 0; color: var(--muted); }
.identity {
  color: var(--text) !important;
  overflow-wrap: anywhere;
  font: 700 1.4rem/1.3 "Cascadia Mono", Consolas, monospace;
}
.button-link,
.secondary-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: .65rem 1rem;
  border-radius: .25rem;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 750;
  text-decoration: none;
}
.secondary-link {
  margin-top: 0;
  border: 1px solid #60778a;
  color: var(--text);
  background: transparent;
}
.button-link:hover { background: #89ecd1; }
.secondary-link:hover { color: var(--accent-ink); background: #89ecd1; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.report-card { display: flex; flex-direction: column; }
.report-card form { margin-top: auto; padding-top: 1rem; }
.report-card button { width: 100%; }
.report-card--sensitive { border-top: 3px solid var(--accent); }
.card-kicker {
  margin-bottom: .5rem !important;
  color: var(--accent) !important;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
}

@media (max-width: 42rem) {
  .business-header { align-items: flex-start; flex-direction: column; }
  .business-header form,
  .business-header button { width: 100%; }
  .business-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .secondary-link { width: 100%; }
}

@media (max-width: 30rem) {
  body { place-items: start center; padding: .75rem; }
  .business-shell { padding: 1.25rem; }
  .otp-input { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
