/* Página /ms/apps do Guia Itália +. Tudo preso a .gapps. */
.gapps {
    --ink: #141A22; --text: #3A4250; --mute: #5A6372; --line: #E6E8EC; --ice: #F7F8FA; --bg: #fff;
    --green: #0B6B35; --green-2: #2E9B50; --red: #E5202B;
    --ease: cubic-bezier(.16, 1, .3, 1);
    overflow: clip; background: var(--bg); color: var(--text);
    font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
.dark-mode .gapps { --ink: #E8EAED; --text: #C3C8D0; --mute: #A9B0BB; --line: #2E333C; --ice: #191C22; --bg: #15171C; --green: #6DD29C; --green-2: #3FAE6B; }
.gapps *, .gapps *::before, .gapps *::after { box-sizing: border-box; }
.gapps ::selection { background: #DDEFE4; color: #0B3D20; }
.gapps img, .gapps svg { display: block; max-width: 100%; }
.gapps :focus-visible { outline: 2px solid var(--green) !important; outline-offset: 3px !important; }
.gapps-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gapps :is(h1, h2, h3) { margin: 0; color: var(--ink); font-family: inherit; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.gapps h2 { max-width: 19ch; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
.gapps p { margin: 0; }

/* Telefone */
.gapps-phone { position: relative; padding: 2.6%; border-radius: 13% / 6%; background: #141A22; box-shadow: 0 2px 2px rgba(20, 26, 34, .2), 0 28px 56px rgba(20, 26, 34, .24); }
.dark-mode .gapps-phone { background: #000; box-shadow: 0 0 0 1px #2E333C, 0 28px 56px rgba(0, 0, 0, .5); }
.gapps-phone img { width: 100%; height: auto; border-radius: 11% / 5.2%; background: #F4F6FA; }

/* Capa */
.gapps-hero { position: relative; }
.gapps-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center; min-height: min(820px, calc(100svh - 72px)); padding-top: 32px; padding-bottom: 32px; }
.gapps h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: .99; letter-spacing: -.035em; animation: gapps-rise .9s var(--ease) both; }
.gapps h1 em { display: block; color: var(--green); font-style: normal; }
.gapps-hero-copy > p:not(.gapps-note) { max-width: 40ch; margin: 24px 0 28px; color: var(--text); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; animation: gapps-rise .9s .08s var(--ease) both; }
.gapps-hero-copy .gim-stores { animation: gapps-rise .9s .16s var(--ease) both; }
.gapps-note { margin-top: 16px !important; color: var(--mute); font-size: 15px; animation: gapps-rise .9s .24s var(--ease) both; }
@keyframes gapps-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.gapps-stage { --spread: 0; --rx: 0deg; --ry: 0deg; position: relative; height: min(720px, calc(100svh - 110px)); min-height: 540px; perspective: 1400px; }
.gapps-mark { position: absolute; left: 56%; top: 50%; width: min(860px, 136%); height: auto; overflow: visible; transform: translate(-50%, -50%) rotate(calc(var(--spread) * 16deg)) scale(calc(1 + var(--spread) * .08)); }
.gapps-leaf { transform-box: fill-box; transform-origin: center; animation: gapps-leaf 1.25s var(--ease) both; }
.gapps-leaf.is-a { fill: var(--green-2); opacity: .17; animation-delay: .05s; }
.gapps-leaf.is-b { fill: var(--green); opacity: .15; animation-delay: .14s; }
.gapps-leaf.is-c { fill: var(--red); opacity: .15; animation-delay: .23s; }
.gapps-stage .gapps-leaf.is-a { --o: .17; } .gapps-stage .gapps-leaf.is-b { --o: .15; } .gapps-stage .gapps-leaf.is-c { --o: .15; }
@keyframes gapps-leaf { from { transform: scale(.4) rotate(-24deg); } to { transform: none; } }
.gapps-stage .gapps-phone { position: absolute; top: 50%; left: 54%; width: clamp(190px, 18.5vw, 268px); will-change: transform; }
.gapps-phone.is-center { z-index: 3; transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(var(--spread) * -22px)); animation: gapps-center 1.15s .1s var(--ease) backwards; }
.gapps-phone.is-left { z-index: 1; transform: translate(calc(-50% - 47% - var(--spread) * 26px), calc(-46% + var(--spread) * 18px)) rotate(calc(-8deg - var(--spread) * 4deg)) rotateX(var(--rx)) rotateY(var(--ry)); animation: gapps-left 1.15s .22s var(--ease) backwards; }
.gapps-phone.is-right { z-index: 2; transform: translate(calc(-50% + 47% + var(--spread) * 26px), calc(-46% + var(--spread) * 18px)) rotate(calc(8deg + var(--spread) * 4deg)) rotateX(var(--rx)) rotateY(var(--ry)); animation: gapps-right 1.15s .22s var(--ease) backwards; }
@keyframes gapps-center { from { opacity: 0; transform: translate(-50%, -32%) scale(.94); } }
@keyframes gapps-left { from { opacity: 0; transform: translate(-50%, -40%) rotate(0deg) scale(.9); } }
@keyframes gapps-right { from { opacity: 0; transform: translate(-50%, -40%) rotate(0deg) scale(.9); } }

/* História com telefone fixo */
.gapps-story { padding: 96px 0 56px; border-top: 1px solid var(--line); background: var(--ice); }
.gapps-story-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 16px; }
.gapps-story-device { position: sticky; top: 84px; align-self: start; display: flex; align-items: center; justify-content: center; gap: 28px; height: calc(100vh - 100px); min-height: 560px; }


.gapps-phone.is-story { z-index: 1; aspect-ratio: 640 / 1425; height: min(680px, calc(100vh - 130px)); padding: 9px; overflow: hidden; }
.gapps-phone.is-story img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; object-position: top; opacity: 0; clip-path: inset(100% 0 0 0 round 30px); transform: scale(1.05); transition: clip-path .72s var(--ease), transform .9s var(--ease), opacity .01s linear .72s; }
.gapps-phone.is-story img.is-on { z-index: 2; opacity: 1; clip-path: inset(0 0 0 0 round 30px); transform: none; transition: clip-path .72s var(--ease), transform .9s var(--ease), opacity .01s linear; }
.gapps-rail { position: relative; z-index: 1; flex: none; width: 3px; height: 220px; overflow: hidden; border-radius: 2px; background: var(--line); }
.gapps-rail i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--green); transform: scaleY(var(--progress, .14)); transform-origin: top; transition: transform .5s var(--ease); }
.gapps-chapters { margin: 0; padding: 0; list-style: none; }
.gapps-chapter { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; opacity: .3; transition: opacity .45s ease; }
.gapps-chapter.is-on { opacity: 1; }
.gapps-chapter > i { width: 28px; margin-bottom: 18px; color: var(--green); font-size: 24px; text-align: center; }
.gapps-chapter h3 { max-width: 16ch; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; }
.gapps-chapter p { max-width: 42ch; margin-top: 14px; color: var(--text); font-size: 20px; line-height: 1.5; }
.gapps-phone.is-inline { display: none; }

/* Duas portas */
.gapps-doors { padding: 104px 0; }
.gapps-doors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.gapps-doors-grid > div { padding: 32px 48px 0 0; }
.gapps-doors-grid > div + div { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.gapps-doors h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.gapps-doors ul { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; }
.gapps-doors li { position: relative; padding: 11px 0 11px 28px; color: var(--text); font-size: 18px; line-height: 1.4; }
.gapps-doors li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.gapps-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--ink) !important; font-size: 16px; font-weight: 700; text-decoration: none !important; }
.gapps-link:hover { color: var(--green) !important; }
.gapps-link i { font-size: 13px; transition: transform .18s ease; }
.gapps-link:hover i { transform: translateX(3px); }

/* Fechamento */
.gapps-final { padding: 80px 0; border-top: 1px solid var(--line); background: var(--ice); }
.gapps-final-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.gapps-final h2 { max-width: 20ch; margin-bottom: 28px; }
.gapps-qr { width: 200px; margin: 0; text-align: center; }
.gapps-qr > div { display: grid; place-items: center; width: 200px; height: 200px; padding: 14px; border: 1px solid #E6E8EC; border-radius: 6px; background: #fff; }
.gapps-qr canvas, .gapps-qr img { width: 170px !important; height: 170px !important; }
.gapps-qr figcaption { margin-top: 10px; color: var(--mute); font-size: 14px; line-height: 1.35; }

@media (max-width: 1040px) {
    .gapps-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 0; }
    .gapps-stage { height: 560px; min-height: 0; margin-top: 8px; }
    .gapps-stage .gapps-phone { left: 50%; width: 230px; }
    .gapps-mark { left: 50%; width: min(640px, 118%); }
}
@media (max-width: 860px) {
    .gapps-story { padding: 64px 0 24px; }
    .gapps-story-grid { display: block; margin-top: 28px; }
    .gapps-story-device { display: none; }
    .gapps-chapter { display: block; min-height: 0; padding: 28px 0 40px; border-top: 1px solid var(--line); opacity: 1; }
    .gapps-chapter p { font-size: 18px; }
    .gapps-phone.is-inline { display: block; width: min(72vw, 280px); margin: 28px auto 0; }
    .gapps-doors { padding: 64px 0; }
    .gapps-doors-grid { grid-template-columns: 1fr; margin-top: 28px; }
    .gapps-doors-grid > div, .gapps-doors-grid > div + div { padding: 24px 0 28px; border-left: 0; }
    .gapps-doors-grid > div + div { border-top: 1px solid var(--line); }
    .gapps-final { padding: 56px 0; }
    .gapps-final-grid { grid-template-columns: 1fr; }
    .gapps-qr { display: none; }
}
@media (max-width: 520px) {
    .gapps-wrap { padding: 0 16px; }
    .gapps-stage { height: 460px; }
    .gapps-stage .gapps-phone { width: 190px; }
    .gapps-phone.is-left { transform: translate(calc(-50% - 44%), -46%) rotate(-8deg); }
    .gapps-phone.is-right { transform: translate(calc(-50% + 44%), -46%) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .gapps *, .gapps *::before, .gapps *::after { animation: none !important; transition: none !important; }
}
