/* wydeo.app — the app's look (docs: app/src/ui/tokens.ts): black, white type, one brand blue, flat, no borders. */
@font-face {
  font-family: 'Unbounded';
  src: url('/assets/fonts/Unbounded-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
:root {
  --bg: #000;
  --surface: #101010;
  --surface-high: #1c1c1c;
  --text: #fff;
  --text-dim: #8c8c8c;
  --brand: #4b63ff;
  --live: #ff3b30;
  --gold: #ffc83d;
  --display: 'Unbounded', -apple-system, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.45 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  min-height: 100svh;
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
}
.logo {
  font-family:
    'Unbounded',
    -apple-system,
    sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1.2px;
  margin: 0 0 40px;
}
.logo b {
  color: var(--live); /* the red dot of the app icon */
}
.circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--surface-high);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 28px;
  font-family:
    'Unbounded',
    -apple-system,
    sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: #fff;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--brand); /* the status ring: the app's only outline */
}
.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h1 {
  font-family:
    'Unbounded',
    -apple-system,
    sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
p {
  margin: 0 0 16px;
  color: var(--text-dim);
}
.tagline {
  color: var(--text);
  font-weight: 600;
  font-size: 20px;
  white-space: pre-line;
}
.spacer {
  flex: 1;
  min-height: 32px;
}
.btn {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  margin-top: 12px;
  background: var(--surface-high);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.btn.primary {
  background: #fff;
  color: #000;
}
.btn:active {
  opacity: 0.75;
}
.hint {
  font-size: 15px;
  margin-top: 20px;
  text-align: center;
}
.again .btn.primary {
  animation: nudge 1.2s ease-in-out 2;
}
@keyframes nudge {
  50% {
    transform: scale(1.04);
  }
}
[hidden] {
  display: none !important;
}

/* ── the home page: "coming soon" (the site's own design is a task of its own — TODO §0 2a) ─────────────────── */
.home {
  overflow-x: hidden;
}
.home main {
  max-width: none;
  min-height: 0;
  padding: 0;
  display: block;
}
.home .top {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home .top .logo {
  margin: 0;
  font-size: 28px;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-high);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon i,
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: blink 1.4s ease-in-out infinite;
}
.home .live i {
  background: #fff;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 20px 8px;
  display: grid;
  gap: 40px;
  align-items: center;
}
.kicker {
  color: var(--live);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.mega {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 11.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  overflow-wrap: normal;
}
.mega b {
  color: var(--live);
}
.lede {
  font-size: 18px;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0;
}

/* The stage: today's window as the app shows it — the push, the 10-minute ring, friends' wydeos blurred until you post. */
.stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 24px auto 8px;
}
.ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 2.6;
}
.ring-track {
  stroke: var(--surface-high);
}
.ring-left {
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-dasharray: 295.31;
  transition: stroke-dashoffset 1s linear;
}
.big,
.sat {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.big {
  inset: 6.5%;
  display: grid;
  place-items: center;
}
.blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.95;
}
.b1 {
  width: 70%;
  height: 70%;
  left: -6%;
  top: 8%;
  background: #ff5a8a;
  animation: drift 9s ease-in-out infinite;
}
.b2 {
  width: 64%;
  height: 64%;
  right: -8%;
  top: -4%;
  background: var(--brand);
  animation: drift 11s ease-in-out infinite reverse;
}
.b3 {
  width: 60%;
  height: 60%;
  left: 24%;
  bottom: -14%;
  background: #ffb03b;
  animation: drift 13s ease-in-out infinite;
}
@keyframes drift {
  50% {
    transform: translate(9%, -7%) scale(1.08);
  }
}
.locked {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 22px);
  letter-spacing: -0.02em;
}
.lock {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.live {
  position: absolute;
  left: 4%;
  bottom: 13%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--live);
  font-weight: 800;
  font-size: clamp(14px, 3.8vw, 18px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.push {
  position: absolute;
  top: -2%;
  left: 50%;
  width: min(92%, 400px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(28, 28, 28, 0.94);
  transform: translate(-50%, -18px);
  opacity: 0;
  z-index: 2;
  animation:
    drop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.7s forwards,
    nudge-push 7s ease-in-out 3s infinite;
}
@keyframes drop {
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
@keyframes nudge-push {
  0%,
  90%,
  100% {
    transform: translate(-50%, 0);
  }
  94% {
    transform: translate(-50%, 4px);
  }
}
.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.app-icon i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live);
  align-self: center;
  margin-top: 8px;
}
.push-text {
  display: grid;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
}
.push-text span {
  overflow-wrap: anywhere;
}
.push-when {
  align-self: start;
  color: var(--text-dim);
  font-size: 13px;
}
.sat {
  width: 22%;
  aspect-ratio: 1;
  animation: float 6s ease-in-out infinite;
}
.s1 {
  left: -3%;
  top: 22%;
}
.s2 {
  right: -2%;
  top: 30%;
  width: 25%;
  overflow: visible;
  background: var(--gold); /* the 👑 ring: a fill behind the wydeo, never a border */
  animation-delay: -2s;
}
.s2 .b5 {
  inset: 5%;
  filter: none;
  background: radial-gradient(circle at 35% 30%, #ffd2e0, #ff5a8a 45%, #4b2bd6 100%);
}
.s3 {
  right: 10%;
  bottom: -3%;
  width: 18%;
  animation-delay: -4s;
}
.b4,
.b6 {
  inset: -12%;
  filter: blur(5px);
}
.b4 {
  background: radial-gradient(circle at 35% 30%, #c9f6ff 0, #5fd3ff 25%, #4b63ff 60%, #2b1f8f 100%);
}
.b6 {
  background: radial-gradient(circle at 60% 35%, #f4ffb0 0, #9bff5c 30%, #19c37d 65%, #0c5c4a 100%);
}
.crown {
  position: absolute;
  top: -8%;
  right: -8%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-size: clamp(14px, 4vw, 22px);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* The band: a sticker across the page. */
.band-wrap {
  overflow: hidden;
  padding: 44px 0;
}
.band {
  background: #fff;
  color: #000;
  transform: rotate(-3deg);
  margin: 0 -4%;
}
.band-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.band-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 5vw, 34px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 16px 0;
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.rules {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 12px;
}
.rule {
  background: var(--surface);
  border-radius: 28px;
  padding: 26px 24px 24px;
}
.rule h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
}
.rule p {
  margin: 0;
}
.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: #000;
}
.n1 {
  background: var(--live);
  color: #fff;
}
.n2 {
  background: #fff;
}
.n3 {
  background: var(--brand);
  color: #fff;
}
.n4 {
  background: var(--gold);
}

.drop {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 20px 40px;
  text-align: center;
}
.drop .mega {
  font-size: clamp(42px, 12vw, 120px);
}
.drop .lede {
  margin: 0 auto;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.store {
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--surface-high);
  font-weight: 700;
}
.foot {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 24px 20px 40px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.3fr 1fr;
    padding-top: 64px;
    gap: 56px;
  }
  .hero .mega {
    font-size: min(80px, 6.2vw);
  }
  .stage {
    margin: 40px 0 0;
  }
  .rules {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }
  .push {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
