/* EPX — themed to match the ald3.com landing page (dark canvas, lavender
 * accent, Instrument Serif headline, Inter body). Class names are kept so
 * existing markup (index.html) works untouched. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --card: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-faint: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --primary: #a78bfa;
  --primary-hover: #c084fc;
  --success: #4ade80;
  --error: #f87171;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Ambient aurora — fixed so it doesn't scroll with content. */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 65%);
}
body::after {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, #2563eb 0%, transparent 65%);
  opacity: 0.22;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .container { padding: 2rem 1rem 4rem; }
  .card { padding: 1.75rem; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 2.25rem;
  line-height: 1.55;
}

a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  transition: color 150ms ease;
}
a.back:hover { color: var(--primary); text-decoration: underline; }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .choices { grid-template-columns: 1fr; }
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 200ms ease, border-color 200ms ease,
    background 200ms ease;
}
.choice:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.choice .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  color: var(--primary);
}
.choice h2 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.choice p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

input[type=text], textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 150ms ease, box-shadow 150ms ease,
    background 150ms ease;
}
input[type=text]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}
textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }

.hint {
  display: block;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.hp { position: absolute; left: -9999px; top: -9999px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .row-2 { grid-template-columns: 1fr; } }
.row-2 label { margin-top: 0.25rem; }

.ts { margin-top: 1.75rem; }

button.primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  background: var(--text);
  color: #0a0a0c;
  border: none;
  border-radius: 980px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
button.primary:hover { background: #ffffff; transform: translateY(-1px); }
button.primary:active { transform: scale(0.98); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.status {
  margin-top: 1rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.status.ok  { color: var(--success); }
.status.err { color: var(--error); }
