/* TOQUIA Cinematic — Scene 01 · Inicio. What TOQUIA sells today, at a glance:
   a loyalty card and a digital menu on two phones, beside a short promise and the demo CTA. */

.hero-layout { display: grid; gap: var(--space-lg); align-items: center; width: 100%; }
@media (min-width: 960px) { .hero-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.scene-hero .hero-copy { max-width: 34rem; }
.scene-hero .hero-title { font-size: clamp(2.4rem, 4.2vw + .6rem, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.scene-hero .lead { max-width: 30rem; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  justify-items: center;
  gap: 0;
  padding-bottom: 4.2rem;
  perspective: 1400px;
}
.hero-glow {
  position: absolute; inset: -10% -6% 0;
  background:
    radial-gradient(ellipse 50% 45% at 38% 55%, rgba(79,174,138,.28), transparent 70%),
    radial-gradient(ellipse 35% 35% at 72% 40%, rgba(197,164,109,.18), transparent 70%);
  pointer-events: none;
}
.hero-phone { position: relative; display: grid; justify-items: center; gap: .8rem; }
.hero-phone .phone { --phone-w: clamp(168px, 17vw, 250px); }
.hero-phone-card { transform: rotateY(12deg) rotateZ(-3deg) translateY(4%); z-index: 2; margin-right: -12%; }
.hero-phone-menu { transform: rotateY(-12deg) rotateZ(2.5deg) translateY(-6%); }
.hero-phone-card .phone-pass { top: 18%; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tq-beige);
}
.hero-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--tq-emerald-glow); }

.hero-available {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; align-items: center; gap: .9rem; flex-wrap: wrap;
}
.hero-available small { font-size: .7rem; color: var(--ink-muted); }

/* Digital menu screen */
.hero-menu {
  font-size: calc(var(--phone-w) * .045);
  background: var(--tq-cream) !important;
  color: var(--tq-charcoal);
  padding: 0 0 1.25em;
  display: flex; flex-direction: column; gap: 0.84em;
}
/* The status bar (time, island, signal) sits at the top edge of the screen, exactly as on the
   loyalty-card phone; the side padding belongs to the menu content, not to the screen. */
.hero-menu > :not(.phone-status) { margin-inline: 1.25em; }
.hero-menu .phone-status { color: var(--tq-charcoal); margin-bottom: 2cqi; }
.hm-head { display: flex; justify-content: space-between; align-items: baseline; }
.hm-head b { font-size: 1.57em; font-weight: 700; color: var(--tq-emerald); }
.hm-head small { font-size: 0.96em; color: var(--tq-gold-ink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hm-tabs { display: flex; gap: 0.42em; font-size: 0.92em; }
.hm-tabs li { padding: 0.29em 0.75em; border-radius: 99px; border: 1px solid rgba(17,20,18,.1); color: #5A5C58; }
.hm-tabs li.is-on { background: var(--tq-charcoal); color: var(--tq-beige); border-color: transparent; }
.hm-list { display: grid; gap: 0.67em; }
.hm-list li {
  display: grid; grid-template-columns: 3.97em 1fr auto; column-gap: 0.71em; align-items: center;
  padding: 0.50em; border-radius: 1.04em; background: #fff;
  box-shadow: 0 0.42em 1.04em -0.63em rgba(60,44,20,.45);
  font-size: 0.96em; line-height: 1.25;
}
.hm-list b { font-weight: 600; }
.hm-list small { grid-column: 2; font-size: 0.79em; color: #5A5C58; }
.hm-list em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-weight: 600; color: var(--tq-charcoal); }
.hm-photo { grid-row: span 2; width: 3.97em; aspect-ratio: 1; border-radius: 0.75em; background: center / cover no-repeat #eadfca; display: grid; place-items: center; }
.hm-photo img { width: 60%; height: auto; }
.hm-photo-dessert { background: linear-gradient(150deg, #f4e6cf, #e5cfa7); }

/* Gentle idle float (desktop, high tier, never with reduced motion) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tier="high"].motion .hero-phone-card .phone { animation: hero-float 6s var(--ease-in-out) infinite; }
  [data-tier="high"].motion .hero-phone-menu .phone { animation: hero-float 6s var(--ease-in-out) -3s infinite; }
}
@keyframes hero-float { 50% { translate: 0 -10px; } }

@media (max-width: 959px) {
  .hero-layout { gap: var(--space-md); }
  .scene-hero .hero-copy { margin-inline: auto; text-align: center; justify-items: center; }
  .scene-hero .scene-actions { justify-content: center; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; margin-top: 1.75rem; }   /* the raised phone clears the buttons */
}
@media (max-width: 767px) {
  .scene-hero .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-phone .phone { --phone-w: min(40vw, 190px); }
  .scene-hero .scroll-cue { display: none; }
}
