:root {
  --bg: #FFFFFF;
  --ink: #090909;
  --mute: #777777;
  --line: #DADADA;
  --hint: #A8A8A8;
  --accent: #FF4D00;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html::-webkit-scrollbar { display: none; }

html {
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 16px var(--gutter);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.header__logo img { display: block; width: auto; height: 18px; }

.lang {
  display: flex;
  gap: 4px;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.lang__btn[aria-pressed="true"] {
  border-color: var(--line);
  color: var(--ink);
}
@media (hover: hover) {
  .lang__btn:hover { color: var(--ink); }
}
.flag {
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(9, 9, 9, .12);
}
.lang__btn[aria-pressed="false"] .flag { opacity: .55; }

/* ---------- Page ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: calc(640px + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) 0;
  animation: fade .5s ease-out both;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.lead {
  margin-top: 12px;
  color: var(--mute);
  font-size: 18px;
  line-height: 1.45;
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 28px;
  margin-top: clamp(32px, 5vw, 48px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}

.field { min-width: 0; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.label__hint {
  margin-left: 6px;
  color: var(--mute);
  font-weight: 400;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  outline: 0;
  appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder { color: var(--hint); opacity: 1; }
.input:hover { border-color: var(--hint); }
.input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.input--follow { margin-top: 8px; }
.input--area {
  min-height: 140px;
  resize: vertical;
}

.field.is-invalid .input {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.error {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.error::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: .12em;
}

/* ---------- Choices ---------- */

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices--even {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.choices--five { grid-template-columns: repeat(5, 1fr); }
.choices--five .choice span { padding: 0 8px; }

.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s;
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (hover: hover) {
  .choice:hover input:not(:checked) + span { border-color: var(--ink); }
}

/* ---------- Send ---------- */

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.send { margin-top: 4px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}
.cta__arrow {
  width: 20px;
  height: 20px;
  transition: transform .2s ease-out;
}
@media (hover: hover) {
  .cta:hover { background: var(--accent); }
  .cta:hover .cta__arrow { transform: translateX(6px); }
}
.cta:active { background: var(--accent); }
.cta[disabled] { cursor: progress; background: var(--ink); opacity: .7; }
.cta[disabled] .cta__arrow { transform: none; }

.send__error {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}
.send__note {
  margin-top: 12px;
  color: var(--mute);
  font-size: 14px;
  text-align: center;
}

/* ---------- Success ---------- */

.stage { transition: opacity .25s; }
.stage.is-leaving { opacity: 0; }

.success {
  padding-block: clamp(24px, 6vw, 72px);
  animation: fade .5s ease-out both;
}
.success .title:focus { outline: 0; }

.success__ref {
  margin-top: 24px;
  color: var(--mute);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.back__arrow { width: 20px; height: 20px; }
@media (hover: hover) {
  .back:hover { background: var(--ink); color: var(--bg); }
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  max-width: 1200px;
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 0 var(--gutter) 24px;
  font-size: 14px;
  line-height: 1.3;
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer__mark { font-family: var(--display); font-weight: 700; }
.footer__links { display: flex; justify-content: flex-end; gap: 24px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .2s;
}
@media (hover: hover) {
  .footer__links a:hover { color: var(--accent); }
}
.footer__legal { color: var(--mute); font-size: 13px; }

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .form, .grid { gap: 24px; }
  .choices--even { grid-template-columns: 1fr 1fr; }
  .choices--five { grid-template-columns: repeat(3, 1fr); }
  .header__year { display: none; }
  .lead { font-size: 17px; }

}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .page, .success { animation: none; }
  .cta__arrow { transition: none; }
  .cta:hover .cta__arrow { transform: none; }
}
