:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --text: #0e0e10;
  --muted: #6b6b75;
  --line: #e6e6ea;
  --accent: #0e0e10;
  --sale: #d92d20;
  --glow: #0070e0;       /* PayPal blue accent */
  --cta: #0070e0;        /* call-to-action buttons (PayPal blue) */
  --cta-hover: #005ec2;
  --glow-hi: #4da3ff;    /* lighter tint for glows on black */
  --radius: 14px;
  --max: 1240px;
  /* One family everywhere, like the reference site (Suisse Int'l).
     Suisse Int'l is a paid font: if you license it, add its @font-face and it takes over automatically.
     Until then Inter, the closest free match, is used. */
  --font: "Suisse Intl", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* keep the footer at the bottom of the window on short pages */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, strong, b { font-weight: 500; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
/* A plain row across the top (logo left, nav centre, currency + cart right) that sticks while scrolling.
   (The older floating pill is kept below as .site-header.floating, in case we switch back.) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header-pill {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: var(--max); height: 60px; margin: 0 auto; padding: 0 20px;
}
.header-pill .logo { justify-self: start; }
.header-pill .header-actions { justify-self: end; }
.site-header.floating { position: fixed; top: 16px; left: 0; right: 0; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.floating .header-pill {
  pointer-events: auto; display: flex; gap: 28px; padding: 0 8px 0 20px; margin: 0;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(0, 0, 0, .06); border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}
.site-header .logo .logo-full { height: 18px; width: auto; }
.site-header .logo .logo-mark { display: none; height: 26px; width: 26px; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .15s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.currency {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 28px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
  font: 500 13px var(--font); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230e0e10' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.currency:hover { border-color: #c9c9d1; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 0; color: var(--text);
}
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--text); color: #fff; font-size: 11px; font-weight: 500;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* Hero */
.hero {
  --card-w: 220px;
  --card-h: calc(var(--card-w) * 19.5 / 9);
  --card-r: 34px;
  --bezel: 8px;
  text-align: center; overflow: hidden;
  padding: 116px 0 56px;
  background: linear-gradient(180deg, #e9e9ed 0%, #f4f4f6 60%, #fff 100%);
}
.hero-title {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 60px); line-height: 1; letter-spacing: -.02em;
  margin: 0 auto; padding: 0 16px;
}
.hero-title span { color: #a9a9b2; }
.hero[data-variant="scanner"] .hero-title { max-width: 17ch; text-wrap: balance; }
.hero-title .px { font-family: "Doto", "Space Mono", monospace; font-weight: 900; letter-spacing: -.04em; }
.hero-stage {
  position: relative; margin-top: 56px;
  height: calc(var(--card-h) + var(--bezel) * 2 + 24px);
  perspective: 1400px;
}

/* Wallpaper carousel: a 3D ring of phone-screen-sized cards; the front card sits exactly in the phone */
.carousel {
  position: absolute; inset: -140px 0; /* extra room so the larger side cards aren't clipped */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.ring-view { position: absolute; inset: 0; perspective: var(--persp, 1700px); perspective-origin: 50% 50%; }
.ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ring img {
  max-width: none;
  position: absolute;
  width: var(--card-w); height: var(--card-h);
  left: calc(var(--card-w) / -2); top: calc(var(--card-h) / -2);
  border-radius: var(--card-r); object-fit: cover;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

/* Phone: outline only, sits on top of the carousel */
.phone {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: calc(var(--card-w) + var(--bezel) * 2);
  height: calc(var(--card-h) + var(--bezel) * 2);
  translate: -50% -50%;
  border: 3px solid #0e0e10;
  border-radius: calc(var(--card-r) + var(--bezel));
  pointer-events: none;
  box-shadow:
    inset 0 0 0 var(--bezel) #050506,   /* solid black screen bezel (overlaps the wallpaper edge slightly so corners stay clean) */
    0 30px 70px rgba(0, 0, 0, .18);
}
.phone::before, .phone::after { /* side buttons */
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #0e0e10;
}
.phone::before { left: -7px; top: 22%; height: 9%; box-shadow: 0 calc(var(--card-h) * .12) 0 #0e0e10; }
.phone::after { right: -7px; top: 27%; height: 13%; }
.island { position: absolute; top: calc(var(--bezel) + 2px); left: 50%; translate: -50% 0; width: 34%; height: 27px; border-radius: 20px; background: #0e0e10; }
.lock { position: absolute; z-index: 1; top: 54px; left: 0; right: 0; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.lock-date { font-size: 15px; font-weight: 500; opacity: .92; }
.lock-time { font-family: var(--display); font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }

/* MacBook variant: 16:10 cards, outline lid + base */
.hero[data-variant="laptop"] {
  --card-w: 460px;
  --card-h: calc(var(--card-w) * 10 / 16);
  --card-r: 6px;
  --bezel: 12px;
  --card-gap: .12;
  --persp: 2600px;
}
.hero[data-variant="laptop"] .hero-stage { height: calc(var(--card-h) + var(--bezel) * 2 + 80px); }
.laptop {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: calc(var(--card-w) + var(--bezel) * 2);
  height: calc(var(--card-h) + var(--bezel) * 2);
  translate: -50% -50%;
  border: 3px solid #0e0e10;
  border-radius: 20px 20px 4px 4px;
  pointer-events: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .14);
}
.notch {
  position: absolute; top: calc(var(--bezel) - 1px); left: 50%; translate: -50% 0;
  width: 13%; height: 14px; border-radius: 0 0 8px 8px; background: #0e0e10;
}
.menubar {
  position: absolute; top: var(--bezel); left: var(--bezel); right: var(--bezel); height: 18px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  border-radius: var(--card-r) var(--card-r) 0 0;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 500; letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.menubar-dots { display: flex; gap: 8px; }
.menubar-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.menubar-dots i:first-child { width: 10px; }
.laptop-base {
  position: absolute; top: calc(100% + 3px); left: -9%; right: -9%; height: 18px;
  border: 3px solid #0e0e10; border-radius: 3px 3px 18px 18px;
  background: rgba(246, 246, 248, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
}
.laptop-groove {
  position: absolute; top: -3px; left: 50%; translate: -50% 0;
  width: 15%; height: 8px; border: 3px solid #0e0e10; border-top: 0; border-radius: 0 0 9px 9px;
}

.hero-sub { position: relative; z-index: 3; color: #3b3b42; font-size: 17px; max-width: 52ch; margin: 56px auto 24px; padding: 0 16px; }
.hero > .btn { position: relative; z-index: 3; }
.hero-features { display: none; }
.hero-sub strong { color: var(--text); letter-spacing: .04em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--cta); color: #fff; border: 1px solid var(--cta);
  font-weight: 500; font-size: 15px; transition: transform .1s, opacity .15s, background-color .15s, border-color .15s;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.secondary:hover { background: var(--bg-soft); border-color: var(--line); }
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 0; }
.section-head a { font-size: 14px; font-weight: 500; color: var(--muted); }
.section-head a:hover { color: var(--text); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { display: block; }
.card-media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.badge.sale { background: var(--sale); color: #fff; }
.card-title { font-weight: 500; font-size: 15px; margin: 12px 0 2px; }
.price { font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.price .now.on-sale { color: var(--sale); font-weight: 500; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: .9em; }

/* Category pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; background: #fff;
}
.pill[aria-current="page"] { background: var(--text); color: #fff; border-color: var(--text); }
.page-title { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); letter-spacing: -.02em; margin: 48px 0 20px; }

/* Product page */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 40px 0 64px; }
.product-media { border-radius: 20px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery { min-width: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs .thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; cursor: pointer; transition: border-color .15s, opacity .15s; opacity: .75; }
.thumbs .thumb:hover { opacity: 1; }
.thumbs .thumb.on { border-color: var(--text); opacity: 1; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-media .hover-img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease, transform .4s ease; }
.card:hover .card-media.has-hover .hover-img { opacity: 1; }
/* crossfading image set (bundle mockup) */
.cycle { position: relative; display: block; width: 100%; height: 100%; }
.cycle[hidden] { display: none; }
.cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .4s ease; }
.cycle img.on { opacity: 1; }
.card:hover .card-media .cycle img { transform: scale(1.04); }
.product-info { position: sticky; top: 100px; align-self: start; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--text); }
.product-info h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.product-info .price { font-size: 22px; margin-bottom: 24px; }
.product-info .desc { color: #3b3b42; margin: 0 0 24px; }
.includes { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.includes li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.includes li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg);
}
.buy-row { display: grid; gap: 10px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }
/* three small trust badges under the buy buttons */
.trust-badges { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-badges li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px 6px; border-radius: 14px; background: var(--bg-soft);
  font-size: 12.5px; line-height: 1.25; color: #3b3b42;
}
.trust-badges svg { color: var(--text); flex: none; }
/* bundle offer on a pack's page */
.upsell {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 12px 12px 14px;
  border: 1px solid #cfe3ff; border-radius: 16px; background: linear-gradient(180deg, #f5f9ff, #eef5ff);
}
.upsell-imgs { display: flex; flex: none; }
.upsell-imgs img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(10, 10, 30, .12); }
.upsell-imgs img + img { margin-left: -14px; }
.upsell-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.upsell-text strong { font-size: 14.5px; font-weight: 500; color: var(--text); }
.upsell-text a:hover strong { text-decoration: underline; }
.upsell-text em { font-style: normal; color: var(--cta); font-weight: 500; white-space: nowrap; }
.upsell-btn { height: 38px; padding: 0 16px; font-size: 14px; flex: none; }
/* cart: upgrade to the bundle */
.cart-upsell { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 14px; background: #eef5ff; border: 1px solid #cfe3ff; }
.cart-upsell img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-upsell p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.cart-upsell strong { color: var(--text); font-weight: 500; }
.cart-upsell .btn { height: 36px; padding: 0 14px; font-size: 13px; }

/* Trust + newsletter */
.trust {
  margin: 48px 0 8px; padding: 36px 8px; border-radius: 24px;
  background: linear-gradient(180deg, #f6f6f8, #efeff3);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.trust > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 28px; }
.trust > div + div { border-left: 1px solid rgba(14, 14, 16, .08); }
.trust-ico {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--cta);
  background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 16px -8px rgba(10, 10, 30, .25), 0 0 0 1px rgba(14, 14, 16, .05);
}
.trust h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; letter-spacing: -.01em; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 28ch; }

/* Footer */
.site-footer { background: #0e0e10; color: #c9c9d1; margin-top: 64px; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .logo img { height: 20px; width: auto; filter: invert(1); }
.site-footer p { font-size: 14px; color: #8b8b95; margin: 14px 0 0; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #26262b; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #6f6f79; }

/* Cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 61;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: none; visibility: hidden;
  transition: transform .25s ease, visibility 0s .25s;
}
body.cart-open .drawer { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(0,0,0,.08); transition: transform .25s ease; }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.line-title { font-weight: 500; font-size: 14px; }
.line .remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.error { color: var(--sale); font-size: 14px; margin: 10px 0 0; }

/* Success */
.narrow { max-width: 640px; margin: 0 auto; padding: 64px 20px 80px; }
.downloads { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.downloads a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.downloads a:hover { border-color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product-info { position: static; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .header-pill { gap: 12px; height: 54px; padding: 0 10px 0 16px; }
  .site-header .logo .logo-full { display: none; }
  .site-header .logo .logo-mark { display: block; }
  .nav { gap: 14px; }
  .currency { padding: 0 24px 0 10px; background-position: right 9px center; }
  .trust { grid-template-columns: 1fr; padding: 8px 20px; margin-top: 32px; }
  .trust > div { text-align: left; padding: 18px 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 0; align-items: center; align-content: center; }
  .trust > div + div { border-left: 0; border-top: 1px solid rgba(14, 14, 16, .08); }
  .trust-ico { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .trust h3 { margin: 0 0 2px; font-size: 15px; }
  .trust p { font-size: 13px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero { --card-w: 170px; --card-r: 26px; --bezel: 6px; padding: 96px 0 40px; }
  .island { height: 21px; }
  .lock { top: 40px; }
  .lock-date { font-size: 11px; }
  .lock-time { font-size: 46px; }
  .hero[data-variant="laptop"] { --card-w: 290px; --bezel: 8px; }
  .laptop { border-radius: 14px 14px 3px 3px; }
  .notch { height: 9px; }
  .menubar { height: 13px; font-size: 7px; padding: 0 6px; }
  .menubar-dots { gap: 5px; }
  .menubar-dots i { width: 14px; height: 3px; }
  .menubar-dots i:first-child { width: 7px; }
  .laptop-base { height: 12px; }
}

/* Space under the header on pages without a hero */
body:not([data-page="home"]) main.container { padding-top: 0; }

/* ================= Scanner hero variant (default) =================
   Dark stage, cards drift left → right through a glowing scan line.
   Left of the line: pixelated monochrome "voxels". Right: the finished wallpaper. */
.hero[data-variant="scanner"] {
  --card-w: 170px;
  --card-h: calc(var(--card-w) * 19.5 / 9);
  --card-r: 26px;
  --bezel: 9px;
  --card-gap: .1;
  --persp: 950px;
  background: radial-gradient(120% 60% at 50% 0%, #121214 0%, #000 60%);
  color: #fff;
  padding: 132px 0 72px;
  border-radius: 0 0 36px 36px;
}
.hero[data-variant="scanner"] .hero-sub { color: rgba(255, 255, 255, .55); font-weight: 400; line-height: 1.7; }
.hero[data-variant="scanner"] .hero-stage { height: calc(var(--card-h) + var(--bezel) * 2 + 90px); margin-top: 8px; }
.hero[data-variant="scanner"] .carousel { inset: -220px 0; }
.hero[data-variant="scanner"] .hero-stage::before {
  width: 900px; z-index: 0; top: -60px; bottom: -60px;
  background: radial-gradient(closest-side, rgba(0, 112, 224, .34), rgba(0, 112, 224, .1) 45%, transparent 80%);
}
.hero[data-variant="scanner"] .ring img { box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
/* Cards turn from voxels to colour as they slide into the phone screen */
.ring-raw { clip-path: inset(0 calc(50% + var(--card-w) / 2) 0 0); }
.ring-final { clip-path: inset(0 0 0 calc(50% - var(--card-w) / 2)); }

.hero[data-variant="scanner"] .phone {
  border: 2px solid #c9cdd6;                       /* titanium frame */
  box-shadow:
    inset 0 0 0 var(--bezel) #050506,               /* black bezel around the screen */
    inset 0 0 0 calc(var(--bezel) + 1px) rgba(255, 255, 255, .08),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 0 40px rgba(0, 112, 224, .45), 0 0 120px rgba(0, 112, 224, .25);
}
.hero[data-variant="scanner"] .phone::before, .hero[data-variant="scanner"] .phone::after { background: #c9cdd6; }
.hero[data-variant="scanner"] .phone::before { box-shadow: 0 calc(var(--card-h) * .12) 0 #c9cdd6; }
.hero[data-variant="scanner"] .island { background: #050506; }
.hero[data-variant="scanner"] .lock { top: 46px; }
.hero[data-variant="scanner"] .lock-date { font-size: 12px; }
.hero[data-variant="scanner"] .lock-time { font-size: 48px; }
.ring-raw img { image-rendering: pixelated; filter: grayscale(1) contrast(1.25) brightness(.9); }

.scanline {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: 3px; height: calc(var(--card-h) + 70px); translate: -50% -50%;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--glow) 18%, #cfe6ff 50%, var(--glow) 82%, transparent);
  box-shadow: 0 0 10px var(--glow), 0 0 28px rgba(0, 112, 224, .8), 0 0 70px rgba(0, 112, 224, .45);
  animation: scan-pulse 2.4s ease-in-out infinite;
}
@keyframes scan-pulse { 50% { opacity: .82; } }

/* Floating particles around the scan line */
.sparks, .sparks::before, .sparks::after {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 2px; height: 2px; border-radius: 50%;
  background: transparent;
  animation: spark-rise 5s linear infinite;
}
.sparks {
  box-shadow: -40px 60px rgba(0, 112, 224, .7), 30px 110px rgba(0, 112, 224, .5), -90px 20px rgba(255,255,255,.4),
    70px -10px rgba(0, 112, 224, .6), -20px 140px rgba(255,255,255,.35), 110px 80px rgba(0, 112, 224, .4);
}
.sparks::before {
  content: ""; animation-delay: -1.7s;
  box-shadow: 20px 90px rgba(0, 112, 224, .6), -70px 40px rgba(0, 112, 224, .45), 50px 150px rgba(255,255,255,.35),
    -120px 110px rgba(0, 112, 224, .35), 90px 30px rgba(255,255,255,.3);
}
.sparks::after {
  content: ""; animation-delay: -3.4s;
  box-shadow: -10px 120px rgba(0, 112, 224, .55), 60px 70px rgba(255,255,255,.35), -60px 160px rgba(0, 112, 224, .4),
    130px 130px rgba(0, 112, 224, .3), -140px 70px rgba(255,255,255,.25);
}
@keyframes spark-rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-220px); opacity: 0; }
}

.btn-glow {
  height: 52px; padding: 0 26px; gap: 10px;
  background: #0b0b0c; color: #fff;
  border: 1px solid rgba(0, 112, 224, .45);
  box-shadow: 0 0 0 4px rgba(0, 112, 224, .05), 0 0 24px rgba(0, 112, 224, .22), inset 0 0 12px rgba(0, 112, 224, .08);
  transition: box-shadow .2s, border-color .2s, transform .1s;
}
.btn-glow:hover { opacity: 1; border-color: var(--glow-hi); box-shadow: 0 0 0 4px rgba(0, 112, 224, .08), 0 0 34px rgba(0, 112, 224, .4), inset 0 0 14px rgba(0, 112, 224, .12); }
.hero[data-variant="phone"] .btn-glow, .hero[data-variant="laptop"] .btn-glow { background: var(--accent); }

.hero[data-variant="scanner"] .hero-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative; z-index: 3; margin-top: 40px;
}
.hero-features h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
.hero-features p { margin: 0 auto; max-width: 30ch; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .45); }

@media (max-width: 720px) {
  .hero[data-variant="scanner"] { --card-w: 132px; --card-r: 20px; --bezel: 7px; --persp: 700px; padding: 112px 0 48px; border-radius: 0 0 24px 24px; }
  .hero[data-variant="scanner"] .lock { top: 36px; }
  .hero[data-variant="scanner"] .lock-time { font-size: 38px; }
  .hero[data-variant="scanner"] .hero-features { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline, .sparks, .sparks::before, .sparks::after { animation: none; }
}

/* Scanner layout: title → sub → button → stage → features, dark header */
.hero[data-variant="scanner"] { display: flex; flex-direction: column; align-items: center; }
.hero[data-variant="scanner"] > * { order: 5; }
.hero[data-variant="scanner"] .hero-title { order: 1; text-transform: none; margin-bottom: 18px; }
.hero[data-variant="scanner"] .hero-title span { color: inherit; }
.hero[data-variant="scanner"] .hero-sub { order: 2; margin: 0 auto 28px; max-width: 46ch; }
.hero[data-variant="scanner"] .hero-cta { order: 3; }
.hero[data-variant="scanner"] .hero-stage { order: 4; align-self: stretch; }
.hero[data-variant="scanner"] .hero-sub strong { color: #fff; }
body[data-hero="scanner"] .header-pill { background: rgba(18, 18, 20, .72); border-color: rgba(255, 255, 255, .1); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
body[data-hero="scanner"] .site-header .logo img { filter: invert(1); }
body[data-hero="scanner"] .nav a { color: rgba(255, 255, 255, .6); }
body[data-hero="scanner"] .nav a:hover, body[data-hero="scanner"] .nav a[aria-current="page"] { color: #fff; }
body[data-hero="scanner"] .site-header .icon-btn { color: #fff; }
body[data-hero="scanner"] .site-header .icon-btn:hover { background: rgba(255, 255, 255, .1); }
body[data-hero="scanner"] .site-header .cart-count { background: var(--glow); }
body[data-hero="scanner"] .currency { color: #fff; border-color: rgba(255, 255, 255, .14); background-color: rgba(255, 255, 255, .06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
body[data-hero="scanner"] .currency option { color: #0e0e10; }
body[data-hero="scanner"] .trust { display: none; }

/* ================= Fan hero (default) =================
   A stack of wallpaper cards flies in and fans out; see startFanHero() in app.js.
   --spread / --drop / --turn: each card's sideways step, how much lower the outer cards sit, and their tilt. */
.hero[data-variant="fan"] {
  --fan-w: 136px; --spread: 96px; --drop: 6px; --turn: 6deg; --stack-scale: .9;
  padding: 40px 0 48px;
  background: radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #f3f3f6 55%, #ececf0 100%);
}
.hero[data-variant="fan"] .hero-title {
  text-transform: none; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.04;
  max-width: 20ch; text-wrap: balance;
}
.hero-eyebrow {
  display: inline-block; margin: 0 auto 18px; padding: 7px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #55555e;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(14, 14, 16, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 18px -8px rgba(10, 10, 30, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero:not([data-variant="fan"]) .hero-eyebrow { display: none; }
.hero[data-variant="fan"] .hero-title .w { display: inline-block; color: inherit; }
.hero[data-variant="fan"] .hero-stage { height: calc(var(--fan-w) * 19.5 / 9 + 150px); margin-top: 8px; perspective: none; }
.hero[data-variant="fan"] .device { display: none; }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan-stack { position: relative; width: var(--fan-w); aspect-ratio: 9 / 19.5; }
.fan-card {
  position: absolute; inset: 0; z-index: var(--z);
  border-radius: calc(var(--fan-w) * .16); overflow: hidden; background: #111;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -12px rgba(10, 10, 30, .45), 0 4px 10px rgba(10, 10, 30, .12);
  transform: translate(calc(var(--k) * var(--spread)), calc(var(--k) * var(--k) * var(--drop))) rotate(calc(var(--k) * var(--turn)));
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
/* MacBook: appears as the fan collapses; the phone then moves onto its bottom-right corner */
.fan-mac {
  --mac-w: min(calc(var(--fan-w) * 4.3), 84vw);
  --mac-shift: calc(var(--mac-w) * .05);
  position: absolute; left: 50%; top: 50%; width: var(--mac-w); z-index: 0;
  transform: translate(calc(-50% - var(--mac-shift)), -50%);
}
.hero[data-variant="fan"].fan-play .fan-mac { opacity: 0; }
.fan-mac-screen {
  --b: calc(var(--mac-w) * .022);
  width: 88%; margin: 0 auto; aspect-ratio: 16 / 10.4; padding: var(--b) var(--b) calc(var(--b) * 1.4);
  background: #0d0d0f; border-radius: calc(var(--mac-w) * .03) calc(var(--mac-w) * .03) 4px 4px;
  box-shadow: 0 0 0 1.5px #b9bcc4, 0 30px 60px -24px rgba(10, 10, 30, .35);
  position: relative;
}
.fan-mac-screen::before { /* camera notch */
  content: ""; position: absolute; left: 50%; top: 0; width: 9%; height: calc(var(--b) * 1.3); transform: translateX(-50%);
  background: #0d0d0f; border-radius: 0 0 6px 6px; z-index: 2;
}
.fan-mac-screen .scr { border-radius: 3px; }
.fan-mac-base {
  height: calc(var(--mac-w) * .028); border-radius: 2px 2px 14px 14px / 2px 2px 100% 100%;
  background: linear-gradient(180deg, #e4e5ea 0%, #c9cbd2 60%, #a9acb4 100%);
  box-shadow: 0 14px 24px -12px rgba(10, 10, 30, .45);
  position: relative;
}
.fan-mac-base::before { /* thumb notch */
  content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 40%; transform: translateX(-50%);
  background: #b4b7bf; border-radius: 0 0 8px 8px;
}
.fan-stack { z-index: 1; }
/* screens hold stacked images so the loop can crossfade them */
.scr { position: relative; width: 100%; height: 100%; overflow: hidden; }
.scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
/* after the intro only the phone is left */
.hero.fan-done .fan-card:not(.is-phone) { display: none; }

/* middle card: the iPhone frame from the store mockups (black bezel, silver edge, Dynamic Island) */
.fan-card.is-phone {
  --u: calc(var(--fan-w) / 340);
  padding: calc(var(--u) * 12); background: #0d0d0f; border-radius: calc(var(--u) * 58);
  box-shadow: 0 0 0 calc(var(--u) * 4) #b9bcc4, 0 22px 44px -12px rgba(10, 10, 30, .5), 0 4px 10px rgba(10, 10, 30, .14);
}
.fan-card.is-phone .scr { border-radius: calc(var(--u) * 46); }
.fan-card.is-phone::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--u) * 26); width: calc(var(--u) * 96); height: calc(var(--u) * 28);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.hero[data-variant="fan"] .hero-cta { margin-top: 14px; }
/* before the intro plays, keep everything that animates in hidden (no flash of the final layout) */
.hero[data-variant="fan"]:not(.fan-play):not(.fan-done) .hero-eyebrow,
.hero[data-variant="fan"]:not(.fan-play):not(.fan-done) .hero-title,
.hero[data-variant="fan"]:not(.fan-play):not(.fan-done) .fan,
.hero[data-variant="fan"]:not(.fan-play):not(.fan-done) .hero-sub,
.hero[data-variant="fan"]:not(.fan-play):not(.fan-done) .hero-cta { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .hero[data-variant="fan"] .hero-eyebrow, .hero[data-variant="fan"] .hero-title, .hero[data-variant="fan"] .fan, .hero[data-variant="fan"] .hero-sub, .hero[data-variant="fan"] .hero-cta { visibility: visible !important; }
}
@media (max-width: 720px) {
  .hero[data-variant="fan"] { --fan-w: 92px; --spread: 41px; --drop: 4px; --turn: 6.5deg; padding: 28px 0 36px; }
  .hero[data-variant="fan"] .hero-title { font-size: 32px; }
  .hero[data-variant="fan"] .hero-stage { margin-top: 30px; height: calc(var(--fan-w) * 19.5 / 9 + 60px); }
}

/* ================= Product page on phones =================
   Buy buttons sit right under the title and price (above the fold); details follow.
   A slim bar with the price and "Buy now" slides up once the buttons scroll out of view. */
.buy-bar { display: none; }
@media (max-width: 720px) {
  .product { gap: 16px; padding: 16px 0 40px; }
  /* a little shorter than square: trims empty backdrop above the mockups */
  .product-media { border-radius: 16px; aspect-ratio: 5 / 4; max-height: 46svh; margin: 0 auto; }
  .product-media img, .product-media .cycle img { object-position: 50% 75%; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 8px; }
  .thumbs .thumb { border-radius: 8px; }
  .product-info { display: flex; flex-direction: column; }
  .product-info .crumbs { display: none; }
  .product-info h1 { font-size: 26px; margin: 0 0 4px; order: 1; }
  .product-info .price { font-size: 19px; margin: 0 0 14px; order: 2; }
  .product-info .buy-row { order: 3; grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info .buy-row .btn { height: 48px; padding: 0 12px; }
  .product-info .buy-row .error { grid-column: 1 / -1; margin: 0; }
  .product-info .buy-row .error:empty { display: none; }
  .product-info .trust-badges { order: 4; margin: 12px 0 14px; }
  .trust-badges li { padding: 10px 4px; font-size: 12px; }
  .product-info .upsell { order: 5; margin: 0 0 22px; padding: 12px 12px 12px 16px; }
  .upsell-imgs { display: none; }
  .product-info .desc { order: 6; margin-bottom: 18px; }
  .product-info .includes { order: 7; margin-bottom: 0; }
  .buy-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .buy-bar.show { transform: none; }
  .buy-bar-info { flex: 1; min-width: 0; line-height: 1.25; }
  .buy-bar-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .price { margin: 0; font-size: 16px; }
  .buy-bar .btn { height: 44px; padding: 0 22px; flex: none; }
}
