/* Landing-only styles. Shared tokens live in site.css. */

/* Phone frame around real app screenshots */
.phone {
  position: relative; margin: 0; width: 100%; max-width: 300px;
  border-radius: 42px; padding: 10px; background: #1d2b27;
  box-shadow: 0 40px 70px -40px rgb(30 74 64 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone img { width: 100%; height: auto; border-radius: 32px; background: #fbfaf7; }
@media (prefers-color-scheme: dark) {
  .phone { background: #0b1210; box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
}

/* Hero: two overlapping phones */
.hero-phones { position: relative; min-height: 560px; }
.hero-phones .phone { position: absolute; }
.hero-phones .phone-back { width: 62%; inset-inline-end: 0; top: 0; transform: rotate(4deg); }
[dir="rtl"] .hero-phones .phone-back { transform: rotate(-4deg); }
.hero-phones .phone-front { width: 66%; inset-inline-start: 0; top: 64px; z-index: 1; }

/* Showcase rows: phone + copy */
.showcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.showcase.flip { grid-template-columns: 1.2fr 0.8fr; }
.showcase.flip .showcase-media { order: 2; }
.showcase-media { display: grid; justify-items: center; }
.showcase h2 { max-width: 18ch; }
.showcase p { color: var(--c-text-2); max-width: 46ch; margin: 0 0 1.75rem; font-size: var(--text-lead); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.points li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.6rem; }
.points i { color: var(--c-accent); font-size: 1.35rem; line-height: 1.5; }

/* Feature bento with real screens: 3 items, 3 cells */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.screen-tile { border-radius: 24px; padding: 2rem; overflow: hidden; display: grid; gap: 1.5rem; align-content: start; }
.screen-tile h3 { margin: 0 0 0.4rem; font-size: 1.375rem; line-height: 1.25; }
.screen-tile p { margin: 0; max-width: 40ch; }
.screen-tile .phone { max-width: 260px; justify-self: center; margin-bottom: -6rem; }
.tile-ask { grid-row: span 2; background: var(--c-accent); color: var(--c-on-accent); align-content: space-between; }
.tile-ask .phone { max-width: 340px; margin-bottom: -4rem; }
.tile-ask p { opacity: 0.9; }
.tile-meals { background: var(--c-surface); border: 1px solid var(--c-line); }
.tile-meals p { color: var(--c-text-2); }
.tile-meals img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--c-line); }
.tile-mind { background: #f4dde3; color: #3d2129; grid-template-columns: 1fr 0.9fr; align-items: start; }
.tile-mind .phone { margin-bottom: -9rem; }
@media (prefers-color-scheme: dark) {
  .tile-mind { background: #3a2329; color: #f4dde3; }
}

/* Safety section */
.section-warn { background: var(--c-warn-bg); }
.section-warn .points i { color: var(--c-warn); }

/* Official App Store badge (artwork served by Apple, not restyled) */
.store-badge { display: inline-flex; align-items: center; border-radius: 10px; transition: transform 0.2s var(--ease); }
.store-badge img { height: 50px; width: auto; }
.store-badge:active { transform: scale(0.98); }
.launch .store-badge { justify-content: center; }
.launch .store-badge img { height: 60px; }

/* Closing launch band */
.launch { background: var(--c-accent); color: var(--c-on-accent); text-align: center; }
.launch h2 { margin-inline: auto; }
.launch p { max-width: 46ch; margin: 0 auto 2rem; opacity: 0.9; font-size: var(--text-lead); }

/* Scroll reveal: phones rise in as their section enters, to pace the story. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}

@media (max-width: 1023px) {
  .hero-phones { min-height: 480px; }
}
@media (max-width: 767px) {
  .hero-phones { min-height: 0; display: grid; justify-items: center; }
  .hero-phones .phone-back { display: none; }
  .hero-phones .phone-front { position: static; width: 72%; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .showcase .phone { max-width: 260px; }
  .screens { grid-template-columns: 1fr; }
  .tile-ask { grid-row: auto; }
  .tile-mind { grid-template-columns: 1fr; }
  .screen-tile .phone, .tile-mind .phone { margin-bottom: -5rem; max-width: 240px; }
}
