/* Zoo Calendar — coming-soon page. Tokens follow the Zoo IAM dark theme (bg #0B0D14, violet/cyan accents). */
:root {
  --bg: #0B0D14;
  --page: radial-gradient(1200px 600px at 10% -10%, #1A1630 0%, transparent 60%),
          radial-gradient(900px 500px at 110% 110%, #161A30 0%, transparent 60%),
          #0B0D14;
  --ink: #F4F5F8;
  --muted: #A3A9BD;
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.07);
  --violet: #8B5CF6;
  --violet-soft: #A78BFA;
  --cyan: #08D9ED;
  --accent-grad: linear-gradient(135deg, #08D9ED 0%, #8655FF 100%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-card: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px -24px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
/* Author display rules (e.g. the countdown grid) must not override the hidden attribute. */
[hidden] { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--violet-soft); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

/* Layout */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .page { padding: 32px; }
}

.content {
  position: relative;
  margin: auto 0;
  padding: clamp(32px, 7vh, 72px) 0;
}
.content::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 30%;
  height: 300px;
  background: radial-gradient(closest-side, rgba(134, 85, 255, .22), transparent);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(134, 85, 255, .75);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand__by { color: var(--muted); font-size: .8125rem; }

/* Hero */
.hero { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(139, 92, 246, .08);
  color: var(--violet-soft);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(8, 217, 237, .55);
  animation: pulse 2.2s ease-out infinite;
}
.eyebrow__post { display: none; }
.is-launched .eyebrow__pre { display: none; }
.is-launched .eyebrow__post { display: inline; }

h1 {
  margin: 22px 0 14px;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  color: var(--muted);
  text-wrap: balance;
}

/* Countdown */
.countdown {
  width: 100%;
  max-width: 720px;
  margin: 40px auto 0;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 2.5vw, 20px) 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(11, 13, 20, .55);
}
.unit__value {
  font-size: clamp(2rem, 9vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.unit__label {
  margin-top: 8px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
@media (min-width: 640px) {
  .unit__label { font-size: .75rem; }
}

.launch-state {
  margin: 8px 0 12px;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.launch-note, .noscript {
  margin: 0 auto;
  max-width: 48ch;
  text-align: center;
  color: var(--muted);
}

/* Launch times */
.times { margin-top: 28px; }
.times__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .times__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #local-time-item { grid-column: 1 / -1; }
}
.times__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.times__city {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.times__list time { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8125rem;
}
.footer p { margin: 0; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(8, 217, 237, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(8, 217, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 217, 237, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
