/* DrGui landing — app dr.gui (mockups iOS, storytelling, selo App Store e CTA "night").
   Complementa home-v2.css; tudo escopado em .drgui-v2 e sem dependência do build Tailwind. */

.drgui-v2 #app { scroll-margin-top: 6.5rem; }

/* ---------- Selo App Store (em breve) ---------- */
.drgui-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 9px 20px 9px 16px;
    border: 1px solid #000;
    border-radius: 14px;
    background: #000;
    color: #fff;
    cursor: default;
    user-select: none;
    box-shadow: 0 10px 22px rgba(32, 27, 53, .16);
}
.drgui-app-badge--light {
    border-color: rgba(255, 255, 255, .7);
    background: #000;
}
.drgui-app-badge__logo { width: 26px; height: 26px; flex: 0 0 auto; }
.drgui-app-badge__text { display: flex; flex-direction: column; line-height: 1.05; }
.drgui-app-badge__text small { font-size: 11px; font-weight: 500; letter-spacing: .01em; opacity: .85; }
.drgui-app-badge__text strong { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }

/* ---------- Mockup de iPhone ---------- */
.drgui-phone {
    --ph-bg: #f2f2f7; --ph-card: #fff; --ph-text: #000; --ph-sub: #8e8e93; --ph-sep: rgba(60, 60, 67, .12);
    position: relative;
    width: 272px;
    height: 576px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 10px solid #0d0c12;
    border-radius: 48px;
    background: var(--ph-bg);
    color: var(--ph-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    text-align: left;
    box-shadow: 0 0 0 1.5px #3a3846, 0 34px 70px rgba(32, 27, 53, .26), 0 8px 18px rgba(32, 27, 53, .12);
}
.drgui-phone--dark { --ph-bg: #000; --ph-card: #1c1c1e; --ph-text: #fff; --ph-sub: #8e8e93; --ph-sep: rgba(84, 84, 88, .5); }
.drgui-phone__island {
    position: absolute; top: 9px; left: 50%; z-index: 3;
    width: 84px; height: 25px; border-radius: 20px; background: #000; transform: translateX(-50%);
}
.drgui-phone__screen { padding: 48px 13px 0; }
.drgui-phone b { display: block; color: var(--ph-text); font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.drgui-phone small { display: block; margin-top: 1px; color: var(--ph-sub); font-size: 10px; line-height: 1.35; }
.drgui-phone__title { margin: 0; color: var(--ph-text); font-size: 25px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.drgui-phone__title--md { font-size: 21px; }
.drgui-phone__sub { margin: 2px 0 12px; color: var(--ph-sub); font-size: 11px; line-height: 1.35; }
.drgui-phone__nav { display: flex; gap: 46px; margin: 0 0 16px; font-size: 12px; font-weight: 650; }
.drgui-phone__nav span { color: #6457e1; font-weight: 500; }
.drgui-phone__kicker { margin: 12px 0 2px; color: #6457e1; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.drgui-phone__label { margin: 12px 2px 6px; color: var(--ph-sub); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.drgui-phone__card {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 7px; padding: 10px 12px;
    border-radius: 16px; background: var(--ph-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.drgui-phone__card > div { flex: 1; min-width: 0; }
.drgui-phone__card--hero { flex-direction: column; align-items: stretch; background: linear-gradient(135deg, rgba(239, 217, 255, .95), rgba(255, 225, 243, .9)); }
.drgui-phone__card--hero b { color: #000; }
.drgui-phone__card--rx { background: linear-gradient(135deg, #123a52, #1c1c1e); }
.drgui-phone__card--plan { background: linear-gradient(140deg, #6551ed, #4937c8); }
.drgui-phone__card--plan b, .drgui-phone__card--plan small { color: #fff; }
.drgui-phone__card--plan small:first-child { color: #ffd29e; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 9px; }
.drgui-phone__card--meet { margin-top: 10px; background: #eaf7ef; }
.drgui-phone__card--nutri { background: linear-gradient(135deg, #fff0e2, #fff8ef); }
.drgui-phone__row { display: flex; align-items: center; gap: 10px; }
.drgui-phone__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; object-position: top; }
.drgui-phone__btn {
    display: block; margin-top: 10px; padding: 10px; border-radius: 999px;
    background: #6551ed; color: #fff; font-size: 11.5px; font-weight: 700; text-align: center;
}
.drgui-phone__btn--green { background: linear-gradient(90deg, #07c931 0%, #ffc664 140%); }
.drgui-phone__check {
    display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center;
    border-radius: 50%; background: #e5e5ea; color: #8e8e93; font-size: 10px; font-weight: 800;
}
.drgui-phone__check.is-done { background: #34c759; color: #fff; }
.drgui-phone__check.is-wait { border: 2px dashed #48484a; background: transparent; }
.drgui-phone__tile {
    display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center;
    border-radius: 10px; background: var(--tile); color: #fff; font-size: 13px; font-weight: 800;
}
.drgui-phone__tile--lg { width: 52px; height: 52px; border-radius: 15px; }
.drgui-phone__chev { color: #aeaeb2; font-size: 17px; }
.drgui-phone__pill { padding: 5px 10px; border-radius: 999px; background: #efeaff; color: #4937c8; font-size: 10px; font-weight: 700; }
.drgui-phone__note { margin: 10px 8px 0; color: var(--ph-sub); font-size: 9.5px; line-height: 1.4; text-align: center; }
.drgui-phone__hint { margin: 10px 0 0; padding: 9px 10px; border: 1px solid rgba(52, 199, 89, .3); border-radius: 12px; background: rgba(52, 199, 89, .08); color: #2b6b3d; font-size: 9.5px; line-height: 1.45; }
.drgui-phone__group { overflow: hidden; border-radius: 14px; background: var(--ph-card); }
.drgui-phone__group div { display: flex; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--ph-sep); font-size: 11.5px; font-weight: 600; }
.drgui-phone__group div:last-child { border-bottom: 0; }
.drgui-phone__segment { display: flex; margin-bottom: 10px; padding: 2px; border-radius: 9px; background: rgba(120, 120, 128, .12); }
.drgui-phone__segment span { flex: 1; padding: 6px; border-radius: 7px; font-size: 11px; font-weight: 600; text-align: center; }
.drgui-phone__segment .is-on { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.drgui-phone__radio { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #c7c7cc; border-radius: 50%; }
.drgui-phone__radio.is-on { border: 5px solid #6551ed; }
.drgui-phone__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.drgui-phone__duo span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 6px; border-radius: 14px; background: var(--ph-card); color: #6457e1; font-size: 11px; font-weight: 650; }
.drgui-phone__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 10px; }
.drgui-phone__days span { padding: 7px 0; border-radius: 12px; background: var(--ph-card); font-size: 14px; font-weight: 700; text-align: center; }
.drgui-phone__days small { margin: 0 0 2px; font-size: 9px; }
.drgui-phone__days .is-on { background: #6551ed; color: #fff; }
.drgui-phone__days .is-on small { color: rgba(255, 255, 255, .8); }
.drgui-phone__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.drgui-phone__slots span { padding: 8px 0; border-radius: 10px; background: var(--ph-card); font-size: 11px; font-weight: 650; text-align: center; }
.drgui-phone__slots .is-on { background: #1fa35b; color: #fff; }
.drgui-phone__slots .is-off { color: #c7c7cc; text-decoration: line-through; }
.drgui-phone__building {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin: 12px 0 10px; padding: 22px 16px 18px; border-radius: 20px 20px 0 0;
    background: linear-gradient(140deg, #232042, #2c2430); text-align: center;
}
.drgui-phone__building small { max-width: 190px; }
.drgui-phone__orb {
    display: grid; width: 64px; height: 64px; margin-bottom: 10px; place-items: center;
    border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a77bff, #6551ed 55%, #9000f7);
    box-shadow: 0 0 0 6px rgba(101, 81, 237, .25);
}
.drgui-phone__orb img { filter: brightness(0) invert(1); }
.drgui-phone__list { margin-top: -10px; padding: 4px 14px; border-radius: 0 0 20px 20px; background: var(--ph-card); }
.drgui-phone__list > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ph-sep); }
.drgui-phone__list > div:last-child { border-bottom: 0; }
.drgui-phone__tabbar {
    position: absolute; right: 0; bottom: 0; left: 0;
    display: flex; justify-content: space-around; padding: 8px 6px 20px;
    border-top: 1px solid rgba(0, 0, 0, .06); background: rgba(255, 255, 255, .88);
}
.drgui-phone--dark .drgui-phone__tabbar { border-color: rgba(255, 255, 255, .08); background: rgba(28, 28, 30, .92); }
.drgui-phone__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8e8e93; font-size: 9px; font-weight: 600; opacity: .45; }
.drgui-phone__tab img { width: 22px; height: 22px; }
.drgui-phone__tab.is-active { color: var(--tab); opacity: 1; }

/* ---------- Hero com telas do app ---------- */
.drgui-app-hero { max-width: 560px; }
.drgui-app-hero__phones { position: relative; height: 640px; }
.drgui-app-hero__phones .drgui-phone { position: absolute; }
.drgui-app-hero__phones .drgui-phone:first-child { top: 0; left: 4%; z-index: 2; transform: rotate(-3deg); }
.drgui-app-hero__phones .drgui-phone:last-child { top: 54px; right: 2%; transform: rotate(4deg); }
.drgui-app-hero__chip {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 14px; border: 1px solid rgba(101, 81, 237, .12); border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--drgui-v2-ink);
    font-size: 12px; font-weight: 750; box-shadow: 0 12px 30px rgba(32, 27, 53, .12);
}
.drgui-app-hero__chip span:first-child { color: #d07929; }
.drgui-app-hero__chip--top { top: 4px; right: 0; }
.drgui-app-hero__chip--bottom { bottom: 18px; left: -6%; padding: 7px 16px 7px 7px; border-radius: 20px; }
.drgui-app-hero__chip--bottom img { width: 44px; height: 44px; border-radius: 14px; background: var(--drgui-v2-lilac); object-fit: cover; object-position: top; }
.drgui-app-hero__chip--bottom b { display: block; font-size: 12.5px; }
.drgui-app-hero__chip--bottom small { display: block; color: var(--drgui-v2-muted); font-size: 11px; font-weight: 500; }
.drgui-app-hero__store { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.drgui-app-hero__store a { color: var(--drgui-v2-primary-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.drgui-app-hero__store a:hover { text-decoration: underline; }

/* ---------- Storytelling do app ---------- */
.drgui-app {
    position: relative;
    overflow: hidden;
    padding-block: clamp(76px, 9vw, 124px);
    background:
        radial-gradient(ellipse at 90% 4%, rgba(218, 209, 255, .5), transparent 30%),
        radial-gradient(ellipse at 0% 60%, rgba(255, 226, 202, .28), transparent 30%),
        linear-gradient(180deg, #fff 0%, #faf8ff 50%, #fff 100%);
}
.drgui-app__intro { max-width: 860px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.drgui-app__intro h2 {
    margin: 0 0 16px; color: var(--drgui-v2-ink);
    font-size: clamp(36px, 5vw, 62px); font-weight: 750; letter-spacing: -.06em; line-height: 1.02;
}
.drgui-app__intro > p:not(.drgui-v2-eyebrow) { max-width: 680px; margin: 0 auto 26px; color: var(--drgui-v2-body); font-size: 18px; line-height: 1.6; }
.drgui-app__intro-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.drgui-app__intro-note { max-width: 300px; color: var(--drgui-v2-muted); font-size: 13px; line-height: 1.5; text-align: left; }
.drgui-app__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.drgui-app__tabs li {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--drgui-v2-border); border-top: 3px solid var(--tab); border-radius: 18px;
    background: #fff; text-align: left; box-shadow: 0 10px 26px rgba(32, 27, 53, .045);
}
.drgui-app__tabs img { width: 32px; height: 32px; flex: 0 0 auto; }
.drgui-app__tabs span { color: var(--drgui-v2-muted); font-size: 12.5px; line-height: 1.35; }
.drgui-app__tabs b { display: block; color: var(--drgui-v2-ink); font-size: 15px; }

.drgui-app__chapters { display: grid; gap: clamp(36px, 5vw, 64px); margin: 0; padding: 0; list-style: none; }
.drgui-app-chapter {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; gap: clamp(32px, 6vw, 96px);
}
.drgui-app-chapter:nth-child(even) .drgui-app-chapter__copy { order: 2; }
.drgui-app-chapter__copy { max-width: 500px; }
.drgui-app-chapter:nth-child(odd) .drgui-app-chapter__copy { justify-self: end; }
.drgui-app-chapter__num {
    display: inline-grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center;
    border-radius: 16px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.drgui-app-chapter__kicker { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.drgui-app-chapter h3 { margin: 0 0 14px; color: var(--drgui-v2-ink); font-size: clamp(28px, 3.2vw, 40px); font-weight: 750; letter-spacing: -.05em; line-height: 1.08; }
.drgui-app-chapter__copy > p:not(.drgui-app-chapter__kicker) { margin: 0 0 20px; color: var(--drgui-v2-body); font-size: 17px; line-height: 1.65; }
.drgui-app-chapter__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.drgui-app-chapter__facts li {
    padding: 8px 13px; border: 1px solid var(--drgui-v2-border); border-radius: 999px;
    background: #fff; color: var(--drgui-v2-ink); font-size: 13px; font-weight: 650;
}
.drgui-app-chapter__visual {
    position: relative; display: flex; justify-content: center; margin: 0; padding: 16px 0;
    isolation: isolate;
}
.drgui-app-chapter__visual::before {
    position: absolute; inset: 6% 8%; z-index: -1; content: "";
    border-radius: 44% 56% 60% 40% / 45% 42% 58% 55%;
    background: linear-gradient(145deg, var(--blob), #fff 70%);
    transform: rotate(-6deg);
}
.drgui-app-chapter__visual--duo { gap: 0; }
.drgui-app-chapter__visual--duo .drgui-phone:first-child { z-index: 2; margin-right: -54px; transform: rotate(-3deg) translateY(-10px); }
.drgui-app-chapter__visual--duo .drgui-phone:last-child { transform: rotate(3deg) translateY(24px); }

/* ---------- CTA final "night" (estilo capa de encerramento) ---------- */
.drgui-night {
    position: relative; overflow: hidden;
    padding: clamp(72px, 9vw, 120px) 0 0;
    background:
        radial-gradient(ellipse at 78% 30%, rgba(101, 81, 237, .48), transparent 45%),
        radial-gradient(ellipse at 0% 100%, rgba(240, 154, 66, .18), transparent 36%),
        #16122a;
    color: #fff;
}
.drgui-night__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 32px; }
.drgui-night__copy { align-self: center; padding-bottom: clamp(56px, 8vw, 110px); }
.drgui-night__logo { width: auto; height: 42px; margin-bottom: clamp(32px, 5vw, 56px); }
.drgui-night h2 { margin: 0 0 20px; color: #fff; font-size: clamp(46px, 6.6vw, 88px); font-weight: 800; letter-spacing: -.06em; line-height: .98; }
.drgui-night__copy > p:not(.drgui-night__fine) { max-width: 540px; margin: 0 0 30px; color: rgba(255, 255, 255, .74); font-size: 18px; line-height: 1.6; }
.drgui-night__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.drgui-night__fine { margin: 34px 0 0; color: rgba(255, 255, 255, .45); font-size: 12px; }
.drgui-night__figure { position: relative; margin: 0; align-self: end; }
.drgui-night__figure img { width: auto; height: clamp(460px, 46vw, 660px); max-width: none; margin: 0 auto -48px; }
.drgui-night__figure figcaption {
    position: absolute; right: 0; bottom: 24px; padding: 6px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); font-size: 10px;
}
.drgui-night__spark { position: absolute; color: #f09a42; text-shadow: 0 4px 14px rgba(240, 154, 66, .35); }
.drgui-night__spark--one { top: 18%; right: 44%; font-size: 30px; }
.drgui-night__spark--two { top: 58%; right: 4%; font-size: 22px; }

.drgui-footer-store { margin-top: 20px; }
.drgui-footer-store .drgui-app-badge { min-height: 46px; padding: 7px 16px 7px 12px; }
.drgui-footer-store .drgui-app-badge__text strong { font-size: 17px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1050px) {
    .drgui-app-hero__phones { height: 600px; transform: scale(.92); transform-origin: top center; }
    .drgui-app__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .drgui-app-hero { max-width: 100%; }
    .drgui-app-hero__phones { height: 560px; transform: none; }
    .drgui-app-hero__phones .drgui-phone:first-child { left: 50%; transform: translateX(-50%) rotate(-2deg); }
    .drgui-app-hero__phones .drgui-phone:last-child { display: none; }
    .drgui-app-hero__chip--top { top: -14px; right: 0; }
    .drgui-v2-header > div > div > a:last-of-type { padding-inline: 16px; font-size: 14px; white-space: nowrap; }
    .drgui-app-hero__chip--bottom { left: 0; bottom: 0; }
    .drgui-app-hero__store { justify-content: flex-start; }

    .drgui-app__intro-note { text-align: center; }
    .drgui-app__tabs { grid-template-columns: minmax(0, 1fr); }
    .drgui-app-chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .drgui-app-chapter:nth-child(even) .drgui-app-chapter__copy { order: 0; }
    .drgui-app-chapter:nth-child(odd) .drgui-app-chapter__copy { justify-self: start; }
    .drgui-app-chapter__visual--duo .drgui-phone:last-child { display: none; }
    .drgui-app-chapter__visual--duo .drgui-phone:first-child { margin-right: 0; transform: none; }

    .drgui-night__grid { grid-template-columns: minmax(0, 1fr); }
    .drgui-night__copy { padding-bottom: 0; }
    .drgui-night__figure img { height: auto; width: 100%; max-width: 360px; margin-bottom: -24px; }
    .drgui-night__spark--one { right: 8%; top: 4%; }
    .drgui-night__actions .drgui-v2-button { width: 100%; }
}

/* Header estreito: o logo nunca encolhe; CTA compacto em telas ≤ 374px. */
.drgui-v2-header__inner > a:first-child { flex: 0 0 auto; }
@media (max-width: 374px) {
    .drgui-v2-header__inner > div { gap: 8px; }
    .drgui-v2-header > div > div > a:last-of-type { padding: 10px 13px; font-size: 13px; }
    .drgui-v2-header__inner > a:first-child img { height: 28px; }
    .drgui-phone { width: 256px; height: 556px; }
    .drgui-app__intro-actions .drgui-app-badge, .drgui-night__actions .drgui-app-badge { width: 100%; justify-content: center; }
}

/* FAQ no celular: menos recuo para as perguntas respirarem. */
@media (max-width: 767px) {
    .drgui-v2-faq summary { padding: 18px 20px; }
    .drgui-v2-faq summary > span { padding-right: 12px; font-size: 16px; }
    .drgui-v2-faq details > div { padding-inline: 20px; }
}

/* =====================================================================
   Micro-interações (ativadas por web/drgui/motion/home-motion.js, que
   marca <html class="dg-motion">; sem JS ou com reduzir movimento, nada
   fica escondido). Animações só em opacity/translate/scale/rotate.
   ===================================================================== */
@keyframes dg-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes dg-in-sm { from { opacity: 0; translate: 0 12px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes dg-rise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes dg-pop { 0% { scale: 0; } 70% { scale: 1.18; } 100% { scale: 1; } }
@keyframes dg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes dg-float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
@keyframes dg-twinkle { 0%, 100% { opacity: 1; scale: 1; rotate: 0deg; } 50% { opacity: .55; scale: .72; rotate: 25deg; } }
@keyframes dg-spin { to { rotate: 360deg; } }
@keyframes dg-pulse { 0% { box-shadow: 0 0 0 0 rgba(101, 81, 237, .45); } 100% { box-shadow: 0 0 0 12px rgba(101, 81, 237, 0); } }
@keyframes dg-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(31, 163, 91, .45); } 100% { box-shadow: 0 0 0 10px rgba(31, 163, 91, 0); } }
@keyframes dg-glow { 0%, 100% { box-shadow: 0 0 0 6px rgba(101, 81, 237, .25); } 50% { box-shadow: 0 0 0 14px rgba(101, 81, 237, .08); } }
@keyframes dg-shine { from { translate: -120% 0; } to { translate: 220% 0; } }

/* Reveal no scroll (cascata por --i). */
.dg-motion .dg-reveal { opacity: 0; }
.dg-motion .dg-reveal.is-in {
    animation: dg-in .75s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: min(calc(var(--i, 0) * 80ms), 560ms);
}
.dg-motion .drgui-app-chapter__visual.dg-reveal.is-in,
.dg-motion .drgui-night__figure.dg-reveal.is-in { animation-name: dg-rise; animation-duration: .9s; }

/* Hero: entrada na carga da página. */
.dg-motion .drgui-v2-hero__copy > * { animation: dg-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.dg-motion .drgui-v2-hero__copy > :nth-child(2) { animation-delay: 80ms; }
.dg-motion .drgui-v2-hero__copy > :nth-child(3) { animation-delay: 160ms; }
.dg-motion .drgui-v2-hero__copy > :nth-child(4) { animation-delay: 240ms; }
.dg-motion .drgui-v2-hero__copy > :nth-child(5) { animation-delay: 320ms; }
.dg-motion .drgui-v2-hero__copy > :nth-child(6) { animation-delay: 400ms; }
.dg-motion .drgui-v2-hero__copy > :nth-child(7) { animation-delay: 480ms; }
.dg-motion .drgui-app-hero__chip { opacity: 0; }
.dg-motion .drgui-app-hero.is-in .drgui-app-hero__chip { animation: dg-in-sm .6s cubic-bezier(.2, .7, .2, 1) both; }
.dg-motion .drgui-app-hero.is-in .drgui-app-hero__chip--top { animation-delay: .7s; }
.dg-motion .drgui-app-hero.is-in .drgui-app-hero__chip--bottom { animation-delay: .95s; }

/* Hero: iPhones flutuam e inclinam com o mouse. */
.drgui-app-hero { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.dg-motion .drgui-app-hero__phones .drgui-phone:first-child { animation: dg-float 7s ease-in-out 1.2s infinite; }
.dg-motion .drgui-app-hero__phones .drgui-phone:last-child { animation: dg-float-b 8s ease-in-out 1.6s infinite; }

/* Telas do app: itens entram um a um quando a tela aparece. */
.dg-motion .dg-reveal .drgui-phone :is(.drgui-phone__screen > *, .drgui-phone__list > div, .drgui-phone__days > span, .drgui-phone__slots > span) { opacity: 0; }
.dg-motion .is-in .drgui-phone :is(.drgui-phone__screen > *, .drgui-phone__list > div, .drgui-phone__days > span, .drgui-phone__slots > span) {
    animation: dg-in-sm .55s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(.35s + var(--p, 0) * 70ms);
}
.dg-motion .is-in .drgui-phone__check.is-done { animation: dg-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.6s + var(--p, 0) * 70ms); }
.dg-motion .drgui-phone__check.is-wait { animation: dg-spin 3.2s linear infinite; }
.dg-motion .drgui-phone__orb { animation: dg-glow 2.6s ease-in-out infinite; }
.dg-motion .drgui-phone__card--hero .drgui-phone__btn,
.dg-motion .drgui-app-chapter .drgui-phone__btn { animation: dg-pulse 2.2s ease-out 2s infinite; }
.dg-motion .drgui-phone__slots .is-on { animation: dg-pulse-green 2s ease-out 1.5s infinite; }

/* Estrelinhas cintilam; mascote do encerramento flutua. */
.dg-motion .drgui-v2-hero__spark,
.dg-motion .drgui-night__spark { animation: dg-twinkle 3.4s ease-in-out infinite; }
.dg-motion .drgui-v2-hero__spark--two,
.dg-motion .drgui-night__spark--two { animation-delay: 1.3s; }
.dg-motion .drgui-night__figure img { animation: dg-float 6s ease-in-out infinite; }

/* Hover: chips das abas, fatos dos capítulos, selo e botão primário com brilho. */
.drgui-app__tabs li { transition: transform .25s ease, box-shadow .25s ease; }
.drgui-app__tabs li:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(32, 27, 53, .10); }
.drgui-app__tabs li:hover img { animation: dg-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.drgui-app-chapter__facts li { transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.drgui-app-chapter__facts li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.drgui-app-badge { transition: transform .2s ease, box-shadow .2s ease; }
.drgui-app-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(32, 27, 53, .22); }
.drgui-v2-button--primary { position: relative; overflow: hidden; isolation: isolate; }
.drgui-v2-button--primary::after {
    position: absolute; inset: 0 auto 0 0; z-index: -1; width: 40%; content: "";
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    translate: -120% 0; pointer-events: none;
}
.drgui-v2-button--primary:hover::after { animation: dg-shine .8s ease; }

/* Barra de progresso de leitura e menu ativo. */
.dg-progress {
    position: fixed; top: 0; right: 0; left: 0; z-index: 60; height: 3px;
    background: linear-gradient(90deg, #5067ff 0%, #9000f7 55%, #ffc664 100%);
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.drgui-v2-header { transition: box-shadow .3s ease, background-color .3s ease; }
.dg-scrolled .drgui-v2-header { box-shadow: 0 10px 34px rgba(41, 28, 86, .12); }
.drgui-v2-header nav a { position: relative; }
.drgui-v2-header nav a::after {
    position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; border-radius: 2px; content: "";
    background: var(--drgui-v2-primary); transform: scaleX(0); transition: transform .3s ease;
}
.drgui-v2-header nav a.is-active { color: var(--drgui-v2-primary); }
.drgui-v2-header nav a.is-active::after,
.drgui-v2-header nav a:hover::after { transform: scaleX(1); }
.drgui-v2-mobile-nav a::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .drgui-app-hero { transform: none; transition: none; }
    .dg-progress { display: none; }
}
