:root {
  color-scheme: light;
  --ink: #15221d;
  --muted: #5d6b65;
  --paper: #f7f3ea;
  --card: #fffdf7;
  --line: #d8ded8;
  --green: #0d6b4d;
  --green-dark: #074d38;
  --mint: #dceee6;
  --amber: #f0bd4f;
  --error: #a22c29;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, #d8ecdf 0, transparent 32rem),
    var(--paper);
  line-height: 1.55;
}

a { color: var(--green-dark); }
a:hover { text-decoration-thickness: 2px; }

.shell {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.brand {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.language-switch { display: flex; gap: .35rem; }
.language-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .7rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 { margin: 0; max-width: 20ch; font-size: clamp(2rem, 7vw, 3.65rem); line-height: 1.02; letter-spacing: -.04em; }
.intro { max-width: 39rem; margin: 1.35rem 0 1rem; font-size: 1.08rem; }
.invitation { max-width: 39rem; margin: 0; color: var(--green-dark); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 2.2rem; }
.pill { border-radius: 999px; background: var(--mint); padding: .35rem .7rem; font-size: .88rem; font-weight: 700; }

.notice {
  border-left: .35rem solid var(--amber);
  padding: .8rem 1rem;
  margin: 0 0 1.5rem;
  background: #fff8e8;
  border-radius: .25rem .75rem .75rem .25rem;
}

.definitions {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .92rem;
}

form { display: grid; gap: 1rem; }
.question-card, .concept-card, .success-card, .privacy-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  box-shadow: 0 .35rem 1.5rem rgb(24 45 36 / 6%);
}

.question-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; font-size: 1.06rem; font-weight: 800; line-height: 1.35; }
.help { margin: .35rem 0 .8rem; color: var(--muted); font-size: .9rem; }
.options { display: grid; gap: .5rem; margin-top: .8rem; }
.option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: white;
  cursor: pointer;
}
.option:has(input:checked) { border-color: var(--green); background: var(--mint); }
input[type="radio"], input[type="checkbox"] { margin-top: .2rem; accent-color: var(--green); }

.frequency-grid { display: grid; gap: .85rem; margin-top: .8rem; }
label > span.label { display: block; margin-bottom: .35rem; font-weight: 650; }
select, textarea, input[type="email"] {
  width: 100%;
  padding: .72rem .8rem;
  border: 1px solid #aebbb5;
  border-radius: .65rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
input[type="text"] {
  width: 100%;
  padding: .72rem .8rem;
  border: 1px solid #aebbb5;
  border-radius: .65rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 7rem; resize: vertical; }
select:focus, textarea:focus, input:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 75%, transparent); outline-offset: 2px; }

.other-field { margin-top: .85rem; }
.concept-card { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--mint); }
.concept-card h2 { margin: 0 0 .7rem; color: var(--green-dark); font-size: 1.25rem; line-height: 1.25; }
.concept-card p:not(.eyebrow, .help) { margin: 0 0 .7rem; }
.concept-card .help { margin-bottom: 0; }

.actions { display: grid; gap: .7rem; margin-top: .4rem; }
.primary-button {
  border: 0;
  border-radius: .8rem;
  padding: .95rem 1.2rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.status { min-height: 1.5rem; margin: 0; color: var(--muted); }
.status.error { color: var(--error); font-weight: 700; }
.hidden, [hidden] { display: none !important; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success-card h2, .privacy-card h2 { margin-top: 0; }
.waitlist { margin-top: 1rem; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }

footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer p { margin: .45rem 0; }

.privacy-card { margin-bottom: 1rem; }
.privacy-card h2 { font-size: 1.15rem; }

@media (min-width: 42rem) {
  .shell { padding-top: 2rem; }
  .question-card, .concept-card { padding: 1.45rem 1.6rem; }
  .options.two-columns { grid-template-columns: 1fr 1fr; }
  .frequency-grid { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-template-columns: minmax(12rem, 18rem) 1fr; align-items: center; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
