/* Native service-page compositions. Global navigation and other pages retain their styling. */
body:has(#device-iphone-hero){--ds-accent:#0964cc;--ds-soft:#eaf3ff;--ds-ink:#0b1e38;--ds-title:Outfit,Manrope,sans-serif}
body:has(#device-galaxy-hero){--ds-accent:#6742b8;--ds-soft:#f1edfa;--ds-ink:#231c3f;--ds-title:"Space Grotesk",Manrope,sans-serif}
body:has(#device-ipad-hero){--ds-accent:#17686e;--ds-soft:#edf5f4;--ds-ink:#153a3d;--ds-title:Manrope,sans-serif}
[data-theme=dark] body:has(#device-iphone-hero){--ds-accent:#8cbfff;--ds-soft:#101e34;--ds-ink:#f1f6ff}
[data-theme=dark] body:has(#device-galaxy-hero){--ds-accent:#c2a4ff;--ds-soft:#211b34;--ds-ink:#f5f0ff}
[data-theme=dark] body:has(#device-ipad-hero){--ds-accent:#82d3d0;--ds-soft:#13292b;--ds-ink:#edfaf9}
body:has([id^=device-]) :is([id^=device-],#services,#contact){position:relative;background:var(--theme-canvas);color:var(--theme-text);isolation:isolate}
body:has([id^=device-]) :is([id^=device-],#services,#contact) :is(h1,h2,h3){font-family:var(--ds-title);text-transform:none;font-style:normal;color:var(--theme-text);letter-spacing:-.035em;text-shadow:none}
body:has([id^=device-]) :is([id^=device-],#services,#contact) h2{font-size:clamp(28px,3.2vw,44px);line-height:1.15;font-weight:700}
body:has([id^=device-]) :is([id^=device-],#services,#contact) h3{font-size:22px;line-height:1.25;font-weight:700}
body:has([id^=device-]) :is([id^=device-],#services,#contact) :is(p,.repair-story__list span){color:var(--theme-text-muted);line-height:1.7}
body:has([id^=device-]) :is([id^=device-],#services,#contact) .button{border-radius:8px;box-shadow:none}
body:has([id^=device-]) :is([id^=device-],#services,#contact) a:focus-visible{outline:3px solid var(--ds-accent);outline-offset:5px}
body:has([id^=device-]) :is([id^=device-],#services) .site-container{max-width:1280px}
/* Cutouts sit directly on the section surface, with CSS linework behind them. */
[id$=-hero][id^=device-] .campaign-hero{position:relative;padding:64px 0;background:var(--ds-soft);overflow:hidden}
[id$=-hero][id^=device-] .campaign-hero__inner{position:relative;z-index:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
[id$=-hero][id^=device-] .campaign-hero__copy{max-width:620px}
[id$=-hero][id^=device-] .campaign-hero h1{font-size:clamp(40px,5.4vw,76px);font-weight:700;line-height:1.04;color:var(--ds-ink);letter-spacing:-.055em;max-width:11ch}
[id$=-hero][id^=device-] .campaign-hero__copy>p{font-size:18px;margin:24px 0 28px;color:var(--theme-text-muted);line-height:1.7;max-width:550px}
[id$=-hero][id^=device-] .campaign-hero__eyebrow{color:var(--ds-accent);text-transform:none;letter-spacing:0;font:700 15px/1.4 "DM Sans",sans-serif;margin-bottom:20px}
[id$=-hero][id^=device-] .campaign-hero__visual{position:relative;min-height:0;isolation:isolate}
[id$=-hero][id^=device-] .campaign-hero__visual>img{position:relative;z-index:1;display:block;width:100%;height:auto;aspect-ratio:3/2;min-height:0;object-fit:contain;border-radius:0;box-shadow:none;border:0}
[id$=-hero][id^=device-] .campaign-hero__visual::after{display:none}
[id$=-hero][id^=device-] .campaign-hero__visual::before{content:"";position:absolute;inset:4% 0;z-index:0;border:1px solid color-mix(in srgb,var(--ds-accent) 22%,transparent);pointer-events:none}
[id$=-hero][id^=device-] .button-secondary{color:var(--ds-ink);background:transparent;border-color:color-mix(in srgb,var(--ds-accent) 40%,transparent)}
#device-iphone-hero .campaign-hero__visual::before{inset:3% 7%;border-radius:50%;box-shadow:0 0 0 38px color-mix(in srgb,var(--ds-accent) 5%,transparent),0 0 0 76px color-mix(in srgb,var(--ds-accent) 3%,transparent)}
#device-iphone-hero .campaign-hero::after{content:"";position:absolute;left:4%;bottom:28px;width:90px;height:16px;background:radial-gradient(circle,var(--ds-accent) 1.5px,transparent 2px) 0 0/12px 12px;opacity:.35}
#device-galaxy-hero .campaign-hero{padding:76px 0;background:var(--theme-canvas)}
#device-galaxy-hero .campaign-hero__inner{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:52px}
#device-galaxy-hero .campaign-hero__visual{order:-1}
#device-galaxy-hero .campaign-hero h1{font-size:clamp(42px,5vw,70px);max-width:10ch}
#device-galaxy-hero .campaign-hero__visual::before{inset:0 4%;border:0;background:var(--ds-soft);border-radius:50% 50% 10px 10px}
#device-galaxy-hero .campaign-hero::after{content:"";position:absolute;right:0;top:30px;width:20%;height:1px;background:var(--ds-accent);opacity:.4}
#device-ipad-hero .campaign-hero{padding:48px 0 0;background:var(--ds-soft)}
#device-ipad-hero .campaign-hero__inner{grid-template-columns:1fr;gap:12px;text-align:center}
#device-ipad-hero .campaign-hero__copy{max-width:900px;margin:auto}
#device-ipad-hero .campaign-hero h1{max-width:18ch;margin:auto;font-size:clamp(38px,5.3vw,72px);font-weight:800}
#device-ipad-hero .campaign-hero__copy>p{max-width:660px;margin:20px auto 24px}
#device-ipad-hero .button-row{justify-content:center}
#device-ipad-hero .campaign-hero__visual{width:min(850px,100%);margin:auto}
#device-ipad-hero .campaign-hero__visual>img{aspect-ratio:2.1/1;max-height:420px}
#device-ipad-hero .campaign-hero__visual::before{inset:12% -8% 0;border:0;background:repeating-linear-gradient(0deg,transparent,transparent 39px,color-mix(in srgb,var(--ds-accent) 10%,transparent) 40px),repeating-linear-gradient(90deg,transparent,transparent 39px,color-mix(in srgb,var(--ds-accent) 10%,transparent) 40px);mask-image:linear-gradient(transparent,#000 30%)}
/* Service details and photography. */
body:has([id^=device-]) #services{padding:56px 0}
body:has([id^=device-]) #services .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--theme-border);border-bottom:1px solid var(--theme-border)}
body:has([id^=device-]) #services .service-card{grid-column:auto;display:block;padding:24px;border:0;border-right:1px solid var(--theme-border);border-radius:0;background:transparent;box-shadow:none;color:var(--theme-text)}
body:has([id^=device-]) #services .service-card:last-child{border-right:0}
body:has([id^=device-]) #services .service-card h3{font-size:22px;color:var(--theme-text)}
body:has([id^=device-]) #services .service-card p{font-size:15px;color:var(--theme-text-muted)}
body:has([id^=device-]) #services .service-card__icon{display:block;width:32px;height:32px;margin-bottom:20px;padding:0;border-radius:0;background:transparent}
body:has([id^=device-]) [id^=device-] .repair-story{padding:56px 0;background:var(--theme-surface)}
body:has([id^=device-]) [id^=device-] .repair-story__inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
body:has([id^=device-]) [id^=device-] .repair-story__visual{min-height:0;position:relative}
body:has([id^=device-]) [id^=device-] .repair-story__visual img{width:100%;height:auto;min-height:0;aspect-ratio:3/2;object-fit:cover;border-radius:8px;border:0;box-shadow:none}
@supports(mask-composite:intersect){body:has([id^=device-]) [id^=device-] .repair-story__visual img{mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(0deg,transparent,#000 4%,#000 96%,transparent);mask-composite:intersect}}
body:has([id^=device-]) [id^=device-] .repair-story__eyebrow:empty{display:none}
body:has([id^=device-]) [id^=device-] .repair-story__copy>p{font-size:17px}
body:has([id^=device-]) [id^=device-] .repair-story__list{gap:14px}
body:has([id^=device-]) [id^=device-] .repair-story__list strong{color:var(--theme-text);font-size:16px}
body:has([id^=device-]) [id^=device-] .repair-story__list li{border-color:var(--theme-border)}
body:has([id^=device-]) [id^=device-] .repair-story__cta{color:var(--ds-accent)}
#device-iphone-screen .repair-story__visual::before{content:"";position:absolute;inset:-14px 22px 14px -14px;border:1px solid color-mix(in srgb,var(--ds-accent) 40%,transparent);border-radius:8px;z-index:-1}
#device-galaxy-bench .repair-story__visual img{border-radius:8px 60px 8px 8px}
#device-ipad-screen .repair-story__visual::after{content:"";position:absolute;width:48px;height:48px;right:-10px;bottom:-10px;border-right:2px solid var(--ds-accent);border-bottom:2px solid var(--ds-accent);pointer-events:none}
/* Each page organizes the same practical information differently. */
body:has([id^=device-]) [id^=device-] .service-tabs{padding-block:48px}
body:has([id^=device-]) [id^=device-] .service-tabs__tabs{flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--theme-border);padding-bottom:16px}
body:has([id^=device-]) [id^=device-] .service-tabs__tabs button{border:1px solid var(--theme-border);border-radius:6px;background:transparent;color:var(--theme-text);box-shadow:none}
body:has([id^=device-]) [id^=device-] .service-tabs__tabs button[aria-selected=true]{background:var(--ds-soft);color:var(--ds-accent);border-color:var(--ds-accent)}
body:has([id^=device-]) [id^=device-] .service-tabs__panels{background:var(--ds-soft);border:0;border-radius:8px;padding:28px;margin-top:16px}
body:has([id^=device-]) [id^=device-] .service-tabs__panels li{color:var(--theme-text-muted);line-height:1.7}
#device-galaxy-choices{background:var(--ds-soft)}
body:has([id^=device-]) [id^=device-] .model-coverage{padding-block:40px;background:transparent;color:var(--theme-text)}
body:has([id^=device-]) [id^=device-] .model-coverage__eyebrow:empty{display:none}
body:has([id^=device-]) [id^=device-] .model-coverage__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body:has([id^=device-]) [id^=device-] .model-coverage__grid article{padding:22px 0;border:0;border-top:2px solid var(--ds-accent);border-radius:0;background:transparent}
body:has([id^=device-]) [id^=device-] .model-coverage__grid span{display:block;padding:0;background:transparent;color:var(--theme-text-muted);border:0;border-radius:0;line-height:1.8}
body:has([id^=device-]) [id^=device-] .model-coverage__grid article>div{display:grid;gap:4px}
:is(#device-iphone-hero,#device-galaxy-hero,#device-ipad-hero) .campaign-hero__eyebrow{color:var(--ds-accent)}
:is(#device-iphone-hero,#device-galaxy-hero,#device-ipad-hero) .button-secondary{background:transparent;color:var(--ds-ink);border:1px solid var(--ds-accent)}
body:has(#device-galaxy-hero) :is([id^=device-],#contact) .button-primary{background:#6742b8;border-color:#6742b8;color:#fff}
body:has(#device-ipad-hero) :is([id^=device-],#contact) .button-primary{background:#17686e;border-color:#17686e;color:#fff}
[data-theme=dark] body:has(#device-galaxy-hero) :is([id^=device-],#contact) .button-primary{background:#c2a4ff;border-color:#c2a4ff;color:#231c3f}
[data-theme=dark] body:has(#device-ipad-hero) :is([id^=device-],#contact) .button-primary{background:#82d3d0;border-color:#82d3d0;color:#153a3d}
#device-ipad-models{text-align:center}
body:has([id^=device-]) [id^=device-] .repair-timeline{padding-block:48px}
body:has([id^=device-]) [id^=device-] .repair-timeline ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:0;list-style:none}
body:has([id^=device-]) [id^=device-] .repair-timeline ol>li{display:block;padding:22px 0;border:0;border-top:1px solid var(--theme-border);background:transparent;border-radius:0}
body:has([id^=device-]) [id^=device-] .repair-timeline__marker{display:none}
body:has([id^=device-]) [id^=device-] .repair-timeline ol>li>div>span{color:var(--ds-accent);font:700 32px/1.4 var(--ds-title)}
body:has([id^=device-]) [id^=device-] .repair-timeline h3{margin:12px 0}
body:has([id^=device-]) [id^=device-] .faq-section{padding-block:48px}
body:has([id^=device-]) [id^=device-] .faq-section details{border-radius:8px;box-shadow:none}
body:has([id^=device-]) [id^=device-] .faq-section summary{font:600 19px/1.4 var(--ds-title);text-transform:none;color:var(--theme-text)}
body:has([id^=device-]) [id^=device-] .faq-section details p{font-size:16px}
body:has([id^=device-]) [id$=-closing][id^=device-]{background:var(--ds-soft);border-top:1px solid var(--theme-border)}
body:has([id^=device-]) [id$=-closing][id^=device-] .closing-cta{padding-block:48px}
body:has([id^=device-]) [id$=-closing][id^=device-] .closing-cta .button-secondary{color:var(--ds-ink);background:transparent;border-color:var(--ds-accent)}
body:has([id^=device-]) #contact{padding-block:24px}
@media(max-width:950px){body:has([id^=device-]) #services .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:has([id^=device-]) #services .service-card{border-bottom:1px solid var(--theme-border)}body:has([id^=device-]) #services .service-card:nth-child(2n){border-right:0}}
@media(max-width:760px){#device-galaxy-hero .campaign-hero{padding:32px 0}#device-galaxy-hero .campaign-hero__inner{grid-template-columns:1fr;gap:24px}#device-galaxy-hero .campaign-hero h1{font-size:42px;max-width:14ch}}
@media(max-width:760px){[id$=-hero][id^=device-] .campaign-hero{padding:32px 0}[id$=-hero][id^=device-] .campaign-hero__inner{grid-template-columns:1fr;gap:24px}[id$=-hero][id^=device-] .campaign-hero h1{max-width:14ch;font-size:42px}[id$=-hero][id^=device-] .campaign-hero__copy>p{font-size:16px}[id$=-hero][id^=device-] .campaign-hero__visual{max-width:460px;width:100%;margin:auto}[id$=-hero][id^=device-] .campaign-hero__visual>img{max-height:280px}#device-iphone-hero .campaign-hero__visual{order:-1}#device-ipad-hero .campaign-hero h1{font-size:38px}#device-ipad-hero .campaign-hero__visual>img{aspect-ratio:3/2}body:has([id^=device-]) #services{padding:32px 0}body:has([id^=device-]) #services .service-card{padding:18px 12px}body:has([id^=device-]) #services .service-card h3{font-size:19px}body:has([id^=device-]) #services .service-card p{font-size:14px}body:has([id^=device-]) [id^=device-] .repair-story{padding:32px 0}body:has([id^=device-]) [id^=device-] .repair-story__inner{grid-template-columns:1fr;gap:28px}body:has([id^=device-]) [id^=device-] .repair-story__visual{order:0}body:has([id^=device-]) [id^=device-] .model-coverage__grid,body:has([id^=device-]) [id^=device-] .repair-timeline ol{grid-template-columns:1fr;gap:12px}body:has([id^=device-]) [id^=device-] .service-tabs__panels{padding:20px}body:has([id^=device-]) [id^=device-] .model-coverage{padding-block:28px}#device-ipad-screen .repair-story__visual::after{right:0;bottom:0}#device-iphone-screen .repair-story__visual::before{inset:8px;z-index:1;pointer-events:none}}
