:root {
  --blue: #2438f5;
  --blue-deep: #1a28c4;
  --paper: #f7f7ff;
  --yellow: #ffd84d;
  --line: rgba(247, 247, 255, 0.35);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

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

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* Top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Main */
.main {
  align-self: center;
  padding: clamp(2rem, 8vh, 5rem) 0;
}
.headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.lead {
  max-width: 34rem;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 40rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.unit {
  padding: 1rem 0 0.9rem 1rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.unit:first-child { border-left: 0; padding-left: 0; }
.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.label { font-size: 0.9rem; opacity: 0.85; margin-top: 0.35rem; }
.launched { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin: 0 0 2rem; }

/* Form */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 34rem;
}
.notify input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  font: inherit;
  color: var(--blue-deep);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 0.5rem;
}
.notify input::placeholder { color: #6a72c9; }
.notify input[aria-invalid="true"] { border-color: var(--yellow); }
.notify button {
  flex: 0 0 auto;
  padding: 0.95rem 1.6rem;
  font: inherit;
  font-weight: 500;
  color: var(--blue-deep);
  background: var(--yellow);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.notify button:hover { background: #fff; }
.notify button:active { transform: translateY(1px); }
.msg { flex: 1 0 100%; margin: 0; min-height: 1.5rem; font-size: 0.95rem; }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Small screens */
@media (max-width: 480px) {
  .notify button { flex: 1 0 100%; }
  .unit { padding-left: 0.6rem; }
  .label { font-size: 0.78rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  * { transition: none !important; }
}
