/* Shared public feature pages and homepage dialogs. No product media is required. */
.eg-feature-detail { color: #222332; font-family: inherit; font-size: 16px; line-height: 1.65; }
.eg-feature-detail *, .eg-feature-page * { box-sizing: border-box; }
.eg-feature-detail h1, .eg-feature-detail h2, .eg-feature-detail h3 { color: #171522; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.025em; }
.eg-detail-header { padding: 6px 0 30px; border-bottom: 1px solid #e8e5ee; margin-bottom: 30px; }
.eg-detail-header h1, .eg-detail-header h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 850px; }
.eg-detail-page-header { padding: 2px 0 34px; margin-bottom: 38px; }
.eg-detail-page-header .eg-detail-eyebrow { margin-bottom: 18px; }
.eg-detail-identity { display: flex; align-items: center; gap: 18px; }
.eg-detail-identity .eg-detail-icon { margin: 0; flex: 0 0 58px; width: 58px; height: 58px; }
.eg-detail-identity h1 { margin-bottom: 8px; }
.eg-detail-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #7900d3; background: #f1e7ff; font-size: 25px; margin-bottom: 16px; }
.eg-detail-icon svg { display: block; width: 30px; height: 30px; }
.eg-detail-eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .14em; color: #6f547c; margin: 0 0 12px; }
.eg-detail-lead { font-size: 1.15rem; color: #5f586d; margin: 0; max-width: 800px; }
.eg-detail-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.eg-detail-editorial { display: grid; grid-template-columns: 1fr; gap: 38px; align-items: center; }
.eg-detail-editorial.has-media { grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr); }
.eg-detail-copy { min-width: 0; }
.eg-detail-product-proof { min-width: 0; padding: 10px; border: 1px solid #e8dcf1; border-radius: 22px; background: #f8f4fc; box-shadow: 0 12px 36px #3514460a; }
.eg-detail-product-proof .eg-detail-media { margin: 0; }
.eg-detail-product-proof .eg-detail-media figcaption { padding: 10px 5px 2px; font-size: .85rem; }
.eg-detail-product-proof .eg-media-carousel { border: 0; background: transparent; padding: 0; }
.eg-detail-section { margin-bottom: 28px; }
.eg-feature-detail p { margin-top: 0; }
.eg-detail-section h2, .eg-detail-section h3, .eg-detail-workflow h2, .eg-detail-workflow h3, .eg-detail-related h2, .eg-detail-related h3 { font-size: 1.2rem; }
.eg-detail-benefits { padding-left: 22px; margin: 0; }
.eg-detail-benefits li { margin-bottom: 13px; padding-left: 3px; }
.eg-detail-benefits li::marker { color: #8a26d5; }
.eg-detail-workflow { background: #f7f3fc; border: 1px solid #e9dff3; border-radius: 20px; padding: 25px; }
.eg-feature-page .eg-detail-workflow { margin-top: 42px; padding: 26px 28px; }
.eg-detail-workflow ol { counter-reset: workflow; list-style: none; margin: 0; padding: 0; }
.eg-feature-page .eg-detail-workflow ol { display: grid; grid-template-columns: repeat(var(--step-count), minmax(0, 1fr)); gap: 34px; }
.eg-detail-workflow li { position: relative; padding-left: 39px; margin-top: 23px; counter-increment: workflow; }
.eg-feature-page .eg-detail-workflow li { margin-top: 0; padding-left: 42px; }
.eg-feature-page .eg-detail-workflow li:not(:last-child)::after { content: '→'; position: absolute; right: -22px; top: 1px; color: #bc91d6; }
.eg-detail-workflow li::before { content: counter(workflow, decimal-leading-zero); position: absolute; left: 0; color: #7934a7; font-size: .85rem; font-weight: 750; }
.eg-detail-workflow strong { display: block; line-height: 1.4; margin-bottom: 7px; }
.eg-detail-workflow p { color: #62576c; font-size: .94rem; margin-bottom: 0; }
.eg-detail-note { color: #645e70; border-left: 3px solid #d8b6f3; padding: 4px 0 4px 18px; margin: 24px 0 32px; font-size: .9rem; }
.eg-feature-page .eg-detail-note { margin: 28px 0 34px; padding: 16px 20px; border: 1px solid #e8dcf1; border-left: 4px solid #a75bdd; border-radius: 0 14px 14px 0; background: #fbf9fd; }
.eg-detail-media { margin: 24px 0; }
.eg-detail-media img, .eg-detail-media video { display: block; width: 100%; height: auto; border-radius: 16px; }
.eg-detail-media figcaption { padding: 12px 0; color: #62576c; }
.eg-detail-related ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.eg-detail-related a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ded4e7; border-radius: 30px; padding: 9px 14px; color: #65328a; text-decoration: none; font-size: .88rem; }
.eg-detail-related a:hover { background: #f3eafa; }
.eg-detail-quote { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 28px 30px; border: 1px solid #e4d3f0; border-radius: 20px; background: #f5edfb; }
.eg-detail-quote h2, .eg-detail-quote h3 { font-size: 1.2rem; margin-bottom: 9px; }
.eg-detail-quote p { color: #62536d; margin-bottom: 0; font-size: .9rem; }
.eg-quote-link { display: inline-block; background: #7900cc; color: white; border-radius: 28px; padding: 12px 20px; text-decoration: none; font-weight: 650; white-space: nowrap; }
.eg-quote-link:hover { background: #5e009e; }
.eg-detail-permalink { display: inline-block; margin-top: 22px; color: #66308d; font-size: .9rem; }
.eg-feature-detail a:focus-visible, .eg-feature-page a:focus-visible, .features-redesign a.feature-card:focus-visible, #featureShowcaseModal button:focus-visible { outline: 3px solid #7b20bd; outline-offset: 5px; }
.features-redesign a.feature-card { display: flex; flex-direction: column; text-decoration: none; cursor: pointer; color: inherit; }
.features-redesign a.feature-card .feature-card-top { flex: 1; }
.features-redesign a.feature-card .eg-card-more { display: block; color: #7420ae; font-weight: 650; font-size: .88rem; margin-top: 20px; }
.features-redesign a.feature-card:hover, .features-redesign a.feature-card:focus-visible { border-color: #bd87e0; box-shadow: 0 8px 24px #7924aa14; transform: translateY(-3px); }
.features-redesign a.feature-card[hidden] { display: none; }
#featureShowcaseModal .feature-showcase-content { background: white; width: min(1060px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 36px; border-radius: 24px; position: relative; }
#featureShowcaseModal .feature-showcase-header:empty { display: none; }
#featureShowcaseModal .feature-showcase-body { display: block; padding: 0; }
#featureShowcaseModal .feature-showcase-close { position: sticky; top: 0; display: block; margin-left: auto; right: auto; width: 40px; height: 40px; padding: 0; border: 1px solid #dfd6e7; border-radius: 50%; background: white; color: #332443; z-index: 2; cursor: pointer; font-size: 26px; }
.eg-feature-page { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #faf8fc; color: #222332; }
html.modal-open, body.modal-open { overflow: hidden; }
.eg-public-nav { max-width: 1160px; padding: 25px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eg-public-nav img { object-fit: contain; }
.eg-public-nav nav { display: flex; flex-wrap: wrap; gap: 24px; }
.eg-public-nav a { color: #623382; text-underline-offset: 4px; }
.eg-public-main { max-width: 1240px; margin: 12px auto; padding: clamp(34px, 4.4vw, 62px); background: white; border: 1px solid #eae3f0; border-radius: 24px; box-shadow: 0 18px 60px #35144608; }
.eg-public-footer { text-align: center; padding: 32px; color: #685e72; font-size: .9rem; }
.eg-skip-link { position: fixed; left: 16px; top: -100px; padding: 12px; background: white; z-index: 5; }
.eg-skip-link:focus { top: 16px; }
@media (max-width: 700px) {
    .eg-detail-columns { grid-template-columns: 1fr; gap: 0; }
    .eg-detail-identity { align-items: flex-start; gap: 13px; }
    .eg-detail-identity .eg-detail-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
    .eg-detail-quote { flex-direction: column; align-items: flex-start; }
    .eg-detail-workflow { padding: 20px; }
    .eg-feature-page .eg-detail-workflow ol { grid-template-columns: 1fr; gap: 26px; }
    .eg-feature-page .eg-detail-workflow li:not(:last-child)::after { content: '↓'; left: 5px; right: auto; top: auto; bottom: -22px; }
    .eg-public-main { margin: 0 12px; padding: 24px 20px; }
    .eg-public-nav { padding: 18px; }
    .eg-public-nav img { width: 115px; height: auto; }
    .eg-public-nav nav { gap: 8px; flex-direction: column; font-size: .9rem; }
    #featureShowcaseModal .feature-showcase-content { padding: 18px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
}
@media (max-width: 900px) {
    .eg-detail-editorial.has-media { grid-template-columns: 1fr; }
    .eg-detail-product-proof { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .features-redesign a.feature-card { transition: none; }
    .features-redesign a.feature-card:hover { transform: none; }
}

/* Homepage showcase: a concise layer over the unchanged canonical details. */
#featureShowcaseModal .feature-showcase-content { width: min(1140px, calc(100% - 48px)); padding: 24px 32px; }
#featureShowcaseModal .feature-showcase-close { float: right; margin-bottom: -40px; top: 0; }
.eg-showcase { font-size: 15px; line-height: 1.45; }
.eg-showcase .eg-showcase-header { padding: 0 52px 18px 0; margin: 0 0 20px; }
.eg-showcase .eg-detail-eyebrow { font-size: .65rem; margin-bottom: 12px; }
.eg-showcase-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eg-showcase .eg-detail-icon { width: 46px; height: 46px; border-radius: 13px; margin: 0; font-size: 23px; flex-shrink: 0; }
.eg-showcase .eg-detail-icon svg { width: 29px; height: 29px; }
.eg-showcase .eg-showcase-identity h2 { font-size: 1.625rem; letter-spacing: -.025em; margin: 0; }
.eg-showcase .eg-showcase-value { font-size: clamp(1.6rem, 2.4vw, 2.125rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 450; max-width: 900px; margin: 0; color: #21142c; }
.eg-showcase .eg-showcase-support { font-size: .85rem; color: #6b5b76; margin: 10px 0 0; }
.eg-showcase h3 { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .10em; color: #74627f; margin: 0 0 16px; }
.eg-showcase-main { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: center; gap: 30px; }
.eg-showcase-benefits ul { display: grid; grid-template-columns: 1fr; gap: 14px; list-style: none; margin: 0; padding: 0; }
.eg-showcase-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.eg-benefit-check { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #f2e8fc; color: #8600dc; font-weight: 700; font-size: .9rem; }
.eg-showcase-benefits strong { font-size: .93rem; line-height: 1.3; display: block; margin-bottom: 3px; font-weight: 650; }
.eg-showcase-benefits p { color: #6a6071; font-size: .84rem; line-height: 1.45; margin: 0; }
.eg-showcase-media .eg-detail-media { margin: 0 0 12px; }
.eg-showcase-media figcaption { font-size: .8rem; padding: 6px 0; }
.eg-showcase-workflow { margin: 20px 0 18px; padding: 16px 20px; background: #f7f2fc; border: 1px solid #ece1f5; border-radius: 16px; }
.eg-showcase-workflow h3 { margin-bottom: 14px; }
.eg-showcase-workflow ol { display: grid; grid-template-columns: repeat(var(--step-count), minmax(0, 1fr)); gap: 28px; counter-reset: journey; list-style: none; margin: 0; padding: 0; }
.eg-showcase-workflow li { position: relative; padding-left: 30px; counter-increment: journey; }
.eg-showcase-workflow li::before { content: counter(journey, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-size: .72rem; font-weight: 700; color: #8b34c4; }
.eg-showcase-workflow li:not(:last-child)::after { content: '→'; position: absolute; right: -20px; top: -1px; color: #bc91d6; }
.eg-showcase-workflow strong { display: block; font-size: .84rem; line-height: 1.3; margin-bottom: 6px; }
.eg-showcase-workflow p { font-size: .78rem; color: #74627f; line-height: 1.4; margin: 0; }
.eg-showcase-related { display: flex; align-items: center; gap: 18px; }
.eg-showcase-related h3 { margin: 0; flex-shrink: 0; }
.eg-showcase-related ul { margin: 0; gap: 7px; }
.eg-showcase-related a { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; padding: 7px 11px; }
.eg-showcase-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid #e8e5ee; background: transparent; text-align: left; }
.eg-showcase-actions .eg-detail-permalink { margin: 0; padding: 12px 0; font-size: .86rem; font-weight: 600; text-decoration: none; }
.eg-showcase-actions .eg-detail-permalink:hover { text-decoration: underline; text-underline-offset: 4px; }
.eg-showcase-actions .eg-quote-link { font-size: .87rem; }
@media (max-width: 800px) {
    .eg-showcase-main { grid-template-columns: 1fr; gap: 20px; }
    .eg-showcase-related { display: block; }
    .eg-showcase-related h3 { margin-bottom: 10px; }
}
@media (max-width: 600px) {
    #featureShowcaseModal { padding: 8px; }
    #featureShowcaseModal .feature-showcase-content { width: 100%; max-height: calc(100dvh - 16px); padding: 20px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); border-radius: 20px; }
    #featureShowcaseModal .feature-showcase-close { width: 44px; height: 44px; margin-bottom: -44px; }
    .eg-showcase .eg-showcase-header { padding: 0 0 20px; margin-bottom: 20px; }
    .eg-showcase .eg-detail-eyebrow { padding-right: 35px; font-size: .57rem; min-height: 24px; margin-bottom: 8px; }
    .eg-showcase-identity { gap: 10px; margin-bottom: 14px; padding-right: 30px; }
    .eg-showcase .eg-showcase-identity h2 { font-size: 1.15rem; }
    .eg-showcase .eg-showcase-value { font-size: 1.42rem; line-height: 1.22; }
    .eg-showcase .eg-showcase-support { font-size: .79rem; }
    .eg-showcase-main { display: block; }
    .eg-showcase-benefits ul { grid-template-columns: 1fr; gap: 15px; }
    .eg-showcase-benefits li { gap: 10px; }
    .eg-showcase-benefits strong { margin-bottom: 3px; font-size: .87rem; }
    .eg-showcase-benefits p { font-size: .8rem; }
    .eg-showcase-media { margin-top: 20px; }
    .eg-showcase-workflow { margin: 22px 0; padding: 18px; }
    .eg-showcase-workflow ol { grid-template-columns: 1fr; gap: 24px; }
    .eg-showcase-workflow li:not(:last-child)::after { content: '↓'; left: 4px; right: auto; top: auto; bottom: -20px; }
    .eg-showcase-workflow strong { margin-bottom: 3px; }
    .eg-showcase-related a { min-height: 40px; display: inline-flex; align-items: center; }
    .eg-showcase-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 20px; padding-top: 14px; }
    .eg-showcase-actions a { text-align: center; min-height: 46px; }
}

/* Stable slot shared by approved media and the explicit preview placeholder. */
.eg-media-placeholder { margin: 0; }
.eg-media-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 18px; border: 1px solid #e6d7f2; background: #f6effc; }
.eg-media-placeholder .eg-media-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 22px; background: radial-gradient(ellipse at 70% 15%, #faf7fe 0, #f1e7fa 100%); }
.eg-media-placeholder-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e2cff1; border-radius: 17px; background: #ffffffa8; color: #9c61c4; font-size: 25px; }
.eg-media-placeholder-title { color: #76528e; font-weight: 550; font-size: .9rem; }
.eg-media-placeholder-status { color: #816e8f; font-size: .76rem; }
.eg-showcase-media .eg-media-frame img, .eg-showcase-media .eg-media-frame video { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.eg-showcase-media .eg-detail-media { margin: 0; }
.eg-media-label { display: inline-block; font-size: .7rem; color: #75518f; margin-top: 6px; }
.eg-related-icon { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; flex-shrink: 0; }
.eg-related-icon svg { width: 15px; height: 15px; display: block; }
@media (max-width: 600px) {
    .eg-media-placeholder .eg-media-frame { gap: 8px; padding: 16px; }
    .eg-media-placeholder-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
    .eg-media-placeholder-title { font-size: .8rem; }
    .eg-media-placeholder-status { font-size: .7rem; }
}

/* Real invitation screenshots; frames are decorative CSS, never raster artwork. */
.eg-device-showcase { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #e6d7f2; border-radius: 18px; background: radial-gradient(ellipse at 65% 20%, #fcfafc, #f2eaf7); }
.eg-device { position: absolute; }
.eg-device-screen { background: #25232a; border: 1px solid #48454d; padding: 6px; box-shadow: 0 10px 20px #25112f20; overflow: hidden; }
.eg-device-showcase .eg-device img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 2px; }
.eg-device-desktop { width: 76%; left: 3%; top: 16%; }
.eg-device-desktop .eg-device-screen { border-radius: 9px 9px 3px 3px; }
.eg-device-base { display: block; width: 106%; height: 8px; margin-left: -3%; border-radius: 1px 1px 70% 70%; background: linear-gradient(#aaa6ae, #68656e); box-shadow: 0 5px 8px #25112f15; }
.eg-device-mobile { width: 23%; right: 3%; bottom: 6%; }
.eg-device-mobile .eg-device-screen { padding: 5px; border-radius: 15px; }
.eg-device-showcase .eg-device-mobile img { border-radius: 10px; }
@media (max-width: 1000px) and (min-width: 601px) {
    .eg-device-desktop { width: 73%; left: 3%; }
    .eg-device-mobile { width: 22%; right: 2%; }
}
@media (max-width: 600px) {
    .eg-device-showcase { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 22px 14px; }
    .eg-device { position: static; }
    .eg-device-desktop { width: 100%; }
    .eg-device-mobile { width: 70%; max-width: 220px; }
    .eg-device-mobile .eg-device-screen { border-radius: 20px; }
    .eg-device-showcase .eg-device-mobile img { border-radius: 15px; }
}

.eg-media-open { position: absolute; inset: 0; width: 100%; border: 1px solid transparent; border-radius: 18px; background: transparent; cursor: pointer; color: #7325a0; padding: 0; }
.eg-media-open span { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #e4d5ee; border-radius: 20px; background: #fff; padding: 7px 11px; font-family: inherit; font-weight: 600; font-size: 12px; box-shadow: 0 2px 8px #35144610; }
.eg-media-open:hover, .eg-media-open:focus-visible { border-color: #9000dd; background: #9000dd05; outline: 2px solid #9000dd; outline-offset: 2px; }
.eg-media-viewer { display: none; position: fixed; inset: 0; z-index: 20000; background: #160d21d9; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overscroll-behavior: contain; }
.eg-media-viewer.show { display: flex; }
.eg-viewer-dialog { width: 92vw; max-width: 1800px; height: 88dvh; display: flex; flex-direction: column; background: #f7f5f9; border: 1px solid #ddd1e7; border-radius: 20px; padding: 12px; box-sizing: border-box; }
.eg-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; flex-shrink: 0; }
.eg-viewer-selector { display: flex; gap: 4px; background: #eae2ef; padding: 3px; border-radius: 14px; }
.eg-viewer-selector button { min-height: 40px; padding: 7px 20px; border: 0; border-radius: 11px; background: transparent; color: #554360; cursor: pointer; font: inherit; }
.eg-viewer-selector button[aria-pressed="true"] { background: #fff; color: #8400cf; box-shadow: 0 2px 5px #29113615; }
.eg-viewer-close { width: 44px; height: 44px; border: 1px solid #ddd1e7; border-radius: 50%; background: white; color: #392943; font-size: 26px; cursor: pointer; }
.eg-viewer-image { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; display: flex; align-items: flex-start; justify-content: center; }
.eg-viewer-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }
.eg-viewer-dialog :focus-visible { outline: 3px solid #9000dd; outline-offset: 2px; }
@media (max-width: 600px) {
    .eg-viewer-dialog { width: 100%; height: 94dvh; padding: 8px; border-radius: 16px; }
    .eg-viewer-image[data-version="mobile"] img { width: 100%; max-width: 592px; max-height: none; margin-top: 0; }
}


/* Enlarged devices mask only the supplied screenshots' thin outer edges. */
.eg-viewer-image { container-type: size; }
.eg-viewer-device { flex: none; margin: auto; width: min(calc(100% - 28px), calc((100cqh - 40px) * var(--screen-ratio))); padding: 8px; background: #25232a; border: 1px solid #48454d; box-shadow: 0 8px 20px #25112f25; border-radius: 14px; }
.eg-viewer-screen { overflow: hidden; border-radius: 6px; aspect-ratio: var(--screen-ratio); }
.eg-viewer-image .eg-viewer-screen img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: contain; transform: scale(1.014); }
.eg-viewer-device-desktop { position: relative; border-radius: 12px 12px 4px 4px; }
.eg-viewer-device-desktop .eg-device-base { position: absolute; top: 100%; left: 0; height: 10px; }
.eg-viewer-device-mobile { border-radius: 28px; }
.eg-viewer-device-mobile .eg-viewer-screen { border-radius: 20px; }
@media (max-width: 600px) {
    .eg-viewer-device-mobile { width: calc(100% - 12px); margin-top: 4px; margin-bottom: 12px; }
}

.eg-media-carousel { border: 1px solid #e6d7f2; border-radius: 18px; background: #f8f4fc; padding: 10px; }
.eg-carousel-slide { margin: 0; }
.eg-carousel-slide[hidden] { display: none; }
.eg-carousel-screen { position: relative; aspect-ratio: 2048 / 1170; overflow: hidden; border-radius: 10px; background: #202a33; }
.eg-carousel-screen img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.008); }
.eg-carousel-slide[data-orientation="portrait"] .eg-carousel-screen { aspect-ratio: auto; height: min(58dvh, 540px); }
.eg-carousel-screen .eg-media-open { border-radius: 10px; }
.eg-carousel-slide figcaption { padding: 9px 2px 0; min-height: 60px; color: #65526f; font-size: .76rem; line-height: 1.4; }
.eg-carousel-slide figcaption strong { display: block; color: #493452; font-size: .8rem; }
.eg-carousel-slide figcaption p { margin: 3px 0 0; }
.eg-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.eg-carousel-controls button { min-width: 44px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 12px; color: #6b437e; cursor: pointer; font: inherit; font-size: .8rem; }
.eg-carousel-controls button[aria-pressed="true"] { background: white; border-color: #d8b9eb; color: #8700d1; }
.eg-carousel-controls button:focus-visible { outline: 2px solid #9000dd; outline-offset: 2px; }
.eg-viewer-device-application { background: #202a33; padding: 2px; border: 1px solid #414852; border-radius: 10px; box-shadow: none; }
.eg-viewer-device-application .eg-viewer-screen { border-radius: 7px; }
.eg-viewer-device-application .eg-viewer-screen img { transform: scale(1.008); }
@media (min-width: 1001px) {
    .eg-carousel-screen { max-width: 460px; margin-inline: auto; }
    .eg-carousel-slide figcaption { min-height: 0; }
}

/* Product screenshots use the available area; devices retain their own spacing. */
.eg-media-carousel { padding: 5px; }
.eg-carousel-screen { max-width: none; margin: 0; }
.eg-carousel-screen img { transform: none; }
.eg-carousel-screen::after { content: ''; position: absolute; inset: 0; border: 2px solid #202a33; border-radius: inherit; pointer-events: none; }
.eg-carousel-slide figcaption { min-height: 0; padding: 6px 5px 0; }
.eg-carousel-slide figcaption p { margin-top: 2px; }
.eg-carousel-controls { margin-top: 0; gap: 4px; }
.eg-media-viewer[data-display="product-screenshot"] { padding: 8px; }
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-dialog { width: min(96vw, 2160px); max-width: none; height: 96dvh; padding: 8px; }
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-toolbar { padding-bottom: 5px; }
.eg-viewer-device-application { width: min(calc(100% - 4px), calc((100cqh - 4px) * var(--screen-ratio)), 2048px); padding: 0; border-width: 1px; }
.eg-viewer-device-application .eg-viewer-screen { position: relative; }
.eg-viewer-device-application .eg-viewer-screen img { transform: none; }
.eg-viewer-device-application .eg-viewer-screen::after { content: ''; position: absolute; inset: 0; border: 3px solid #202a33; border-radius: inherit; pointer-events: none; }
@media (max-width: 600px) {
    .eg-media-viewer[data-display="product-screenshot"] { padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
    .eg-media-viewer[data-display="product-screenshot"] .eg-viewer-dialog { width: 100%; height: 100%; padding: 5px; }
    .eg-media-viewer[data-display="product-screenshot"] .eg-viewer-selector button { padding-inline: 12px; font-size: .85rem; }
}

/* Fit the product viewer shell to the screenshot, with space only for its toolbar. */
.eg-media-viewer[data-display="product-screenshot"][data-orientation="portrait"] .eg-viewer-selector { flex-wrap: wrap; min-width: 0; }
.eg-media-viewer[data-display="product-screenshot"][data-orientation="portrait"] .eg-viewer-selector button { padding-inline: 10px; font-size: .8rem; }
.eg-media-viewer[data-display="product-screenshot"][data-orientation="portrait"] .eg-viewer-image { max-height: calc(96dvh - 120px); overflow-y: auto; }
.eg-media-viewer[data-source="device-showcase"][data-orientation="portrait"] .eg-viewer-device-application { width: min(100%, calc((96dvh - 120px) * var(--screen-ratio))); }
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-dialog {
    width: min(96vw, calc((96dvh - 70px) * var(--media-ratio, 1.75) + 2px), calc(var(--media-native-width, 2048px) + 2px), 2050px);
    height: auto;
    max-height: 96dvh;
    padding: 0;
    overflow: hidden;
}
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-toolbar { padding: 8px 8px 5px; }
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-image { container-type: normal; flex: none; overflow: hidden; }
.eg-media-viewer[data-display="product-screenshot"] .eg-viewer-device-application { width: 100%; margin: 0; }
@media (max-width: 600px) {
    .eg-media-viewer[data-display="product-screenshot"] .eg-viewer-dialog { width: min(100%, calc(var(--media-native-width, 2048px) + 2px)); height: auto; max-height: 100%; }
}


/* Dark functionality dialogs. Product screenshots keep their original colors. */
#featureShowcaseModal .feature-showcase-content {
    background: #1a1a24; color: #e5e5ef; border: 1px solid #343442;
    box-shadow: 0 24px 64px rgba(0,0,0,.35); color-scheme: dark;
}
#featureShowcaseModal .eg-feature-detail,
#featureShowcaseModal :is(h2, .eg-showcase-value, .eg-showcase-benefits strong, .eg-showcase-workflow strong) { color: #e5e5ef; }
#featureShowcaseModal :is(.eg-detail-eyebrow, .eg-showcase h3, .eg-showcase-benefits p,
    .eg-showcase-workflow p, .eg-showcase-support, figcaption, .eg-media-placeholder-status) { color: #b4b4c4; }
#featureShowcaseModal :is(.eg-detail-header, .eg-showcase-actions) { border-color: #343442; }
#featureShowcaseModal :is(.eg-detail-icon, .eg-benefit-check) { background: #302743; color: #c09aff; }
#featureShowcaseModal :is(.eg-showcase-workflow, .eg-detail-product-proof, .eg-media-frame,
    .eg-media-carousel, .eg-device-showcase) { background: #242430; border-color: #343442; box-shadow: none; }
#featureShowcaseModal .eg-showcase-workflow li::before,
#featureShowcaseModal .eg-showcase-workflow li::after { color: #c09aff; }
#featureShowcaseModal :is(.eg-detail-related a, .eg-media-open span, .eg-carousel-controls button) {
    background: #1a1a24; color: #c9b6ff; border-color: #393946;
}
#featureShowcaseModal :is(.eg-detail-related a:hover, .eg-carousel-controls button[aria-pressed="true"]) { background: #302743; color: #dfd2ff; }
#featureShowcaseModal .eg-detail-permalink { color: #c9b6ff; }
#featureShowcaseModal .eg-quote-link { background: #7c36e8; color: #fff; }
#featureShowcaseModal .eg-quote-link:hover { background: #8b48ed; }
#featureShowcaseModal .feature-showcase-close { background: #242430; color: #e5e5ef; border-color: #393946; }
#featureShowcaseModal :is(a,button):focus-visible { outline-color: #c09aff; }
#featureShowcaseModal .eg-media-open { background: transparent; }
#featureShowcaseModal .eg-media-open:hover { background: rgba(159,124,255,.03); }

/* Keep captions and canonical feature pages in the same dark palette. */
#featureShowcaseModal .eg-carousel-slide figcaption strong,
.eg-feature-page .eg-carousel-slide figcaption strong { color: #e5e5ef; }
.eg-feature-page { background: #101018; color: #e5e5ef; color-scheme: dark; }
.eg-feature-page .eg-public-main {
    margin: 24px auto 12px; background: #1a1a24; border-color: #343442;
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.eg-feature-page .eg-feature-detail,
.eg-feature-page .eg-feature-detail :is(h1,h2,h3) { color: #e5e5ef; }
.eg-feature-page :is(.eg-detail-lead,.eg-detail-eyebrow,.eg-detail-workflow p,
    .eg-detail-note,.eg-detail-quote p,.eg-detail-media figcaption,.eg-public-footer) { color: #b4b4c4; }
.eg-feature-page .eg-detail-header { border-color: #343442; }
.eg-feature-page :is(.eg-detail-product-proof,.eg-detail-workflow,.eg-detail-note,
    .eg-detail-quote,.eg-media-carousel,.eg-media-frame,.eg-device-showcase) {
    background: #242430; border-color: #343442; box-shadow: none;
}
.eg-feature-page .eg-detail-note { border-left-color: #b39cff; }
.eg-feature-page .eg-detail-icon { background: #302743; color: #c09aff; }
.eg-feature-page .eg-detail-workflow li::before,
.eg-feature-page .eg-detail-benefits li::marker { color: #c09aff; }
.eg-feature-page :is(.eg-detail-related a,.eg-media-open span,.eg-carousel-controls button) {
    background: #1a1a24; color: #c9b6ff; border-color: #393946;
}
.eg-feature-page :is(.eg-detail-related a:hover,.eg-carousel-controls button[aria-pressed="true"]) {
    background: #302743; color: #dfd2ff;
}
.eg-feature-page .eg-quote-link { background: #7c36e8; color: #fff; }
.eg-feature-page .eg-quote-link:hover { background: #8b48ed; }
.eg-feature-page .eg-media-open { background: transparent; }
.eg-feature-page .eg-media-open:hover { background: rgba(159,124,255,.03); }
.eg-feature-page .eg-viewer-dialog { background: #1a1a24; border-color: #343442; }
.eg-feature-page .eg-viewer-selector { background: #242430; }
.eg-feature-page :is(.eg-viewer-selector button,.eg-viewer-close) { color: #e5e5ef; background: #242430; border-color: #393946; }
.eg-feature-page .eg-viewer-selector button[aria-pressed="true"] { background: #302743; color: #dfd2ff; }
.eg-feature-page :focus-visible { outline-color: #c09aff; }
@media (max-width: 700px) {
    .eg-feature-page .eg-public-main { margin: 16px 12px 12px; }
}
