@font-face { font-family: "Host Grotesk"; src: url("/fonts/HostGrotesk-VariableFont_wght.ttf") format("truetype"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Oranienbaum"; src: url("/fonts/Oranienbaum-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --black: #000;
  --ink-2: #0c0c0b;
  --card: #121211;
  --card-hi: #1b1a18;
  --line: #262523;
  --text: #f4f2ee;
  --text-2: #c9c5bd;
  --text-3: #8c877e;
  --gold: #dab054;
  --gold-hi: #e6c36f;
  --btn-ink: #1a1714;
  --danger: #e58a7a;
  --font-display: "Antonio", "Arial Narrow", sans-serif;
  --font-head: "Host Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Oranienbaum", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--text); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 720px; margin: 0 auto; }
.brand { font-family: var(--font-label); font-size: 19px; color: var(--gold); letter-spacing: .02em; }
.bar { height: 3px; background: var(--line); }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transition: width .4s ease; }

main { max-width: 720px; margin: 0 auto; padding: 28px 16px 120px; }
.eyebrow { font-family: var(--font-label); color: var(--gold); font-size: 17px; margin: 0 0 6px; }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .01em; line-height: 1.08; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: clamp(24px, 5.6vw, 34px); }
p { margin: 0 0 14px; color: var(--text-2); }
.hint { color: var(--text-3); font-size: 14px; margin-top: -4px; }
.small { font-size: 13px; color: var(--text-3); }

/* Tap choices */
.choices { display: grid; gap: 10px; margin: 18px 0; }
.choice { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .05s; min-height: 54px; display: flex; gap: 12px; align-items: center; }
.choice:hover { border-color: #3a3835; background: var(--card-hi); }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--gold); background: #1d1910; }
.choice .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4a4743; display: grid; place-items: center; font-size: 12px; color: var(--btn-ink); }
.choice[aria-pressed="true"] .tick { background: var(--gold); border-color: var(--gold); }
.choice.multi .tick { border-radius: 5px; }
.choice b { display: block; color: var(--text); font-weight: 600; }
.choice span.sub { display: block; color: var(--text-3); font-size: 14px; margin-top: 3px; }
.choice.other { border-style: dashed; color: var(--text-2); }

.drill { margin: 6px 0 18px 14px; padding-left: 14px; border-left: 2px solid var(--gold); }
.drill p { font-size: 14px; margin-bottom: 8px; }
.drill .choices { margin: 8px 0; }

.otherbox { margin: 4px 0 18px; display: grid; gap: 8px; }
textarea, input[type=email], input[type=text], input[inputmode=numeric] { width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; outline: none; }
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input:focus { border-color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn { display: inline-block; text-decoration: none; background: var(--gold); color: var(--btn-ink); border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 700; cursor: pointer; letter-spacing: .01em; }
.btn:hover { background: var(--gold-hi); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.mic { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; cursor: pointer; color: var(--text-2); }
.mic.on { border-color: var(--danger); color: var(--danger); }

.actions { position: fixed; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, var(--black) 30%); padding: 26px 16px 18px; }
.actions .inner { max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Waiting */
.skeleton { display: grid; gap: 10px; margin: 18px 0; }
.skeleton div { height: 54px; border-radius: 12px; background: linear-gradient(90deg, var(--card) 0%, var(--card-hi) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.writing { color: var(--gold); font-family: var(--font-label); font-size: 17px; }

/* Ideas */
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; }
.idea h3 { font-family: var(--font-head); font-size: 21px; margin: 0 0 6px; line-height: 1.25; }
.idea .promise { color: var(--text); }
.idea ul { margin: 8px 0 14px; padding-left: 18px; color: var(--text-2); }
.idea .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.idea .meta b { color: var(--gold); font-weight: 600; }

/* Framework */
.fw { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 12px 0; cursor: pointer; text-align: left; width: 100%; }
.fw[aria-pressed="true"] { border-color: var(--gold); background: #1d1910; }
.fw h3 { font-family: var(--font-head); margin: 0 0 8px; font-size: 19px; }
.fw ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.fw ol b { color: var(--text); }
.steps-edit { display: grid; gap: 8px; margin: 10px 0 18px; }

/* Build */
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { padding: 10px 0 10px 32px; position: relative; color: var(--text-2); border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); }
.checklist li.now::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; top: 13px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.panel h3 { font-family: var(--font-head); margin: 0 0 8px; font-size: 18px; }
.panel ul, .panel ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.panel li { margin: 4px 0; }
.notice { border-left: 3px solid var(--gold); padding: 10px 14px; background: #15130e; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 14px; margin: 14px 0; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 8px 0; }
a { color: var(--gold); }
