/* ============================================================
   Wavawo — landing site
   Brand: dusk-purple lullaby. Cream day → indigo night sky.
   Display: Fraunces (warm storybook serif). Body: Plus Jakarta Sans.
   ============================================================ */

:root {
  /* Palette — anchored to the app's design tokens, extended into a night sky */
  --cream:      #FFF7EE;   /* warm paper backdrop (the "day") */
  --surface:    #FFFFFF;
  --dusk:       #6C5CE7;   /* brand dusk purple — primary */
  --dusk-soft:  #A29BFE;
  --night:      #2A2350;   /* indigo night */
  --night-deep: #15122E;   /* darkest — hero top */
  --peach:      #FFB085;   /* accent — rewards & highlights */
  --star:       #FFD166;   /* warm gold — points & stars */
  --mint:       #7BD389;   /* success / approved */
  --ink:        #2D2A32;   /* primary text */
  --muted:      #6E6A78;   /* secondary text */
  --line:       #EAD7C7;   /* warm border */

  --maxw: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(42, 35, 80, .45);
  --shadow-sm: 0 8px 24px -14px rgba(42, 35, 80, .35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--dusk); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ── Shared bits ─────────────────────────────────────────── */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--dusk); }
.eyebrow em { font-style: italic; opacity: .85; text-transform: none; letter-spacing: .02em; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section__title--light { color: var(--cream); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn--primary { background: var(--dusk); color: #fff; box-shadow: 0 12px 26px -12px rgba(108, 92, 231, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(108, 92, 231, .8); }
.btn--accent { background: var(--peach); color: #4a2f1c; }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(255, 176, 133, .9); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 46, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: .85rem 24px; display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; letter-spacing: .01em; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta { margin-left: .25rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.nav__mobile { display: none; flex-direction: column; gap: .25rem; padding: 1rem 24px 1.5rem; background: var(--night-deep); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__mobile a { color: rgba(255,255,255,.85); padding: .65rem 0; font-weight: 500; }
.nav__mobile .btn { margin-top: .6rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, #3a2f6b 0%, transparent 55%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 58%, #4a3f7d 100%);
  color: var(--cream);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 90%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 176, 133, .22), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) 24px clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 247, 238, .82); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.1rem; }
.hero__note { font-size: .9rem; color: rgba(255, 247, 238, .6); }

/* ── Phone mockup ────────────────────────────────────────── */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  background: #0e0b22;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0e0b22; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__screen { background: var(--cream); border-radius: 28px; padding: 1.4rem 1.1rem 1.1rem; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.ph-hi { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.ph-day { font-size: .72rem; color: var(--muted); }
.ph-points { background: var(--dusk); color: #fff; font-weight: 700; font-size: .9rem; padding: .35rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .25rem; }
.ph-star { color: var(--star); }
.ph-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.ph-card { display: flex; align-items: center; gap: .65rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .8rem; margin-bottom: .55rem; }
.ph-card--done { border-color: rgba(123, 211, 137, .5); background: rgba(123, 211, 137, .1); }
.ph-check { width: 24px; height: 24px; border-radius: 999px; background: var(--mint); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.ph-dot { width: 24px; height: 24px; border-radius: 999px; border: 2px dashed var(--dusk-soft); flex: 0 0 auto; }
.ph-card > div { flex: 1; min-width: 0; }
.ph-title { font-size: .86rem; font-weight: 600; color: var(--ink); }
.ph-meta { font-size: .7rem; color: var(--muted); }
.ph-pts { font-weight: 700; font-size: .82rem; color: var(--mint); }
.ph-pts--wait { color: var(--dusk-soft); }
.ph-reward { display: flex; align-items: center; gap: .65rem; margin-top: .9rem; padding: .7rem .8rem; border-radius: 14px; background: linear-gradient(120deg, rgba(255,176,133,.22), rgba(255,209,102,.18)); border: 1px solid rgba(255,176,133,.5); }
.ph-reward__emoji { font-size: 1.2rem; }
.ph-reward > div { flex: 1; }
.ph-reward__bar { position: relative; width: 54px; height: 6px; border-radius: 999px; background: rgba(74,47,28,.15); overflow: hidden; flex: 0 0 auto; }
.ph-reward__bar span { position: absolute; inset: 0; background: var(--peach); border-radius: 999px; }

/* ── How it works ────────────────────────────────────────── */
.how { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--dusk-soft); display: block; margin-bottom: .6rem; }
.step__title { font-size: 1.3rem; margin-bottom: .55rem; }
.step__body { color: var(--muted); font-size: .98rem; }

/* ── Features ────────────────────────────────────────────── */
.features { background: linear-gradient(180deg, var(--cream), #fdeee0); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; transition: transform .18s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature__icon { font-size: 1.7rem; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(108,92,231,.1); margin-bottom: 1rem; }
.feature__title { font-size: 1.22rem; margin-bottom: .45rem; }
.feature__body { color: var(--muted); font-size: .96rem; }

/* ── Privacy band ────────────────────────────────────────── */
.privacy { background: linear-gradient(160deg, var(--night) 0%, var(--night-deep) 100%); color: var(--cream); }
.privacy__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.privacy__body { color: rgba(255,247,238,.78); margin-top: 1.2rem; font-size: 1.05rem; max-width: 42ch; }
.privacy__list { display: grid; gap: 1rem; }
.privacy__list li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; color: rgba(255,247,238,.82); font-size: .98rem; }
.privacy__list strong { color: #fff; font-weight: 600; }

/* ── Built on ────────────────────────────────────────────── */
.stack { background: var(--cream); text-align: center; }
.stack .eyebrow, .stack .section__title { margin-inline: auto; }
.stack__intro { color: var(--muted); max-width: 60ch; margin: 1.2rem auto 2.2rem; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ── Roadmap ─────────────────────────────────────────────── */
.roadmap { background: linear-gradient(180deg, #fdeee0, var(--cream)); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; border-top: 4px solid var(--line); }
.phase--live { border-top-color: var(--mint); }
.phase--next { border-top-color: var(--dusk); }
.phase--later { border-top-color: var(--peach); }
.phase__tag { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.phase--live .phase__tag { color: #4a9e5c; }
.phase--next .phase__tag { color: var(--dusk); }
.phase--later .phase__tag { color: #c87a47; }
.phase ul { display: grid; gap: .6rem; }
.phase li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .96rem; }
.phase li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 999px; background: var(--dusk-soft); }

/* ── CTA ─────────────────────────────────────────────────── */
.cta { background: linear-gradient(120deg, var(--dusk) 0%, #8b7bef 100%); color: #fff; padding-block: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.cta__inner { display: grid; place-items: center; gap: 1rem; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta__sub { color: rgba(255,255,255,.85); max-width: 44ch; }
.cta .btn { margin-top: .8rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--night-deep); color: rgba(255,247,238,.7); padding-block: 3rem 2rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; max-width: 26rem; }
.footer__tag { flex-basis: 100%; color: rgba(255,247,238,.55); font-size: .9rem; margin-top: .4rem; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__links a { color: rgba(255,247,238,.72); font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .82rem; color: rgba(255,247,238,.5); }
.footer__legal-links { display: flex; gap: 1.2rem; }
.footer__legal-links a { color: rgba(255,247,238,.62); }
.footer__legal-links a:hover { color: #fff; }

/* ── Motion ──────────────────────────────────────────────── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__title, .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__device { margin-top: 1rem; }
  .privacy__inner { grid-template-columns: 1fr; }
  .steps, .grid, .timeline { grid-template-columns: 1fr; }
  .section__title { max-width: none; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
