:root {
  --ink: #13233a;
  --ink-soft: #46546a;
  --paper: #f6f1e8;
  --card: #fffdf9;
  --line: #e2d9ca;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --warn: #a5402d;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5;
    --ink-soft: #a9b4c3;
    --paper: #0f1826;
    --card: #162235;
    --line: #2a3a52;
    --accent: #4fb596;
    --accent-ink: #0b1420;
    --accent-soft: #19352e;
    --warn: #f08b75;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.top { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.mark { width: 34px; height: 34px; color: var(--accent); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.eyebrow {
  margin: 0 0 10px; color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 600; font-size: clamp(34px, 7vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { margin: 16px 0 0; font-size: 18px; color: var(--ink-soft); max-width: 34ch; }
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: baseline; }
.dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-1px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 1px 0 rgba(19, 35, 58, 0.04), 0 18px 40px -28px rgba(19, 35, 58, 0.35);
}
.card h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -0.01em; }
.progress { margin: 0 0 18px; padding: 12px 14px; background: var(--accent-soft); border-radius: var(--radius); }
.progress-text { font-size: 14px; font-weight: 600; color: var(--ink); }
.bar { margin-top: 8px; height: 6px; background: rgba(0, 0, 0, 0.08); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.6s ease; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 6px; }
input[type="email"], input[type="text"], select {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px; min-height: 46px;
}
input:focus-visible, select:focus-visible, button:focus-visible, .pills label:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; border-radius: 999px; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span {
  display: inline-block;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; background: var(--paper); color: var(--ink);
}
.pills input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.submit {
  width: 100%; min-height: 50px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 16px; font-weight: 700;
}
.submit[disabled] { opacity: 0.6; cursor: progress; }
.msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--warn); }
.fine { margin: -6px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

.done h2 { margin-bottom: 8px; }
.done p { margin: 0 0 16px; color: var(--ink-soft); }
.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; font-size: 14px; }
.share button {
  flex: none; border: 0; border-radius: 10px; padding: 0 16px; min-height: 46px;
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer;
}
.finish {
  width: 100%; margin-top: 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink); font: inherit; font-weight: 700;
}

.final { text-align: center; padding: 8px 4px; outline: none; }
.check {
  width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 8px var(--accent-soft);
  animation: pop 0.45s ease-out;
}
.check svg { width: 36px; height: 36px; }
.final h2 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 28px; font-weight: 600;
}
.final-lead { margin: 0 auto 18px; color: var(--ink-soft); max-width: 34ch; }
.final-notes {
  list-style: none; margin: 0 0 18px; padding: 14px 16px; text-align: left;
  background: var(--accent-soft); border-radius: var(--radius);
  display: grid; gap: 10px; font-size: 14px;
}
.final-notes li { padding-left: 22px; position: relative; }
.final-notes li::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.final-close { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .check { animation: none; } }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); }

@media (min-width: 880px) {
  .wrap { grid-template-columns: 1.05fr 1fr; align-items: start; column-gap: 56px; padding-top: 28px; }
  .top, .foot { grid-column: 1 / -1; }
  .hero { padding-top: 48px; position: sticky; top: 24px; }
  .card { padding: 28px 26px; }
}

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin: 28px 0 8px; }
.doc h2 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .updated { font-size: 14px; }
