/* Mathsuri holding page. Tokens come from the app prototypes (design/prototypes). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Nunito_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype');
}

:root {
  --bg: #fff7fa;
  --surface: #ffffff;
  --text: #2a1f4e;
  --text-soft: #5e5478;
  --pink: #d62f84;
  --pink-deep: #b8236e;
  --gold: #ffc857;
  --coral: #ff8a5b;
  --lilac: #e2d6f2;
  --sky-top: #ffe3ef;
  --sky-bottom: #fff7fa;
  --badge-bg: #2a1f4e;
  --badge-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1233;
    --surface: #2a1f4e;
    --text: #fff7fa;
    --text-soft: #d9cff0;
    --pink: #ff6fa5;
    --pink-deep: #ff8fb8;
    --lilac: #4a3b78;
    --sky-top: #2a1f4e;
    --sky-bottom: #1b1233;
    --badge-bg: #ffc857;
    --badge-text: #2a1f4e;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%) var(--bg);
  color: var(--text);
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-weight: 700;
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  margin: 0;
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pink-deep);
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
}

.art {
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 1.75rem 0 1rem;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--text-soft);
}

/* Same "step" look as the app's pink button: a solid darker shadow under the pill. */
.soon {
  display: inline-block;
  margin: 0;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--pink);
}

footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.back {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: #b8236e;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #7d1749;
}

.back:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.num {
  margin: 0;
  font-size: clamp(4rem, 20vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--pink-deep);
}

/* Light animation, switched off for people who ask for less motion. */
.twinkle {
  animation: twinkle 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.twinkle.b {
  animation-delay: 1s;
}
.twinkle.c {
  animation-delay: 2s;
}
.sway {
  animation: sway 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.sway.b {
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .twinkle,
  .sway {
    animation: none;
  }
}
