@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Google Sans Display';
  src: url('../fonts/GoogleSansDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Google Sans Display';
  src: url('../fonts/GoogleSansDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Brenelsa';
  src: url('../fonts/Brenelsa.otf') format('opentype'),
       url('../fonts/Brenelsa.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

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

:root {
  /* DREAMIES x Google Pixel palette — matched to Figma "Dream Chaser" style guide */
  --pink:     #815BB0; /* Purple — primary accent */
  --cyan:     #E28D3E; /* Orange — secondary accent */
  --dreamies-pink: #BD5F85; /* Pink — sunset gradient midtone */
  --night:    #19274C; /* Midnight navy — accent / shadow color */
  --ink:      #000004; /* Night Sky — near-black page background */
  --cream:    #F5F3EF; /* Ivory — button surface + headline/body text */
  --bg:       var(--ink);
  --surface:  rgba(245,243,239,0.06);
  --border:   rgba(245,243,239,0.15);
  --text:     var(--cream);
  --text-dim: rgba(245,243,239,0.5);
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-pill: 100px;
}

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: 'Google Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* ── App shell ──────────────────────────────── */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  body::before {
    content: 'Please open this on your phone';
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: #000;
    color: rgba(255,255,255,0.3);
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    z-index: 9999;
  }
}

/* ── Header ────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
}

.header-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ── Step progress ─────────────────────────── */
/* Lives at the TOP of the page now (36px down from the frame edge, per
   Figma), not the bottom — matches every inner-page frame in the mirror. */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 16px 24px 10px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  background: transparent;
  letter-spacing: -0.6px;
}

.step-label {
  font-size: 12px;
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.step {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.step.active {
  opacity: 1;
}

/* ── Button ────────────────────────────────── */
/* Figma pills are content-sized, not full-width bars (Start=102px,
   Choose another=190px, all 50px tall) — so size to the label + padding,
   not a fixed/stretched width. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  width: auto;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  align-self: center;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  letter-spacing: -0.6px;
}

.btn:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(245, 243, 239, 0.5);
  color: var(--ink);
}

/* ── Content ───────────────────────────────── */
.content {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* ── Spinner ───────────────────────────────── */
.spinner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: bounce 1s infinite;
}

.spinner span:nth-child(1) { background: var(--pink); animation-delay: 0s; }
.spinner span:nth-child(2) { background: var(--cyan); animation-delay: 0.2s; }
.spinner span:nth-child(3) { background: var(--pink); animation-delay: 0.4s; }
.spinner span:nth-child(4) { background: var(--cyan); animation-delay: 0.6s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-10px); }
}
