:root {
  --paper: #dde0cc;
  --ink: #292c23;
  --muted: #626656;
  --line: #b9bea5;
  --accent: #ff3131;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 96px;
  height: 96px;
  display: block;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.header-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-underline-offset: 4px;
}

.hero {
  min-height: calc(100vh - 104px);
  padding: clamp(80px, 13vh, 150px) 0 100px;
}

.status,
.section-label,
.countdown-title {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 950px;
  margin: 24px 0 30px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.intro {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.countdown-wrap {
  max-width: 580px;
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.countdown-title { color: var(--muted); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.countdown div {
  display: flex;
  flex-direction: column;
}

.countdown span {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.countdown small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.signup {
  max-width: 760px;
  margin-top: 64px;
}

.signup fieldset {
  display: flex;
  gap: 24px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.signup legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.signup label {
  font-size: 0.875rem;
  cursor: pointer;
}

.signup input[type="radio"] {
  margin: 0 7px 0 0;
  accent-color: var(--ink);
}

.field-row {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.field-row input {
  min-width: 0;
  flex: 1;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.field-row input::placeholder { color: var(--muted); }
.field-row:focus-within { border-color: var(--accent); }

.field-row button {
  padding: 15px 0 15px 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.field-row button:hover { color: var(--accent); }

.field-row button:disabled {
  color: var(--muted);
  cursor: default;
}

.form-note {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #3f654f;
  font-size: 0.8rem;
}

.form-note.is-error { color: var(--accent); }

.provider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.provider h2 {
  max-width: 500px;
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.provider > div:last-child {
  align-self: end;
  max-width: 400px;
}

.provider p { color: var(--muted); }

.provider a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-underline-offset: 5px;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer a { text-underline-offset: 4px; }
.footer-credit { margin-left: auto; }

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header { height: 84px; }

  .brand {
    width: 78px;
    height: 78px;
  }

  .brand img {
    width: 100%;
    height: 100%;
  }

  .hero {
    min-height: 0;
    padding: 72px 0 80px;
  }

  h1 { font-size: clamp(2.9rem, 14vw, 4.75rem); }

  .signup fieldset {
    flex-direction: column;
    gap: 9px;
  }

  .field-row {
    align-items: stretch;
    flex-direction: column;
    border: 0;
  }

  .field-row input { border-bottom: 1px solid var(--ink); }

  .field-row button {
    align-self: flex-start;
    padding: 16px 0;
  }

  .provider {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 72px 0;
  }

  footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-credit { margin-left: 0; }
}

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