@font-face {
  font-family: "Archivo";
  src: url(/fonts/Archivo-Variable.ttf) format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url(/fonts/ArchivoExpanded-Black.ttf) format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* Siin charter palette; Archivo stands in for Neuething Sans (titles ultra-expanded, body semi-expanded). */
:root {
  --navy: #010951;
  --royal: #0208e0;
  --blue: #095ff8;
  --sky: #6fe8fb;
  --pale: #eafcff;
  --cyan: #02f7ff;
  --error: #ffe27a;
  --glass: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 500 15px/1.45 "Archivo", system-ui, sans-serif;
  font-stretch: 112.5%;
  background: var(--royal) url(/backdrop-landscape.jpg) center / cover no-repeat fixed;
}
@media (max-aspect-ratio: 1/1) {
  body { background-image: url(/backdrop-portrait.jpg); background-attachment: scroll; background-position: top center; }
}

/* Floats over the page so that it takes no height from the layout. */
.test-banner {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  background: var(--sky);
}

/* On a computer the page fits one screen: 100svh, no scroll down to a 1280 × 720 window. */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 32px;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px 64px; min-height: 0; }
}

.lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.mark { width: 84px; height: auto; fill: none; stroke: #fff; stroke-width: 7.8; stroke-miterlimit: 6; overflow: visible; }
.wordmark { display: flex; flex-direction: column; font: 900 19px/1.05 "Archivo Expanded", "Archivo", sans-serif; letter-spacing: 0.02em; }

.eyebrow { margin: 0 0 14px; color: var(--sky); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tagline { margin: 20px 0 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--pale); }
.date { margin: 6px 0 0; color: rgba(234, 252, 255, 0.82); }

.countdown { display: flex; gap: 12px; margin-top: 32px; }
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.value {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 36px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.label { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.countdown-done { margin: 32px 0 0; font-weight: 800; font-stretch: 125%; font-size: 28px; color: var(--sky); }
@media (max-width: 480px) {
  .countdown { gap: 8px; margin-top: 24px; }
  .unit { flex: 1; min-width: 0; padding: 10px 4px 8px; }
  .value { font-size: 26px; }
  .label { font-size: 10px; letter-spacing: 0.03em; }
}

.card {
  padding: 28px 32px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: 0 24px 80px rgba(1, 9, 81, 0.35);
}
@media (max-width: 480px) { .card { padding: 22px 18px 18px; } }

h2 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 26px; letter-spacing: -0.01em; }
.lead { margin: 4px 0 18px; color: var(--pale); }
.muted { color: rgba(234, 252, 255, 0.75); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .row { grid-template-columns: 1fr; gap: 0; } }
.field { position: relative; margin-bottom: 12px; }
/* A field error sits on the label line, right-aligned, so showing it does not move the layout. */
.field .error { position: absolute; top: 0; right: 0; margin: 0; line-height: 1.6; }
label { display: block; font-weight: 600; margin-bottom: 5px; }
input:not([type="checkbox"]) {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px; /* 16 px keeps iOS from zooming on focus */
  font-stretch: 100%;
  color: #fff;
  background: rgba(1, 9, 81, 0.28);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:not([type="checkbox"]):focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); }
.error { margin: 5px 0 0; font-size: 13px; font-weight: 700; color: var(--error); }
.error:empty { display: none; }

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

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin-top: 12px; }
.consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid #fff;
  border-radius: 5px;
  background: rgba(1, 9, 81, 0.28) center / 14px no-repeat;
  cursor: pointer;
}
.consent input:checked {
  border-color: var(--cyan);
  background-color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23010951' stroke-width='2.2'/%3E%3C/svg%3E");
}
.consent input[aria-invalid="true"] { border-color: var(--error); }
.consent input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent label { margin: 0; font-weight: 500; font-size: 14px; }
.consent + .error { margin: 4px 0 0 32px; }

.form-error { margin: 12px 0 0; font-weight: 700; color: var(--error); }
.form-error:empty { display: none; }

button {
  width: 100%;
  margin-top: 18px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s;
}
button:hover { background: var(--pale); }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button:disabled { opacity: 0.7; cursor: progress; }
button.secondary { color: #fff; background: transparent; border: 1px solid var(--line); }
button.secondary:hover { background: rgba(255, 255, 255, 0.1); }
button.link {
  width: auto;
  margin: 14px auto 0;
  display: block;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  font-stretch: 112.5%;
  color: var(--pale);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.link:hover { background: none; color: #fff; }

#done-view:focus { outline: none; }

.notice {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 28px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(1, 9, 81, 0.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.notice::backdrop { background: rgba(1, 9, 81, 0.55); }
.notice h2 { font-size: 22px; }
.notice > .muted { margin: 4px 0 0; font-size: 14px; }
.notice dl { margin: 12px 0 0; font-size: 14px; }
.notice dt { font-weight: 700; margin-top: 12px; color: var(--sky); }
.notice dd { margin: 2px 0 0; color: var(--pale); }
.notice a { color: #fff; }
