/* Banner de promoções. */
.promotion-dialog {
  width: min(1024px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #e5ff5570;
  border-radius: 12px;
  background: var(--bg);
  color: var(--paper);
  box-shadow: 0 16px 60px #0009;
}
.promotion-dialog::backdrop { background: #000c; }
body:has(.promotion-dialog[open]) { overflow: hidden; }
.promotion-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
}
.promotion-dialog-header h2 { font-size: clamp(20px, 4vw, 28px); }
.promotion-dialog-header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--bg);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.promotion-dialog-header button:focus-visible { outline-offset: 2px; }
.promotion-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 86px);
  object-fit: contain;
}

/* Convite sem repetir a fotografia da abertura. */
.slice-invite {
  border-block: 1px solid var(--line);
  background: #191c15;
  overflow: hidden;
}
.slice-invite-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 60px;
  padding-block: 50px;
}
.slice-invite .eyebrow { color: var(--gray); margin-bottom: 18px; font-size: 9px; }
.slice-invite h2 { font-size: clamp(48px, 5.8vw, 88px); line-height: .95; }
.slice-invite .line-link { margin-top: 24px; }
.pizza-drawing { display: block; color: var(--yellow); padding: 15px 22px 0; }
.pizza-drawing svg { width: 100%; overflow: visible; }
.pizza-lift { transition: transform .55s cubic-bezier(.2,.8,.2,1); transform-origin: 160px 135px; }
.pizza-drawing:hover .pizza-lift,
.pizza-drawing:focus-visible .pizza-lift { transform: translate(10px,-15px) rotate(9deg); }
.pizza-drawing > span { display: flex; justify-content: space-between; align-items: center; font-size: 8px; letter-spacing: 1px; padding-top: 15px; }
.pizza-drawing b { font-size: 22px; font-weight: 400; }

/* O desenho do O e o respiro entre letras evitam a leitura como Q. */
.app-copy h2 { font-size: clamp(60px, 6.4vw, 100px); line-height: .98; }
.app-title-clear { font-family: var(--body); font-size: .67em; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.app-copy h2 em { font-size: .98em; white-space: nowrap; }
.store-links { max-width: 460px; gap: 14px; margin-top: 30px; }
.store-links a {
  min-height: 78px;
  justify-content: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 7px 0 #14151216;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.store-links a.store-apple { background: #141512; color: #fff; }
.store-links a.store-google { background: #fff; color: #171b18; border-color: #14151218; }
.store-links a:hover { transform: translateY(-4px); box-shadow: 0 11px 0 #14151220; }
.store-links a.store-apple:hover { background: #30352a; }
.store-links a.store-google:hover { background: #edf9ff; color: #171b18; }
.store-links .store-icon { width: 27px; height: 30px; flex-shrink: 0; }
.store-links .store-text { font-size: 18px; font-weight: 600; white-space: nowrap; }
.store-links small { font-size: 7px; letter-spacing: .8px; margin-bottom: 4px; }
.store-links .store-arrow { margin-left: auto; font-size: 19px; }
.app-section a:focus-visible { outline-color: #141512; }

/* Fechamento compacto: a marca e a última fatia entram em cena. */
footer { padding-top: 28px; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 145px; align-items: center; gap: 35px; min-height: 150px; }
.footer-main .footer-word {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding-block: 12px;
  font: 800 clamp(54px, 6.7vw, 100px)/1 var(--display);
  letter-spacing: -.035em;
}
.footer-word .footer-letter { position: static; font: inherit; color: inherit; display: inline-block; }
.footer-main > p { font: 800 clamp(23px,2.2vw,32px)/1.05 var(--display); }
.footer-main > p em { color: #a3ad8d; }
.last-slice { color: var(--yellow); justify-self: end; width: 125px; }
.last-slice svg { width: 105px; margin-inline: auto; display: block; overflow: visible; }
.last-slice > span { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 8px; letter-spacing: .6px; }
.last-slice b { font-size: 20px; font-weight: 400; }
.last-slice-piece { transform-origin: 75px 80px; }
.slice-spark { opacity: .65; transform-origin: 75px 75px; }
.footer-bottom { margin-top: 18px; padding-block: 20px 25px; }

@media (max-width: 1000px) {
  .slice-invite-inner { grid-template-columns: 1fr 240px; gap: 35px; padding-block: 40px; }
  .slice-invite h2 { font-size: 6vw; }
  .store-links { gap: 10px; flex-wrap: wrap; }
  .store-links a { flex: 1 1 165px; min-height: 72px; }
  .store-links .store-text { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr 110px; gap: 25px; }
  .last-slice { width: 105px; }
}
@media (max-width: 600px) {
  .slice-invite-inner { grid-template-columns: 1fr 110px; gap: 15px; padding-block: 35px; }
  .slice-invite .eyebrow { font-size: 6px; letter-spacing: 1px; margin-bottom: 13px; }
  .slice-invite h2 { font-size: 8vw; line-height: 1; }
  .slice-invite .line-link { font-size: 7px; letter-spacing: .2px; gap: 12px; margin-top: 15px; }
  .pizza-drawing { padding: 0; }
  .pizza-drawing > span { font-size: 5px; letter-spacing: .3px; padding-top: 8px; }
  .pizza-drawing b { font-size: 15px; }
  .app-copy h2 { font-size: clamp(42px, 13.6vw, 78px); line-height: 1.02; }
  .app-title-clear { font-size: .73em; letter-spacing: -.045em; }
  .app-copy h2 em { font-size: .98em; }
  .store-links { flex-wrap: nowrap; gap: 10px; margin-top: 25px; }
  .store-links a { flex: 1; min-width: 0; min-height: 72px; padding: 12px; gap: 9px; }
  .store-links .store-icon { width: 22px; height: 25px; }
  .store-links .store-text { font-size: 14px; }
  .store-links small { font-size: 6px; letter-spacing: .4px; }
  .store-links .store-arrow { display: none; }
  footer { padding-top: 22px; }
  .footer-main { grid-template-columns: 1fr 95px; gap: 12px 20px; min-height: 150px; }
  .footer-main .footer-word { font-size: 58px; padding-block: 0; }
  .footer-main > p { font-size: 23px; grid-column: 1; padding-bottom: 8px; }
  .last-slice { grid-column: 2; grid-row: 1 / 3; width: 90px; }
  .last-slice svg { width: 90px; }
  .last-slice > span { font-size: 6px; gap: 8px; }
  .footer-bottom { margin-top: 15px; padding-bottom: 22px; }
}
@media (max-width: 360px) {
  .slice-invite-inner { grid-template-columns: 1fr 90px; gap: 10px; }
  .slice-invite h2 { font-size: 8vw; }
  .slice-invite .line-link { font-size: 6px; gap: 8px; }
  .store-links a { padding: 11px 9px; gap: 7px; }
  .store-links .store-text { font-size: 12px; }
  .store-links .store-icon { width: 20px; }
  .footer-main .footer-word { font-size: 48px; }
  .footer-main > p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pizza-lift { transition: none; }
  .pizza-drawing:hover .pizza-lift, .pizza-drawing:focus-visible .pizza-lift { transform: none; }
}

/* Ondas de letras sem alterar o espaço ocupado pelos títulos. */
.motion-word { display: inline-block; white-space: nowrap; }
.star-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.motion-letters { display: inline-flex; }
.motion-letter { display: inline-block; transform-origin: 50% 85%; }
.motion-word.is-word-active .motion-letter {
  animation: vecchia-wave 6.5s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: calc(var(--letter-index) * 75ms);
}
.motion-word[data-motion="story"].is-word-active .motion-letter {
  animation-name: goiana-wave;
  animation-duration: 7s;
}
.statement-star.is-star-active { animation: story-star-turn 14s linear infinite; }
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes vecchia-wave {
  0%, 18%, 100% { transform: translateY(0) rotate(0); }
  6% { transform: translateY(-.065em) rotate(-3deg); }
  12% { transform: translateY(.012em) rotate(1deg); }
}

/* No celular, preserve a palavra em um único bloco de texto itálico. */
@media (max-width: 600px) {
  .hero h1 .motion-word {
    font-size: clamp(68px, 23.5vw, 138px);
    letter-spacing: -.015em;
    padding-inline: .04em;
  }
  .hero .motion-word .motion-letters { display: none; }
  .hero .motion-word .screen-reader-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }
  .hero .motion-word.is-word-active { animation: vecchia-mobile-wave 6.5s ease-in-out infinite; }
}
@keyframes vecchia-mobile-wave {
  0%, 19%, 100% { transform: translateY(0); }
  8% { transform: translateY(-.055em); }
}
@keyframes goiana-wave {
  0%, 22%, 100% { transform: translateY(0) rotate(0); }
  8% { transform: translateY(-.055em) rotate(3deg); }
  15% { transform: translateY(.015em) rotate(-1deg); }
}
@keyframes story-star-turn {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(.88); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(.88); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Notificação dentro do mockup, sem permissões ou alertas do navegador. */
.phone { cursor: pointer; }
.phone:focus-visible { outline: 3px solid var(--bg); outline-offset: 10px; }
.phone-notification {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid #ffffffb3;
  border-radius: 13px;
  background: #f7faefee;
  color: #172010;
  box-shadow: 0 8px 25px #0005;
  backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px) scale(.94);
  transition: opacity .25s, transform .4s cubic-bezier(.2,.9,.25,1.2), visibility .25s;
  pointer-events: none;
}
.phone.has-notification .phone-notification {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.notification-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--yellow);
  border-radius: 7px;
  font: 800 21px/1 var(--display);
}
.notification-copy { min-width: 0; font-size: 8px; line-height: 1.45; }
.notification-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 7px; letter-spacing: .6px; font-weight: 700; margin-bottom: 5px; }
.notification-heading > span { color: #65715b; font-size: 7px; font-weight: 400; letter-spacing: 0; }
.notification-copy strong { display: block; font: 700 9px/1.45 var(--body); margin-bottom: 3px; }
.notification-copy > span:last-child { display: block; color: #526044; font-size: 8px; }
@media (prefers-reduced-motion: reduce) {
  .hero .motion-word.is-word-active,
  .motion-word.is-word-active .motion-letter,
  .statement-star.is-star-active { animation: none; }
  .phone-notification { transition: none; transform: none; }
}

.hero-loading {
  position: absolute;
  z-index: 2;
  inset-block-start: 115px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--paper);
  font-size: 11px;
  white-space: nowrap;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 12px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-whatsapp { display: none; }
.cookie-notice {
  position: fixed;
  z-index: 40;
  inset-inline-start: 18px;
  inset-block-end: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(390px, calc(100% - 36px));
  padding: 14px;
  background: #20241b;
  color: var(--paper);
  border: 1px solid #e5ff5570;
  border-radius: 12px;
  box-shadow: 0 8px 28px #0005;
  font-size: 12px;
  line-height: 1.45;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: var(--yellow); text-decoration: underline; }
.cookie-notice button {
  padding: 10px 12px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
}
body:has(.cookie-notice:not([hidden])) .floating-order { visibility: hidden; }

.secondary-page { display: flex; flex-direction: column; min-height: 100svh; }
.secondary-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.secondary-header img { width: 92px; height: 92px; }
.secondary-main { flex: 1; width: min(820px, calc(100% - 40px)); padding-block: clamp(45px, 8vw, 100px); }
.secondary-main .eyebrow { color: var(--yellow); margin-bottom: 18px; }
.secondary-main h1 { font-size: clamp(48px, 8vw, 88px); margin-bottom: 26px; }
.secondary-main h2 { font-size: clamp(26px, 5vw, 38px); margin: 30px 0 12px; }
.secondary-main p { font-size: 16px; overflow-wrap: anywhere; }
.secondary-main p a { text-decoration: underline; color: var(--yellow); }
.secondary-main button.line-link { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--yellow); cursor: pointer; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.secondary-footer { padding: 20px 0; }
.secondary-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; font-size: 13px; }

@media (max-width: 600px) {
  .hero-loading { inset-block-start: 125px; }
  .phone-photo { background-image: url('assets/pizza-mobile.webp'); }
  .mobile-whatsapp {
    position: fixed;
    z-index: 30;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #142319;
    box-shadow: 0 5px 18px #0006;
  }
  .mobile-whatsapp svg { width: 29px; height: 29px; }
  .mobile-whatsapp:hover { background: #a1f2bc; color: #142319; }
  .floating-order { bottom: max(80px, calc(env(safe-area-inset-bottom) + 68px)); }
  body:has(.mobile-whatsapp) .cookie-notice { bottom: max(80px, calc(env(safe-area-inset-bottom) + 68px)); }
  body:has(.mobile-whatsapp) footer { padding-bottom: 56px; }
}
