:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --ink: #1d2524;
  --muted: #64706d;
  --line: #d8d6cd;
  --accent: #183c36;
  --accent-soft: #e7efeb;
  --danger: #8d2b24;
  --shadow: 0 20px 60px rgba(29, 37, 36, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% 10%, rgba(24, 60, 54, 0.08), transparent 30rem), var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 6rem 0 3rem; }
.hero { max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.7rem, 7vw, 5.7rem); font-weight: 780; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.35rem; }
.lead { max-width: 730px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.invite-card, .result-card, .privacy-note { background: rgba(255, 253, 248, 0.9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.invite-card { margin: 3rem auto 0; padding: 1.25rem; border-radius: 1.4rem; text-align: left; }
.invite-card label { display: block; margin: 0 0 0.65rem; font-weight: 750; }
.invite-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; }
input, button, .primary-link { min-height: 3.25rem; border-radius: 0.9rem; font: inherit; }
input { width: 100%; border: 1px solid var(--line); background: #fff; padding: 0.85rem 1rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
input:focus-visible, button:focus-visible, .primary-link:focus-visible, summary:focus-visible { outline: 3px solid rgba(24, 60, 54, 0.28); outline-offset: 2px; }
button, .primary-link { border: 0; background: var(--accent); color: #fff; font-weight: 750; cursor: pointer; }
button { padding: 0.8rem 1.3rem; }
button[disabled] { cursor: wait; opacity: 0.65; }
.hint, .status { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }
.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="ok"] { color: var(--accent); }
.result-card { max-width: 900px; margin: 1rem auto 0; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.4rem; text-align: left; }
.result-card h2 { margin-bottom: 0.8rem; }
.result-message { max-width: 760px; font-size: 1.1rem; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 0.75rem; padding: 0.8rem 1.25rem; text-decoration: none; }
.download-meta, .next-step { color: var(--muted); }
.download-meta { margin-top: 1rem; }
.download-meta p { margin: 0.35rem 0; }
details { margin-top: 0.7rem; }
summary { cursor: pointer; font-weight: 700; }
code { display: block; margin-top: 0.6rem; overflow-wrap: anywhere; color: var(--ink); }
.next-step { margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.journey { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; margin: 8rem 0 4rem; }
.journey h2 { margin-bottom: 0; }
.steps { border-top: 1px solid var(--line); }
.steps article { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.steps span { grid-row: span 2; color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.steps h3, .steps p { margin: 0; }
.steps p { color: var(--muted); }
.privacy-note { max-width: 900px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.4rem; }
.privacy-note h2 { max-width: 620px; margin-bottom: 0.8rem; }
.privacy-note p { max-width: 760px; margin: 0; color: var(--muted); }
footer { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .shell { padding-top: 3.5rem; }
  .invite-row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .journey { grid-template-columns: 1fr; margin-top: 5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
