/* AtomAid — landing page (four states, chosen by app.js from the clock) + /apply (static). Look follows the 2025 site. */
:root {
  color-scheme: light;
  --navy: #21447B;
  --navy-deep: #16305a;
  --sky: #C7DBFF;
  --blue: #277FFF;         /* logo dot */
  --blue-deep: #1a66d6;
  --orange: #FE5E17;       /* logo dot */
  --orange-deep: #d94a0c;
  --green: #35D73E;        /* logo dot = GenA green */
  --green-deep: #22b52c;
  --live: #d92d20;
  --ink: #1b2a44;
  --muted: #4a5a75;
  --card: rgba(255, 255, 255, 0.72);
  --card-edge: rgba(33, 68, 123, 0.14);
  --radius: 18px;
  --font: "Poppins", "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background-color: #eef3fb;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  background: transparent;
}

a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

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

.preview-notice {
  margin: 0;
  padding: 8px 16px;
  background: #fff4d6;
  border-bottom: 1px solid #f0d58a;
  color: #6b4e00;
  font-size: 0.85rem;
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 16px 56px;
}

/* ---- masthead ---- */
.masthead { text-align: center; margin-bottom: 28px; }

.logo { display: block; margin: 0 auto; width: min(100%, 560px); }
.logo img { display: block; width: 100%; height: auto; }
.logo-small { width: min(100%, 360px); }
.logo-link { display: block; }

.tagline {
  margin: 8px 0 0;
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
}

.date {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.when { margin: 8px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.when-local { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---- panels: only the current state's panel shows ---- */
.panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(22, 48, 90, 0.10);
  backdrop-filter: blur(6px);
  max-width: 640px;
  margin: 0 auto;
}
body[data-state="before"] .state-before,
body[data-state="live"]   .state-live,
body[data-state="after"]  .state-after,
body[data-state="closed"] .state-closed { display: block; }
body[data-state="live"] .panel { max-width: none; }

.panel h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.panel p { margin: 0 auto; max-width: 56ch; }

/* ---- countdown ---- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.countdown[hidden] { display: none; }
.unit {
  background: #fff;
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 12px 4px 8px;
}
.num {
  display: block;
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.lbl {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- live ---- */
.dot {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--live);
  vertical-align: -0.05em;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pending { color: var(--muted); }

/* ---- buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 0;
}
.actions:empty { display: none; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 200px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  color: #fff;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(22, 48, 90, 0.14);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-blue   { background: var(--blue); }
.btn-blue:hover   { background: var(--blue-deep); color: #fff; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-green  { background: var(--green); color: #0b2a0e; }
.btn-green:hover  { background: var(--green-deep); color: #0b2a0e; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-secondary:hover { background: var(--sky); color: var(--navy-deep); }

.btn-big {
  min-height: 68px;
  min-width: 300px;
  padding: 16px 40px;
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  font-weight: 700;
  border-radius: 14px;
}

/* "Coming soon": the real button, dimmed, with a badge pinned to its top-right corner. Not a link. */
.btn.is-soon {
  cursor: default;
  opacity: 0.7;
  filter: saturate(0.55);
  pointer-events: none;
}
.btn.is-soon .soon {
  position: absolute;
  top: -11px; right: -8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.apply { margin: 22px 0 0; text-align: center; }
.apply[hidden] { display: none; }

.gb-widget { margin-top: 24px; }
.gb-widget[hidden] { display: none; }

/* ---- about + credits ---- */
.about {
  margin: 34px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 1.02rem;
}
.about p { margin: 0; }

.credits { margin-top: 40px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.partners-label { margin: 0 0 14px; font-size: 1.05rem; color: var(--navy); }
.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 36px;
}
.partners a { display: inline-block; line-height: 0; }
.partners img { height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.partners a.text { line-height: 1.4; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.75); border: 1px solid var(--card-edge); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.presented { margin: 30px 0 0; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.presented-label { font-size: 1.05rem; color: var(--navy); }
.presented a { font-weight: 700; line-height: 0; }
.presented-logo { height: 46px; width: auto; }

/* ---- /apply ---- */
.wrap-apply { max-width: 760px; }
.masthead-compact { margin-bottom: 22px; }
.page-title {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
}
.form-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(22, 48, 90, 0.10);
  backdrop-filter: blur(6px);
  text-align: center;
}
.gform { display: block; width: 100%; max-width: 640px; margin: 0 auto; border: 0; background: #fff; border-radius: 10px; }
.form-fallback { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.back { margin: 26px 0 0; text-align: center; }

@media (max-width: 480px) {
  .wrap { padding-top: 24px; }
  .countdown { gap: 6px; }
  .unit { padding: 10px 2px 8px; border-radius: 10px; }
  .lbl { font-size: 0.65rem; letter-spacing: 0.04em; }
  .btn { width: 100%; }
  .partners { gap: 14px 22px; }
  .partners img { height: 72px; }
  .presented-logo { height: 38px; }
}
