:root {
  --ink: #14213d;
  --muted: #5e6b85;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --border: #d8dfeb;
  --primary: #3451d1;
  --primary-dark: #243ba5;
  --accent: #f3ad34;
  --danger: #b42335;
  --warning-bg: #fff5df;
  --warning: #74500a;
  --shadow: 0 16px 45px rgb(34 53 100 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top right, #e6ebff 0, transparent 34rem), var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select, textarea { width: 100%; padding: .7rem .8rem; color: var(--ink); border: 1px solid var(--border); border-radius: .55rem; background: #fff; }
textarea { min-height: 5.3rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgb(52 81 209 / 35%); outline-offset: 2px; }
label { display: block; margin: .8rem 0 .35rem; font-size: .92rem; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .65rem; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-bottom: .8rem; font-size: 1.2rem; letter-spacing: -.02em; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.brand { color: var(--ink); font-size: 1.16rem; font-weight: 900; letter-spacing: -.045em; text-decoration: none; }
.brand::after { content: '.'; color: var(--accent); }
.eyebrow { margin-bottom: .5rem; color: var(--primary); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lead, .hero-copy > p:not(.eyebrow), .setup-intro > p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.panel { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid rgb(216 223 235 / 85%); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .55rem .9rem; border: 1px solid var(--primary); border-radius: .6rem; color: var(--primary); background: #fff; font-weight: 800; text-decoration: none; }
.button:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: #f4f6ff; }
.button-primary { border-color: var(--primary); color: #fff; background: var(--primary); }
.button-primary:hover { border-color: var(--primary-dark); color: #fff; background: var(--primary-dark); }
.button-secondary { border-color: #aab7e8; color: #26387f; background: #f6f7ff; }
.button-quiet { border-color: transparent; color: var(--muted); background: transparent; }
.button-danger { border-color: #e5aeb7; color: var(--danger); background: #fff8f8; }
.optional, .muted { color: var(--muted); font-weight: 500; }
.form-error { margin: .8rem 0; color: var(--danger); font-weight: 700; }
.warning { margin: 1rem 0; padding: .8rem; border: 1px solid #eccb7d; border-radius: .65rem; color: var(--warning); background: var(--warning-bg); }
.warning p { margin-bottom: .6rem; }
.warning .button { margin-right: .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* === Landing === */

.landing {
  text-align: center;
  max-width: 600px;
  padding-top: 10vh;
  display: grid;
  align-content: center;
  min-height: 100vh;
  margin-inline: auto;
}

.landing h1 {
  font-size: clamp(3.4rem, 10vw, 6.2rem);
  margin-bottom: 2rem;
}

.landing h1 span {
  color: var(--primary);
}

.landing-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 2rem;
}

.landing .lead { max-width: 40rem; margin-bottom: 2rem; }
.landing .button { width: fit-content; min-width: 10rem; margin-inline: auto; }

.phase-note {
  max-width: 42rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

@media (max-width: 620px) { .shell { width: min(100% - 1.1rem, 1120px); } .panel { border-radius: .75rem; } }
