/* Shared design tokens + base components. Pages add page-specific styles in their own <style>. */
:root {
  --bg: #140f14;
  --surface: #1e171e;
  --surface-2: #2a212a;
  --text: #f5ecef;
  --muted: #b3a2aa;
  --accent: #e8738f;
  --accent-2: #f2a65a;
  --accent-text: #1a0d12;
  --border: #3a2e37;
  --success: #6fcf97;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 520px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 960px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--accent-text); font: 600 17px var(--font); text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px; margin-bottom: 10px; text-align: left;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius);
  font: 500 16px var(--font); cursor: pointer;
}
.option:hover { border-color: var(--muted); }
.option.selected { border-color: var(--accent); background: var(--surface-2); }

input[type=email], input[type=text], textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: 16px var(--font);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 10px 0; cursor: pointer; }
label.check input { margin-top: 3px; accent-color: var(--accent); }

.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); text-decoration: none; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 16px 80px; text-align: center; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 8px; }
.site-footer a { color: var(--muted); }

.devpanel { position: fixed; right: 12px; bottom: 12px; z-index: 1000; font-size: 13px; }
.devpanel-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--muted); background: #000c; color: var(--muted); cursor: pointer; font-size: 18px; }
.devpanel-body { position: absolute; right: 0; bottom: 48px; width: 200px; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #000e; border: 1px dashed var(--muted); border-radius: 10px; }
.devpanel-body a { color: var(--text); }
.devpanel-body button { margin-top: 6px; padding: 8px; background: transparent; color: var(--danger); border: 1px solid var(--danger); border-radius: 6px; cursor: pointer; }
.devpanel-body[hidden] { display: none; }
/* Keep the dev gear clear of bottom CTAs */
.devpanel { top: 64px; bottom: auto; right: 8px; opacity: .55; }
.devpanel:hover { opacity: 1; }
.devpanel-toggle { width: 32px; height: 32px; font-size: 15px; }
.devpanel-body { top: 40px; bottom: auto; }
