/* Prices v6: a single, page-scoped surface and type system. Loaded last on prices pages only. */
body.pg-prices{
  --surface:#fff;--surface-2:#f5f5f7;--ink:#1d1d1f;--ink-2:#424245;--muted:#6e6e73;
  --hairline:#d2d2d7;--hairline-2:#e8e8ed;--accent:#0071e3;--accent-ink:#fff;--focus:#0071e3;
  --line:var(--hairline);--line-2:var(--hairline-2);--bg2:var(--surface-2);--accent-d:#005bbd;--accent-soft:#e8f3ff;
  color:var(--ink);background:var(--surface-2);color-scheme:light;
}
body.pg-prices{overflow-x:clip}
html:has(body.pg-prices){overflow-x:clip}
@media(prefers-color-scheme:dark){
  body.pg-prices{--surface:#161617;--surface-2:#000;--ink:#f5f5f7;--ink-2:#d2d2d7;--muted:#a1a1a6;
    --hairline:#424245;--hairline-2:#333336;--accent:#2997ff;--accent-ink:#fff;--focus:#2997ff;
    --line:var(--hairline);--line-2:var(--hairline-2);--bg2:#000;--accent-d:#58aaff;--accent-soft:#102b45;color-scheme:dark}
}
body.pg-prices,body.pg-prices main,body.pg-prices main>.sec{background:var(--surface-2);color:var(--ink)}
body.pg-prices h1,body.pg-prices h2,body.pg-prices h3,body.pg-prices h4,
body.pg-prices .sec-head h1,body.pg-prices .sec-head h2{color:var(--ink);letter-spacing:-.03em}
body.pg-prices .sub,body.pg-prices .lead{color:var(--muted)}
body.pg-prices .subnav{background:color-mix(in srgb,var(--surface-2) 86%,transparent);border-color:var(--hairline-2)}
body.pg-prices .subnav-t,body.pg-prices .subnav a{color:var(--ink-2)}
body.pg-prices .subnav a:hover{background:color-mix(in srgb,var(--ink) 7%,transparent);color:var(--ink)}

/* Calculator surfaces and controls */
body.pg-prices .cfg-form,body.pg-prices .result{background:var(--surface);color:var(--ink);border:1px solid var(--hairline-2);box-shadow:0 18px 54px rgba(0,0,0,.055)}
@media(prefers-color-scheme:dark){body.pg-prices .cfg-form,body.pg-prices .result{box-shadow:0 22px 64px rgba(0,0,0,.4)}}
body.pg-prices .cfg-form{padding:10px clamp(22px,3vw,36px);border-radius:30px}
body.pg-prices fieldset+fieldset{border-color:var(--hairline-2)}
body.pg-prices legend{color:var(--ink);font-size:1.05rem;font-weight:650;letter-spacing:-.015em;gap:10px}
body.pg-prices legend .n{width:26px;height:26px;background:var(--surface-2);border-color:var(--hairline);color:var(--ink-2);font-size:.78rem;font-weight:650}
body.pg-prices .brand-logo-wall{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
body.pg-prices .pill.brand-logo-card{min-width:0}
body.pg-prices .pill.brand-logo-card .brand-logo-box{height:66px;border:1px solid var(--hairline);border-radius:17px;background:var(--surface-2);box-shadow:none;transition:transform .28s cubic-bezier(.22,1,.36,1),border-color .22s,background-color .22s}
body.pg-prices .brand-svg-apple path{fill:#1d1d1f}
body.pg-prices .pill.brand-logo-card .brand-logo-box{background:var(--surface)}
body.pg-prices .pill.brand-logo-card input:checked+.brand-logo-box{background:var(--accent-soft)}
body.pg-prices .pill.brand-logo-card input:checked+.brand-logo-box{border:2px solid var(--accent);background:var(--surface-2);box-shadow:none}
body.pg-prices .pill.brand-logo-card input:focus-visible+.brand-logo-box{outline:2px solid var(--focus);outline-offset:3px}
body.pg-prices .pill span{background:var(--surface);color:var(--ink);border-color:var(--hairline);min-height:44px}
body.pg-prices .pill input:checked+span{background:var(--accent-soft);color:var(--ink);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
body.pg-prices .tiles{gap:12px}
body.pg-prices .tile span{min-height:126px;padding:20px 10px 16px;border-radius:20px;border-color:var(--hairline);background:var(--surface);color:var(--ink);transition:transform .3s cubic-bezier(.22,1,.36,1),border-color .2s,background-color .2s,box-shadow .2s}
body.pg-prices .tile input:checked+span{border:2px solid var(--accent);background:var(--accent-soft);box-shadow:none}
body.pg-prices .tile input:checked+span .ri{color:var(--accent)}
body.pg-prices .ri{color:var(--ink);--ri-d:#e5e5ea}
@media(prefers-color-scheme:dark){body.pg-prices .ri{--ri-d:#3a3a3c}body.pg-prices .brand-logo-box{background:#f5f5f7!important}body.pg-prices .brand-logo-box .brand-svg-apple path{fill:#1d1d1f}}
body.pg-prices .sel select,body.pg-prices .txt input{min-height:56px;background:var(--surface);color:var(--ink);border-color:var(--hairline);border-radius:15px}
body.pg-prices .sel select:focus,body.pg-prices .txt input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
body.pg-prices .txt input::placeholder{color:var(--muted)}
body.pg-prices .cfg-sp{min-height:40px;background:var(--surface);color:var(--ink-2);border:1px solid var(--hairline);border-radius:999px;transition:color .2s,background-color .2s,border-color .2s,transform .25s cubic-bezier(.22,1,.36,1)}
body.pg-prices .cfg-sp.is-active{background:var(--ink);color:var(--surface);border-color:var(--ink)}
body.pg-prices .cfg-sp:hover{color:var(--accent);border-color:var(--accent)}
body.pg-prices .cfg-sp:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
body.pg-prices .tierpick{gap:10px}
body.pg-prices .tp .box{min-height:72px;padding:17px 19px;background:var(--surface);color:var(--ink);border-color:var(--hairline);border-radius:17px}
body.pg-prices .tp input:checked+.box{background:var(--accent-soft);border:2px solid var(--accent);box-shadow:none}
body.pg-prices .tp b,body.pg-prices .tp .pp{color:var(--ink)}
body.pg-prices .tp small,body.pg-prices .tp .pan{color:var(--muted)}

/* Quote panel */
body.pg-prices .result{top:calc(var(--hh) + 74px);padding:clamp(26px,3vw,36px);border-radius:30px}
body.pg-prices .r-label{color:var(--muted);letter-spacing:.08em}
body.pg-prices .r-what{color:var(--ink);font-size:1.25rem;line-height:1.35;font-weight:600}
body.pg-prices .r-row{display:flex;flex-direction:column;align-items:stretch;gap:14px}
body.pg-prices .r-price{color:var(--ink);font-size:clamp(48px,5vw,56px);letter-spacing:-.05em;font-variant-numeric:tabular-nums;line-height:1.02;margin-bottom:18px}
body.pg-prices .r-price .pf{color:var(--muted)}
body.pg-prices .r-w{color:var(--muted);padding-top:15px;border-top:1px solid var(--hairline-2)}
body.pg-prices .r-w .i{color:#188038}
body.pg-prices .r-book,body.pg-prices #r-cta{width:100%;min-height:52px;padding:13px 20px;border-radius:999px;font-size:1rem;font-weight:600}
body.pg-prices .r-book,body.pg-prices #r-cta.btn-primary{background:var(--accent);color:var(--accent-ink)}
body.pg-prices .r-wa{background:transparent;color:var(--accent);border:1px solid var(--accent)}
body.pg-prices .r-note{color:var(--muted)}

/* Tier cards, LCD/OLED comparison and package offers */
body.pg-prices .v5-grp h3,body.pg-prices .v5-cap{color:var(--ink)}
body.pg-prices .v5-grp h3 small,body.pg-prices .v5-panel,body.pg-prices .v5-tier .v5-d,
body.pg-prices .v5-from small,body.pg-prices .v5-m dt,body.pg-prices .v5-m dd .pf,
body.pg-prices .v5-m dd sup,body.pg-prices .v5-list .pt-notes{color:var(--muted)}
body.pg-prices .v5-card,body.pg-prices .cmp-col,body.pg-prices .sheet,body.pg-prices .cmp{color:var(--ink)}
body.pg-prices .v5-card{background:var(--surface);border:1px solid var(--hairline-2);box-shadow:0 14px 44px rgba(0,0,0,.045)}
body.pg-prices .v5-tier h4,body.pg-prices .v5-from,body.pg-prices .v5-m h4,body.pg-prices .v5-m dd,
body.pg-prices .cmp h3,body.pg-prices .cmp h4,body.pg-prices .cmp dd{color:var(--ink)}
body.pg-prices .v5-tier.hl{box-shadow:inset 0 0 0 2px var(--accent)}
body.pg-prices .v5-badge{background:var(--ink);color:var(--surface)}
body.pg-prices .v5-m dl>div,body.pg-prices .cmp-col+.cmp-col,body.pg-prices .cmp dl div{border-color:var(--hairline-2)}
body.pg-prices .v5-m .pt-book{background:var(--accent);color:var(--accent-ink)}
body.pg-prices .v5-tab,body.pg-prices .v5-search input{background:var(--surface);color:var(--ink);border:1px solid var(--hairline-2)}
body.pg-prices .v5-tab small{color:var(--muted)}
body.pg-prices .v5-tab[aria-selected="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
body.pg-prices .v5-tab[aria-selected="true"] small{color:var(--muted)}
body.pg-prices .v5-tools{background:color-mix(in srgb,var(--surface-2) 88%,transparent);border:1px solid var(--hairline-2)}
body.pg-prices .v5-search input:focus,body.pg-prices .v5-tab:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
body.pg-prices .cmp-group,body.pg-prices .cmp-group small,body.pg-prices .cmp-panel,body.pg-prices .cmp dt,
body.pg-prices .cmp-note,body.pg-prices .cmp-foot,body.pg-prices .cmp .w-none dd{color:var(--muted)}
body.pg-prices .cmp-col{border-radius:24px}
body.pg-prices .guide{background:var(--surface);border:1px solid var(--hairline-2);color:var(--ink)}
body.pg-prices .sheet{background:var(--surface);border:1px solid var(--hairline-2)}
body.pg-prices .offers .wrap{border-color:var(--hairline-2)}
body.pg-prices .pk{background:var(--surface);border:1px solid var(--hairline-2);color:var(--ink)}
body.pg-prices .pk h3,body.pg-prices .pk-price{color:var(--ink)}
body.pg-prices .pk-d{color:var(--ink-2)}
body.pg-prices .pk .ri{--ri-d:var(--surface-2)}
body.pg-prices .cmp-note,body.pg-prices .r-note,body.pg-prices .v5-list .pt-notes{color:var(--muted)}
/* Samsung's standard compatible tier carries the made-to-order note. Keep it red and gently flowing. */
body.pg-prices:has(#cfg input[name="brand"][value="samsung"]:checked) .tp:has(input[name="tier"][value="and_std"]) .pan{
  color:#b42318;background:linear-gradient(100deg,#b42318 0%,#d14a40 35%,#b42318 65%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:v6-order-flow 4.5s linear infinite
}
@media(prefers-color-scheme:dark){body.pg-prices:has(#cfg input[name="brand"][value="samsung"]:checked) .tp:has(input[name="tier"][value="and_std"]) .pan{
  color:#ff6b63;background-image:linear-gradient(100deg,#ff6b63 0%,#ff938b 35%,#ff6b63 65%)
}}
@keyframes v6-order-flow{to{background-position:220% 0}}

@media(hover:hover){
  body.pg-prices .v5-card,body.pg-prices .pk{transition:transform .32s cubic-bezier(.22,1,.36,1),box-shadow .32s cubic-bezier(.22,1,.36,1)}
  body.pg-prices .v5-card:hover,body.pg-prices .pk:hover{transform:translateY(-3px);box-shadow:0 22px 58px rgba(0,0,0,.1)}
  body.pg-prices .brand-logo-card:hover .brand-logo-box,body.pg-prices .tile input:hover+span{transform:translateY(-2px)}
}
body.pg-prices .btn:active,body.pg-prices .tile input:active+span,body.pg-prices .tp input:active+.box{transform:scale(.98)}
@media(max-width:860px){body.pg-prices .cfg-grid{grid-template-columns:1fr;gap:18px}body.pg-prices .result{position:relative;top:auto}body.pg-prices .cfg-form{padding-inline:22px}}
@media(max-width:640px){
  body.pg-prices{font-size:16px}
  body.pg-prices .cfg-form,body.pg-prices .result{border-radius:24px}
  body.pg-prices .result{padding:24px 22px}
  body.pg-prices .r-price{font-size:48px}
  body.pg-prices .brand-logo-wall{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body.pg-prices .pill.brand-logo-card .brand-logo-box{height:60px;padding:8px}
  body.pg-prices .brand-svg{max-height:32px}
  body.pg-prices .tiles{gap:8px}
  body.pg-prices .tile span{min-height:112px}
  body.pg-prices .v5-grid,body.pg-prices .v5-grid.n2{grid-template-columns:1fr}
  body.pg-prices .v5-tools{top:calc(var(--hh,56px) + 46px)}
}
@media(prefers-reduced-motion:reduce){
  body.pg-prices *,body.pg-prices *::before,body.pg-prices *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Keynote opening: generous scale, calm light, and a short one-time entrance. */
body.pg-prices #prezzi .sec-head{position:relative;isolation:isolate;padding:clamp(24px,4vw,58px) 0 clamp(18px,2.8vw,36px)}
body.pg-prices #prezzi .sec-head:before{content:"";position:absolute;z-index:-1;inset:-12% -10% -10%;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,rgba(94,157,255,.13),rgba(167,190,255,.07) 30%,transparent 67%);filter:blur(12px)}
@media(prefers-color-scheme:dark){body.pg-prices #prezzi .sec-head:before{background:radial-gradient(ellipse at 50% 42%,rgba(59,104,210,.2),rgba(105,74,190,.11) 34%,transparent 68%)}}
body.pg-prices #prezzi .sec-head h1,body.pg-prices #prezzi .sec-head h2{font-size:clamp(2.65rem,6.2vw,5.5rem);line-height:.99;letter-spacing:-.055em;font-weight:690;max-width:1000px;margin-inline:auto;text-wrap:balance}
body.pg-prices #prezzi .sec-head .sub,body.pg-prices #prezzi .sec-head .lead{font-size:clamp(1.05rem,1.5vw,1.28rem);line-height:1.55;max-width:680px;margin:22px auto 0}
body.pg-prices.v6-motion-ready #prezzi .sec-head h1,body.pg-prices.v6-motion-ready #prezzi .sec-head h2{animation:v6-hero-in .8s cubic-bezier(.22,1,.36,1) both}
body.pg-prices.v6-motion-ready #prezzi .sec-head .sub,body.pg-prices.v6-motion-ready #prezzi .sec-head .lead{animation:v6-hero-in .8s .12s cubic-bezier(.22,1,.36,1) both}
@keyframes v6-hero-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* Airier dark glass brand chips; all logos retain their own marks and colours. */
@media(prefers-color-scheme:dark){
 body.pg-prices .pill.brand-logo-card .brand-logo-box{background:#1d1d1f!important;border-color:#38383b;color:#f5f5f7}
 body.pg-prices .brand-logo-box .brand-svg-apple path{fill:#f5f5f7!important}
 body.pg-prices .brand-logo-box .brand-svg-motorola{filter:none;padding:0;border:0}
 body.pg-prices .brand-logo-box .brand-svg-motorola circle{fill:#f5f5f7}
 body.pg-prices .brand-logo-box .brand-svg-motorola path{fill:#1d1d1f}
 body.pg-prices .pill.brand-logo-card input:checked+.brand-logo-box{background:color-mix(in srgb,#2997ff 10%,#1d1d1f)!important;border-color:var(--accent)}
}
body.pg-prices .pill.brand-logo-card input:checked+.brand-logo-box{box-shadow:none}
@media(hover:hover){body.pg-prices .brand-logo-card:hover .brand-logo-box{border-color:color-mix(in srgb,var(--ink) 35%,var(--hairline));box-shadow:0 8px 22px rgba(0,0,0,.08)}}

/* A completed step becomes a compact confirmation marker. */
body.pg-prices legend .n{position:relative;display:inline-grid;place-items:center;flex:0 0 26px;transition:background-color .22s,color .22s,border-color .22s}
body.pg-prices fieldset.step.is-done legend .n{font-size:0;background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
body.pg-prices fieldset.step.is-done legend .n:after{content:"";width:7px;height:12px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}

/* Repair choices read as small product cards with the icon leading. */
body.pg-prices .tiles{align-items:stretch}
body.pg-prices .tile span{display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:132px;border-width:1px}
body.pg-prices .tile .ri{width:30px;height:30px;transition:color .2s,transform .25s cubic-bezier(.22,1,.36,1)}
body.pg-prices .tile input:checked+span{border-width:2px;padding:19px 9px 15px}
body.pg-prices .tile input:checked+span .ri{color:var(--accent);transform:translateY(-1px)}
body.pg-prices .tile:active span{transform:scale(.98)}

/* Price typography and restrained premium highlights. */
body.pg-prices .r-price{font-size:clamp(48px,5.2vw,56px);font-variant-numeric:tabular-nums lining-nums}
body.pg-prices .result{box-shadow:0 24px 70px rgba(19,31,55,.11),0 2px 8px rgba(19,31,55,.04)}
@media(prefers-color-scheme:dark){body.pg-prices .result{box-shadow:0 24px 72px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.025)}}
body.pg-prices .v5-tier.hl{position:relative;isolation:isolate;box-shadow:none}
body.pg-prices .v5-tier.hl:before{content:"";position:absolute;z-index:-1;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 70%,white),color-mix(in srgb,var(--accent) 12%,transparent) 52%,color-mix(in srgb,var(--accent) 52%,white));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
body.pg-prices .v5-from{font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.035em}

/* Desktop-only reveals. The ready class is added after JS starts, so a JS failure leaves content visible. */
@media(min-width:861px) and (hover:hover) and (pointer:fine){
 body.pg-prices.v6-reveal-ready [data-reveal].v6-reveal-pending{opacity:0;transform:translateY(16px)}
 body.pg-prices.v6-reveal-ready [data-reveal].v6-reveal-pending.v6-revealed{opacity:1;transform:none;transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .65s cubic-bezier(.22,1,.36,1)}
}

/* The mobile quote dock sits above the WhatsApp FAB and respects the home indicator. */
body.pg-prices .v6-quote-dock{display:none}
@media(max-width:860px){
 body.pg-prices .r-price{font-size:44px}
 body.pg-prices .v6-quote-dock{position:fixed;z-index:38;left:10px;right:auto;width:calc(100vw - 20px);box-sizing:border-box;bottom:calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px 10px 16px;border:1px solid color-mix(in srgb,var(--hairline) 70%,transparent);border-radius:20px;background:color-mix(in srgb,var(--surface) 86%,transparent);box-shadow:0 12px 38px rgba(0,0,0,.2);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);opacity:0;transform:translateY(14px);pointer-events:none;transition:opacity .24s,transform .24s}
 body.pg-prices .v6-quote-dock.is-visible{opacity:1;transform:none;pointer-events:auto}
 body.pg-prices .v6-dock-meta{min-width:0;display:flex;flex-direction:column;gap:2px;color:var(--ink)}
 body.pg-prices .v6-dock-model{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:550;color:var(--muted)}
 body.pg-prices .v6-dock-price{font-size:1.3rem;line-height:1.15;font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
 body.pg-prices .v6-dock-book{display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:48px;padding:0 18px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:650;text-decoration:none;white-space:nowrap}
 body.pg-prices .fab{bottom:calc(88px + env(safe-area-inset-bottom))}
 body.pg-prices.v6-dock-active main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){body.pg-prices .v6-quote-dock{left:8px;right:auto;width:calc(100vw - 16px);gap:8px;padding-left:12px}body.pg-prices .v6-dock-book{min-width:102px;padding-inline:14px}}
@media(max-width:640px){body.pg-prices .lb{width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-width:0;box-sizing:border-box}body.pg-prices .lb p{min-width:0}}
@media(prefers-reduced-motion:reduce){body.pg-prices.v6-motion-ready #prezzi .sec-head h1,body.pg-prices.v6-motion-ready #prezzi .sec-head h2,body.pg-prices.v6-motion-ready #prezzi .sec-head .sub,body.pg-prices.v6-motion-ready #prezzi .sec-head .lead{animation:none}}
