/* Yummie landing page.
   Tokens mirror the app's constants/theme.ts — the computed hexes are inlined
   here because this page does not import the app's TypeScript. */

:root {
  color-scheme: light;

  --bg:            #FFFBF4;
  --card:          #ffffff;
  --border:        #EFEAE2;
  --shadow:        160, 150, 138;   /* #A0968A, as rgb parts */

  --accent:        #7DBB73;
  --accent-text:   #5A8753;
  --accent-wash:   #EDF5EB;
  --gold:          #E0941F;
  --room:          #EBF3DC;

  --text:          #36302A;
  --text-body:     #8A7E6C;
  --text-muted:    #A99D8C;

  --r-card:   24px;
  --r-button: 18px;
  --gutter:   24px;
  --measure:  640px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 12vw, 88px) 0 clamp(40px, 10vw, 72px);
}

.buddy-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(180px, 52vw, 260px);
  aspect-ratio: 1;
}

.buddy-room {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: var(--room);
}

.buddy-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Both start invisible: the room circle holds the space while Rive loads, so a
   static Buddy never flashes first. Exactly one of them is then revealed. */
#buddy-canvas, #buddy-fallback { opacity: 0; transition: opacity .2s ease; }
#buddy-canvas.is-live { opacity: 1; }
#buddy-fallback.is-shown { opacity: 1; }

.eyebrow {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 12px 0 0;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.sub {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.5;
  color: var(--text-body);
  text-wrap: pretty;
}

/* ── coming-soon store badges ──────────────────────────────────────────── */

.stores { margin-top: clamp(28px, 7vw, 40px); }

.stores-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stores-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  background: var(--card);
  color: var(--text);
  opacity: .55;
  cursor: default;
  user-select: none;
}

.badge-glyph { width: 22px; height: 22px; flex: none; }

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── features ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(48px, 12vw, 88px);
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .18);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--accent-text);
}

.card-icon svg { width: 22px; height: 22px; }

.card h2 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-body);
  text-wrap: pretty;
}

/* ── footer ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--gutter);
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.foot-line a { color: var(--text-body); text-decoration: none; }
.foot-line a:hover { color: var(--accent-text); text-decoration: underline; }
.dot { color: var(--border); }

/* ── responsive ────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 1024px) {
  :root { --measure: 1080px; }
  .hero .sub { max-width: 34ch; }
  .features { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #buddy-canvas { display: none; }
  #buddy-fallback { opacity: 1; }
  * { animation: none !important; transition: none !important; }
}
