:root {
  color-scheme: dark;
  --ink: #f4f3ef;
  --muted: #a9aaa7;
  --subtle: #777a77;
  --line: #2d302f;
  --panel: #171918;
  --panel-2: #202321;
  --page: #0d0f0e;
  --accent: #c9a24a;
  --accent-ink: #15110a;
  --danger: #f2a0a0;
  --danger-panel: #2b1c1e;
  --focus: #e0c27a;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 50% -20%, #273026 0, var(--page) 44rem);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 760px); margin: 0 auto; padding: 24px 18px 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.mark { display: grid; place-items: center; width: 24px; height: 24px; color: var(--accent-ink); background: var(--accent); border-radius: 7px; font-size: 17px; font-weight: 700; }
.secure-label { color: var(--subtle); font-size: 11px; }
.secure-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.app-card { min-height: 620px; padding: clamp(24px, 7vw, 60px); border: 1px solid var(--line); border-radius: 22px; background: rgba(23, 25, 24, .94); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.footer { display: flex; gap: 8px; justify-content: center; padding: 18px 0 0; color: var(--subtle); font-size: 11px; text-align: center; }
.discovery-content { margin-top: 30px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: rgba(23, 25, 24, .78); }
.discovery-heading { max-width: 610px; }
.discovery-heading h2 { margin-bottom: 15px; font-size: clamp(28px, 5vw, 42px); }
.discovery-heading > p, .discovery-note p, .faq-list p { color: var(--muted); font-size: 14px; }
.discovery-grid { display: grid; gap: 14px; margin-top: 28px; }
.discovery-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(32, 35, 33, .72); }
.discovery-card h3, .discovery-note h3, .faq-list h3 { margin: 0 0 12px; font-family: "Space Grotesk", sans-serif; font-size: 17px; letter-spacing: -.02em; }
.discovery-card ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.discovery-card li::marker { color: var(--accent); }
.discovery-note { margin-top: 14px; padding: 20px; border-left: 3px solid var(--accent); background: rgba(201,162,74,.06); }
.faq-panel { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-panel summary { padding: 17px 0; color: var(--ink); cursor: pointer; font-weight: 700; font-size: 14px; }
.faq-list { display: grid; gap: 18px; padding: 0 0 20px; }
.faq-list h3 { margin-bottom: 5px; font-size: 14px; }
.faq-list p { font-size: 13px; }
.discovery-cta { display: inline-flex; margin-top: 24px; align-items: center; gap: 8px; text-decoration: none; }
h1, h2 { margin: 0; font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; line-height: 1.06; }
h1 { max-width: 620px; font-size: clamp(38px, 8vw, 68px); }
h2 { font-size: clamp(28px, 6vw, 42px); }
p { margin: 0; }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.intro-copy { max-width: 540px; margin: 22px 0 34px; color: var(--muted); font-size: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.meta-row span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 2px; background: #414642; }
.progress-wrap { margin: -24px -24px 36px; padding: 18px 24px 0; border-bottom: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--subtle); font-size: 11px; }
.progress-track { height: 3px; overflow: hidden; background: #2a2d2b; }
.progress-bar { height: 100%; background: var(--accent); transition: width .35s ease; }
.question-note { margin: 15px 0 22px; color: var(--muted); font-size: 14px; }
.question-block { max-width: 590px; }
.field-group { display: grid; gap: 16px; margin-top: 28px; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.required { color: var(--accent); }
input, select, textarea { width: 100%; color: var(--ink); background: #111312; border: 1px solid #363a37; border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
input, select { min-height: 49px; padding: 12px 14px; }
textarea { min-height: 145px; padding: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(201,162,74,.12); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.file-upload { display: grid; gap: 10px; margin-top: 28px; }
.file-note, .file-selected { color: var(--subtle); font-size: 12px; }
.file-selected { color: var(--accent); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.choice-grid { display: grid; gap: 10px; margin-top: 28px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; padding: 15px 16px; color: var(--muted); border: 1px solid #363a37; border-radius: 9px; background: #111312; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.choice label:hover { transform: translateY(-1px); border-color: #656b63; color: var(--ink); }
.choice input:checked + label { border-color: var(--accent); background: rgba(201,162,74,.1); color: var(--ink); }
.choice input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-description { display: block; margin-top: 3px; color: var(--subtle); font-size: 12px; }
.error { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 34px; }
.health-status { margin-top: 12px; color: var(--subtle); font-size: 12px; }
.health-status[data-state="ready"] { color: var(--accent); }
.health-status[data-state="unavailable"] { color: var(--danger); }
.health-buffer { height: 3px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #2a2d2b; opacity: 0; transition: opacity .2s ease; }
.health-buffer[data-state="checking"], .health-buffer[data-state="unavailable"] { opacity: 1; }
.health-buffer span { display: block; width: 34%; height: 100%; background: var(--accent); border-radius: inherit; transform: translateX(-120%); }
.health-buffer[data-state="checking"] span { animation: health-buffer 1.25s ease-in-out infinite; }
.health-buffer[data-state="unavailable"] span { display: none; }
.button { min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: 13px; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { background: #e0c27a; }
.button-secondary { color: var(--ink); background: transparent; border-color: #3b403d; }
.button-quiet { color: var(--muted); background: transparent; border-color: transparent; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.gate-panel { margin-top: 26px; padding: 20px; border: 1px solid #70454a; border-radius: 12px; background: var(--danger-panel); }
.gate-panel p { color: #e2b8b8; font-size: 14px; }
.gate-kicker { margin-bottom: 8px; color: var(--danger); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.success-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; color: var(--accent-ink); background: var(--accent); border-radius: 16px; font-size: 26px; }
.small-copy { max-width: 530px; margin-top: 18px; color: var(--muted); }
.summary-box { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.summary-box strong { color: var(--ink); }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(24,32,13,.35); border-top-color: var(--accent-ink); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes health-buffer { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(330%); } }
@media (min-width: 640px) { .shell { padding: 34px 22px 40px; } .app-card { min-height: 680px; } .field-group.two-col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .discovery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .secure-label { display: none; } .footer { flex-direction: column; gap: 3px; } .footer span:nth-child(2) { display: none; } .progress-wrap { margin-left: -8px; margin-right: -8px; } }

/* Focus mode: after Begin, only the card, floated forward and fitted to the window. */
body.focus-mode .topbar, body.focus-mode .discovery-content, body.focus-mode .footer { display: none; }
body.focus-mode .shell { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
body.focus-mode .app-card { width: min(100%, 720px); min-height: 0; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(201,162,74,.22); animation: card-forward .5s cubic-bezier(.2,.8,.2,1); }
@keyframes card-forward { from { transform: translateY(22px) scale(.95); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.focus-mode .app-card { animation: none; } }
