/* FLUTTER promo site — implemented from "Flutter Promo Site.dc.html" design handoff. */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #222230;
  --ink-2: #223048;
  --paper: #fffdf7;
  --light-bg: #eaf3ff;
  --night: #181a2e;
  --accent: #ffd23f;
  --gold: #b8860b;
  --sky-mid: #7cc4ff;
  --error: #c9526a;
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(48px, 7vw, 104px);
  --content-w: 1240px;
  --font-display: Fredoka, system-ui, sans-serif;
  --font-body: Nunito, system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--light-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: #1d6fc0; text-decoration: none; }
a:hover { color: var(--gold); }

@keyframes flut-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 72px) var(--pad-x) clamp(48px, 6vw, 96px);
  background: linear-gradient(#5ab0f5, #a9dcff 62%, #dceeff);
  overflow: hidden;
}
.hero__sun {
  position: absolute;
  left: -10%;
  top: -12%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,243,192,.85) 0%, rgba(255,243,192,.5) 42%, rgba(255,243,192,0) 70%);
}
.hero__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 64px);
}
.hero__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(20,40,80,.28);
}
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(34,34,48,.35);
}
.hero__status {
  margin-left: auto;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(34,34,48,.55);
}
.hero__cols {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--content-w);
  margin: 0 auto;
}
.hero__copy {
  flex: 1 1 420px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .92;
  color: var(--paper);
  text-shadow:
    6px 0 0 #222230, -6px 0 0 #222230, 0 6px 0 #222230, 0 -6px 0 #222230,
    4px 4px 0 #222230, -4px 4px 0 #222230, 4px -4px 0 #222230, -4px -4px 0 #222230,
    0 16px 0 rgba(34,34,48,.28);
  text-wrap: balance;
}
.hero__sub {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-2);
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Not links on purpose — no store URLs exist yet. Swap for official badges at launch. */
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(34,34,48,.92);
  box-shadow: 0 14px 30px rgba(20,40,80,.22);
}
.store-badge__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--paper);
}
.store-badge__soon {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--ink);
}

/* ---------- Waitlist form (shared: hero + CTA) ---------- */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 470px;
}
.waitlist__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.waitlist__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 17px 22px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.waitlist__input:focus { box-shadow: 0 0 0 5px rgba(255,210,63,.6); }
.waitlist__submit {
  flex: 0 0 auto;
  padding: 17px 32px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 0 #222230;
  transition: transform .12s ease, box-shadow .12s ease;
}
.waitlist__submit:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #222230; }
.waitlist__submit:active { transform: translateY(4px); box-shadow: 0 4px 0 #222230; }
.waitlist__note {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(34,34,48,.6);
}
.waitlist__error {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--error);
  display: none;
}
.waitlist.is-error .waitlist__error { display: block; }

/* ---------- Phone frames ---------- */

.hero__phone-col {
  flex: 0 1 340px;
  display: flex;
  justify-content: center;
  min-width: 260px;
}
.hero__phone-wrap {
  position: relative;
  width: min(320px, 78vw);
  animation: flut-bob 6s ease-in-out infinite;
}
.hero__phone-glow {
  position: absolute;
  inset: -6% -14% -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 68%);
}
.phone {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(#2b2d42, #16172a);
  box-shadow: 0 40px 70px rgba(20,40,80,.4), inset 0 0 0 2px rgba(255,255,255,.14);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: repeating-linear-gradient(48deg, rgba(255,255,255,.07) 0 10px, transparent 10px 20px), linear-gradient(#2a3560, #c86a5a);
}
.phone__notch {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 99px;
  background: #16172a;
}
.phone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__slot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,253,247,.72);
}

/* ---------- Promo reel carousel ---------- */

.reels {
  padding: var(--pad-y) var(--pad-x);
  background: var(--night);
  color: var(--paper);
}
.reels__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.eyebrow {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--accent); }
.eyebrow--sky { color: var(--sky-mid); }
.eyebrow--deep-gold { color: var(--gold); }
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
}
.reels__title { text-align: center; }
.reels__body {
  margin: 0 0 clamp(24px, 3vw, 40px);
  max-width: 46ch;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,253,247,.62);
}
.reels__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 30px);
  width: 100%;
}
.reels__arrow {
  flex: none;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255,253,247,.35);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  cursor: pointer;
  transition: background .15s ease;
}
.reels__arrow:hover { background: rgba(255,253,247,.14); }
.reels__track {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 26px);
  max-width: 900px;
}
.reel {
  flex: 0 0 auto;
  width: min(190px, 26vw);
  cursor: pointer;
  opacity: .5;
  transition: all .4s cubic-bezier(.3, 1.2, .4, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
}
.reel.is-active {
  width: min(300px, 52vw);
  opacity: 1;
}
.reel__phone {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 36px;
  background: linear-gradient(#2b2d42, #16172a);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.12);
}
.reel__screen {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}
.reel__screen--1 { background: repeating-linear-gradient(48deg, rgba(255,255,255,.06) 0 9px, transparent 9px 18px), linear-gradient(#7cc4ff, #cfeaff); }
.reel__screen--2 { background: repeating-linear-gradient(48deg, rgba(255,255,255,.06) 0 9px, transparent 9px 18px), linear-gradient(#1d5590, #8a4fd0); }
.reel__screen--3 { background: repeating-linear-gradient(48deg, rgba(255,255,255,.06) 0 9px, transparent 9px 18px), linear-gradient(#2a3560, #c86a5a); }
.reel__name {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: rgba(255,253,247,.9);
  text-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.reel__slot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: rgba(255,253,247,.7);
}
.reel__caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: rgba(255,253,247,.45);
  transition: color .4s ease;
}
.reel.is-active .reel__caption { color: var(--accent); }
.reels__dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}
.reels__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 99px;
  background: rgba(255,253,247,.28);
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}
.reels__dot.is-active {
  width: 32px;
  background: var(--accent);
}

/* ---------- Realms strip ---------- */

.realms {
  padding: var(--pad-y) 0;
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid rgba(255,253,247,.1);
}
.realms__header {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 40px;
}
.realms__heading { flex: 1 1 380px; }
.realms__heading .h2 { margin-top: 10px; }
.realms__body {
  flex: 1 1 300px;
  margin: 0;
  max-width: 42ch;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255,253,247,.62);
}
.realms__scroller {
  margin-top: clamp(28px, 4vw, 52px);
  overflow-x: auto;
  padding: 0 var(--pad-x) 20px;
  scrollbar-width: thin;
}
.realms__row {
  display: flex;
  gap: 14px;
  width: max-content;
}
.realm-card {
  flex: none;
  width: 156px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,253,247,.05);
  border: 1px solid rgba(255,253,247,.1);
  transition: transform .2s ease;
}
.realm-card:hover { transform: translateY(-6px); }
.realm-card__art {
  height: 120px;
  position: relative;
}
.realm-card__num {
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: rgba(255,253,247,.85);
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.realm-card__text {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.realm-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
}
.realm-card__band {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,253,247,.45);
}
.realms__hint {
  margin: 6px auto 0;
  padding: 0 var(--pad-x);
  max-width: var(--content-w);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,253,247,.38);
}

/* ---------- Aviary + facts ---------- */

.aviary {
  padding: var(--pad-y) var(--pad-x);
  background: linear-gradient(#eaf3ff, #fffdf7);
}
.aviary__inner {
  max-width: var(--content-w);
  margin: 0 auto;
}
.aviary__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.aviary__heading { flex: 1 1 380px; }
.aviary__heading .h2 {
  margin-top: 10px;
  color: var(--ink);
}
.aviary__body {
  flex: 1 1 300px;
  margin: 0;
  max-width: 42ch;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(34,34,48,.62);
}
.flyers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.flyer-card {
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(34,34,48,.16);
  transition: transform .18s ease;
}
.flyer-card:hover { transform: translateY(-5px); }
.flyer-card__art {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
/* Striped placeholders until in-engine flyer renders exist. */
.flyer-card__art--bird   { background: repeating-linear-gradient(45deg, rgba(34,34,48,.09) 0 9px, transparent 9px 18px), linear-gradient(#ffd23f, #ffe58a); }
.flyer-card__art--crane  { background: repeating-linear-gradient(45deg, rgba(34,34,48,.09) 0 9px, transparent 9px 18px), linear-gradient(#cfe4ff, #fffdf7); }
.flyer-card__art--toast  { background: repeating-linear-gradient(45deg, rgba(34,34,48,.09) 0 9px, transparent 9px 18px), linear-gradient(#e8a21c, #ffcf3f); }
.flyer-card__art--phoenix { background: repeating-linear-gradient(45deg, rgba(34,34,48,.09) 0 9px, transparent 9px 18px), linear-gradient(#ff8f3c, #d1542f); }
.flyer-card__slot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(34,34,48,.55);
  background: rgba(255,253,247,.8);
  padding: 4px 9px;
  border-radius: 99px;
}
.flyer-card__text {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--ink);
}
.flyer-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.flyer-card__note {
  font-weight: 800;
  font-size: 15px;
  color: rgba(34,34,48,.55);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.fact {
  flex: 1 1 240px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(124,196,255,.16);
}
.fact__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.fact__body {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(34,34,48,.62);
}

/* ---------- Launch CTA ---------- */

.cta {
  position: relative;
  padding: clamp(56px, 8vw, 120px) var(--pad-x);
  background: linear-gradient(#5ab0f5, #cfeaff);
  overflow: hidden;
  text-align: center;
}
.cta__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta__icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(20,40,80,.35);
}
.cta__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  color: var(--paper);
  text-shadow:
    5px 0 0 #222230, -5px 0 0 #222230, 0 5px 0 #222230, 0 -5px 0 #222230,
    4px 4px 0 #222230, -4px 4px 0 #222230, 4px -4px 0 #222230, -4px -4px 0 #222230,
    0 14px 0 rgba(34,34,48,.25);
}
.cta__stores {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--ink-2);
}
.cta .waitlist {
  align-items: center;
  max-width: 480px;
}
.cta .waitlist__form { justify-content: center; }

/* ---------- Footer ---------- */

.footer {
  padding: 34px var(--pad-x) 44px;
  background: var(--night);
  color: rgba(255,253,247,.5);
}
.footer__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
  letter-spacing: .04em;
}
.footer__links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__phone-wrap { animation: none; }
  .reel, .reels__dot, .realm-card, .flyer-card, .waitlist__submit, .reel__caption {
    transition: none;
  }
}
