/* Genuine excerpts framed as browser-based digital experiences. */
.device{--bezel:#382b3f;--screen:#f6f2ed;--hardware:#8b7c96;position:relative;min-width:0;line-height:1.4;box-sizing:border-box}
.device *{box-sizing:border-box}
.device-shell{background:var(--bezel);border:1px solid #776981;box-shadow:0 20px 40px #35213e26,inset 0 0 0 1px #eee2f222;overflow:hidden}
.device-screen{background:var(--screen);overflow:hidden;position:relative;display:flex;flex-direction:column;min-height:0}
.device-bar{flex:0 0 auto;background:#ebe3ec;border-bottom:1px solid #d7cbdc;color:#65526e;display:flex;align-items:center;justify-content:center;min-height:24px;padding:6px 8px;font:500 .62rem/1.3 var(--sans);text-align:center}
.device-bar span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.device img{display:block;min-width:0;max-width:100%;box-shadow:none;border:0;border-radius:0;object-fit:contain;background:var(--screen)}
.device-laptop{padding:0 4% 4%;width:100%}
.device-laptop .device-shell{padding:12px 10px 10px;border-radius:16px 16px 7px 7px;position:relative}
.device-laptop .device-shell:before{content:"";position:absolute;width:4px;height:4px;top:4px;left:50%;border-radius:50%;background:#a79bae}
.device-laptop .device-screen{aspect-ratio:16/10;border-radius:5px}
.device-document-spread{display:flex;align-items:center;justify-content:center;gap:3%;padding:2.5% 4%;background:#dcd5df;flex:1;min-height:0;overflow:hidden}
.device-document-spread img{width:46.5%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #46354d25)}
.device-base{height:13px;position:absolute;left:0;right:0;bottom:calc(4% - 11px);background:linear-gradient(#b1a8b7,#d6cddc 45%,#91849d);border-radius:2px 2px 55% 55% / 2px 2px 100% 100%;box-shadow:0 14px 16px #3f294c24}
.device-base:before{content:"";position:absolute;left:41%;right:41%;top:0;height:5px;background:#817489;border-radius:0 0 6px 6px}
.device-tablet .device-shell{padding:12px;border-radius:23px;position:relative}
.device-tablet .device-shell:before{content:"";position:absolute;width:4px;height:4px;top:4px;left:50%;background:#a99cb0;border-radius:50%}
.device-tablet .device-screen{aspect-ratio:4/3;border-radius:12px}
.device-tablet .device-screen>img{width:100%;height:calc(100% - 30px);min-height:0;flex:1;object-fit:contain;padding:3%;background:#f5f1eb}
.device-tablet-portrait .device-screen{aspect-ratio:3/4}
.device-phone .device-shell{padding:10px 7px 8px;border-radius:30px;border:2px solid #73607f;box-shadow:0 20px 35px #35213e35,inset 0 0 0 1px #eee2f240}
.device-phone .device-screen{aspect-ratio:9/19;border-radius:22px;padding-top:17px;background:#f2efe8}
.device-phone .device-screen:before{content:"";position:absolute;z-index:3;top:6px;left:36%;width:28%;height:5px;border-radius:10px;background:#3d3046}
.device-phone .device-screen:after{content:"";position:absolute;z-index:3;bottom:5px;left:35%;width:30%;height:3px;border-radius:8px;background:#5c45656e;pointer-events:none}
.device-phone .device-bar{background:#f2efe8;border-bottom:0;padding:5px 8px;font-size:.6rem;min-height:27px}
.device-phone .device-screen>img{width:100%;height:calc(100% - 45px);flex:1;min-height:0;object-fit:contain;padding:2px 5px 12px;background:#f2efe8}
/* The hero presents a compact device scene; each detailed preview remains unobstructed. */
.practice-collage.device-stage,.practice-collage.device-stage.compact,.experience-hero .practice-collage.device-stage{width:100%;max-width:660px;height:auto;aspect-ratio:1.18;position:relative;isolation:isolate;margin:0 auto}
.device-stage:before{content:"";position:absolute;inset:10% 0 15%;border-radius:50%;z-index:-1;background:radial-gradient(ellipse,#d5c4df95,transparent 70%)}
.device-stage .device{position:absolute;margin:0}
.device-stage .stage-workbook{width:93%;left:0;top:8%;z-index:1}
.device-stage .stage-map{width:57%;left:0;bottom:15%;z-index:2;transform:rotate(-4deg)}
.device-stage .stage-card{width:28%;right:0;bottom:15%;z-index:3;transform:rotate(5deg)}
.device-stage .device-bar{font-size:clamp(.38rem,.7vw,.58rem);min-height:18px;padding:4px}
.device-stage .device-laptop .device-shell{padding:10px 7px 7px;border-radius:12px 12px 6px 6px}
.device-stage .device-tablet .device-shell{padding:8px;border-radius:17px}
.device-stage .device-tablet .device-screen{border-radius:10px}
.device-stage .device-phone .device-shell{padding:8px 5px 6px;border-radius:24px}
.device-stage .device-phone .device-screen{border-radius:17px;padding-top:15px}
.device-stage-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;font:1rem/1.4 var(--serif);color:var(--aubergine);margin:0}
.device-stage-caption span{font:.66rem/1.5 var(--sans);color:var(--muted);letter-spacing:.07em}
/* Detailed laptop and tablet views use the same device frames at a readable size. */
.workbook-device-preview,.map-device-preview,.words-device-preview{margin:0;width:100%;min-width:0}
.workbook-device-preview{max-width:700px;justify-self:center}
.workbook-device-preview figcaption,.map-device-preview figcaption,.words-device-preview figcaption{font:.75rem/1.6 var(--sans);color:var(--muted);text-align:center;margin-top:1rem}
.map-preview-section .device img{border:0;box-shadow:none}
.words-device-preview{max-width:360px;justify-self:center;transform:rotate(2deg)}
.words-device-preview .device-tablet-portrait .device-screen{aspect-ratio:3/4.3}
.sample-card-grid{grid-template-columns:1fr 1fr 1.15fr;gap:2.4rem;align-items:center}
.sample-phone{width:100%;max-width:270px;justify-self:center}
.device-phone .sample-card{border:0;border-radius:0;box-shadow:none;background:#f2efe8;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#ad9abb #f2efe8}
.device-phone .sample-card summary{position:relative;list-style:none}
.device-phone .sample-card summary img{width:100%;height:auto;padding:2% 3% 0;background:#f2efe8}
.device-phone .sample-card summary>span{min-height:44px;padding:.7rem .4rem;background:#e5dceb;font-size:.72rem;line-height:1.4;color:#493152;gap:.35rem}
.device-phone .sample-card summary:focus-visible{outline:3px solid #816291;outline-offset:-3px}
.device-phone .sample-card[open] summary{position:sticky;top:0;z-index:2}
.device-phone .sample-card[open] summary img{display:none}
.device-phone .sample-card-back{padding:.9rem .85rem 1.8rem}
.device-phone .sample-card-back .eyebrow{font-size:.53rem;letter-spacing:.05em;line-height:1.6;margin:0 0 .6rem}
.device-phone .sample-card-back h3{font-size:1.15rem;line-height:1.35}
.device-phone .sample-card-back dt{font-size:.6rem;margin-top:1rem}
.device-phone .sample-card-back dd{font-size:.83rem;line-height:1.55;margin:.3rem 0 0}
@media(max-width:1000px){.sample-card-grid{grid-template-columns:1fr 1fr;gap:2rem}.sample-card-copy{grid-column:1/-1}.sample-phone{max-width:290px}.device-stage .device-bar{font-size:.45rem}.device-stage-caption{font-size:.88rem}}
@media(max-width:650px){.practice-collage.device-stage,.practice-collage.device-stage.compact,.experience-hero .practice-collage.device-stage{max-width:500px;aspect-ratio:1.12}.device-stage .stage-workbook{top:7%}.device-stage .stage-map,.device-stage .stage-card{bottom:17%}.device-stage .device-bar{font-size:.4rem}.device-stage-caption{font-size:.95rem}.workbook-device-preview .device-laptop{padding-bottom:6%}.workbook-device-preview .device-base{bottom:calc(6% - 11px)}.map-device-preview{max-width:540px;justify-self:center}.sample-card-grid{gap:1.1rem}.sample-phone{max-width:260px}.device-phone .sample-card-back{padding:.85rem .7rem 1.7rem}.device-phone .sample-card-back h3{font-size:1.02rem}.device-phone .sample-card-back dd{font-size:.8rem}.device-phone .sample-card summary>span{font-size:.65rem}.words-device-preview{max-width:330px;width:90%}}
@media(max-width:420px){.sample-card-grid{grid-template-columns:1fr;gap:2rem}.sample-phone{width:80%;max-width:270px}.sample-card-copy{grid-column:auto}.device-stage-caption{font-size:.8rem}.device-stage-caption span{font-size:.56rem}.device-laptop .device-bar{font-size:.47rem}.device-document-spread{gap:2%;padding:2%}.device-laptop .device-shell{padding:10px 7px 7px}.device-tablet .device-shell{padding:9px;border-radius:20px}}
