/* Hollywood Hills teaser: single screen, no scroll on desktop. */

@font-face {
  font-family: "Masheen";
  src: url("fonts/masheen.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "SF Hollywood Hills";
  src: url("fonts/sf-hollywood-hills.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
/* Oswald, DM Mono and Inter (OFL) are self-hosted so no third party is contacted before consent. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cyan: #46e9ff;
  --magenta: #ff45e0;
  --ink: #0b0b12;
  --font-display: "Masheen", Impact, Haettenschweiler, sans-serif;
  --font-wordmark: "SF Hollywood Hills", Impact, sans-serif;
  --font-tagline: "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  color: #fff;
  background: #0a1a5c url("assets/sky.webp") center top / cover no-repeat;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Stage ---------- */

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 17vh, 150px) 24px 10vh;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wordmark {
  position: absolute;
  top: 22px;
  left: 30px;
  z-index: 3;
  font-family: var(--font-wordmark);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 0.82;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.wordmark span { display: block; }

/* ---------- Countdown ---------- */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vh, 60px);
  width: 100%;
  max-width: 1200px;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 26px);
  font-family: var(--font-display);
  line-height: 1;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vh, 14px);
  min-width: 2ch;
}

.num, .colon {
  font-size: clamp(64px, 9.5vw, 156px);
  font-variant-numeric: tabular-nums;
  text-shadow:
    -3px -3px 0 var(--cyan),
    3px 3px 0 var(--magenta),
    0 0 26px rgba(140, 190, 255, 0.55);
}
.colon { padding-top: 0.02em; }

.lbl {
  font-size: clamp(24px, 2.6vw, 44px);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* ---------- Sign-up ---------- */

.signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.tagline {
  margin: 0;
  font-family: var(--font-tagline);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.pill {
  display: flex;
  align-items: center;
  width: min(390px, 100%);
  height: 52px;
  padding: 0 4px 0 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1 var(--font-mono);
}
.pill:focus-within { box-shadow: 0 0 0 3px var(--cyan), 0 8px 30px rgba(0, 0, 0, 0.35); }
.pill input::placeholder { color: #9a9aa6; }
.pill button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 17px/1 var(--font-mono);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pill button:hover { transform: scale(1.04); box-shadow: 0 0 22px rgba(70, 233, 255, 0.6); }
.pill button:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.form-msg {
  margin: 0;
  min-height: 1.4em;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.form-msg.ok { color: var(--cyan); }
.form-msg.err { color: #ffb3ef; }

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: clamp(28px, 3.4vw, 54px);
  margin: clamp(16px, 5vh, 70px) 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: block;
  width: clamp(44px, 4vw, 64px);
  height: clamp(44px, 4vw, 64px);
  color: var(--cyan);
  filter: drop-shadow(3px 3px 0 var(--magenta));
  transition: transform 0.2s ease;
}
.socials a:hover { transform: translateY(-3px) scale(1.06); }
.socials svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Ridge, clouds, footer ---------- */

.ridge {
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: 0;
  height: 20vh;
  overflow: hidden;
  pointer-events: none;
}
.ridge img {
  position: absolute;
  top: -2.5vw;
  left: 0;
  width: 112vw;
  max-width: none;
  filter: drop-shadow(0 -6px 24px rgba(0, 0, 0, 0.5));
}

.cloud {
  position: absolute;
  bottom: -9%;
  width: 46vw;
  max-width: none;
  pointer-events: none;
}
.cloud.left { left: -8vw; }
.cloud.right { right: -9vw; transform: scaleX(-1); }

.comet {
  position: absolute;
  top: 12%;
  left: 0;
  width: 22vw;
  max-width: 420px;
  opacity: 0;
  pointer-events: none;
  animation: comet-fly 14s ease-in-out infinite;
}
@keyframes comet-fly {
  0%   { opacity: 0; transform: translate(-32vw, 14vh) scale(0.9); }
  7%   { opacity: 0.95; }
  48%  { opacity: 0.95; }
  64%  { opacity: 0; transform: translate(110vw, -18vh) scale(1.05); }
  100% { opacity: 0; transform: translate(110vw, -18vh) scale(1.05); }
}

/* Darkens the ridge behind the footer links so they stay readable. */
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 20, 0.55));
  pointer-events: none;
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  margin: 0;
  padding: 0 16px;
  font-size: 13px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot .sep { opacity: 0.7; }

/* ---------- Legal pages ---------- */

.legal-page { min-height: 100dvh; padding: 110px 24px 60px; }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px);
  border-radius: 18px;
  background: rgba(5, 10, 34, 0.78);
  backdrop-filter: blur(6px);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.legal h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  text-shadow: -2px -2px 0 var(--cyan), 2px 2px 0 var(--magenta);
}
.legal .updated { margin: 0 0 28px; font-family: var(--font-mono); font-size: 13px; opacity: 0.75; }
.legal h2 { margin: 30px 0 8px; font-size: 20px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.9); }
.legal .table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.18); text-align: left; vertical-align: top; }
.legal th { background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.legal .cookie-settings {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 14px/1 var(--font-mono);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal .back { display: inline-block; margin-top: 30px; font-family: var(--font-mono); font-size: 14px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .comet { animation: none; }
  .stars { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .stage { padding: 92px 20px 17vh; justify-content: flex-start; }
  .wordmark { left: 20px; top: 18px; }
  .hero { gap: 24px; }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    width: 100%;
    max-width: 380px;
  }
  .colon { display: none; }
  .num { font-size: clamp(64px, 22vw, 96px); }
  .lbl { font-size: 24px; }

  .signup { flex-direction: column; gap: 16px; }
  .tagline { text-align: center; font-size: 22px; }
  .pill { height: 50px; }
  .pill input { font-size: 16px; }

  .socials { gap: 26px; margin-top: 8px; }
  .socials a { width: 46px; height: 46px; }

  /* Only the crest of the hill shows on a phone: the clouds cover the rest. */
  .ridge { height: 10vh; left: -45vw; right: -115vw; }
  .ridge img { width: 260vw; top: -10vw; }
  .cloud { width: 80vw; bottom: 0; }
  .cloud.left { left: -18vw; }
  .cloud.right { right: -20vw; }

  .foot { font-size: 12px; gap: 4px 8px; }
  .foot .legal-line { flex-basis: 100%; }

  .legal-page { padding: 90px 16px 40px; }
}

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  left: 20px;
  bottom: 52px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100% - 40px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 10, 34, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.5;
}
.consent p { margin: 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { flex: 1; }
.consent button {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font: 500 14px/1 var(--font-mono);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.consent button:hover { transform: scale(1.04); }
.consent-accept { border: 0; background: #fff; color: var(--ink); }
.consent-accept:hover { box-shadow: 0 0 22px rgba(70, 233, 255, 0.6); }
.consent-reject { border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; }

@media (max-width: 760px) {
  .consent { left: 16px; bottom: 12px; width: calc(100% - 32px); text-align: center; }
}
