/* Recurra homepage (1.7): cinematic scroll, Remi orb, 3D phone.
   Loaded after /style.css, which still provides nav, footer, buttons,
   calculator, pricing and FAQ for every page. Everything animated here moves
   only transform and opacity, so it stays on the compositor. */

.home {
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  background: #07070d;
}
.home main { position: relative; z-index: 1; }

/* The Remi orb: one fixed WebGL canvas behind everything. */
#orb {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; display: block;
}
/* No WebGL, or Reduce Motion before the script decides: a CSS orb in the hero. */
.orb-fallback {
  display: none; position: absolute; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), transparent 32%),
    radial-gradient(circle at 60% 65%, #4d8dff, transparent 60%),
    radial-gradient(circle at 40% 40%, #b48cff, #6a4dff 55%, #3a2bd8 100%);
  box-shadow: 0 0 120px 30px rgba(120, 90, 255, .35);
}
.no-webgl .orb-fallback { display: block; }
.orb-fallback { right: 4%; top: 50%; width: min(34vw, 420px); aspect-ratio: 1; transform: translateY(-50%); }
.hero-spacer { display: none; }
.no-webgl #orb { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero .wrap { width: 100%; position: relative; }
.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,244,250,.7);
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #b48cff; box-shadow: 0 0 12px #b48cff; }
.hero h1.seo { font-size: 15px; font-weight: 600; color: rgba(244,244,250,.55); margin: 26px 0 12px; letter-spacing: .01em; }
.display {
  font-family: var(--display);
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: .96; letter-spacing: -.045em; font-weight: 700;
  margin: 0;
}
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.4s var(--ease-lux) forwards; }
.display .line:nth-child(2) > span { animation-delay: .12s; }
.display .accent {
  background: linear-gradient(100deg, #c9b6ff 0%, #8c73ff 40%, #4d8dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1.2s var(--ease-lux) forwards; }
.fade-up.d1 { animation-delay: .35s; } .fade-up.d2 { animation-delay: .5s; } .fade-up.d3 { animation-delay: .65s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(244,244,250,.68); margin: 28px 0 34px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lux { padding: 15px 26px; border-radius: 16px; font-size: 16px; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: rgba(244,244,250,.55); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.22);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: rgba(255,255,255,.6); animation: cue 2.2s var(--ease-lux) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Story: pinned 3D phone ---------- */
.story { position: relative; height: 520vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.captions { position: relative; height: 340px; }
.caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; will-change: transform, opacity;
}
.caption .num { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: #b48cff; margin-bottom: 18px; }
.caption h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-bottom: 18px; }
.caption p { font-size: 18px; line-height: 1.55; color: rgba(244,244,250,.66); max-width: 440px; }
.caption .pro-tag {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff;
  padding: 3px 8px; border-radius: 999px; background: linear-gradient(120deg, #6a4dff, #4d8dff);
}
.stage { position: relative; height: 100%; display: grid; place-items: center; perspective: 1700px; }
.device {
  /* Fits the screen both ways: 2.174 is the phone's height-to-width ratio. */
  --w: min(310px, 30vw, calc((100vh - 150px) / 2.174));
  width: var(--w);
  position: relative; transform-style: preserve-3d; will-change: transform;
}
.device .body {
  position: relative; border-radius: calc(var(--w) * .16);
  background: linear-gradient(145deg, #2b2b36, #0c0c12 40%, #1b1b24);
  padding: calc(var(--w) * .032);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.16),
    inset 0 0 0 4px #050508,
    0 50px 120px -20px rgba(0,0,0,.75),
    0 0 90px rgba(120,90,255,.18);
  overflow: hidden; /* keeps the moving glare inside the frame */
}
/* The screen takes the screenshots' exact proportions, so nothing is cropped;
   the frame wraps around it. */
.device .device-screen {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622; overflow: hidden;
  border-radius: calc(var(--w) * .13); background: #0b0b12;
}
.device .device-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: opacity, transform;
}
.device .device-screen img:first-child { opacity: 1; }
.device .island {
  position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.4%;
  transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 2;
}
.device .glare {
  position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 45%, transparent 60%);
  transform: translateX(var(--glare, 0%)); mix-blend-mode: screen;
}
.progress {
  position: absolute; left: 24px; bottom: 36px; display: flex; gap: 8px;
}
.progress i { display: block; width: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.progress i b { position: absolute; inset: 0; background: #b48cff; transform-origin: left; transform: scaleX(0); }

/* ---------- Moods ---------- */
.moods { position: relative; height: 340vh; }
.moods-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 9vh; text-align: center;
}
.moods-title {
  position: absolute; top: 12vh; left: 0; right: 0; padding: 0 24px;
  font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; font-weight: 700; line-height: 1.05;
}
.moods-title span { color: rgba(244,244,250,.45); }
.mood-lines { position: relative; height: 120px; width: min(640px, 92vw); }
.mood-line { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.mood-line .tag { font-size: 13px; font-weight: 800; letter-spacing: .2em; margin-bottom: 12px; }
.mood-line p { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: rgba(244,244,250,.82); }
.mood-line.calm .tag { color: #b48cff; } .mood-line.attention .tag { color: #ffa04d; } .mood-line.celebrating .tag { color: #3ddb8b; }
.mood-dots { display: flex; gap: 10px; margin-top: 26px; }
.mood-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .5s, transform .5s var(--ease-lux); }
.mood-dots i.on { transform: scale(1.35); }
.mood-dots i.on.calm { background: #b48cff; } .mood-dots i.on.attention { background: #ffa04d; } .mood-dots i.on.celebrating { background: #3ddb8b; }

/* ---------- Section heads & reveals ---------- */
.lux-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.lux-head .eyebrow-text { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: #b48cff; text-transform: uppercase; }
.lux-head h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.035em; line-height: 1.04; margin: 16px 0 16px; font-weight: 700; }
.lux-head p { font-size: 18px; color: rgba(244,244,250,.62); line-height: 1.55; }
.home .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux); }
.home .reveal.in { opacity: 1; transform: none; }
.home .stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Features ---------- */
.lux-section { padding: 140px 0; position: relative; }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  transform-style: preserve-3d;
}
.tile.wide { grid-column: span 3; }
.tile .t-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(140,115,255,.14); color: #c9b6ff;
}
.tile .t-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; letter-spacing: -.015em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile p { color: rgba(244,244,250,.62); line-height: 1.55; font-size: 15.5px; }
.tile .feat-link a { color: #b48cff; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.tile .feat-link { margin-top: 14px; }
.tile .badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(120deg, #6a4dff, #4d8dff); color: #fff;
}
.tile .badge.soon { background: rgba(255,255,255,.1); color: rgba(244,244,250,.7); }
.tile::before { /* pointer-follow sheen, desktop only */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(180,140,255,.14), transparent 60%);
  transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }

/* ---------- Everywhere: horizontal pinned track ---------- */
.everywhere { position: relative; height: 300vh; }
.everywhere-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.everywhere .lux-head { margin-bottom: 44px; padding: 0 24px; }
.track { display: flex; gap: 20px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); will-change: transform; }
.card {
  flex: 0 0 auto; width: min(380px, 78vw); min-height: 360px; padding: 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card h3 { font-size: 24px; letter-spacing: -.02em; margin: 22px 0 10px; }
.card p { color: rgba(244,244,250,.62); line-height: 1.55; font-size: 15.5px; }
.card .viz { height: 150px; border-radius: 20px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.05); overflow: hidden; }

/* Small mock visuals inside the cards */
.w-widget { width: 132px; height: 132px; border-radius: 28px; padding: 14px; background: #15151f; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; justify-content: space-between; }
.w-widget .lbl { font-size: 9px; letter-spacing: .12em; color: rgba(244,244,250,.45); font-weight: 700; }
.w-widget .app { width: 28px; height: 28px; border-radius: 8px; background: #1DB954; display: grid; place-items: center; color: #fff; font-size: 14px; }
.w-widget b { font-size: 14px; } .w-widget small { color: #ffa04d; font-size: 11px; font-weight: 600; }
.w-island { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #000; border: 1px solid rgba(255,255,255,.08); font-size: 13px; font-weight: 600; }
.w-island .ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ffa04d; border-right-color: transparent; }
.w-siri { max-width: 240px; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: linear-gradient(120deg, #6a4dff, #4d8dff); font-size: 14px; font-weight: 600; }
.w-snap { width: 120px; height: 120px; border-radius: 22px; border: 2px dashed rgba(180,140,255,.5); display: grid; place-items: center; color: #c9b6ff; font-size: 34px; }
.w-duo { display: flex; gap: 4px; }
.w-duo span { width: 64px; height: 110px; border-radius: 12px; background: linear-gradient(160deg, #2a2a38, #12121a); border: 1px solid rgba(255,255,255,.1); }
.w-duo span:first-child { background: linear-gradient(160deg, #6a4dff, #3a2bd8); }

/* ---------- Final CTA ---------- */
.finale { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px; }
.finale h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.045em; line-height: .98; font-weight: 700; margin-bottom: 26px; }
.finale p { font-size: 19px; color: rgba(244,244,250,.66); max-width: 560px; margin: 0 auto 34px; line-height: 1.55; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding: 100px 0 64px; }
  .hero-copy { max-width: none; }
  .hero .hero-spacer { display: block; height: 36vh; height: 36svh; }
  .orb-fallback { left: 50%; right: auto; top: 0; width: min(62vw, 34vh); transform: translateX(-50%); }
  .story { height: 460vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 72px 20px 24px; }
  .stage { order: -1; }
  .device { --w: min(232px, 52vw, calc((100svh - 330px) / 2.174)); }
  .captions { height: 210px; }
  .caption h2 { font-size: 32px; margin-bottom: 10px; }
  .caption p { font-size: 16px; }
  .caption .num { margin-bottom: 10px; }
  .progress { left: 50%; transform: translateX(-50%); bottom: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; padding: 26px; }
  .lux-section { padding: 100px 0; }
  /* Touch: no pinning, a native swipe carousel instead. */
  .everywhere { height: auto; padding: 100px 0; }
  .everywhere-sticky { position: static; height: auto; }
  .track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; transform: none !important; }
  .track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
}

/* ---------- Reduce Motion: a calm, static page ---------- */
@media (prefers-reduced-motion: reduce) {
  .display .line > span, .fade-up { animation: none; transform: none; opacity: 1; }
  .home .reveal { opacity: 1; transform: none; transition: none; }
  .story, .moods, .everywhere { height: auto; }
  .story-sticky, .moods-sticky, .everywhere-sticky { position: static; height: auto; padding-top: 80px; padding-bottom: 80px; }
  .caption, .mood-line { position: static; opacity: 1; margin-bottom: 36px; }
  .captions, .mood-lines { height: auto; }
  .device .device-screen img { opacity: 0; } .device .device-screen img:first-child { opacity: 1; }
  .scroll-cue::after { animation: none; }
  .guide { transform: none !important; }
  .track { overflow-x: auto; transform: none !important; }
}

/* Even line lengths on headings: no single orphaned word. */
.home h2, .home h3, .home .display, .home .lede, .home .caption p, .home .mood-line p { text-wrap: balance; }

/* ---------- iPhone Duo: pinned 3D unfold ----------
   Built to Apple's published proportions. Open: 164.6 x 117.8 mm, landscape,
   hinge down the middle, 5.2 mm thick. Closed it is one half (84.1 x 117.8 mm)
   standing like a passport, and the cover's back is the outer display. The
   base is the left half; the cover is the right half and swings across it
   on the hinge, like a book. Every surface is a flat plane, so it's all
   compositor work. */
.duo { position: relative; height: 380vh; }
.duo-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 32px;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.duo-copy { will-change: transform, opacity; }
.duo-copy .num { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: #b48cff; margin-bottom: 18px; }
.duo-copy h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-bottom: 18px; }
.duo-copy p { font-size: 18px; line-height: 1.55; color: rgba(244,244,250,.66); max-width: 440px; }
.duo-copy .duo-more { display: inline-block; margin-top: 6px; color: #b48cff; font-weight: 600; text-decoration: none; }
.duo-copy .duo-more:hover { text-decoration: underline; }
.duo-stage { position: relative; height: 100%; display: grid; place-items: center; perspective: 2800px; }

.duo-device {
  --W: min(660px, 50vw, calc((100vh - 220px) * 1.3973));
  --H: calc(var(--W) / 1.3973);          /* 117.8 / 164.6 */
  --T: calc(var(--W) * .0316);           /* 5.2 mm of 164.6 */
  --R: calc(var(--H) * .085);            /* corner radius */
  --bez: calc(var(--H) * .022);          /* black border around the glass */
  width: var(--W); height: var(--H);
  position: relative; transform-style: preserve-3d; transform-origin: 25% 50%;
  will-change: transform;
}
.half { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.half.base { left: 0; }
/* Hinge a hair in front of the base so the closed halves never z-fight. */
.half.cover { left: 50%; transform-origin: 0 50% 1px; will-change: transform; }

/* Screen side of each half. */
.slab {
  position: absolute; inset: 0; padding: var(--bez); background: #050507;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(200,200,210,.4);
}
.base .slab { border-radius: var(--R) 0 0 var(--R); padding-right: 0; }
.cover .slab { border-radius: 0 var(--R) var(--R) 0; padding-left: 0; }
.glass { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.base .glass.inner { border-radius: calc(var(--R) - var(--bez)) 0 0 calc(var(--R) - var(--bez)); }
.cover .glass.inner { border-radius: 0 calc(var(--R) - var(--bez)) calc(var(--R) - var(--bez)) 0; }
/* One landscape screenshot across both halves: each half shows its own half. */
.glass.inner img { position: absolute; top: 0; width: 200%; height: 100%; max-width: none; object-fit: cover; }
.base .glass.inner img { left: 0; }
.cover .glass.inner img { left: -100%; }
.glass.inner img.b { opacity: 0; }
/* The crease: a faint line down the hinge. */
.base .slab::after {
  content: ""; position: absolute; top: var(--bez); bottom: var(--bez); right: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.12) 20%, rgba(255,255,255,.12) 80%, transparent);
}

/* Glass: what makes a screenshot read as a lit display under glass rather
   than a picture on top. An inner edge falloff where the panel meets the
   bezel, and a soft reflection that slides as the device turns (--gx is
   set from the scroll, so only a transform changes). */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 calc(var(--bez) * 1.6) rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.6);
}
.glass::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 220%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.07) 42%, rgba(255,255,255,.13) 47%, rgba(255,255,255,.04) 53%, transparent 64%);
  transform: translate3d(var(--gx, 0%), 0, 0);
}
.glass img { filter: saturate(1.04); }
/* Slab edge: polished titanium band around the black border. */
.slab { box-shadow: inset 0 0 0 1px rgba(230,226,220,.55), inset 0 0 0 2px rgba(40,38,36,.9); }

/* Back of each half, one thickness behind the screen. */
.back {
  position: absolute; inset: 0; transform: translateZ(calc(var(--T) * -1)) rotateY(180deg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(160deg, #5e5a55, #34322f 55%, #4a4743);   /* titanium */
}
.base .back { border-radius: 0 var(--R) var(--R) 0; }   /* mirrored by rotateY */
.cover .back { border-radius: var(--R) calc(var(--R) * .6) calc(var(--R) * .6) var(--R); }
/* The hinge spine, seen on the closed device's right edge: a rounded
   titanium band the full closed thickness. Hidden between the halves once
   it's open. */
.spine {
  position: absolute; left: 100%; top: calc(var(--R) * .25); height: calc(100% - var(--R) * .5); width: calc(var(--T) * 2 + 2px);
  border-radius: var(--T); transform-origin: 0 50%; transform: translateZ(calc(var(--T) + 1px)) rotateY(90deg);
  background: linear-gradient(90deg, #8d8984, #ece9e4 30%, #a29e98 55%, #4d4a46 85%, #77736e);
  will-change: opacity;
}
/* The cover's back is the outer display, seen while the Duo is closed. */
.back.outer { padding: var(--bez); background: #050507; box-shadow: inset 0 0 0 1px rgba(200,200,210,.4); }
.back.outer .glass { border-radius: calc(var(--R) - var(--bez)) calc(var(--R) * .6 - var(--bez)) calc(var(--R) * .6 - var(--bez)) calc(var(--R) - var(--bez)); }
.back.outer .ui { position: absolute; inset: 0; }
.back.outer .ui img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam {
  position: absolute; top: 3%; right: 6%; width: 5.5%; aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, #2a3550, #000 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.cover .glass.inner .cam { top: 2.2%; right: 4.5%; width: 3.6%; }
/* Where the camera sits in the outer-display capture, above the side bar. */
.back.outer .cam { top: 2.2%; right: 6.2%; width: 8%; }

/* Which face of the cover is showing is switched explicitly as it passes
   90°: backface-visibility alone isn't reliable in Chrome once a screenshot
   inside gets its own GPU layer, and the inner screen showed through
   mirrored. */
.cover.flipped .slab, .cover.flipped .shade { visibility: hidden; }
.cover:not(.flipped) .back { visibility: hidden; }

/* Polished titanium edges: the real thickness, visible as it turns. */
.side { position: absolute; display: block; background: linear-gradient(90deg, #e9e6e1, #8d8984 40%, #4d4a46 55%, #cfcbc5); }
.side.t, .side.b { height: var(--T); transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(180deg, #e9e6e1, #8d8984 40%, #4d4a46 55%, #cfcbc5); }
.side.t { top: 0; } .side.b { top: 100%; }
.base .side.t, .base .side.b { left: var(--R); width: calc(100% - var(--R)); }
.cover .side.t, .cover .side.b { left: 0; width: calc(100% - var(--R)); }
.side.l, .side.r { width: var(--T); top: var(--R); height: calc(100% - var(--R) * 2); transform-origin: 0 50%; transform: rotateY(90deg); }
.side.l { left: 0; } .side.r { left: 100%; }

/* Lighting: each half darkens as it turns away from the light. */
.half .shade {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(.5px);
}
.base .shade { border-radius: var(--R) 0 0 var(--R); background: linear-gradient(270deg, rgba(0,0,0,.5), transparent 70%); }
.cover .shade { border-radius: 0 var(--R) var(--R) 0; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.25)); }
.duo-floor {
  position: absolute; left: 50%; bottom: 8%; width: min(680px, 70vw); height: 60px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(120,90,255,.26), transparent 70%);
  filter: blur(8px); pointer-events: none; opacity: var(--floor, .5);
}

@media (max-width: 860px) {
  .duo { height: 340vh; }
  .duo-sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 76px 20px 40px; gap: 8px; }
  .duo-stage { order: -1; }
  .duo-device { --W: min(92vw, calc((100svh - 400px) * 1.3973)); }
  .duo-copy h2 { font-size: 32px; margin-bottom: 10px; }
  .duo-copy p { font-size: 16px; }
  .duo-copy .num { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .duo { height: auto; }
  .duo-sticky { position: static; height: auto; padding-top: 80px; padding-bottom: 80px; }
  .half.cover, .duo-device { transform: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }



/* Free guides: plain internal links to the content pages. */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1040px; margin: 0 auto; }
.guide {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px;
  background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--card-border, rgba(255,255,255,.08));
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
.guide b { font-size: 16px; color: var(--text, #f4f4fa); }
.guide span { font-size: 14px; line-height: 1.5; color: var(--text-2, rgba(244,244,250,.66)); }
@media (hover: hover) { .guide:hover { border-color: rgba(167,139,250,.5); transform: translateY(-2px); } }
@media (max-width: 860px) { .guides-grid { grid-template-columns: 1fr; } }

/* Desktop only: a QR code that opens the App Store on the visitor's iPhone. */
.qr-get { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .qr-get { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 26px; }
  .qr-get img { width: 104px; height: 104px; padding: 8px; border-radius: 14px; background: #fff; }
  .qr-get span { max-width: 170px; text-align: left; font-size: 14px; line-height: 1.45; color: var(--text-2, rgba(244,244,250,.66)); }
}
