/* Landing page layout. Tokens and components come from oou.css. */

:root {
  /* How long the hero waits before animating in: longer on a first visit, while the splash plays. */
  --hero-wait: 1.55s;
}
.oou-no-splash {
  --hero-wait: 0.1s;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.6rem 0;
  background: rgba(253, 248, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 223, 200, 0.7);
}
.site-header .oou-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  flex: none;
}
.site-logo img {
  height: 3.25rem;
  width: auto;
}
.site-nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}
.site-nav a {
  position: relative;
  color: var(--oou-ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--oou-coral-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--oou-dur) var(--oou-ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}
@media (min-width: 64rem) {
  .site-nav ul {
    display: flex;
  }
}
.site-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Language menu */
.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--oou-radius-pill);
  border: 2px solid var(--oou-line);
  background: var(--oou-white);
  color: var(--oou-teal-900);
  font-weight: 800;
  font-size: 0.95rem;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary svg {
  width: 1.15rem;
  height: 1.15rem;
}
.lang[open] summary,
.lang summary:hover {
  border-color: var(--oou-teal-700);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 5;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--oou-white);
  border: 2px solid var(--oou-line);
  border-radius: var(--oou-radius-sm);
  box-shadow: var(--oou-shadow);
  animation: lang-in var(--oou-dur) var(--oou-ease-bounce);
}
@keyframes lang-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
}
.lang a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--oou-ink);
  font-weight: 700;
  text-decoration: none;
}
.lang a:hover,
.lang a[aria-current] {
  background: var(--oou-teal-100);
  color: var(--oou-teal-900);
}
@media (max-width: 23.5rem) {
  .site-logo img {
    height: 2.75rem;
  }
  .site-cta {
    padding-inline: 0.85rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 4rem;
}
.hero .oou-wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero {
    padding: 4rem 0 5.5rem;
  }
  .hero .oou-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}
.hero-copy > :nth-child(1) {
  margin-bottom: 1.1rem;
}
.hero-copy .oou-lead {
  max-width: 35rem;
  margin: 1.25rem 0 2rem;
}
/* Staggered entrance that waits for the splash on a first visit. */
.oou-js .hero-copy > [data-oou-reveal]:nth-child(1) {
  transition-delay: var(--hero-wait);
}
.oou-js .hero-copy > [data-oou-reveal]:nth-child(2) {
  transition-delay: calc(var(--hero-wait) + 0.1s);
}
.oou-js .hero-copy > [data-oou-reveal]:nth-child(3) {
  transition-delay: calc(var(--hero-wait) + 0.2s);
}
.oou-js .hero-copy > [data-oou-reveal]:nth-child(4) {
  transition-delay: calc(var(--hero-wait) + 0.3s);
}
.oou-js .scene[data-oou-reveal] {
  transition-delay: calc(var(--hero-wait) + 0.15s);
}
@media (prefers-reduced-motion: no-preference) {
  .oou-js .hero .oou-highlight {
    background-size: 0% 100%;
    animation: highlight-draw 0.8s var(--oou-ease) calc(var(--hero-wait) + 0.7s) forwards;
  }
}
@keyframes highlight-draw {
  to {
    background-size: 100% 100%;
  }
}

.scene {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin: 0 auto;
}
.scene__blob {
  position: absolute;
  border-radius: 50%;
}
.scene__blob--sun {
  inset: 4%;
  background: var(--oou-sun-100);
  animation: blob-breathe 9s ease-in-out infinite;
}
.scene__blob--teal {
  width: 34%;
  height: 34%;
  left: -4%;
  bottom: 2%;
  background: var(--oou-teal-100);
  animation: oou-float 7s ease-in-out infinite;
}
.scene__blob--coral {
  width: 22%;
  height: 22%;
  right: 0;
  top: 6%;
  background: var(--oou-coral-100);
  animation: oou-float 6s ease-in-out -2s infinite;
}
@keyframes blob-breathe {
  0%,
  100% {
    transform: scale(1);
    border-radius: 50%;
  }
  50% {
    transform: scale(1.04);
    border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  }
}
.scene__card {
  position: absolute;
  inset: 17%;
  background: var(--oou-white);
  border-radius: 32% 38% 34% 36%;
  box-shadow: var(--oou-shadow-lg);
  display: grid;
  place-items: center;
  animation: oou-float 6s ease-in-out infinite;
}
.scene__card img {
  width: 62%;
}
.scene__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: var(--oou-radius-pill);
  background: var(--oou-white);
  color: var(--oou-teal-900);
  font-family: var(--oou-font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--oou-shadow);
  animation: oou-float 5s ease-in-out infinite;
}
.scene__chip svg {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.3rem;
  border-radius: 50%;
}
.scene__chip--read {
  left: -2%;
  top: 22%;
  animation-delay: -1s;
}
.scene__chip--read svg {
  background: var(--oou-teal-100);
}
.scene__chip--play {
  right: -3%;
  top: 46%;
  animation-delay: -2.5s;
}
.scene__chip--play svg {
  background: var(--oou-coral-100);
}
.scene__chip--watch {
  left: 10%;
  bottom: 7%;
  animation-delay: -4s;
}
.scene__chip--watch svg {
  background: var(--oou-sun-100);
}
.scene__star {
  position: absolute;
  width: 11%;
}
.scene__star--a {
  left: 12%;
  top: 4%;
}
.scene__star--b {
  right: 8%;
  bottom: 12%;
  width: 8%;
  color: var(--oou-teal-700);
  animation-delay: 1.3s;
}
.scene__star--c {
  right: 26%;
  top: 2%;
  width: 6%;
  color: var(--oou-sun-400);
  animation-delay: 2.4s;
}

/* ---------- Promise strip ---------- */
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }
}
.promises li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--oou-white);
  border: 2px solid var(--oou-line);
  border-radius: var(--oou-radius-sm);
  padding: 1rem 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Read / play / watch ---------- */
.world {
  display: flex;
  flex-direction: column;
}
.world__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.world h3 {
  font-size: 1.8rem;
}
.world p {
  margin-bottom: 1.5rem;
}
.world__action {
  margin-top: auto;
  align-self: flex-start;
}
.world__soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: var(--oou-radius-pill);
  background: var(--oou-accent-tint);
  color: var(--oou-teal-900);
  font-family: var(--oou-font-display);
  font-weight: 600;
}
.world__soon svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--oou-accent);
  animation: oou-twinkle 3s ease-in-out infinite;
}
.world:hover .oou-badge {
  animation: wiggle 0.6s var(--oou-ease);
}
@keyframes wiggle {
  30% {
    transform: rotate(-12deg) scale(1.1);
  }
  60% {
    transform: rotate(8deg) scale(1.05);
  }
}

/* ---------- Why play works ---------- */
.why {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why p {
  color: var(--oou-text-muted);
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.how-note {
  margin-top: 1.5rem;
  background: var(--oou-white);
}

/* ---------- Closing call to action ---------- */
.cta {
  background: var(--oou-teal-700);
  border-radius: var(--oou-radius);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta::before {
  width: 16rem;
  height: 16rem;
  left: -5rem;
  bottom: -8rem;
}
.cta::after {
  width: 11rem;
  height: 11rem;
  right: -3rem;
  top: -5rem;
}
.cta h2 {
  color: var(--oou-white);
  position: relative;
}
.cta p {
  color: var(--oou-teal-100);
  max-width: 32rem;
  margin: 0.9rem auto 1.75rem;
  position: relative;
}
.cta .oou-btn {
  position: relative;
}
.cta__star {
  position: absolute;
  width: 3rem;
  color: var(--oou-sun-400);
}
.cta__star--a {
  left: 6%;
  top: 14%;
}
.cta__star--b {
  right: 7%;
  bottom: 14%;
  width: 2rem;
  color: var(--oou-coral-500);
  animation-delay: 1.5s;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--oou-space-8);
  padding: 3rem 0 2rem;
  background: var(--oou-white);
  border-top: 2px solid var(--oou-line);
  font-size: 1rem;
  color: var(--oou-muted);
}
.site-footer .oou-wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .site-footer .oou-wrap {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-footer__brand img {
  height: 3rem;
  width: auto;
  margin-bottom: 0.9rem;
}
.site-footer__brand p {
  max-width: 22rem;
}
.site-footer h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer nav a {
  display: inline-block;
  padding: 0.55rem 0;
  font-weight: 700;
  text-decoration: none;
}
.site-footer nav a:hover,
.site-footer nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--oou-line);
  font-size: var(--oou-text-sm);
}

/* ---------- Error page ---------- */
.oops {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 3rem;
}
.oops img {
  width: 8rem;
  margin: 0 auto 1.5rem;
}
.oops .oou-lead {
  margin: 1rem 0 1.75rem;
}
.oops .oou-row,
.oops .oou-chips {
  justify-content: center;
}
.oops .oou-chips {
  margin-top: 1.5rem;
}

@media print {
  .oou-splash,
  .scene,
  .site-nav,
  .site-tools,
  .cta__star {
    display: none;
  }
  .oou-js [data-oou-reveal] {
    opacity: 1;
    transform: none;
  }
}
