@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #121826;
  --ink-soft: #4a5163;
  --ground: #f3f4f8;
  --surface: #ffffff;
  --accent: #4b2fe0;
  --accent-dark: #3a22b8;
  --peach: #ffb27a;
  --orange: #ff8a3d;
  --green: #0e7c66;
  --rust: #c2410c;
  --night-surface: #1f2638;
  --night-text: #d5d8e2;
  --night-muted: #b7bdcc;
  --lilac: #e3e0ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  -webkit-text-size-adjust: 100%;
}

body.night { background: var(--ink); color: #fff; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
body.night a { color: var(--night-muted); }
body.night a.card { color: var(--ink); }
body.night a.card-accent { color: #fff; }
body.night .confirm { color: #5ee6be; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
}

.brand em { color: var(--peach); font-style: normal; }
.topbar-note { color: var(--night-muted); font-size: 13px; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero { display: flex; flex-direction: column; gap: 14px; padding: 40px 20px 0; }
.hero h1 { font-size: 44px; line-height: 1; }
.hero p { margin: 0; color: var(--night-text); font-size: 17px; line-height: 1.5; }

.tag {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 20px 0;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--night-surface);
  color: var(--night-text);
  font-size: 13px;
  line-height: 1.35;
}

.spacer { flex-grow: 1; min-height: 24px; }

.actions { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 20px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font: 600 17px var(--body);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-rust { min-height: 52px; border-radius: 14px; background: var(--rust); font-size: 16px; }
.btn-rust:hover { background: #a63709; }
.btn-dark { min-height: 52px; border-radius: 14px; background: var(--ink); font-size: 16px; }
.btn-dark:hover { background: #000; }

.btn-plain {
  min-height: 44px;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.btn-plain:hover { background: var(--ground); color: var(--ink); }

.fineprint {
  margin: 0;
  color: var(--night-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.fineprint-day { color: var(--ink-soft); }

.footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 20px;
  font-size: 12px;
}

/* Lander B: quiz */
.quiz { display: flex; flex-direction: column; gap: 16px; padding: 28px 20px 0; }
.quiz h1 { font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.answers { display: flex; flex-direction: column; gap: 10px; }

.answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--night-surface);
  color: #fff;
  font: 400 16px var(--body);
  text-align: left;
  cursor: pointer;
}

.answer:disabled { cursor: default; color: var(--night-muted); }
.answer.is-right { background: var(--green); color: #fff; font-weight: 600; }
.answer.is-wrong { background: #7a2e16; color: #fff; }
.quiz-result { margin: 0; color: var(--night-muted); font-size: 14px; line-height: 1.5; }

.ask {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 12px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

.ask-head { display: flex; align-items: center; gap: 12px; }

.ask-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffe4d1;
}

.ask-text { display: flex; flex-direction: column; gap: 2px; }
.ask-title { font-family: var(--display); font-size: 19px; font-weight: 800; }
.ask-sub { color: var(--ink-soft); font-size: 14px; }

/* Lander C: direct prompt */
.direct { display: flex; flex-direction: column; gap: 18px; padding: 28px 20px 20px; }
.direct h1 { font-size: 34px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.tile {
  display: flex;
  align-items: flex-end;
  height: 150px;
  padding: 12px;
  border-radius: 18px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.tile:hover { color: #fff; opacity: 0.92; }
.tile-orange { background: var(--orange); color: var(--ink); }
.tile-orange:hover { color: var(--ink); }
.tile-accent { background: var(--accent); }
.tile-green { background: var(--green); }
.tile-ink { background: var(--ink); }

/* Thank-you */
.thanks-head { display: flex; flex-direction: column; gap: 10px; padding: 28px 20px 0; }
.thanks-head h1 { font-size: 32px; }
.confirm { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 600; }

.cards { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 0; }

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.06), 0 6px 18px rgba(18, 24, 38, 0.05);
  color: var(--ink);
  text-decoration: none;
}

.card:hover { color: var(--ink); box-shadow: 0 2px 4px rgba(18, 24, 38, 0.1), 0 8px 22px rgba(18, 24, 38, 0.08); }
.card[hidden] { display: none; }

.card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.card-text { display: flex; flex-grow: 1; flex-direction: column; gap: 3px; }
.card-title { font-family: var(--display); font-size: 19px; font-weight: 800; }
.card-sub { color: var(--ink-soft); font-size: 14px; }
.card-accent, .card-accent:hover { background: var(--accent); color: #fff; }
.card-accent .card-sub { color: var(--lilac); }

/* Text pages */
.prose { padding: 24px 20px; font-size: 15px; line-height: 1.6; }
.prose h1 { margin-bottom: 8px; font-size: 32px; }
.prose h2 { margin: 24px 0 6px; font-family: var(--display); font-size: 19px; }
.prose p, .prose ul { margin: 0 0 12px; }
