:root {
  color-scheme: dark;
  --bg0: #1a1424;
  --bg1: #2a1f3d;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.72);
  --soft: rgba(244, 239, 230, 0.55);
  --line: rgba(244, 239, 230, 0.18);
  --accent: #c9a24a;
  --accent-soft: rgba(201, 162, 74, 0.22);
  --card: rgba(32, 26, 44, 0.72);
  --danger-soft: #b8a090; /* calm, not red */
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 148, 114, 0.18), transparent 55%),
    radial-gradient(90% 80% at 85% 80%, rgba(122, 74, 140, 0.32), transparent 50%),
    linear-gradient(160deg, #1a1424 0%, #2a1f3d 42%, #3d2a45 72%, #4a2f3a 100%);
  color: var(--ink);
  padding: 1.25rem 1.25rem 3rem;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  max-width: 40rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; }
.lockup { width: clamp(10rem, 42vw, 14rem); height: auto; }
nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.hero, .panel-wrap {
  max-width: 40rem;
  margin: 0 auto;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.85rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}
.btn.primary {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 74, 0.45);
  color: #f3e6c0;
}
.btn.ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn:disabled { opacity: 0.55; cursor: default; }
.fine { color: var(--soft); font-size: 0.88rem; line-height: 1.45; max-width: 32rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.tab {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.85rem 0 0.35rem;
}
input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--ink);
  font: inherit;
}
input:focus {
  outline: 2px solid rgba(201, 162, 74, 0.45);
  outline-offset: 1px;
}
.msg {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.3em;
}
.msg.err { color: var(--danger-soft); }
.providers { margin-top: 1.25rem; display: grid; gap: 0.55rem; }
.hint { margin-top: 1rem; font-size: 0.85rem; color: var(--soft); line-height: 1.45; }
