/* form & function storefront. Ported from the Astra concept, no framework. */
:root {
  --ink: #292929;
  --ink-2: #555;
  --muted: #6e6e73;
  --line: #dcdcda;
  --paper: #fdfdfc;
  --stone-1: #f0f0ed;
  --stone-2: #e8e8e5;
  --stone-3: #dededc;
  --dark: #262626;
  --serif: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --radius: 8px;
  --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { flex-shrink: 0; }
h1, h2, h3 { font-weight: 600; }
:is(h1, h2, h3, .pdp-display) em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: calc(100% - 48px); max-width: var(--page); margin-inline: auto; }

.overline { font: 10px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.overline.right { text-align: right; }

.link-line { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 999px; background: rgba(0,0,0,.06); font: 500 14px var(--sans); transition: background .2s; }
.link-line:hover { background: rgba(0,0,0,.1); }
.link-line:hover svg { transform: translateX(3px); }
.link-line svg { transition: transform .2s; }

/* ---------- top line ---------- */
.topline { background: #282828; color: #fff; }
.topline-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; font: 12px/1.4 var(--sans); }
.topline-inner > a { display: inline-flex; align-items: center; gap: 10px; }
.topline-inner a:hover span, .topline-inner > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topline-actions { display: flex; gap: 24px; }
.topline-actions a { display: inline-flex; align-items: center; gap: 8px; position: relative; white-space: nowrap; }
.cart-dot { display: none; }

/* ---------- masthead ---------- */
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 104px; }
.wordmark { justify-self: start; display: block; padding: 0; }
.wordmark img { display: block; height: 34px; width: auto; }
.mainnav { display: flex; gap: 36px; font: 13px var(--sans); }
.mainnav a { color: var(--muted); padding: 6px 0; }
.mainnav a:hover, .mainnav a.is-active { color: var(--ink); }
.mainnav a.is-active { font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 38px; }
.hero > .overline { text-align: center; }
.hero h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.08; letter-spacing: -.026em; text-align: center; margin: 28px auto 44px; }
.hero h1 em, .feature h2 em, .service h2 em, .product-heading em { color: #6e6e73; }
.hero-base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.hero-base p { font: 13px/1.7 var(--sans); color: var(--muted); margin: 0; text-align: center; }
.hero-base > a { justify-self: end; display: inline-flex; align-items: center; gap: 18px; font: 13px var(--sans); }

/* ---------- feature ---------- */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 420px; background: #ededeb; }
.feature-art { background: #e1e1df; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; overflow: hidden; }
.sculpture { position: relative; height: 260px; width: 100%; max-width: 420px; margin: 0 auto; }
.sculpture i { position: absolute; display: block; }
.sculpture .s1 { width: 150px; height: 200px; left: 16%; bottom: 22px; border-radius: 80px 80px 0 0; background: #bdbdba; box-shadow: 22px 18px 26px rgba(0,0,0,.12); }
.sculpture .s2 { width: 128px; height: 136px; left: 50%; bottom: 22px; border-radius: 66px 66px 8px 8px; background: #3d3d3d; box-shadow: 22px 14px 26px rgba(0,0,0,.18); }
.sculpture .s3 { width: 170px; height: 34px; left: 24%; bottom: 0; border-radius: 50%; background: #d7d7d5; box-shadow: 0 6px 0 #c2c2bf; }
.feature-copy { padding: 48px 13%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-copy h2 { font: 600 46px/1.08 var(--serif); letter-spacing: -.022em; margin: 22px 0; }
.feature-copy > p:not(.overline) { font: 14px/1.75 var(--sans); color: #57575a; margin: 0 0 30px; }
.feature-price { margin-top: 34px !important; }

/* ---------- collection ---------- */
.collection { padding: 68px 0; scroll-margin-top: 20px; }
.collection-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.collection-title h2 { font: 600 40px var(--serif); letter-spacing: -.025em; margin: 0; }
.collection-title sup { font: 12px var(--sans); color: var(--muted); margin-left: 6px; }
.search { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: #f0f0ed; color: var(--ink-2); width: 280px; }
.search input { font: 14px var(--sans); border: 0; background: none; outline: 0; width: 100%; color: var(--ink); }
.search:focus-within { background: #e8e8e5; }
.filters { display: flex; gap: 6px; margin: 30px 0 4px; font: 13px var(--sans); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.filters a { padding: 8px 16px; border-radius: 999px; color: #666; transition: background .2s; }
.filters a:hover { background: #f0f0ed; }
.filters a.chosen { background: #1d1d1d; color: #fff; }
.empty { font: 14px var(--sans); color: var(--muted); padding: 40px 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; margin-top: 28px; font-family: var(--sans); }
.card { display: block; min-width: 0; }
.card-art { position: relative; aspect-ratio: 1.85; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--stone-2); transition: background .2s; }
.card-art.tone-0 { background: #e9edf0; }
.card-art.tone-1 { background: #ececec; }
.card-art.tone-2 { background: #e6e8ea; }
.card:hover .card-art { background: var(--stone-3); }
.card-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #333; }
.card-logo strong { font: 600 25px var(--serif); letter-spacing: -.015em; text-align: center; padding: 0 12px; }
.card-art small { position: absolute; bottom: 16px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #8a8d92; }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.75); padding: 5px 9px; border-radius: 4px; font-size: 11px; }
.card-meta { display: flex; justify-content: space-between; margin: 16px 0 6px; font-size: 11px; color: var(--muted); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title h3 { font: 600 17px var(--serif); margin: 0; }
.card-title strong { font-size: 14px; font-weight: 500; white-space: nowrap; }
.card-title small { font-size: 10px; color: var(--muted); }
.card > p { font: 13px/1.55 var(--sans); color: var(--muted); margin: 6px 0 0; }

/* ---------- service ---------- */
.service { text-align: center; padding: 56px 20px 64px; background: #efefed; margin-bottom: 20px; }
.service h2 { font: 600 44px/1.12 var(--serif); letter-spacing: -.018em; margin: 22px 0 28px; }

/* ---------- shared buttons ---------- */
.btn-buy { display: flex; width: 100%; justify-content: space-between; align-items: center; margin: 20px 0 14px; padding: 18px 20px; background: var(--dark); color: #fff; font: 14px var(--sans); border-radius: var(--radius); transition: background .2s; }
.btn-buy:hover { background: #000; }
.btn-buy:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.delivery { text-align: center; font: 12px var(--sans); color: var(--muted); margin: 0; }

/* ---------- secondary pages / cart ---------- */
.secondary { max-width: 900px; margin: 0 auto; padding: 56px 0 72px; }
.secondary h1 { font: 600 62px/1.05 var(--serif); letter-spacing: -.022em; margin: 20px 0 32px; }
.prose { font: 15px/1.75 var(--sans); color: #555; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 20px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.cart-lines { display: grid; gap: 12px; font-family: var(--sans); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto 90px 32px; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 18px; background: #f4f4f2; }
.cart-art { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.cart-name a { font: 600 22px var(--serif); display: block; }
.cart-name span { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; }
.qty button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--stone-1); }
.qty span { min-width: 28px; text-align: center; font-size: 14px; }
.cart-sub { text-align: right; font-weight: 500; font-size: 15px; }
.remove { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: var(--radius); }
.remove:hover { color: var(--ink); background: #fff; }
.cart-total { display: flex; justify-content: space-between; padding: 22px 0 6px; font: 15px var(--sans); }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px 24px; padding: 70px 0 70px; font-family: var(--sans); }
.wordmark-sm img { display: block; height: 28px; width: auto; }
.footer p { margin: 0; font-size: 13px; color: var(--muted); }
.footer nav { justify-self: end; display: flex; gap: 24px; font-size: 13px; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer small { grid-column: 1 / -1; font-size: 11px; color: #6e6e73; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-copy { padding: 40px 9%; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topline-inner { font-size: 11px; }
  .topline-actions span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-dot { display: grid; place-items: center; position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fff; color: #222; font: 700 10px var(--sans); }
  .masthead { grid-template-columns: auto 1fr; gap: 16px; min-height: 80px; }
  .wordmark img { height: 26px; }
  .mainnav { justify-self: end; gap: 18px; font-size: 13px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); letter-spacing: -.022em; margin: 22px auto 30px; }
  .hero-base { grid-template-columns: 1fr auto; gap: 16px; }
  .hero-base > .overline { display: none; }
  .hero-base p { text-align: left; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 280px; padding: 18px; }
  .sculpture { height: 220px; margin-bottom: 26px; transform: scale(.78); transform-origin: bottom center; }
  .feature-copy { padding: 30px 22px 34px; }
  .feature-copy h2 { font-size: 36px; }
  .collection { padding: 44px 0; }
  .collection-title { flex-direction: column; align-items: stretch; }
  .collection-title h2 { font-size: 34px; }
  .search { width: 100%; }
  .filters { gap: 4px; margin-top: 22px; }
  .card-grid { gap: 30px 14px; }
  .card-art { aspect-ratio: 1.05; }
  .card-logo svg { width: 34px; height: 34px; }
  .card-logo strong { font-size: 18px; }
  .card-art small { display: none; }
  .tag { top: 10px; left: 10px; font-size: 10px; padding: 4px 7px; }
  .card-meta span:last-child { display: none; }
  .card-title { flex-direction: column; gap: 3px; }
  .card-title h3 { font-size: 15px; }
  .card-title small { display: none; }
  .card > p { font-size: 12px; }
  .service { padding: 40px 18px 46px; }
  .service h2 { font-size: 34px; }
  .secondary { padding: 36px 0 52px; }
  .secondary h1 { font-size: 42px; }
  .cart-line { grid-template-columns: 52px 1fr auto; grid-template-areas: "art name rm" "art qty sub"; gap: 10px 14px; }
  .cart-art { grid-area: art; width: 52px; height: 52px; align-self: start; }
  .cart-name { grid-area: name; }
  .cart-name a { font-size: 19px; }
  .qty { grid-area: qty; justify-self: start; }
  .cart-sub { grid-area: sub; align-self: center; }
  .cart-line > form:last-child { grid-area: rm; align-self: start; }
  .footer { grid-template-columns: 1fr; padding-bottom: 50px; }
  .footer nav { justify-self: start; flex-wrap: wrap; gap: 10px 20px; }
}

@media (max-width: 360px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Driver page: scroll story (Apple-style product page)
   ========================================================= */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.wrap.narrow { max-width: 820px; }

.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: #1d1d1d; color: #fff; font: 15px var(--sans); transition: background .2s, transform .2s; white-space: nowrap; }
.btn-pill:hover { background: #000; }
.btn-pill:active { transform: scale(.98); }
.btn-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-pill.sm { padding: 7px 16px; font-size: 13px; }
.btn-pill.ghost { background: rgba(0,0,0,.07); color: var(--ink); }
.btn-pill.ghost:hover { background: rgba(0,0,0,.12); }
.buybox.on-dark .btn-pill.ghost { background: rgba(255,255,255,.12); color: #f4f4f2; }
.buybox.on-dark .btn-pill.ghost:hover { background: rgba(255,255,255,.2); }

/* local nav */
.localnav { position: sticky; top: 0; z-index: 30; background: rgba(253,253,252,.86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.localnav-inner { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.localnav-name { font: 600 21px var(--serif); letter-spacing: -.02em; }
.localnav-links { display: flex; align-items: center; gap: 24px; font: 13px var(--sans); }
.localnav-links a:not(.btn-pill) { color: #666; }
.localnav-links a:not(.btn-pill):hover { color: var(--ink); }

/* hero */
.pdp-hero { text-align: center; padding: 34px 0 96px; }
.crumbs { display: flex; justify-content: center; gap: 8px; font: 12px var(--sans); color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.pdp-badge { display: inline-block; margin: 34px 0 0; padding: 5px 12px; border-radius: 999px; background: #ececea; font: 12px var(--sans); color: #555; }
.pdp-hero h1 { font: 600 clamp(48px, 7vw, 96px)/1 var(--serif); letter-spacing: -.028em; margin: 20px 0 0; }
.pdp-hero h1 em { display: block; font-size: .42em; letter-spacing: -.02em; color: var(--muted); margin-top: 14px; }
.pdp-display { font: 600 clamp(28px, 3.6vw, 46px)/1.15 var(--serif); letter-spacing: -.018em; max-width: 21ch; margin: 44px auto 0; }
.pdp-display em { color: #7a7a7a; }
.pdp-lede { font: 18px/1.65 var(--sans); color: #666; max-width: 58ch; margin: 24px auto 0; }
.pdp-buy { margin-top: 38px; scroll-margin-top: 80px; }
.pdp-hero-visual { margin: 72px auto 0; max-width: 980px; }

/* buy box */
.buybox { display: flex; flex-direction: column; gap: 14px; }
.buybox.center { align-items: center; }
.buy-price { font: 600 30px var(--serif); margin: 0; }
.buy-price span { font: 14px var(--sans); color: var(--muted); }
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.buy-qty { display: inline-flex; align-items: center; gap: 10px; font: 13px var(--sans); color: #666; }
.buy-qty input { width: 64px; padding: 11px 8px; text-align: center; font: 15px var(--sans); border: 0; border-radius: 999px; background: #efefec; color: var(--ink); }
.buy-qty input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.buy-note { font: 13px var(--sans); color: var(--muted); margin: 0; }
.buy-soon { font: 600 24px var(--serif); color: var(--muted); }

/* intro */
.pdp-intro { background: #efefed; padding: 120px 0; text-align: center; }
.pdp-intro h2 { font: 600 clamp(34px, 4.8vw, 62px)/1.08 var(--serif); letter-spacing: -.022em; margin: 22px 0 30px; }
.pdp-intro p:not(.overline) { font: 19px/1.7 var(--sans); color: #5e5e5e; margin: 0 auto; max-width: 62ch; }

/* highlights */
.hl { padding: 120px 0; }
.hl.theme-paper { background: var(--paper); }
.hl.theme-stone { background: #f4f4f2; }
.hl.theme-dark { background: #161616; color: #f4f4f2; }
.hl.theme-dark .overline { color: #8f8f8f; }
.hl-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.hl-grid.flip .hl-copy { order: 2; }
.hl-copy h2 { font: 600 clamp(32px, 3.8vw, 52px)/1.08 var(--serif); letter-spacing: -.022em; margin: 20px 0 24px; }
.hl-copy p:not(.overline) { font: 17px/1.75 var(--sans); color: #646464; margin: 0; max-width: 48ch; }
.hl.theme-dark .hl-copy p:not(.overline) { color: #b5b5b2; }
.feature-list { font: 18px/1.8 var(--sans); color: #555; padding-left: 20px; margin: 20px 0 0; }

/* stats */
.stats { background: #fff; padding: 96px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { display: block; font: 600 clamp(56px, 6.4vw, 92px)/1 var(--serif); letter-spacing: -.018em; }
.stat span { display: block; margin-top: 14px; font: 14px/1.5 var(--sans); color: #6e6e73; }

/* specs */
.specs { padding: 100px 0 90px; scroll-margin-top: 70px; }
.specs h2, .faq h2, .related h2 { font: 600 clamp(34px, 4vw, 48px) var(--serif); letter-spacing: -.018em; margin: 0 0 36px; }
.specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; font-family: var(--sans); }
.specs dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 22px; border-radius: 16px; background: #f4f4f2; }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; }

/* promise */
.promise { background: #efefed; padding: 80px 0; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.promise h3 { font: 600 24px var(--serif); letter-spacing: -.02em; margin: 0 0 12px; }
.promise p { font: 15px/1.7 var(--sans); color: #666; margin: 0; }

/* faq */
.faq { padding: 100px 0 80px; scroll-margin-top: 70px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 70px; }
.faq-item h3 { font: 600 21px/1.3 var(--serif); letter-spacing: -.01em; margin: 0 0 10px; }
.faq-item p { font: 15px/1.7 var(--sans); color: #666; margin: 0; }

.related { padding: 20px 0 100px; }

/* final CTA */
.pdp-final { background: #161616; color: #f4f4f2; text-align: center; padding: 110px 0; margin-bottom: 0; }
.pdp-final h2 { font: 600 clamp(40px, 5.5vw, 72px)/1.05 var(--serif); letter-spacing: -.026em; margin: 0; }
.pdp-final h2 em { color: #8f8f8f; }
.pdp-final > .wrap > p { font: 18px var(--sans); color: #b5b5b2; margin: 18px 0 38px; }
.buybox.on-dark .buy-price span, .buybox.on-dark .buy-note, .buybox.on-dark .buy-qty { color: #a5a5a2; }
.buybox.on-dark .buy-qty input { background: #2a2a2a; color: #fff; }
.buybox.on-dark .btn-pill { background: #f4f4f2; color: #161616; }
.buybox.on-dark .btn-pill:hover { background: #fff; }

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- feature visuals ---------- */
.vis { width: 100%; }
.vis-media img, .vis-media video { display: block; width: 100%; height: auto; border-radius: 18px; background: #e5e5e2; }
.vis-icon { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; background: #e8e8e5; color: #333; }

.vis-tv .tv-screen { aspect-ratio: 16 / 9; border-radius: 14px; background: #1c1c1e; border: 10px solid #0c0c0c; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 6%; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.vis-tv .tv-stand { width: 22%; height: 10px; margin: 0 auto; background: #cfcfcc; border-radius: 0 0 8px 8px; }
.tv-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3%; }
.tv-row span { aspect-ratio: 16 / 10; border-radius: 10px; background: #333336; display: grid; place-items: center; font: 500 clamp(9px, 1.3vw, 15px) var(--sans); color: #e8e8e8; text-align: center; padding: 4px; }
.tv-row span.on { background: #f4f4f2; color: #111; transform: scale(1.1); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.vis-tv .tv-screen > p { margin: 0; text-align: center; font: clamp(10px, 1.2vw, 14px) var(--sans); color: #9a9a9a; }
.tv-screen.pin { align-items: center; text-align: center; }
.tv-screen.pin small { font: clamp(11px, 1.3vw, 15px) var(--sans); color: #a5a5a5; }
.pin-digits { display: flex; gap: clamp(8px, 1.6vw, 18px); }
.pin-digits span { width: clamp(40px, 6vw, 72px); aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 10px; background: #2c2c2e; font: clamp(24px, 3.6vw, 44px) var(--sans); color: #fff; }

.vis-panel { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.06); font-family: var(--sans); color: var(--ink); }
.theme-dark .vis-panel { box-shadow: none; }
.panel-bar { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.panel-foot { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #f4f4f2; font-size: 13px; color: #6e6e73; }
.panel-foot b { color: var(--ink); font-weight: 600; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile-grid span:not([class*="app-"]) { background: #2a2a2c; color: #eee; }
.tile-grid span { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; text-align: center; font: 500 13px var(--sans); padding: 6px; }
.tile-grid span.on { outline: 3px solid #111; outline-offset: 3px; }

.deeplink { display: grid; grid-template-columns: 1fr auto 1.3fr; align-items: center; gap: 18px; padding: 10px 0; }
.dl-tile { aspect-ratio: 16 / 10; border-radius: 14px; background: #111; color: #fff; display: grid; place-items: center; font: 500 18px var(--sans); }
.dl-arrow { color: #6e6e73; }
.dl-dest small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dl-dest b { display: block; font: 600 26px var(--serif); font-weight: 400; margin: 6px 0; }
.dl-dest code { font: 13px ui-monospace, Menlo, monospace; color: #6e6e73; }

.readout, .keymap { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.readout dt, .readout dd, .keymap dt, .keymap dd { padding: 11px 0; margin: 0; }
.readout dt { font: 12px ui-monospace, Menlo, monospace; color: #888; padding-right: 24px; }
.readout dd, .keymap dd { text-align: right; font-size: 15px; }
.keymap dt { font-size: 14px; color: #6e6e73; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; margin-right: 8px; vertical-align: middle; }
.rule { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f4f4f2; font-size: 14px; }
.rule small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 6px; }
.rule small:first-child { margin-left: 0; }

.net-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.net-row b { font-weight: 500; font-size: 13px; color: #256840; background: #e9f4ee; padding: 4px 10px; border-radius: 999px; }
.net-ip { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 15px ui-monospace, Menlo, monospace; color: #6e6e73; }
.net-ip s { color: #aaa; }
.net-ip span { color: var(--ink); }

.wire { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; }
.wire .node { padding: 14px 18px; border-radius: 12px; background: #111; color: #fff; font-size: 14px; }
.wire .cable { font-size: 12px; color: #6e6e73; padding: 0 6px; border-bottom: 2px solid #111; padding-bottom: 4px; }

/* driver page: tablet / phone */
@media (max-width: 1000px) {
  .hl-grid { gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .specs dl { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .localnav-inner { height: 50px; }
  .localnav-name { font-size: 18px; }
  .localnav-links { gap: 16px; }
  .localnav-links a[href="#overview"] { display: none; }
  .pdp-hero { padding: 22px 0 64px; }
  .pdp-badge { margin-top: 26px; }
  .pdp-display { margin-top: 32px; }
  .pdp-lede { font-size: 16px; }
  .pdp-hero-visual { margin-top: 48px; }
  .pdp-intro { padding: 76px 0; text-align: left; }
  .pdp-intro p:not(.overline) { font-size: 17px; }
  .hl { padding: 76px 0; }
  .hl-grid { grid-template-columns: 1fr; gap: 36px; }
  .hl-grid.flip .hl-copy { order: 0; }
  .hl-copy p:not(.overline) { font-size: 16px; }
  .stats { padding: 60px 0; }
  .specs, .faq { padding: 70px 0 56px; }
  .specs dl > div { grid-template-columns: 120px 1fr; }
  .promise { padding: 60px 0; }
  .promise-grid, .faq-list { grid-template-columns: 1fr; gap: 32px; }
  .related { padding-bottom: 70px; }
  .pdp-final { padding: 80px 0; }
  .vis-panel { padding: 16px; border-radius: 18px; }
  .tile-grid { gap: 8px; }
  .tile-grid span { font-size: 10px; border-radius: 9px; }
  .deeplink { grid-template-columns: 1fr; text-align: center; }
  .dl-arrow { transform: rotate(90deg); justify-self: center; }
  .vis-tv .tv-screen { border-width: 6px; }
}

/* included drivers (bundle) */
.included { padding: 110px 0 30px; text-align: center; }
.included h2 { font: 600 clamp(34px, 4.4vw, 56px)/1.08 var(--serif); letter-spacing: -.022em; margin: 20px 0 48px; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.inc { padding: 30px 28px 32px; border-radius: 22px; background: #f4f4f2; }
.inc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #1d1d1d; color: #fff; }
.inc h3 { font: 600 23px var(--serif); letter-spacing: -.015em; margin: 22px 0 10px; }
.inc p { font: 15px/1.65 var(--sans); color: #666; margin: 0; }

/* visual: show search */
.search-field { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 999px; background: #f2f2f0; font-size: 16px; color: #333; }
.search-field .caret { width: 2px; height: 18px; background: #333; margin-left: -6px; }
.svc-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; font-size: 12px; }
.svc-row span, .svc-row b { padding: 6px 11px; border-radius: 999px; background: #f2f2f0; color: #555; font-weight: 400; }
.svc-row b { background: #1d1d1d; color: #fff; }
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.posters i { display: block; aspect-ratio: 2 / 3; border-radius: 12px; margin-bottom: 10px; }
.posters .p1 { background: #2b3440; } .posters .p2 { background: #3b3b3b; } .posters .p3 { background: #47423a; }
.posters b { display: block; font-size: 14px; font-weight: 600; }
.posters small { font-size: 12px; color: var(--muted); }

/* visual: wake timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #f6f6f4; font-size: 14px; }
.timeline b { font-weight: 500; }
.timeline small { font-size: 12px; color: var(--muted); }
.state { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: #e8e8e5; color: #555; }
.state.off { background: #2a2a2a; color: #ddd; }
.state.on { background: #e9f4ee; color: #256840; }

@media (max-width: 760px) {
  .included { padding: 72px 0 10px; }
  .included-grid { grid-template-columns: 1fr; }
  .posters b { font-size: 12px; }
  .timeline li { grid-template-columns: 84px 1fr; }
  .timeline small { display: none; }
}

/* ---------- per-product accent (Apple TV = Apple blue) ---------- */
.pdp, .localnav { --accent-on-dark: #2997ff; }
.pdp .overline, .pdp .crumbs a:last-of-type { color: var(--accent, var(--muted)); }
.pdp .theme-dark .overline { color: var(--accent-on-dark); }
.pdp :is(h1, h2, .pdp-display) em { color: var(--accent, #7a7a7a); }
.pdp .theme-dark h2 em, .pdp-final h2 em { color: var(--accent-on-dark); }
.pdp .btn-pill:not(.ghost), .localnav .btn-pill { background: var(--accent, #1d1d1d); }
.pdp .btn-pill:not(.ghost):hover, .localnav .btn-pill:hover { filter: brightness(1.08); }
.pdp .buybox.on-dark .btn-pill:not(.ghost) { background: var(--accent, #f4f4f2); color: var(--accent-text, #161616); }
.pdp .stat strong { color: var(--accent, var(--ink)); }
.pdp .inc-icon { background: var(--accent, #1d1d1d); }
.pdp-hero h1 em { color: var(--muted); }

/* ---------- app tile colors (text names, no logos) ---------- */
.app-tv { background: #000; color: #fff; }
.app-netflix { background: #000; color: #e50914; }
.app-youtube { background: #ff0033; color: #fff; }
.app-disney { background: #0e1d58; color: #fff; }
.app-prime { background: #1a98ff; color: #fff; }
.app-peacock { background: #111; color: #fff; }
.app-paramount { background: #0064ff; color: #fff; }
.app-max { background: #002be7; color: #fff; }
.app-hulu { background: #1ce783; color: #062a16; }
.app-spotify { background: #1db954; color: #04170b; }
.app-pluto { background: #2a2a2e; color: #fff; }
.app-music { background: #fa2d48; color: #fff; }
.app-photos { background: #f2f2f2; color: #333; }
.app-settings { background: #8e8e93; color: #fff; }

/* ---------- tvOS home screen ---------- */
.tv-screen.tvos { padding: 0; gap: 0; justify-content: flex-start; overflow: hidden; background: #0e1d58; position: relative; }
.tvos-shelf { position: relative; flex: 1 1 auto; padding: 4.5% 5% 0; background: #0e1d58; }
.tvos-clock { position: absolute; top: 5%; right: 4.5%; font: 500 clamp(9px, 1.2vw, 15px) var(--sans); color: rgba(255,255,255,.85); }
.tvos-shelf-copy { display: flex; flex-direction: column; gap: 4px; max-width: 60%; }
.tvos-shelf-copy small { font: 600 clamp(7px, .9vw, 11px) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tvos-shelf-copy b { font: 700 clamp(22px, 4.2vw, 54px)/1 var(--serif); letter-spacing: -.02em; color: #fff; }
.tvos-shelf-copy span { font: clamp(8px, 1.05vw, 13px) var(--sans); color: rgba(255,255,255,.75); }
.tvos-dock, .tvos-row2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6%; padding: 0 4.5%; }
.tvos-dock { padding-top: 2.4%; padding-bottom: 3%; background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tvos-row2 { padding-top: 2.6%; padding-bottom: 5%; background: #0b0c10; }
.tvos-app { aspect-ratio: 5 / 3; border-radius: clamp(5px, .9vw, 12px); display: grid; place-items: center; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.tvos-app i { font: 700 clamp(6px, .78vw, 12px) var(--serif); font-style: normal; text-align: center; padding: 0 6%; letter-spacing: -.01em; }
.tvos-app.focus { transform: scale(1.16); z-index: 2; box-shadow: 0 18px 36px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.9); }
.tvos-app.focus::after { content: "Disney+"; position: absolute; top: 108%; left: 0; right: 0; text-align: center; font: 600 clamp(6px, .75vw, 10px) var(--sans); color: #fff; }
.tvos-row2 .tvos-app { opacity: .9; }

/* ---------- Control4-style App Switcher panel ---------- */
.c4-panel { background: #1f2124; color: #fff; }
.c4-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; font: 300 22px var(--sans); color: #f2f2f2; }
.c4-bar small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9a9ea6; }
.c4-panel .tile-grid span { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.c4-panel .tile-grid span i { font: 700 15px var(--serif); font-style: normal; letter-spacing: -.01em; }
.c4-panel .tile-grid span.on { outline: 3px solid #fff; outline-offset: 3px; }
.c4-foot { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; color: #b8bcc4; }
.c4-foot b { color: #fff; margin-right: 6px; }

/* ---------- device frames: T4 touch screen + phone ---------- */
.vis-devices { position: relative; padding-bottom: 7%; }
.dev-t4 { position: relative; background: #0b0b0c; border-radius: 3.2% / 5%; padding: 5.4% 3.6% 3.6%; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); width: 88%; }
.t4-dots { position: absolute; top: 2.2%; left: 0; right: 0; display: flex; justify-content: center; gap: 2.4%; }
.t4-dots i { width: 4px; height: 4px; border-radius: 50%; background: #2c2c2e; }
.t4-dots i.cam { width: 7px; height: 7px; background: #1a1a1d; box-shadow: inset 0 0 0 2px #333; }
.t4-screen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #0c0d10; }
.t4-screen img, .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev-phone { position: absolute; right: 0; bottom: 0; width: 27%; background: #0b0b0c; border-radius: 16% / 7.5%; padding: 2.2%; box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.1); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 13% / 6%; }
.phone-screen .island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 32%; height: 3.4%; border-radius: 999px; background: #000; }
.dev-caption { position: absolute; left: 0; bottom: -6px; margin: 0; font: 12px var(--sans); color: #8f8f8f; max-width: 60%; }

@media (max-width: 760px) {
  .c4-panel .tile-grid span i { font-size: 11px; }
  .c4-bar { font-size: 18px; }
  .vis-devices { padding-bottom: 14%; }
  .dev-t4 { width: 92%; }
  .dev-phone { width: 32%; }
  .dev-caption { position: static; max-width: none; margin-top: 18px; }
}
.tvos-shelf { text-align: left; }
.pdp .pdp-hero h1 em { color: var(--muted); }

/* stage layout: copy centered on top, visual full width below */
.hl-grid.stage { grid-template-columns: 1fr; gap: 64px; text-align: center; }
.hl-grid.stage .hl-copy { max-width: 760px; margin: 0 auto; }
.hl-grid.stage .hl-copy p:not(.overline) { margin: 0 auto; max-width: 62ch; }
.hl-grid.stage .hl-visual { max-width: 1060px; width: 100%; margin: 0 auto; text-align: left; }
.dev-t4 { box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.phone-screen { display: flex; flex-direction: column; background: #0c0d10; }
.phone-screen img { flex: 1; min-height: 0; }
.phone-status { flex: none; height: 6.2%; position: relative; display: flex; align-items: center; padding: 0 11%; font: 600 clamp(7px, 1vw, 13px) var(--sans); color: #fff; }
.phone-status .island { top: 26%; height: 52%; }
.dev-caption { color: #8f8f8f; }
@media (max-width: 760px) { .hl-grid.stage { gap: 40px; text-align: left; } .hl-grid.stage .hl-copy { margin: 0; } }
.pdp-hero-visual .vis-media img { mix-blend-mode: multiply; background: none; border-radius: 0; }
.hero h1 { margin-bottom: 22px; }
.hero-lede { font: 20px/1.6 var(--sans); color: #666; text-align: center; max-width: 34ch; margin: 0 auto 44px; }
@media (max-width: 760px) { .hero-lede { font-size: 17px; margin-bottom: 30px; } }
.hero h1 { margin-top: 0; }
@media (max-width: 760px) { .hero-spacer { display: none; } }
.hero-base { display: block; text-align: center; }
.feature-visual { width: 100%; max-width: 620px; margin: 18px auto; }
.feature-visual .vis-media img { mix-blend-mode: multiply; background: none; border-radius: 0; }

/* ---------- driver page hero: two columns (visual | buy details) ---------- */
.pdp-hero { text-align: left; padding: 26px 0 96px; }
.pdp-hero .crumbs { justify-content: flex-start; }
.pdp-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; margin-top: 36px; }
.pdp-hero-visual { margin: 0; max-width: none; }
.pdp-hero-copy .pdp-badge { margin: 0 0 18px; }
.pdp-hero h1 { font-size: clamp(40px, 4.6vw, 64px); margin: 0; }
.pdp-hero h1 em { display: inline; font-size: .5em; margin: 0 0 0 4px; letter-spacing: -.01em; }
.pdp-display { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.22; max-width: none; margin: 18px 0 0; }
.pdp-lede { font-size: 16px; max-width: none; margin: 18px 0 0; }
.pdp-buy { margin-top: 30px; }
.buybox.left .buy-row { justify-content: flex-start; }
@media (max-width: 1000px) { .pdp-hero-grid { gap: 40px; } }
@media (max-width: 760px) {
  .pdp-hero { padding: 18px 0 60px; }
  .pdp-hero-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 22px; }
  .pdp-hero h1 em { display: block; margin: 8px 0 0; font-size: .55em; }
}

/* app tiles: text fallbacks for the new services */
.app-youtube-tv { background: #ff0033; color: #fff; }
.app-espn { background: #fff; color: #d50a0a; }
.app-sling { background: #111; color: #fff; }
.app-apple-tv { background: #000; color: #fff; }
/* real icons (dev / when brandIcons is on): icon centered, edges dissolve into the sampled color */
.has-icon { position: relative; overflow: hidden; }
.has-icon img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%); }
.tile-grid .has-icon { padding: 0; }

/* ---------- tvOS 26 home screen (YouTube TV top shelf, glass dock) ---------- */
.tv-screen.tvos { display: block; position: relative; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, #c9cad9 0%, #8d8fa3 22%, #2b2c35 50%, #070708 70%, #050506 100%); }
.tvos .tvos-clock { position: absolute; top: 4.5%; right: 4%; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: .5% 1.2%; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font: 600 clamp(6px, .75vw, 11px) var(--sans); }
.tvos .tvos-clock i { width: clamp(8px, 1.1vw, 15px); aspect-ratio: 1; border-radius: 50%; background: #d9d9de; }
.tvos .tvos-shelf { position: absolute; inset: 0 0 38% 0; padding: 0; background: none; display: grid; place-items: center; }
.shelf-hero { text-align: center; margin-top: 4%; }
.shelf-hero .shelf-logo { width: clamp(120px, 26vw, 340px); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.shelf-hero .shelf-name { display: block; font: 700 clamp(26px, 4.4vw, 58px)/1 var(--serif); letter-spacing: -.02em; color: #fff; }
.shelf-hero p { margin: 4% 0 0; font: 600 clamp(9px, 1.4vw, 19px) var(--sans); color: #f2f2f2; }
.tvos .tvos-dock { position: absolute; left: 2.5%; right: 2.5%; bottom: 13%; padding: 1.6% 1.4%; gap: 1.4%;
  border-radius: clamp(10px, 1.8vw, 24px); background: rgba(120,124,140,.32); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.tvos .tvos-row2 { position: absolute; left: 4%; right: 4%; bottom: -6.5%; padding: 0; gap: 2%; background: none; opacity: .85; }
.tvos .tvos-app { border-radius: clamp(6px, 1vw, 14px); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.tvos .tvos-app.focus { transform: scale(1.08); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.55); }
.tvos .tvos-app.focus::after { content: none; }

/* =========================================================
   Driver hero v3 (Astra layout): stage card + tabs | buy column
   ========================================================= */
.pdp-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
.stage-card { background: #f2f3f5; border-radius: 22px; padding: 22px 26px 30px; }
.stage-cap { display: flex; justify-content: space-between; margin-bottom: 22px; font: 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8b9099; }
.stage-panel[hidden] { display: none; }
.stage-panel .vis-devices { padding-bottom: 4%; }
.stage-panel .dev-caption { display: none; }
.stage-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 16px; padding: 5px; border-radius: 16px; background: #f2f3f5; }
.stage-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px; font: 14px var(--sans); color: #5f646d; transition: background .2s, color .2s; }
.stage-tabs button:hover { color: var(--ink); }
.stage-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stage-note { text-align: center; font: 12px var(--sans); color: #8b9099; margin: 16px 0 0; }

.pdp-hero-copy { padding-top: 6px; }
.pdp-tags { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.pdp-tags .pdp-badge { margin: 0; padding: 4px 10px; border-radius: 6px; background: #e8f1fe; color: #005ab6; color: color-mix(in srgb, var(--accent, #0071e3) 80%, #000); font: 600 12px var(--sans); }
.pdp-tags .overline { color: #5f646d !important; }
.pdp .pdp-hero h1 { font-size: clamp(42px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; }
.pdp .pdp-hero h1 em { display: block; margin: 12px 0 0; font: 400 18px var(--sans); letter-spacing: 0; color: #5f646d; }
.pdp-display { font: 400 clamp(26px, 2.5vw, 34px)/1.18 var(--serif); letter-spacing: -.015em; margin: 34px 0 0; }
.pdp .pdp-display em { color: var(--ink); }
.pdp-lede { font: 17px/1.6 var(--sans); color: #4f545c; margin: 18px 0 0; max-width: 40ch; }
.pdp-point { display: flex; gap: 12px; margin-top: 24px; font-family: var(--sans); }
.pdp-point svg { color: var(--accent, #0071e3); margin-top: 1px; }
.pdp-point b { display: block; font-weight: 500; font-size: 15px; }
.pdp-point span { display: block; margin-top: 4px; font-size: 13px; color: #636871; }

.pdp-buy { margin-top: 38px; padding-top: 0; }
.hero-buy { font-family: var(--sans); }
.hb-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hb-price p { margin: 0; }
.hb-price strong { font: 600 40px var(--serif); letter-spacing: -.02em; }
.hb-price p span { font-size: 13px; color: #636871; margin-left: 4px; }
.hb-chip { padding: 7px 12px; border-radius: 8px; background: #f2f3f5; font-size: 12px; color: #555b64; }
.hb-terms { margin: 6px 0 22px; font-size: 13px; color: #636871; }
.hb-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.hb-qty { display: inline-flex; align-items: center; border-radius: 12px; background: #f2f3f5; }
.hb-qty button { width: 42px; height: 50px; display: grid; place-items: center; color: #555b64; border-radius: 12px; }
.hb-qty button:hover { background: #e8e9ec; }
.hb-qty input { width: 36px; border: 0; background: none; text-align: center; font: 16px var(--sans); color: var(--ink); -moz-appearance: textfield; }
.hb-qty input::-webkit-outer-spin-button, .hb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hb-add { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: 50px; border-radius: 12px; background: var(--accent, #1d1d1d); color: #fff; font: 500 16px var(--sans); transition: filter .2s; }
.hb-add span:last-child { display: inline-flex; align-items: center; gap: 10px; }
.hb-add:hover { filter: brightness(1.08); }
.hb-demo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; height: 50px; border-radius: 12px; background: #f2f3f5; font: 500 15px var(--sans); color: var(--ink); transition: background .2s; }
.hb-demo:hover { background: #e8e9ec; }
.hb-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: #636871; }
.hb-trust svg { color: #2f9e5b; }

/* What's included: title + three columns, no rules */
.included { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 40px; align-items: start; text-align: left; padding: 40px 0 90px; }
.inc-head h2 { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; margin: 14px 0 0; }
.inc-head h2 em { color: var(--ink) !important; }
.included .inc { padding: 0; background: none; border-radius: 0; }
.inc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.included .inc-icon { width: auto; height: auto; background: none !important; color: var(--ink); border-radius: 0; }
.inc-top small { font: 11px var(--sans); color: #a3a7ae; }
.included .inc h3 { font: 500 19px var(--serif); margin: 18px 0 8px; }
.included .inc p { font: 14px/1.6 var(--sans); color: #5f646d; }

@media (max-width: 1000px) { .included { grid-template-columns: 1fr 1fr; } .inc-head { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .pdp-hero-grid { gap: 34px; }
  .stage-card { padding: 16px 16px 22px; border-radius: 18px; }
  .stage-tabs button { font-size: 12px; gap: 5px; padding: 11px 4px; }
  .stage-tabs button svg { width: 14px; height: 14px; }
  .pdp-display { margin-top: 26px; }
  .included { grid-template-columns: 1fr; gap: 30px; padding-bottom: 60px; }
}
.pdp-hero-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .pdp-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hb-price strong { font-size: 34px; }
  .hb-add { padding: 0 16px; font-size: 15px; }
  .hb-trust { flex-wrap: wrap; }
}
.tv-screen.tv-image { padding: 0; display: block; overflow: hidden; }
.tv-screen.tv-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* hero v3 density (Astra proportions): bigger visual column, tighter type, styling kept */
.pdp-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; margin-top: 28px; }
.pdp-tags { margin-bottom: 16px; }
.pdp .pdp-hero h1 { font-size: clamp(40px, 3.8vw, 54px); }
.pdp .pdp-hero h1 em { margin-top: 8px; font-size: 17px; }
.pdp-display { margin-top: 24px; font-size: clamp(24px, 2.2vw, 30px); }
.pdp-lede { margin-top: 14px; font-size: 16px; }
.pdp-point { margin-top: 18px; }
.pdp-buy { margin-top: 26px; }
.hb-price strong { font-size: 38px; }
.hb-terms { margin: 4px 0 16px; }
.hb-qty button, .hb-add, .hb-demo { height: 48px; }
.hb-demo { margin-top: 10px; }
.hb-trust { margin-top: 12px; }
@media (max-width: 760px) { .pdp-hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* TV frame: screen area is exactly 16:9, thin modern bezel outside it */
.vis-tv .tv-screen { border-width: 5px; border-radius: 10px; }
.vis-tv .tv-screen.tv-image { aspect-ratio: auto; border: 0; padding: 5px; background: #0b0b0c; border-radius: 10px; }
.vis-tv .tv-screen.tv-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: fill; border-radius: 4px; }
.vis-tv .tv-stand { width: 18%; height: 7px; }
@media (max-width: 760px) {
  .vis-tv .tv-screen { border-width: 3px; border-radius: 7px; }
  .vis-tv .tv-screen.tv-image { padding: 3px; border-radius: 7px; }
  .vis-tv .tv-screen.tv-image img { border-radius: 3px; }
}
/* TV corners: near-square like a real panel */
.vis-tv .tv-screen, .vis-tv .tv-screen.tv-image { border-radius: 3px; }
.vis-tv .tv-screen.tv-image img { border-radius: 1px; }
@media (max-width: 760px) { .vis-tv .tv-screen, .vis-tv .tv-screen.tv-image { border-radius: 2px; } .vis-tv .tv-screen.tv-image img { border-radius: 0; } }
/* phone frame with a real full-screen iPhone capture (1320x2868) */
.phone-screen.real { aspect-ratio: 1320 / 2868; display: block; }
.phone-screen.real img { width: 100%; height: 100%; object-fit: cover; }
.stage-card { padding-top: 26px; }
.pdp-hero h1 + .pdp-lede { margin-top: 22px; }
.pdp-point + .pdp-point { margin-top: 14px; }

/* "for Control4" shows the Control4 logo */
.for-c4 { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.c4-logo { height: .9em; width: auto; display: inline-block; }
.pdp .pdp-hero h1 em.for-c4 { display: flex; font-size: 17px; margin-top: 10px; }
.pdp .pdp-hero h1 em.for-c4 .c4-logo { height: 20px; }
.pdp-final h2 em.for-c4 { gap: .25em; }
.pdp-final h2 em.for-c4 .c4-logo { height: .72em; }
.pdp-final h2 em.for-c4, .pdp .pdp-final h2 em.for-c4 { color: #8f8f8f; }
.pdp .pdp-hero h1 em.for-c4 .c4-logo { height: 23px; }
.x4-badge { height: 1.25em; width: auto; display: inline-block; border-radius: 4px; }
.pdp .pdp-hero h1 em.for-c4 { gap: 10px; }
.pdp .pdp-hero h1 em.for-c4 .x4-badge { height: 30px; }
.pdp-final h2 em.for-c4 .x4-badge { height: .9em; box-shadow: 0 0 0 1px rgba(255,255,255,.25); border-radius: 6px; }
.os-badge { height: 1.25em; width: auto; display: inline-block; }
.os-badge-x4 { border-radius: 4px; }
.pdp .pdp-hero h1 em.for-c4 .os-badge { height: 30px; }
.pdp-final h2 em.for-c4 .os-badge { height: .9em; }
.pdp-final h2 em.for-c4 .os-badge-x4 { box-shadow: 0 0 0 1px rgba(255,255,255,.25); border-radius: 6px; }
.os-badge-x4, .pdp-final h2 em.for-c4 .os-badge-x4 { border-radius: 0; box-shadow: none; }
.pdp .pdp-hero h1 em.for-c4 .os-badge-x4 { height: 34px; }
.pdp-final h2 em.for-c4 .os-badge-x4 { height: 1em; }
.pdp-final h2 em.for-c4 .os-badge-x4 { height: .78em; }

/* Control4 + OS logos: Nate's files as-is, same height, centered on one line */
.for-c4 { align-items: center; }
.pdp .pdp-hero h1 em.for-c4 { gap: 18px; }
.pdp .pdp-hero h1 em.for-c4 .c4-logo, .pdp .pdp-hero h1 em.for-c4 .os-badge { height: 40px; }
/* dark CTA: originals on a light plate instead of recolored copies */
.logo-plate { display: inline-flex; align-items: center; gap: 16px; padding: 10px 18px; border-radius: 14px; background: #fdfdfc; vertical-align: middle; }
.pdp-final h2 em.logo-plate .c4-logo, .pdp-final h2 em.logo-plate .os-badge { height: 40px; }
@media (max-width: 760px) {
  .pdp .pdp-hero h1 em.for-c4 .c4-logo, .pdp .pdp-hero h1 em.for-c4 .os-badge { height: 30px; }
  .pdp-final h2 em.logo-plate .c4-logo, .pdp-final h2 em.logo-plate .os-badge { height: 28px; }
}
/* X4 artwork fills the top 93% of its canvas: scale so the visible ink matches Control4, then center it */
.pdp .pdp-hero h1 em.for-c4 .os-badge-x4, .pdp-final h2 em.logo-plate .os-badge-x4 { height: 43px; margin-top: 3px; }
@media (max-width: 760px) {
  .pdp .pdp-hero h1 em.for-c4 .os-badge-x4 { height: 32px; margin-top: 2px; }
  .pdp-final h2 em.logo-plate .os-badge-x4 { height: 30px; margin-top: 2px; }
}
/* Control4 logo back to its smaller size; X4 badge moves elsewhere later */
.pdp .pdp-hero h1 em.for-c4 .c4-logo { height: 23px; }
.pdp-final h2 em.logo-plate { padding: 8px 14px; border-radius: 12px; }
.pdp-final h2 em.logo-plate .c4-logo { height: 30px; }
@media (max-width: 760px) { .pdp .pdp-hero h1 em.for-c4 .c4-logo { height: 20px; } .pdp-final h2 em.logo-plate .c4-logo { height: 22px; } }
/* X4 badge lives in the specs, beside the Control4 OS value */
.spec-os { display: inline-flex; align-items: center; gap: 12px; }
.spec-os .os-badge { height: 30px; }
.spec-os .os-badge-x4 { height: 32px; margin-top: 2px; }

/* price in the upper right of the buy column */
.pdp-titlebar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.pdp-price { text-align: right; padding-top: 34px; font-family: var(--sans); white-space: nowrap; }
.pdp-price p { margin: 0; }
.pdp-price strong { font: 600 40px var(--serif); letter-spacing: -.02em; }
.pdp-price p span { font-size: 13px; color: #636871; margin-left: 4px; }
.pdp-price small { display: block; margin-top: 6px; font-size: 13px; color: #636871; }
.hb-chiprow { display: flex; justify-content: flex-end; margin-bottom: 12px; }
@media (max-width: 760px) { .pdp-price { padding-top: 30px; } .pdp-price strong { font-size: 32px; } .pdp-price small { font-size: 12px; } }
.pdp-tags { white-space: nowrap; }
.pdp-titlebar > div:first-child { min-width: 0; }

/* Apple-style header: subtle gray glass, hairline divider, condensed */
.site-header { background: rgba(245,245,247,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-header .masthead { min-height: 60px; border: 0; }
.site-header .wordmark img { height: 26px; }
.site-header .mainnav { font-size: 13px; gap: 32px; }
.localnav { background: rgba(245,245,247,.86); border-bottom: 1px solid rgba(0,0,0,.08); }
.localnav-inner { height: 52px; }
.pdp-hero { padding-top: 22px; }
@media (max-width: 760px) {
  .site-header .masthead { min-height: 52px; }
  .site-header .wordmark img { height: 21px; }
  .site-header .mainnav { gap: 18px; }
  .localnav-inner { height: 48px; }
}

/* floating buy bar (replaces the Apple-style product bar) */
.buydock { position: fixed; left: 50%; bottom: 20px; z-index: 40; width: min(820px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 14px; border-radius: 20px;
  background: rgba(22,22,24,.94); color: #f4f4f2; box-shadow: 0 18px 40px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; pointer-events: none; font-family: var(--sans); }
.buydock.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bd-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bd-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent, #333); color: #fff; flex: none; }
.bd-id b { display: block; font: 600 15px var(--serif); white-space: nowrap; }
.bd-id small { display: block; font-size: 12px; color: #a9a9ad; margin-top: 2px; white-space: nowrap; }
.bd-links { display: flex; gap: 4px; margin-left: auto; }
.bd-links a { padding: 8px 12px; border-radius: 10px; font-size: 13px; color: #c9c9cd; }
.bd-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.buydock form { flex: none; }
.bd-add { height: 44px; padding: 0 20px; border-radius: 12px; background: var(--accent, #f4f4f2); color: #fff; font: 600 14px var(--sans); }
.bd-add:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .buydock { bottom: 12px; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; }
  .bd-links { display: none; }
  .bd-icon { width: 34px; height: 34px; border-radius: 10px; }
  .buydock form { margin-left: auto; }
  .bd-add { height: 40px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .buydock { transition: none; } }
/* product title: always one line (JS shrinks it to fit beside the price) */
.pdp-hero h1[data-fit] { white-space: nowrap; }
.pdp-titlebar > div:first-child { flex: 1 1 auto; min-width: 0; }
.pdp-titlebar .pdp-price { flex: none; }
.pdp-hero-grid { margin-top: 32px; }

/* pinned product bar: drops in from the top once the hero buy box scrolls away (dark, Fixxy style) */
.buydock { top: 0; bottom: auto; left: 0; width: 100%; padding: 0; border-radius: 0; display: block;
  background: rgba(20,20,22,.95); box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateY(-110%); }
.buydock.show { transform: translateY(0); }
.bd-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.bd-icon { width: 36px; height: 36px; border-radius: 10px; }
@media (max-width: 760px) { .buydock { bottom: auto; width: 100%; padding: 0; border-radius: 0; } .bd-inner { height: 58px; gap: 10px; } .bd-inner form { margin-left: auto; } }

/* product bar: always visible, sits under the site header, pins to the top on scroll */
.buydock.is-pinned { position: sticky; top: 0; left: auto; transform: none; opacity: 1; pointer-events: auto; transition: none; }
.pdp-hero { padding-top: 34px; }
.buydock.is-pinned { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

/* product bar: frosted glass instead of solid black */
.buydock.is-pinned { background: rgba(250,250,252,.72); color: var(--ink); box-shadow: none; border-bottom: 1px solid rgba(0,0,0,.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.buydock.is-pinned .bd-id small { color: #6e6e73; }
.buydock.is-pinned .bd-links a { color: #3a3a3c; }
.buydock.is-pinned .bd-links a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .buydock.is-pinned { background: rgba(250,250,252,.96); } }

/* slimmer frosted product bar */
.buydock.is-pinned .bd-inner { height: 46px; gap: 14px; }
.buydock.is-pinned .bd-icon { width: 26px; height: 26px; border-radius: 7px; }
.buydock.is-pinned .bd-icon svg { width: 15px; height: 15px; }
.buydock.is-pinned .bd-id > div { display: flex; align-items: baseline; gap: 8px; }
.buydock.is-pinned .bd-id b { font-size: 14px; }
.buydock.is-pinned .bd-id small { margin: 0; font-size: 12px; }
.buydock.is-pinned .bd-links a { padding: 5px 10px; font-size: 12px; }
.buydock.is-pinned .bd-add { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
@media (max-width: 760px) { .buydock.is-pinned .bd-inner { height: 44px; } .buydock.is-pinned .bd-add { height: 30px; padding: 0 12px; } }
/* product bar: no blue (brand black instead) */
.buydock.is-pinned .bd-icon { background: #1d1d1f; }
.buydock.is-pinned .bd-add { background: #1d1d1f; color: #fff; }
.buydock.is-pinned .bd-add:hover { background: #000; filter: none; }
/* stage tabs: faint glass box on hover, same shape as the active tab */
.stage-tabs button { transition: background .2s, box-shadow .2s, color .2s; }
.stage-tabs button:not(.is-on):hover { background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.05); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* stage tabs: faint dividers between tabs in a row (hidden next to the selected / hovered tab) */
.stage-tabs button { position: relative; }
.stage-tabs button::before { content: ""; position: absolute; left: -2px; top: 28%; bottom: 28%; width: 1px; background: rgba(0,0,0,.1); transition: opacity .2s; }
.stage-tabs button:nth-child(3n+1)::before,
.stage-tabs button.is-on::before, .stage-tabs button.is-on + button::before,
.stage-tabs button:hover::before, .stage-tabs button:hover + button::before { opacity: 0; }
/* stage tabs: each row of three is its own rounded rectangle, white space between rows */
.stage-tabs { display: flex; flex-direction: column; gap: 10px; padding: 0; background: none; border-radius: 0; }
.stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 16px; background: #f2f3f5; }
.stage-row button:first-child::before { opacity: 0; }
/* tab rows sized like the buy buttons (48px rows, 10px gap) so they can share a baseline */
.stage-tabs { gap: 10px; }
.stage-row { padding: 4px; border-radius: 12px; }
.stage-row button { height: 40px; padding: 0 10px; border-radius: 9px; }
.hb-demo { margin-top: 10px; }
/* stage card: no background box; the visual sits directly on the page */
.stage-card { background: none; padding: 0; border-radius: 0; }
/* stage card: one fixed shape for every tab (sized to the tallest visual), content centered */
.stage-card { aspect-ratio: 1.57; display: grid; }
.stage-panel { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.stage-panel[hidden] { display: none; }
.stage-panel > .vis { width: 100%; }
/* stage card height = tallest panel at every width: all panels share one grid cell, inactive ones are invisible but still take space */
.stage-card { aspect-ratio: auto; }
.stage-panel[hidden] { display: flex; visibility: hidden; }

/* ---------- Pinned scroll section (layout 'scroll'): stays on screen while its chapters swap ---------- */
.scrolly { padding: 0; }
.scrolly-stack { display: grid; }
.scrolly-ch { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.scrolly-ch .hl-copy p:not(.overline) { color: #b5b5b2; }
.scrolly-dots { display: none; }
@media (min-width: 901px) {
  .scrolly.is-live { height: calc(var(--n) * 100vh + 20vh); }
  .scrolly.is-live .scrolly-pin { position: sticky; top: 46px; height: calc(100vh - 46px); display: flex; align-items: center; overflow: hidden; }
  .scrolly.is-live .scrolly-stack { width: 100%; position: relative; }
  .scrolly.is-live .scrolly-ch { grid-area: 1 / 1; }
  .scrolly.is-live .scrolly-ch { opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s linear .5s; }
  .scrolly.is-live .scrolly-ch.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .1s, transform .6s cubic-bezier(.2,.7,.2,1) .1s, visibility 0s; }
  .scrolly.is-live .scrolly-dots { display: flex; gap: 8px; position: absolute; left: 0; bottom: -56px; }
  .scrolly-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
  .scrolly-dots i.is-on { width: 22px; background: rgba(255,255,255,.85); }
}
.scrolly:not(.is-live) { padding: 120px 0; }
.scrolly:not(.is-live) .scrolly-stack { gap: 120px; }
@media (max-width: 900px) {
  .scrolly:not(.is-live) { padding: 88px 0; }
  .scrolly:not(.is-live) .scrolly-stack { gap: 96px; }
  .scrolly-ch { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) { .scrolly.is-live .scrolly-ch, .scrolly.is-live .scrolly-ch.is-on { transition: none; transform: none; } }

/* ---------- Custom Mini App visual: Control4 Watch menu with poster tiles + the TV it opens ---------- */
.vis-miniapp { position: relative; padding: 0 0 15% 0; }
.ma-nav { width: 82%; background: #0b0b0c; border-radius: 18px; padding: 18px; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.ma-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 14px; font: 500 15px var(--sans); color: #f4f4f2; }
.ma-bar small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8f8f8f; }
.ma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ma-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #1d1d1f; color: #fff; font: 600 13px var(--sans); }
.ma-tile.has-icon img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; }
.ma-tile i { font-style: normal; }
.ma-poster { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 10px; text-align: left; }
.ma-poster b { font: 700 15px/1.1 var(--serif); letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ma-poster small { margin-top: 3px; font: 500 10px var(--sans); color: rgba(255,255,255,.8); }
.p-cartoons { background: radial-gradient(120% 90% at 20% 15%, #ffd166 0 18%, transparent 19%), radial-gradient(90% 80% at 85% 30%, #06d6a0 0 22%, transparent 23%), linear-gradient(160deg, #3a86ff, #8338ec); }
.p-workout { background: linear-gradient(200deg, #ff5f6d 0%, #c2185b 55%, #4a0f2a 100%); }
.p-movie { background: radial-gradient(70% 60% at 70% 25%, rgba(255,255,255,.35), transparent 60%), linear-gradient(170deg, #1b2a6b, #0b1238 70%); }
.ma-tile.focus { box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0,0,0,.4); transform: scale(1.04); z-index: 1; }
.ma-tv { position: absolute; right: 0; bottom: 0; width: 46%; }
.ma-screen { aspect-ratio: 16 / 9; background: radial-gradient(90% 120% at 30% 20%, #3a86ff 0%, #8338ec 45%, #120c2a 100%); border: 5px solid #0b0b0c; border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); display: flex; flex-direction: column; justify-content: flex-end; padding: 6% 7%; color: #fff; }
.ma-screen small { font: 600 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ma-screen b { font: 700 clamp(14px, 1.6vw, 22px)/1.1 var(--serif); margin: 4px 0 10px; }
.ma-progress { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.ma-progress i { display: block; width: 18%; height: 100%; background: #ff0033; }
.ma-tv .tv-stand { width: 22%; height: 7px; margin: 0 auto; background: #2a2a2c; border-radius: 0 0 6px 6px; }
@media (max-width: 760px) { .ma-nav { width: 88%; padding: 12px; border-radius: 14px; } .ma-grid { gap: 7px; } .ma-poster b { font-size: 12px; } .ma-tv { width: 52%; } }
/* mini app: tvOS-shaped tiles (5:3) so real app icons fit; TV sits lower so it overlaps less */
.ma-tile { aspect-ratio: 5 / 3; }
.vis-miniapp { padding-bottom: 24%; }
.ma-tv { width: 44%; }
/* scroll section keeps the original centered layout: copy on top, big visual below */
.scrolly-ch { grid-template-columns: 1fr; gap: 44px; text-align: center; }
.scrolly-ch .hl-copy { max-width: 760px; margin: 0 auto; }
.scrolly-ch .hl-copy p:not(.overline) { margin: 0 auto; max-width: 62ch; }
.scrolly-ch .hl-visual { width: 100%; max-width: 1060px; margin: 0 auto; text-align: left; }
@media (min-width: 901px) {
  .scrolly.is-live .scrolly-dots { left: 50%; transform: translateX(-50%); bottom: -40px; }
}
@media (max-width: 760px) { .scrolly-ch { gap: 40px; text-align: left; } .scrolly-ch .hl-copy { margin: 0; } }
/* scroll section pictures: capped smaller (Nate: too large) */
.scrolly-ch .hl-visual { max-width: 620px; }

/* zoom chapter: picture starts 1200px wide, shrinks to 620px while held on screen, then the copy scrolls in */
.scrolly:has(.zoom-run) { padding-top: 0; }
.zoom-vis { margin: 0 auto; }
@media (min-width: 901px) {
  .scrolly:has(.zoom-run) { padding-top: 96px; overflow-anchor: none; }
  .scrolly-ch .zoom-vis { max-width: none; }
}
@media (max-width: 900px) { .scrolly:has(.zoom-run) { padding-top: 88px; } }
.zoom-vis .dev-caption { display: none; }
.zoom-vis .vis-devices { padding-bottom: 4%; }

/* ---------- Black section, second half (Apple Siri-block pattern) ---------- */
.sx-after { text-align: center; padding: 160px 0 40px; }
.sx-orb { width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.22), rgba(255,255,255,.04) 58%, transparent 70%);
  box-shadow: 0 0 80px 18px rgba(120,140,255,.16), inset 0 0 0 1px rgba(255,255,255,.12); }
.sx-after h2 { margin: 0 auto; max-width: 18ch; color: #f4f4f2; }
.sx-after .sx-body { margin: 18px auto 0; max-width: 52ch; color: #b5b5b2; }
.sx-lines { list-style: none; margin: 96px auto 0; padding: 0; display: grid; gap: 30px; }
.sx-lines li { display: flex; flex-direction: column; gap: 4px; opacity: .22; transition: opacity .5s ease; }
.sx-lines li.lit { opacity: 1; }
.sx-lines b { font: 600 clamp(26px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; color: #f4f4f2; }
.sx-lines span { font: 500 15px var(--sans); color: #8f8f8f; }
.sx-close { margin-top: 120px; }
.sx-tap { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.sx-close h3 { margin: 14px 0 0; font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); letter-spacing: -.02em; color: #f4f4f2; }
.sx-phone { margin: 64px auto 0; width: 250px; }
.sx-phone .dev-phone { position: static; width: 100%; }
@media (prefers-reduced-motion: reduce) { .sx-lines li { opacity: 1; } }
@media (max-width: 760px) { .sx-after { padding-top: 110px; } .sx-lines { margin-top: 64px; gap: 22px; } .sx-close { margin-top: 84px; } .sx-phone { width: 200px; } }
.sx-after .sx-body { font: 17px/1.75 var(--sans); }
.sx-after h2 { font: 600 clamp(32px, 3.8vw, 52px)/1.08 var(--serif); letter-spacing: -.022em; max-width: 16ch; }
.sx-lines span { font: 16px/1.5 var(--sans); max-width: 46ch; margin: 0 auto; }
.sx-lines b { font-size: clamp(26px, 2.8vw, 38px); }
/* search orb: sits higher, and grows, brightens and turns as you scroll past it (--p = 0..1 set by JS) */
.sx-after { padding-top: 56px; }
.sx-orb { --p: 0; position: relative; margin-bottom: 36px;
  transform: scale(calc(.72 + var(--p) * .38)); opacity: calc(.35 + var(--p) * .65);
  box-shadow: 0 0 calc(40px + var(--p) * 90px) calc(6px + var(--p) * 22px) rgba(120,140,255,calc(.08 + var(--p) * .18)), inset 0 0 0 1px rgba(255,255,255,.12); }
.sx-orb::before { content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,255,255,.55) 80%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%, #000 67%, transparent 68%); mask: radial-gradient(circle, transparent 63%, #000 64%, #000 67%, transparent 68%);
  transform: rotate(calc(var(--p) * 540deg)); opacity: calc(var(--p) * .9); }
.sx-orb svg { transform: rotate(calc(-20deg + var(--p) * 20deg)); }
@media (prefers-reduced-motion: reduce) { .sx-orb { --p: 1 !important; } }
/* Streaming Search colour (our own, not Apple's pastels): aqua -> blue -> violet */
.sx-after { --sx-a: #5eead4; --sx-b: #60a5fa; --sx-c: #a78bfa; }
.sx-lines { gap: 44px; }
.sx-lines b { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.025em;
  background: linear-gradient(90deg, var(--sx-a), var(--sx-b) 50%, var(--sx-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-lines span { font-size: 18px; margin-top: 6px; }
.sx-lines li { opacity: .18; }
.sx-lines li.lit { opacity: 1; }
.sx-orb { width: 150px; height: 150px;
  box-shadow: 0 0 calc(40px + var(--p) * 100px) calc(6px + var(--p) * 26px) rgba(96,165,250,calc(.08 + var(--p) * .22)), inset 0 0 0 1px rgba(255,255,255,.12); }
.sx-orb::before { background: conic-gradient(from 0deg, transparent 0 40%, var(--sx-a) 60%, var(--sx-b) 75%, var(--sx-c) 88%, transparent 96%); }
.sx-orb svg { color: #cfe6ff; }
@media (max-width: 760px) { .sx-lines { gap: 30px; } .sx-lines span { font-size: 16px; } }
.sx-lines span, .sx-after .sx-body, .sx-after h2 { text-wrap: balance; }

/* feathered background picture (Mini App section): fades to nothing at the edges; .feather-overlay is for content on top */
.vis-feather { position: relative; aspect-ratio: 16 / 9; }
.feather-img { position: absolute; inset: 0; background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, rgba(0,0,0,.6) 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, rgba(0,0,0,.6) 55%, transparent 100%); }
.feather-overlay { position: absolute; inset: 0; }
/* lighter feather: solid gradient through most of the area, soft fade only at the edges */
.feather-img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-composite: intersect; }
/* Mini App section: the gradient is the whole section background, edge to edge and full height,
   fading to white on the left, right and top. The 16:9 .vis-feather area stays as an empty overlay slot. */
.hl:has(.vis-feather) { position: relative; isolation: isolate; }
.hl:has(.vis-feather)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('/img/products/miniapp-bg.jpg?v=2') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 45%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 45%);
          mask-composite: intersect; }
.vis-feather .feather-img { display: none; }
/* Mini App background: only a slight fade at the sides and top */
.hl:has(.vis-feather)::before {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%); }
/* text on the Mini App gradient: white so it reads on purple/blue */
.hl:has(.vis-feather) .hl-copy h2 { color: #fff; }
.hl:has(.vis-feather) .hl-copy p:not(.overline) { color: rgba(255,255,255,.86); }
.pdp .hl:has(.vis-feather) .overline { color: rgba(255,255,255,.78); }
/* Mini App background: no fade at all */
.hl:has(.vis-feather)::before { -webkit-mask-image: none; mask-image: none; }

/* Mini App collage: the group of tiles sits back and up, the Reacher tile floats in front, both on the gradient */
.hl:has(.vis-feather) .hl-copy p:not(.overline) { max-width: 44ch; }
.vis-feather { aspect-ratio: auto; height: clamp(420px, 40vw, 560px); }
.feather-overlay img { position: absolute; display: block; height: auto; border-radius: 22px;
  box-shadow: 0 40px 80px rgba(20, 10, 60, .45), 0 10px 24px rgba(20, 10, 60, .3); will-change: transform; }
.feather-overlay .ma-group { width: 58%; right: 0; top: 0; --r: 4deg; transform: rotate(var(--r)); }
.feather-overlay .ma-single { width: 74%; left: 0; bottom: 0; --r: -3deg; transform: rotate(var(--r)); z-index: 1; }
@media (max-width: 900px) {
  .vis-feather { height: auto; aspect-ratio: 1 / 1; }
  .feather-overlay .ma-group { width: 62%; }
  .feather-overlay .ma-single { width: 82%; }
}
.feather-overlay img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 30px 40px rgba(20, 10, 60, .45)) drop-shadow(0 8px 14px rgba(20, 10, 60, .28)); }

/* ---------- Bento: one section of mixed-size feature cards instead of six alternating rows ---------- */
.bento-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.bento-head h2 { font: 600 clamp(32px, 3.8vw, 52px)/1.08 var(--serif); letter-spacing: -.022em; margin: 16px 0 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { background: #f3f3f1; border-radius: 28px; padding: 36px 34px 0; display: flex; flex-direction: column; overflow: hidden; min-height: 460px; }
.bento-card.span-wide { grid-column: span 2; }
.bento-card.span-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; padding: 40px 44px; min-height: 0; }
.bento-copy .overline { margin: 0; }
.bento-copy h3 { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--serif); letter-spacing: -.018em; margin: 12px 0 10px; max-width: 22ch; }
.bento-copy p:not(.overline) { font: 15px/1.6 var(--sans); color: #646464; margin: 0; max-width: 44ch; }
.bento-vis { margin-top: auto; padding: 32px 0 34px; }
.span-full .bento-vis { margin: 0; padding: 0; }
.bento-vis .vis-panel { box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.bento-vis .vis-tv { max-width: 320px; margin: 0 auto; }
.bento-card.span-wide .bento-vis { max-width: 620px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span-wide { grid-column: 1 / -1; }
  .bento-card.span-full { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento-card { padding: 28px 24px 0; min-height: 0; border-radius: 24px; }
  .bento-card.span-full { padding: 28px 24px; gap: 24px; }
}
/* PIN drawing sized for a small bento card */
.bento-vis .vis-tv { max-width: 300px; }
.bento-vis .tv-screen.pin { gap: 12px; padding: 8%; }
.bento-vis .tv-screen.pin small { font-size: 11px; }
.bento-vis .pin-digits { gap: 7px; }
.bento-vis .pin-digits span { width: 42px; border-radius: 8px; font-size: 24px; }
/* wide card: copy and picture side by side */
.bento-card.span-wide { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; padding: 36px 34px; }
.bento-card.span-wide .bento-vis { margin: 0; padding: 0; max-width: none; }
.bento-card.span-wide .bento-copy h3 { max-width: 16ch; }
@media (max-width: 980px) { .bento-card.span-wide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bento-card.span-wide { padding: 28px 24px; gap: 24px; } }
.bento-head h2, .bento-copy h3 { text-wrap: balance; }
.bento-card.span-wide .bento-copy h3 { max-width: 20ch; }

/* ---------- Backend section: real Composer screenshots ---------- */
.be-body { font: 17px/1.75 var(--sans); color: #646464; margin: 18px auto 0; max-width: 58ch; text-wrap: balance; }
.be-shots { position: relative; max-width: 1000px; margin: 0 auto; padding-right: 16%; }
.be-shots img { display: block; height: auto; border-radius: 12px; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 70px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); }
.be-main { width: 100%; }
.be-side { position: absolute; right: 0; bottom: -48px; width: 34%; }
.be-points { list-style: none; margin: 120px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; max-width: 1000px; }
.be-points li { display: flex; flex-direction: column; gap: 6px; }
.be-points b { font: 600 20px/1.25 var(--serif); letter-spacing: -.01em; }
.be-points span { font: 15px/1.6 var(--sans); color: #646464; }
@media (max-width: 900px) { .be-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .be-shots { padding-right: 0; }
  .be-side { position: relative; right: auto; bottom: auto; width: 62%; margin: -60px 0 0 auto; }
  .be-points { grid-template-columns: 1fr; margin-top: 64px; gap: 24px; }
}

/* backend section v2: copy + points left, readable screenshots right (both at the same scale) */
.be-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.be-head h2 { font: 600 clamp(32px, 3.6vw, 50px)/1.08 var(--serif); letter-spacing: -.022em; margin: 16px 0 0; text-wrap: balance; }
.be-head .be-body { margin: 18px 0 0; text-align: left; }
.be-points { grid-template-columns: 1fr 1fr; margin: 56px 0 0; gap: 30px 32px; max-width: none; }
.be-shots { padding: 0 0 0 0; max-width: none; margin: 0; position: relative; }
.be-main { width: 100%; }
.be-side { width: 39.7%; left: -22%; right: auto; bottom: 8%; }
@media (max-width: 980px) {
  .be-grid { grid-template-columns: 1fr; gap: 56px; }
  .be-shots { max-width: 620px; margin: 0 auto; padding-left: 14%; }
  .be-side { left: 0; }
}
@media (max-width: 640px) {
  .be-points { grid-template-columns: 1fr; margin-top: 40px; gap: 22px; }
  .be-shots { padding-left: 0; }
  .be-side { position: absolute; width: 46%; left: -4px; bottom: 6%; margin: 0; }
}
.be-side { left: -9%; bottom: -5%; }
@media (max-width: 980px) { .be-side { left: 0; bottom: 6%; } }

/* audio outputs drawing */
.audio-outs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.audio-outs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4f4f2; font-size: 14px; }
.audio-outs b { font-weight: 600; }
.audio-outs span { color: var(--muted); font-size: 13px; text-align: right; }
.audio-outs li.on { background: #e8f1ff; }
.audio-outs li.on span { color: #0a5bd3; font-weight: 600; }
/* install card is single-width now */
.bento-card#install .wire { flex-wrap: wrap; justify-content: center; row-gap: 10px; }

/* In Composer tabs (Apple TV Driver / Custom Mini App) */
.be-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 12px; background: #e9e9e6; }
.be-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font: 500 14px var(--sans); color: #646464; cursor: pointer; transition: background .2s, color .2s; }
.be-tabs button:not(.is-on):hover { background: rgba(255,255,255,.55); color: var(--ink); }
.be-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.be-left [data-panel] .be-body { margin-top: 22px; }
.be-left [data-panel] .be-points { margin-top: 40px; }
.be-shots[hidden], .be-left [data-panel][hidden] { display: none; }

/* stat counters: fixed-width digits so the number doesn't jitter while counting */
.stat strong[data-count] { font-variant-numeric: tabular-nums; }

/* click-to-enlarge for Composer screenshots */
[data-zoom-img] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 32px;
  background: rgba(10,10,12,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font: 22px/1 var(--sans); cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
/* lightbox: tall screenshots scroll at readable size instead of being cut off */
.lightbox { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 56px 32px; }
.lightbox img { display: block; margin: 0 auto; max-width: min(100%, 1200px); max-height: none; }
.lightbox button { position: fixed; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lightbox { padding: 56px 10px 24px; } }
.lightbox { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,10,12,.88); }
.lightbox button { z-index: 2; }

/* deep link drawing: the real Baby Shark Dance mini app tile */
.dl-tile-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.18)); }
.dl-dest code { overflow-wrap: anywhere; }
/* mobile: the Apple TV Driver / Custom Mini App toggle sits right above the screenshots */
@media (max-width: 980px) {
  .be-grid { display: flex; flex-direction: column; gap: 0; }
  .be-left { display: contents; }
  .be-head { order: 1; }
  .be-left > [data-panel] { order: 2; }
  .be-tabs { order: 3; align-self: flex-start; margin: 48px 0 20px; }
  .be-right { order: 4; width: 100%; }
}

/* deep link drawing on the purple-blue gradient, white text */
.vis-panel.dl-panel { background: url('/img/products/miniapp-bg.jpg?v=2') center / cover no-repeat; color: #fff; }
.dl-panel .panel-bar, .dl-panel .dl-dest small { color: rgba(255,255,255,.75); }
.dl-panel .dl-dest b { color: #fff; }
.dl-panel .dl-dest code { color: rgba(255,255,255,.85); }
.dl-panel .dl-arrow { color: rgba(255,255,255,.85); }
.dl-panel .dl-tile-img { filter: drop-shadow(0 14px 26px rgba(20,10,60,.4)); }
/* TV stands: solid dark, plus a soft floor shadow under each TV */
.vis-tv .tv-stand { width: 20%; height: 9px; background: linear-gradient(#3a3a3c, #161618); border-radius: 0 0 7px 7px; position: relative; }
.vis-tv::after { content: ""; display: block; width: 74%; height: 26px; margin: -1px auto 0;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0,0,0,.30), rgba(0,0,0,.10) 45%, transparent 72%); pointer-events: none; }
.theme-dark .vis-tv::after { background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0,0,0,.6), transparent 72%); }
.vis-tv::after { height: 30px; background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0,0,0,.38), rgba(0,0,0,.12) 45%, transparent 72%); }

/* real Apple TV box tucked under the right side of the TV (hero + App Switcher) */
.vis-tv { position: relative; }
.vis-tv .tv-box { position: absolute; right: 7%; bottom: 2px; width: 25%; height: auto; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 14px 14px rgba(0,0,0,.28)); }
@media (max-width: 640px) { .vis-tv .tv-box { width: 28%; right: 5%; } }
/* Apple TV box sits beside the stand, below the screen; never overlaps the TV */
.vis-tv .tv-box { position: static; display: block; width: 19%; margin: -9px 8% 0 auto; }
@media (max-width: 640px) { .vis-tv .tv-box { width: 22%; margin-right: 6%; } }
.vis-tv:has(.tv-box)::after { margin-top: -10.7%; }
@media (max-width: 640px) { .vis-tv:has(.tv-box)::after { margin-top: -12.4%; } }
/* TVs with the box: the floor shadow hangs off the stand (absolute), so the box keeps its full height in the layout */
.vis-tv:has(.tv-box)::after { display: none; }
.vis-tv:has(.tv-box) .tv-stand::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 370%; height: 30px; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0,0,0,.38), rgba(0,0,0,.12) 45%, transparent 72%); }
.vis-tv:has(.tv-box) .tv-box { position: relative; z-index: 1; }
.vis-tv .tv-box { margin-top: -7px; }

/* ================= Accounts, portal, admin (shared app UI) ================= */
.flash-stack { display: grid; gap: 8px; margin: 18px 0 0; }
.flash { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 12px; font: 15px/1.4 var(--sans); }
.flash.ok { background: #e9f6ee; color: #1c6b3a; }
.flash.bad { background: #fdecea; color: #a8261b; }

.acct { display: grid; place-items: center; padding: 64px 0 96px; }
.acct-card { width: min(100%, 440px); background: #fff; border-radius: 24px; padding: 40px 36px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.07); }
.acct-card.wide { width: min(100%, 640px); }
.acct-card h1 { font: 600 34px/1.1 var(--serif); letter-spacing: -.02em; margin: 0; }
.acct-sub { font: 15px/1.6 var(--sans); color: #646464; margin: 10px 0 26px; }
.acct-links { margin: 22px 0 0; font: 14px var(--sans); color: #646464; display: flex; gap: 8px; flex-wrap: wrap; }
.acct-links a { color: var(--ink); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #d9d9d6; font: 500 15px var(--sans); color: var(--ink); text-decoration: none; }
.btn-google:hover { background: #fafaf8; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font: 13px var(--sans); color: #6e6e73; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #ebebe8; }

.form { display: grid; gap: 16px; }
.form.grid2 { grid-template-columns: 1fr 1fr; }
.form .span2 { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font: 500 14px var(--sans); color: var(--ink); }
.form label small { font-weight: 400; color: #6e6e73; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: #f4f4f2; font: 15px var(--sans); color: var(--ink); outline: none; transition: box-shadow .15s, background .15s; }
.form textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { background: #fff; box-shadow: 0 0 0 2px #1d1d1f; }
.form input:disabled { color: #6e6e73; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: #646464; }
.form label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1d1d1f; flex: none; }
.form label.check a { color: var(--ink); }
.btn-primary { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: 600 15px var(--sans); cursor: pointer; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.acct .btn-primary { justify-self: stretch; }
.btn-primary:hover { background: #000; }
.btn-ghost { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: #ececea; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-ghost:hover { background: #e2e2df; }
.btn-danger { background: #fdecea; color: #a8261b; }
.muted { color: #6e6e73; font: 14px/1.6 var(--sans); }

.portal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: 48px 0 96px; align-items: start; }
.portal-nav { position: sticky; top: 72px; }
.pn-who { margin: 0 0 18px; display: grid; gap: 2px; font: 14px var(--sans); }
.pn-who span { color: #6e6e73; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.portal-nav nav { display: grid; gap: 2px; }
.portal-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font: 500 14px var(--sans); color: #4a4a4a; text-decoration: none; }
.portal-nav nav a:hover { background: #f1f1ee; color: var(--ink); }
.portal-nav nav a.on { background: #1d1d1f; color: #fff; }
.portal-main { min-width: 0; display: grid; gap: 20px; align-content: start; }
.portal-main > h1 { font: 600 clamp(28px, 3vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 4px; }
.panel { background: #fff; border-radius: 20px; padding: 26px 28px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.05); }
.panel h2 { font: 600 19px/1.2 var(--serif); margin: 0 0 16px; }
.panel.note { background: #fff8e6; box-shadow: none; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel.note p { margin: 0; font: 15px/1.5 var(--sans); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tiles .tile { background: #fff; border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.05); display: grid; gap: 4px; }
.stat-tiles .tile b { font: 600 32px/1 var(--serif); }
.stat-tiles .tile span { font: 13px var(--sans); color: #6e6e73; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font: 15px/1.6 var(--sans); color: #4a4a4a; }
.steps b { color: var(--ink); }
.steps a { color: var(--ink); }
.sig-preview { padding: 18px; border-radius: 12px; background: #fafaf8; }

.legal { max-width: 900px; padding: 64px 0 96px; margin: auto; }
@media (max-width: 640px) { .legal { padding: 36px 0 64px; } .legal-body h2 { font-size: 19px; margin-top: 28px; } .legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.7; } }
.legal h1 { font: 600 clamp(32px, 4vw, 48px)/1.08 var(--serif); letter-spacing: -.02em; margin: 12px 0 8px; }
.legal-body h2 { font: 600 20px var(--serif); margin: 34px 0 8px; }
.legal-body p { font: 16px/1.75 var(--sans); color: #4a4a4a; margin: 0; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 12px; }
.legal-body ul { margin: 0; padding-left: 20px; }
.legal-body li { font: 16px/1.75 var(--sans); color: #4a4a4a; margin: 4px 0; }
.legal-body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .portal-nav { position: static; }
  .portal-nav nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .portal-nav nav a { white-space: nowrap; background: #f1f1ee; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .form.grid2 { grid-template-columns: 1fr; }
  .acct-card { padding: 30px 22px; }
  .panel { padding: 22px 20px; }
}
.panel.empty p { margin: 0; font: 15px var(--sans); color: #646464; } .panel.empty a { color: var(--ink); }
.lic-head { display: flex; align-items: center; gap: 14px; }
.lic-head h2 { margin: 0; }
.lic-head .muted { margin: 2px 0 0; }
.lic-head .pill { margin-left: auto; }
.lic-icon { width: 44px; height: 44px; border-radius: 12px; background: #f1f1ee; display: grid; place-items: center; flex: none; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font: 600 12px var(--sans); }
.pill.on { background: #e9f6ee; color: #1c6b3a; } .pill.off { background: #f1f1ee; color: #6e6e73; } .pill.warn { background: #fff4dc; color: #8a5a00; } .pill.blue { background: #e8f1fe; color: #0a5bd3; }
.lic-key { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding: 12px 14px; border-radius: 12px; background: #f6f6f4; }
.lic-key code { font: 600 17px ui-monospace, Menlo, monospace; letter-spacing: .05em; flex: 1; overflow-wrap: anywhere; }
.btn-ghost.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.lic-label { display: flex; gap: 8px; }
.lic-label input { flex: 1; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: #f4f4f2; font: 14px var(--sans); }
.lic-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lic-act p { margin: 0; font: 14px var(--sans); }
@media (max-width: 760px) { .lic-grid { grid-template-columns: 1fr; } }
.demo-go { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.cart-summary { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-top: 18px; }
.promo { display: flex; gap: 8px; align-items: center; }
.promo input { height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: #f4f4f2; font: 14px var(--sans); text-transform: uppercase; width: 180px; }
.totals { display: grid; grid-template-columns: auto auto; gap: 6px 28px; margin: 0; font: 15px var(--sans); justify-content: end; }
.totals dt { color: #646464; } .totals dd { margin: 0; text-align: right; }
.totals .grand { font-weight: 600; color: var(--ink); font-size: 17px; padding-top: 6px; }
.totals.right { margin-top: 16px; }
.checkout-go { margin-top: 22px; }
.checkout-go .btn-buy { border: 0; cursor: pointer; }
.panel.flush { padding: 8px 0; }
.tbl { width: 100%; border-collapse: collapse; font: 14px var(--sans); }
.tbl th { text-align: left; font-weight: 500; color: #6e6e73; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; }
.tbl td { padding: 12px 16px; border-top: 1px solid #f1f1ee; vertical-align: middle; }
.panel:not(.flush) .tbl th, .panel:not(.flush) .tbl td { padding-left: 0; }
.tbl a { color: var(--ink); font-weight: 500; }
.lic-key .muted { flex: none; }
@media (max-width: 640px) { .cart-summary { grid-template-columns: 1fr; } .totals { justify-content: stretch; } }
.btn-primary.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.dl .lic-head .btn-primary { margin-left: auto; }
.notes { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f6f6f4; font: 14px/1.6 var(--sans); color: #4a4a4a; }
.older { margin-top: 12px; font: 14px var(--sans); } .older summary { cursor: pointer; color: #646464; } .older p { margin: 6px 0 0; } .older a { color: var(--ink); }
.pm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pm-head h1 { font: 600 clamp(26px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; margin: 2px 0 0; }
.pm-head .muted { margin: 0; }
.thread { display: grid; gap: 12px; }
.msg { border-radius: 18px; padding: 16px 20px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 26px rgba(0,0,0,.04); max-width: 86%; }
.msg.me { justify-self: end; background: #1d1d1f; color: #f4f4f2; }
.msg.me .msg-who span { color: #a5a5a5; }
.msg.staff { justify-self: start; }
.msg.note { background: #fff8e6; justify-self: stretch; max-width: none; }
.msg-who { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font: 13px var(--sans); }
.msg-who span { color: #6e6e73; }
.msg-body { font: 15px/1.6 var(--sans); overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 10px; align-items: center; }
.inline-right { display: flex; justify-content: flex-end; margin-top: -40px; }
.req-page { padding: 64px 0 96px; }
.req-head { max-width: 720px; margin-bottom: 40px; }
.req-head h1 { font: 600 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -.025em; margin: 12px 0 14px; }
.req-head .lede { font: 18px/1.6 var(--sans); color: #646464; margin: 0; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.req-list { display: grid; gap: 12px; }
.req-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.05); }
.req-card h3 { margin: 0 0 4px; font: 600 17px var(--serif); }
.req-card p { margin: 0 0 4px; font: 14px/1.5 var(--sans); color: #4a4a4a; }
.vote button { display: grid; justify-items: center; gap: 2px; width: 52px; padding: 8px 0; border: 0; border-radius: 12px; background: #f1f1ee; cursor: pointer; color: var(--ink); }
.vote button b { font: 600 16px var(--sans); }
.vote button:hover { background: #e6e6e2; }
.vote button:disabled { background: #1d1d1f; color: #fff; cursor: default; }
.req-form { position: sticky; top: 72px; }
@media (max-width: 900px) { .req-grid { grid-template-columns: 1fr; } .req-form { position: static; } .msg { max-width: 100%; } }
/* ---------- admin ---------- */
.admin-nav nav a { position: relative; }
.admin-nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #0071e3; color: #fff; font: 600 11px/20px var(--sans); text-align: center; }
.portal-nav nav a.on .count { background: #fff; color: #1d1d1f; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; align-items: end; height: 140px; }
.bars span { height: max(3px, var(--h)); border-radius: 4px 4px 2px 2px; background: #1d1d1f; opacity: .85; }
.bars span:hover { opacity: 1; background: #0071e3; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--sans); color: #6e6e73; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col.wide-left { grid-template-columns: minmax(0, 1fr) 300px; }
.panel.side p { font: 14px/1.6 var(--sans); margin: 0 0 12px; } .panel.side a { color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.05); font: 14px var(--sans); }
.filters input { flex: 1; min-width: 220px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e9e9e6; width: max-content; max-width: 100%; overflow-x: auto; }
.seg a { padding: 8px 14px; border-radius: 9px; font: 500 14px var(--sans); color: #646464; text-decoration: none; white-space: nowrap; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font: 14px var(--sans); } .kv dt { color: #6e6e73; } .kv dd { margin: 0; }
.form.grid3 { grid-template-columns: repeat(3, 1fr); } .form .span3 { grid-column: 1 / -1; }
.form.compact { margin-top: 14px; align-items: end; }
.form.compact input, .form.compact select { height: 38px; }
.mt { margin-top: 14px; }
.as-btn { border: 0; cursor: pointer; }
.tbl td.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl code { font: 600 13px ui-monospace, Menlo, monospace; }
.mail-frame { width: 100%; height: 780px; border: 0; border-radius: 16px; background: #f4f4f2; }
.mail-frame.short { height: 560px; }
@media (max-width: 1100px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; } .form.grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .form.grid3 { grid-template-columns: 1fr; } .panel:not(.flush) > .tbl { display: block; overflow-x: auto; } }
.lic-refund { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding-top: 14px; border-top: 0; flex-wrap: wrap; }
.lic-refund .muted { margin: 0; }
/* ---------- Fixxy assistant launcher ---------- */
.fx-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--sans); }
.fx-launch { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: 600 15px var(--sans); cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,.22); transition: transform .2s; }
.fx-launch:hover { transform: translateY(-2px); }
.fx-chat.is-open .fx-launch { display: none; }
.fx-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 100px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.24), 0 0 0 1px rgba(0,0,0,.05); display: flex; flex-direction: column; overflow: hidden; }
.fx-panel[hidden] { display: none; }
.fx-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: #1d1d1f; color: #fff; }
.fx-head div { flex: 1; display: grid; line-height: 1.2; } .fx-head b { font-size: 15px; } .fx-head small { font-size: 12px; color: #b5b5b2; }
.fx-avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #5eead4, #60a5fa 55%, #a78bfa); }
.fx-icon { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fx-icon:hover { background: rgba(255,255,255,.16); }
.fx-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: #fafaf8; }
.fx-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font: 14px/1.55 var(--sans); overflow-wrap: anywhere; }
.fx-msg p { margin: 0 0 6px; } .fx-msg p:last-child { margin: 0; }
.fx-msg ol, .fx-msg ul { margin: 4px 0 6px; padding-left: 20px; } .fx-msg li { margin: 2px 0; }
.fx-msg.bot { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05); justify-self: start; border-bottom-left-radius: 6px; }
.fx-msg.me { background: #1d1d1f; color: #f4f4f2; justify-self: end; border-bottom-right-radius: 6px; }
.fx-msg a { color: #0a5bd3; font-weight: 500; }
.fx-msg.typing { display: flex; gap: 4px; padding: 14px; }
.fx-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b5b5b2; animation: fxdot 1s infinite ease-in-out; }
.fx-msg.typing span:nth-child(2) { animation-delay: .15s; } .fx-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes fxdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.fx-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; background: #fafaf8; }
.fx-suggest[hidden] { display: none; }
.fx-suggest button { border: 0; border-radius: 999px; padding: 7px 12px; background: #fff; box-shadow: inset 0 0 0 1px #e2e2df; font: 13px var(--sans); color: var(--ink); cursor: pointer; }
.fx-suggest button:hover { background: #f1f1ee; }
.fx-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; background: #fafaf8; }
.fx-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #e2e2df; font: 15px/1.4 var(--sans); outline: none; }
.fx-form textarea:focus { box-shadow: inset 0 0 0 2px #1d1d1f; }
.fx-form button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1d1d1f; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.fx-note { margin: 0; padding: 0 14px 10px; background: #fafaf8; font: 11px var(--sans); color: #a5a5a5; text-align: center; }
@media (max-width: 640px) {
  .fx-chat { right: 12px; bottom: 12px; }
  .fx-launch span { display: none; } .fx-launch { width: 54px; padding: 0; justify-content: center; }
  .fx-chat.is-open { inset: 0; right: 0; bottom: 0; }
  .fx-panel { position: fixed; left: 0; right: 0; top: var(--fx-top, 0px); bottom: auto; width: 100%; height: var(--fx-vh, 100%); border-radius: 0; }
  .fx-form textarea { font-size: 16px; } /* under 16px makes iOS zoom on focus */
  html.fx-lock, html.fx-lock body { overflow: hidden; overscroll-behavior: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-msg.typing span { animation: none; } }

/* =========================================================
   Product page visuals, shared (app/Views/store/visuals/*.php)
   Data-driven panels used by the Samsung TV, WolfPack, Connection Watchdog,
   AI Concierge and Ring pages. Prefixed px- so nothing above is affected.
   Tints follow the page accent (--accent on .pdp).
   ========================================================= */
.px-panel { --px-tint: color-mix(in srgb, var(--accent, #0071e3) 10%, #fff); }
.px-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.px-counts div { padding: 12px 14px; border-radius: 12px; background: #f4f4f2; }
.px-counts b { display: block; font: 600 24px/1.1 var(--serif); letter-spacing: -.01em; }
.px-counts span { font-size: 12px; color: var(--muted); }
.px-counts .is-good b { color: #256840; }
.px-counts .is-bad b { color: #b42318; }
.px-counts .is-sleep b { color: #6e6e73; }
.px-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4f4f2; font-size: 14px; }
.px-list b { font-weight: 600; min-width: 0; }
.px-list span { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.px-list li.is-on { background: var(--px-tint); }
.px-list li.is-on span { color: var(--accent, #0071e3); font-weight: 600; }
.px-list li.is-good span { color: #256840; font-weight: 600; }
.px-list li.is-bad { background: #fdf1f0; }
.px-list li.is-bad span { color: #b42318; font-weight: 600; }
.px-list li.is-off b { color: #6f6f6f; font-weight: 500; }
.px-list li.is-off span { color: #6e6e73; }
.px-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; }
.px-list .is-on .px-dot { background: var(--accent, #0071e3); }
.px-list .is-bad .px-dot { background: #d92d20; }
.px-list .is-sleep .px-dot, .px-list .is-off .px-dot { background: #c2c2bf; }
.px-steps li { grid-template-columns: 104px 1fr auto; }
.px-steps .state { white-space: nowrap; }
.px-steps .state.bad { background: #fdecea; color: #b42318; }
.px-steps .state.accent { background: var(--px-tint); color: var(--accent, #0071e3); }
.px-vars dd { overflow-wrap: anywhere; }
.px-vars.is-plain dt { font: 14px var(--sans); color: #6e6e73; }
.dot.px-bad { background: #d92d20; }
.px-chain { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 8px; padding: 14px 0; }
.px-node { padding: 12px 16px; border-radius: 12px; background: #1d1d1f; color: #fff; font-size: 14px; white-space: nowrap; }
.px-link { display: grid; justify-items: center; gap: 5px; min-width: 60px; }
.px-link i { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: #1d1d1f; }
.px-link i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid #1d1d1f; border-right: 0; }
.px-link small { font-size: 11px; color: #6e6e73; white-space: nowrap; }
.theme-dark .px-chat, .theme-dark .px-ticket { box-shadow: none; }
/* spec values with long programming names (LAST_RECOVERED_DEVICE) wrap instead of widening the page */
.specs dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .px-list li { flex-wrap: wrap; row-gap: 2px; padding: 11px 12px; }
  .px-steps li { grid-template-columns: 92px 1fr; }
  .px-counts b { font-size: 20px; }
}

/* ---------- Samsung TV page: TV drawings (samsung-screen, samsung-compare, frame-art) ---------- */
.px-tv { width: 100%; }
.px-tv-screen { position: relative; aspect-ratio: 16 / 9; background: #0b0b0c; border: 6px solid #0c0c0c; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.px-tv-screen > svg, .px-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.px-tv-stand { width: 18%; height: 7px; margin: 0 auto; background: #cfcfcc; border-radius: 0 0 8px 8px; }
.px-tv-chip { position: absolute; left: 4%; top: 6%; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1d1d1f; font: 600 12px var(--sans); }
.px-sam { position: relative; padding-bottom: 15%; font-family: var(--sans); }
.px-sam .px-tv { width: 92%; }
.px-float { position: absolute; right: 0; bottom: 0; width: min(320px, 58%); list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.13); }
.px-float li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 11px; background: #f6f6f4; font-size: 13px; }
.px-float small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.px-float b { font-weight: 600; text-align: right; }
.px-float li.is-good b { color: #256840; }
.px-float li.is-on { background: color-mix(in srgb, var(--accent, #0071e3) 10%, #fff); }
.px-float li.is-on b { color: var(--accent, #0071e3); }
.px-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-family: var(--sans); }
.px-compare figure { margin: 0; }
.px-compare figcaption { margin-top: 16px; display: grid; gap: 3px; text-align: center; }
.px-compare figcaption b { font: 600 17px var(--serif); }
.px-compare figcaption span { font-size: 14px; }
.px-compare .is-bad { color: #b42318; }
.px-compare .is-good { color: #256840; }
.px-tv.is-small .px-tv-screen { border-width: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.px-tv-screen.is-hub { background: #15171c; }
.px-hub-pip { position: absolute; right: 5%; top: 9%; width: 44%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; }
.px-hub-bar { position: absolute; left: 4%; right: 4%; bottom: 8%; display: flex; align-items: center; gap: 3%; }
.px-hub-bar small { font: 600 clamp(7px, .85vw, 11px) var(--sans); color: #cfd3da; white-space: nowrap; }
.px-hub-bar i { flex: 1; aspect-ratio: 16 / 10; border-radius: 3px; background: #3a3f4a; }
.px-hub-bar i:first-of-type { background: #6a7387; }
.px-frame { display: grid; gap: 20px; font-family: var(--sans); }
.stage-panel .px-frame .px-tv { width: 84%; margin: 0 auto; }
.px-tv.is-frame .px-tv-screen { border: 8px solid #d6d1c7; background: #f3f1ec; border-radius: 2px; }
.px-states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.px-states li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f2f2f0; }
.bento-vis .px-states li { background: #fff; }
.px-states b { font-size: 14px; font-weight: 600; }
.px-states small { font-size: 12px; color: var(--muted); }
.px-states li.is-on { background: color-mix(in srgb, var(--accent, #0071e3) 10%, #fff); }
.px-states li.is-on b { color: var(--accent, #0071e3); }
@media (max-width: 760px) {
  .px-sam { padding-bottom: 0; }
  .px-sam .px-tv { width: 100%; }
  .px-float { position: relative; width: auto; margin: -6% 4% 0; }
  .px-compare { gap: 14px; }
  .px-compare figcaption b { font-size: 14px; }
  .px-compare figcaption span { font-size: 12px; }
  .px-tv-chip { font-size: 10px; padding: 3px 8px; }
  .px-states li { padding: 9px 10px; }
  .px-states small { font-size: 11px; }
}

/* ---------- WolfPack FIX 16x16 page: routing table read back from the matrix (matrix) ---------- */
.px-matrix { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.px-matrix div { display: grid; gap: 1px; padding: 9px 4px 8px; border-radius: 10px; background: #f4f4f2; text-align: center; }
.px-matrix small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.px-matrix b { font: 600 20px/1.15 var(--serif); }
.px-matrix span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #6e6e73; }
.px-matrix div.is-sent { background: var(--px-tint); box-shadow: inset 0 0 0 1.5px var(--accent, #0071e3); }
.px-matrix .is-sent b, .px-matrix .is-sent span { color: var(--accent, #0071e3); }
.px-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; color: #6e6e73; }
.px-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; margin-right: 7px; }
.px-legend .is-sent i { background: transparent; box-shadow: inset 0 0 0 2px var(--accent, #0071e3); }
@media (max-width: 760px) { .px-matrix { grid-template-columns: repeat(4, 1fr); } }

/* ---------- AI Concierge page: chat and dealer ticket (chat, ticket) ---------- */
/* two included drivers: share the row instead of leaving an empty third column */
@media (min-width: 1001px) { .included:has(> .inc:nth-child(3):last-child) { grid-template-columns: 1.1fr 1.5fr 1.5fr; } }
.px-chat { background: #fff; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.07); overflow: hidden; font-family: var(--sans); color: var(--ink); }
.px-chat-bar { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.px-chat-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent, #1d1d1f); color: #fff; }
.px-chat-bar b { font-size: 15px; font-weight: 600; }
.px-chat-bar small { margin-left: auto; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.px-chat-log { display: grid; gap: 10px; padding: 8px 20px 18px; }
.px-msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.px-msg p { margin: 0; }
.px-msg.me { justify-self: end; background: #1d1d1f; color: #f4f4f2; border-bottom-right-radius: 6px; }
.px-msg.bot { justify-self: start; background: #f2f2f0; border-bottom-left-radius: 6px; }
.px-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #e3f1e8; color: #256840; font-size: 12px; font-weight: 600; }
.px-chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #f4f4f2; color: #6e6e73; font-size: 14px; }
.px-chat-input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1d1d1f; color: #fff; }
.px-ticket { background: #fff; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.07); overflow: hidden; font-family: var(--sans); color: var(--ink); }
.px-ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: #1f2a3d; color: #fff; font-size: 13px; }
.px-ticket-head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.px-ticket-head small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b9c3d3; }
.px-ticket-body { padding: 20px; }
.px-ticket-body h4 { font: 600 20px/1.25 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.px-ticket-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 16px; }
.px-ticket-meta div { padding: 10px 12px; border-radius: 12px; background: #f4f4f2; }
.px-ticket-meta dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.px-ticket-meta dd { margin: 3px 0 0; font-size: 14px; }
.px-ticket-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.px-ticket-items li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; }
.px-ticket-items b { font-weight: 600; }
.px-ticket-items span { color: #555; }
@media (max-width: 760px) {
  .px-chat-bar { padding: 14px 16px 8px; }
  .px-chat-log { padding: 6px 14px 14px; }
  .px-msg { font-size: 14px; }
  .px-ticket-body { padding: 16px; }
  .px-ticket-items li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Ring Doorbell page: doorbell camera view (ring-door) ---------- */
.px-door { position: relative; padding-bottom: 9%; font-family: var(--sans); }
.px-cam { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.px-cam svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.px-cam-tag { position: absolute; left: 4%; top: 6%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font: 600 12px var(--sans); }
.px-cam-tag i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.px-event { position: absolute; left: 6%; right: 6%; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.14); }
.px-event-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent, #1d1d1f); color: #fff; }
.px-event b { display: block; font-size: 15px; font-weight: 600; }
.px-event small { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .px-event { padding: 11px 14px; gap: 12px; } .px-event small { font-size: 12px; } }
/* contrast: small labels on the highlighted (blue) float card */
.px-float li.is-on small { color: #555a63; }
/* contrast: labels and copy sitting on the grey feature/service panels */
.feature .overline, .feature-price, .service .overline { color: #55555a; }
.feature-copy p { color: #57575a; }
/* contrast: output labels on highlighted matrix cells */
.px-matrix div.is-sent small { color: #555a63; }
