/* ===== Design tokens (from brand-sheet.png) ===== */
:root {
  --dark-green: #0B4D2E;
  --green: #00C853;
  --yellow: #FFD600;
  --orange: #FF7A00;
  --near-black: #052117;
  --purple: #6C2BD6;

  --ink: #0F1D17;
  --bg-light: #FAF7F0;
  --white: #FFFFFF;

  --font-head: 'Baloo 2', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 14px 30px rgba(11, 77, 46, 0.25);
  --shadow-soft: 0 10px 24px rgba(5, 33, 23, 0.1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Emoji render at full text size by default — too heavy inside large
   headings, so accent emoji are scaled down relative to their parent. */
.emoji-sm { font-size: .55em; vertical-align: middle; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 14px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.btn--yellow {
  background: var(--yellow);
  color: var(--near-black);
  box-shadow: 0 8px 0 #C9A800, 0 14px 24px rgba(0,0,0,.18);
}
.btn--yellow:hover { box-shadow: 0 6px 0 #C9A800, 0 10px 20px rgba(0,0,0,.2); }
.btn--yellow:active { transform: translateY(2px); box-shadow: 0 4px 0 #C9A800; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn--outline:hover { background: rgba(255,255,255,.1); }

/* ===== Logo (official Oya Guess! mark — website/Design/logo.png) ===== */
.brand { display: inline-flex; align-items: center; }
.brand__mark { width: 52px; height: 52px; flex-shrink: 0; object-fit: contain; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark-green);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--yellow); border-color: var(--yellow); }
.nav__cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--dark-green) 0%, #0D5A36 100%);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__mark {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}
.hero__headline {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: .4em;
}
.hero__subtext {
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 2em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__cards {
  position: relative;
  height: 360px;
}
.deck-card {
  position: absolute;
  width: 190px;
  height: 250px;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: var(--shadow-card);
  border: 3px solid rgba(255,255,255,.9);
  transition: transform .25s ease;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.deck-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.65) 100%);
}
.deck-card:hover { transform: translateY(-6px) rotate(0deg) !important; }
.deck-card__label {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero__cards .deck-card--pos1 { left: 0;   top: 70px;  transform: rotate(-9deg);  z-index: 1; }
.hero__cards .deck-card--pos2 { left: 95px; top: 10px;  transform: rotate(-2deg);  z-index: 2; }
.hero__cards .deck-card--pos3 { left: 150px;top: 90px;  transform: rotate(6deg);   z-index: 3; }
.hero__cards .deck-card--pos4 { left: 230px;top: 35px;  transform: rotate(13deg);  z-index: 4; }

/* ===== Section helpers ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--yellow); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head__sub { color: #5B6B61; }

/* ===== About ===== */
.about { padding: 96px 0; background: var(--bg-light); }
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--dark-green); }
.about p { color: #44544B; font-size: 1.02rem; }

.about__visual { display: flex; justify-content: center; }

/* Phone-bezel mockup wrapping a real app screenshot */
.phone-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 390 / 844;
  background: var(--near-black);
  border-radius: 46px;
  padding: 14px;
  box-shadow: var(--shadow-card), 0 0 0 2px rgba(255,255,255,.06) inset;
}
.phone-frame__screens {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--dark-green);
}

/* Each "screen" of the recreated walkthrough stacks in the same spot;
   main.js toggles .is-active to crossfade between them. */
.app-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  flex-direction: column;
}
.app-screen.is-active { opacity: 1; }

/* Screen 1: home — the real screenshot, slowly panned to suggest scrolling */
.app-screen--home { background: var(--green); }
.app-screen__pan {
  width: 100%;
  /* height comes from the image itself (object's natural aspect ratio) so the
     pan below never scrolls past real content into empty background. */
  animation: homePan 6s ease-in-out infinite alternate;
}
.phone-frame.is-paused .app-screen__pan { animation-play-state: paused; }
.app-screen__pan img { width: 100%; display: block; }
@keyframes homePan {
  /* app-screenshot-pan.webp is 780x2460 (h/w 3.154); the phone screen area is
     390x844 (h/w 2.164) — so the image's own height can pan by at most
     (3.154-2.164)/3.154 ≈ 31%. Using 28% for a small safety margin. */
  0% { transform: translateY(0); }
  100% { transform: translateY(-28%); }
}

/* Reusable small "recording" indicator — red pulsing dot, used standalone
   (.pulse-dot) or inside a pill badge (.rec-badge). */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  animation: pulseDot 1.1s ease-in-out infinite;
}
.pulse-dot--rec { background: #FF3B30; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}
.rec-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.4);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .06em;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
}

/* Screen 2: get ready — lift into position */
.app-screen--ready {
  position: relative;
  background: linear-gradient(165deg, var(--dark-green), var(--near-black));
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  gap: 10px;
}
.ready-emoji { font-size: 2.6rem; }
.ready-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.ready-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--white);
  margin: 0;
}
.ready-copy {
  color: rgba(255,255,255,.75);
  font-size: .74rem;
  line-height: 1.45;
  margin: 0;
}
.ready-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* Screen 3: countdown */
.app-screen--countdown {
  position: relative;
  background: var(--dark-green);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.countdown-hint {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.countdown-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--yellow);
  animation: countPop .5s ease;
}
@keyframes countPop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.countdown-deck {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}

/* Screen 4: gameplay */
.app-screen--play {
  background: #00897B; /* African Countries deck color, matching the demo words */
  justify-content: space-between;
  padding: 18px 14px;
}
.play-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.play-hud--bottom { justify-content: center; }
.play-score {
  background: rgba(0,0,0,.25);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--white);
}
.play-card {
  position: relative;
  flex: 1;
  margin: 14px 0;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-word {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--white);
  opacity: 0;
  transition: opacity .4s ease;
}
.play-word--a.is-active, .play-word--b.is-active { opacity: 1; }
.play-cam {
  position: absolute;
  bottom: 54px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px;
}
.phone-frame__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--near-black);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-frame__home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  z-index: 2;
}

/* ===== How it works ===== */
.how { padding: 96px 0; background: var(--dark-green); color: var(--white); }
.how .section-head__title { color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 28px 22px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--near-black);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .4em; }
.step p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }

/* ===== Decks showcase ===== */
.decks { padding: 96px 0; background: var(--bg-light); }
.decks__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.deck-card--static {
  position: relative; /* keeps .deck-card::before's overlay scoped to this card, not the page */
  transform: none !important;
  width: 160px;
  height: 210px;
}
.decks__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 210px;
  border-radius: var(--radius-md);
  border: 2px dashed #C7D2CB;
  color: #6B7A71;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  padding: 16px;
}

/* ===== FAQ / Accordion ===== */
.faq { padding: 96px 0; background: var(--dark-green); }
.faq .section-head__title { color: var(--white); }
.faq .eyebrow { color: var(--yellow); }

.accordion { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.accordion__icon {
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--yellow);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.accordion__panel p {
  color: rgba(255,255,255,.78);
  padding: 0 24px 20px;
  margin: 0;
  font-size: .95rem;
}

/* ===== Waitlist ===== */
.waitlist {
  padding: 96px 0;
  background: radial-gradient(circle at 50% 0%, #0D5A36, var(--near-black) 70%);
  text-align: center;
  color: var(--white);
}
.waitlist__mark { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 20px; }
.waitlist h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.waitlist p { color: rgba(255,255,255,.78); max-width: 460px; margin-left: auto; margin-right: auto; }

.waitlist__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.waitlist__form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--white);
  min-width: 280px;
  outline: none;
  transition: border-color .15s ease;
}
.waitlist__form input::placeholder { color: rgba(255,255,255,.5); }
.waitlist__form input:focus { border-color: var(--yellow); }

.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: var(--near-black);
  animation: spin .7s linear infinite;
}
.is-loading .btn__label { opacity: .6; }
.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.waitlist__status {
  min-height: 1.4em;
  margin-top: 16px;
  font-weight: 600;
  font-size: .95rem;
}
.waitlist__status.is-success { color: var(--green); }
.waitlist__status.is-error { color: #FF8A80; }

/* ===== Footer ===== */
.footer { background: var(--near-black); color: rgba(255,255,255,.7); }
.footer__inner {
  padding: 48px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.75); }
.footer__links a:hover { color: var(--yellow); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--green); border-color: var(--green); color: var(--near-black); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { height: 300px; max-width: 420px; margin: 0 auto; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--dark-green);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform .25s ease;
    height: calc(100vh - 76px);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__cta { margin-left: 0; }
  .hamburger { display: flex; }

  .hero { padding: 48px 0 64px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .waitlist__form { flex-direction: column; align-items: center; }
  .waitlist__form input { width: 100%; max-width: 360px; }
  .waitlist__form .btn { width: 100%; max-width: 360px; }

  .footer__inner { flex-direction: column; text-align: center; justify-content: center; }
}
