:root {
  --bg: #f3f1ec;
  --ink: #000;
  --muted: #3a3a3a;
  --line: #a8a8a8;
  --tile: #fff;
  --error: #b3261e;
  /* Swap in SG brand fonts by adding @font-face files to /assets/fonts. */
  --font: "SG Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.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;
}

.lander {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.lander__media { position: relative; overflow: hidden; background: #d9d4cb; }
.lander__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}

.lander__panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px;
  text-align: center;
}

.close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px;
  border: 0; background: transparent; color: var(--ink);
  font-size: 30px; line-height: 1; cursor: pointer;
}

.wordmark {
  margin: 0 0 28px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
}

.countdown {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  margin-bottom: 36px;
}
.countdown[hidden] { display: none; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown__num {
  display: grid; place-items: center;
  width: 54px; height: 48px;
  background: var(--tile);
  font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.countdown__label { font-size: 12px; }
.countdown__sep { height: 48px; line-height: 48px; font-size: 20px; }

.headline {
  margin: 0 0 14px;
  max-width: 340px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800; line-height: 1.12; letter-spacing: 0.01em;
  text-transform: uppercase;
}

.subhead {
  margin: 0 0 40px;
  max-width: 340px;
  font-size: 15px; line-height: 1.35;
}

.step { width: 100%; max-width: 340px; }
.step[hidden] { display: none; }

.field {
  display: block; width: 100%;
  height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
}
.field::placeholder { color: #6b6b6b; font-size: 14px; }
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: var(--error); }

.ts:not(:empty) { margin-top: 10px; display: flex; justify-content: center; }

.cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; margin-top: 8px; padding: 8px 20px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: inherit; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta[disabled] { opacity: 0.6; cursor: progress; }
.cta__sub { font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; }

.disclosure {
  margin: 0 0 12px;
  font-size: 9px; line-height: 1.35; text-align: left; color: var(--muted);
}
.disclosure a { color: inherit; }

.error { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: var(--error); }

.decline {
  margin-top: 4px; padding: 6px 10px;
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer;
}

.done__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.done__title:focus { outline: none; }
.done__text { margin: 0 0 20px; font-size: 15px; }

@media (max-width: 760px) {
  .lander { grid-template-columns: 1fr; }
  .lander__media { height: 38vh; min-height: 220px; }
  .lander__panel { padding: 28px 16px 40px; justify-content: flex-start; }
  .wordmark { margin-bottom: 20px; }
  .countdown { margin-bottom: 24px; }
  .countdown__num { width: 48px; height: 44px; font-size: 18px; }
  .countdown__sep { height: 44px; line-height: 44px; }
  .subhead { margin-bottom: 24px; }
  .close { position: fixed; top: 10px; right: 10px; z-index: 2; background: rgba(243, 241, 236, 0.9); border-radius: 50%; }
}

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