/* Shared Duo guide invitation; scoped to avoid changing existing product styles. */
.duo-guide-teaser { width: min(calc(100% - 40px), var(--max-width)); margin: 12px auto 64px; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px 40px; background: #e9e2fa; border-radius: 36px 52px 36px 36px; }
.duo-guide-teaser h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.duo-guide-teaser p { margin: 0 0 14px; line-height: 1.7; }
.duo-guide-teaser-icons { display: flex; align-items: center; }
.duo-guide-teaser-icons img { width: 96px; height: 96px; border-radius: 24px; border: 4px solid #fff; transform: rotate(-8deg); }
.duo-guide-teaser-icons img + img { margin-left: -24px; transform: rotate(8deg); }
.duo-guide a:focus-visible, .duo-guide-teaser a:focus-visible { outline: 3px solid #6232b4; outline-offset: 5px; }
.duo-guide { padding-bottom: 24px; }
.duo-guide section { scroll-margin-top: 24px; }
.duo-guide-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 24px; margin: 28px 0 48px; padding: 44px; background: #ffde66; border-radius: 52px 28px 52px 28px; }
.duo-guide-page h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); max-width: 19ch; }
.duo-guide-page h2 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.15; }
.duo-guide-page h3 { font-size: 1.5rem; }
.duo-guide-friends { display: grid; align-items: center; }
.duo-guide-friends img { width: 100%; height: auto; }
.duo-guide-friends img + img { width: 65%; justify-self: end; margin-top: -25%; }
.duo-guide-choose { margin: 0 0 48px; }
.duo-guide-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.duo-guide-options > a { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: #f0ebfa; border-radius: 28px; color: inherit; text-decoration: none; }
.duo-guide-options > a + a { background: #fff0d7; }
.duo-guide-options img { width: 72px; height: 72px; border-radius: 18px; }
.duo-guide-options h3 { margin: 0 0 10px; }
.duo-guide-options p { margin: 0 0 12px; }
.duo-guide-app { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 32px 0; padding: 40px; border: 1px solid #6232b41f; border-radius: 36px 52px 36px 36px; background: #fff; }
.duo-guide-halloween { background: #fff3e3; }
.duo-guide-app li { margin-bottom: 12px; line-height: 1.7; }
.duo-guide-app ul { padding-left: 22px; }
.duo-guide-screenshot { margin: 0; min-width: 0; }
.duo-guide-screenshot img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 8px 24px #2130401a; }
.duo-guide-screenshot-portrait { max-width: 230px; justify-self: center; }
.duo-guide-screenshot figcaption { font-size: .85rem; line-height: 1.6; color: #354b5c; margin-top: 14px; }
.duo-guide-reading { max-width: 780px; margin: 48px auto; font-size: 1.1rem; }
.duo-guide-reading a, .duo-guide-app-copy p > a:not(.text-link) { color: #51259d; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
    .duo-guide-hero { grid-template-columns: 1fr; padding: 32px; }
    .duo-guide-friends { grid-template-columns: 1fr 1fr; max-width: 430px; margin: auto; }
    .duo-guide-friends img + img { width: 100%; margin-top: 0; }
    .duo-guide-options { grid-template-columns: 1fr; }
    .duo-guide-app { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
    .duo-guide-screenshot { max-width: 600px; justify-self: center; }
    .duo-guide-screenshot-portrait { max-width: 230px; }
}
@media (max-width: 560px) {
    .duo-guide-teaser { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; }
    .duo-guide-hero, .duo-guide-app { padding: 26px 22px; }
    .duo-guide-options > a { padding: 22px; gap: 14px; }
    .duo-guide-options img { width: 54px; height: 54px; border-radius: 14px; }
}

/* Localised copy. */
.duo-guide-reading li { line-height: 1.8; margin-bottom: 12px; }
.duo-guide-page :is(h1,h2,h3,p,li,figcaption,a), .duo-guide-teaser :is(h2,p,a) { overflow-wrap: anywhere; }
.duo-guide-page .button { white-space: normal; text-align: center; }
html[dir="rtl"] .duo-guide-app ul, html[dir="rtl"] .duo-guide-reading ul { padding-left: 0; padding-inline-start: 22px; }
html[dir="rtl"] .duo-guide-teaser-icons img + img { margin-left: 0; margin-inline-start: -24px; }
html[lang="ar"] :is(.duo-guide-page,.duo-guide-teaser), html[lang="ar"] :is(.duo-guide-page,.duo-guide-teaser) :is(h1,h2,h3,.eyebrow,.button,.topnav a) { font-family: "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="th"] :is(.duo-guide-page,.duo-guide-teaser), html[lang="th"] :is(.duo-guide-page,.duo-guide-teaser) :is(h1,h2,h3,.eyebrow,.button,.topnav a) { font-family: "Noto Sans Thai", system-ui, sans-serif; }
html:is([lang="ar"],[lang="th"]) :is(.duo-guide-page,.duo-guide-teaser) :is(h1,h2,h3,.eyebrow) { line-height: 1.5; letter-spacing: normal; }
.duo-guide-page bdi { font-family: "Nunito", system-ui, sans-serif; }
.duo-guide-page h1 bdi { white-space: nowrap; }
html[lang="ar"] .duo-guide-page h1 { max-width: none; font-size: clamp(2.1rem, 4vw, 3.5rem); }
html[lang="th"] .duo-guide-page h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

/* Show one front-facing Duo from the press image, blended into the card. */
.duo-guide-teaser-home { grid-template-columns: 220px minmax(0, 1fr); }
.duo-guide-teaser-device { position: relative; width: 110px; aspect-ratio: 220 / 420; overflow: hidden; mix-blend-mode: multiply; clip-path: polygon(8% 3%, 88% 11%, 94% 15%, 94% 91%, 90% 95%, 3% 96%, 1% 93%, 1% 7%); }
.duo-guide-teaser-device img { position: absolute; display: block; width: 445.4545%; max-width: none; height: auto; left: -113.6364%; top: -15.4762%; }
@media (max-width: 560px) {
    .duo-guide-teaser-home { grid-template-columns: 1fr; }
    .duo-guide-teaser-device { width: 100px; }
}

/* Pair the app icons with the device in the homepage invitation. */
.duo-guide-teaser-visual { position: relative; width: 220px; max-width: 100%; }
.duo-guide-teaser-visual .duo-guide-teaser-icons { position: absolute; left: 86px; bottom: 18px; }
.duo-guide-teaser-visual .duo-guide-teaser-icons img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 5px 12px #33205b1a; }
.duo-guide-teaser-visual .duo-guide-teaser-icons img + img { margin-left: -18px; }
@media (max-width: 560px) {
    .duo-guide-teaser-visual { width: 210px; }
    .duo-guide-teaser-visual .duo-guide-teaser-icons { left: 76px; bottom: 12px; }
}
