/* ==========================================================================
   Loopaper — landing site
   Design language: cinematic dark + glassmorphism + brand pink→purple aurora.
   Display voice: Outfit (matches the app). Text voice: Apple system font.
   All motion is transform/opacity only and gated on prefers-reduced-motion.
   ========================================================================== */

/* ---- Fonts (subset WOFF2, ~12KB each; non-blocking via swap) ------------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Outfit-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Outfit-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Outfit-Bold.woff2') format('woff2');
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand — pulled straight from the app icon + hero loop */
  --pink: #f2a8ce;
  --pink-bright: #ffb3da;
  --purple: #9a6fd8;
  --purple-deep: #6a4fb2;
  --indigo: #5b4aa8;
  --grad-brand: linear-gradient(135deg, #f4abcb 0%, #c98be8 46%, #8b6ad6 100%);
  --grad-brand-soft: linear-gradient(135deg, #f4abcb33 0%, #8b6ad633 100%);

  /* cozy warmth — the lake's lantern amber. Used sparingly against the cool brand so the
     palette reads warm-by-the-fire, not cold-tech. Carries "alive", a few hovers, the price. */
  --warm: #f4a96a;
  --warm-bright: #ffc48b;
  --warm-glow: rgba(244, 169, 106, 0.42);

  /* Cinematic dark surfaces (no pure black — subtle plum cast) */
  --bg: #0a0711;
  --bg-2: #0c0916;
  --elevated: #14101f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f5f2fb;
  --text-muted: #c3bdd4;
  --text-dim: #948cab;
  --on-brand: #ffffff;
  --accent: #e7a6e0;          /* links / inline accents — AA on dark */

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Spacing scale (4/8 based) */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem;  --s6: 1.5rem;  --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;    --s16: 4rem;   --s20: 5rem;   --s24: 6rem;  --s32: 8rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 18px 50px -12px rgba(0,0,0,0.65);
  --shadow-lg: 0 50px 120px -30px rgba(0,0,0,0.8);
  --glow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 70px -20px rgba(139, 106, 214, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --t-slow: 420ms;

  /* Type */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Fluid type scale */
  --fs-hero: clamp(2.65rem, 1.4rem + 5.4vw, 5.3rem);
  --fs-h2:   clamp(2rem, 1.2rem + 2.7vw, 3.25rem);
  --fs-h3:   clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
  --fs-lead: clamp(1.075rem, 0.98rem + 0.5vw, 1.32rem);
  --fs-body: 1.0625rem;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* z-index scale */
  --z-bg: 0; --z-base: 1; --z-raise: 5; --z-nav: 100; --z-overlay: 200;

  --header-h: 64px;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: rgba(201, 139, 232, 0.35); color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--elevated); color: var(--text); padding: 0.7rem 1.1rem; border: 1px solid var(--border-strong); border-radius: 0 0 12px 0; font-weight: 600; }
.skip:focus { left: 0; }
.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; }
.center { text-align: center; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;   /* even line lengths on headings */
}
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; text-wrap: pretty; }
p { color: var(--text-muted); text-wrap: pretty; }   /* fewer orphans in prose */
strong { color: var(--text); font-weight: 600; }
/* the one "lit" word — a solid warm color with a soft lantern glow (not gradient text). */
.glow-word { color: var(--warm-bright); text-shadow: 0 0 36px var(--warm-glow); }
.mono { font-family: var(--font-mono); }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
/* warm, lowercase, friendly — not the uppercase-tracked AI eyebrow. Used on a FEW sections
   only (most lead with the heading), so it never becomes section grammar. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  text-transform: none;
  color: var(--warm-bright);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm); box-shadow: 0 0 10px var(--warm-glow);
}
.section-head.center .eyebrow::before { display: none; }
.section-head .lead { margin-top: var(--s4); }

/* ---- Badge / pill -------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #58d6a0; box-shadow: 0 0 10px #58d6a0;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-py: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: var(--btn-py) 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), border-color var(--t) var(--ease), filter var(--t) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad-brand); color: var(--on-brand);
  box-shadow: 0 10px 30px -8px rgba(154, 111, 216, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06) saturate(1.05); box-shadow: 0 18px 44px -10px rgba(154,111,216,0.75), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.26); transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Glass card ---------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  overflow: hidden;
}
.card::before { /* subtle top sheen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0.5;
}

/* =====================  NAV  ============================================== */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 7, 17, 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px -4px rgba(154,111,216,0.7); }
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.94rem; color: var(--text-muted); font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__right { display: flex; align-items: center; gap: 0.65rem; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav__toggle span { position: relative; width: 19px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 19px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menu { display: none; }   /* hidden on desktop; the ≤880 query turns it into the mobile sheet */

/* =====================  HERO  ============================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__inner { position: relative; z-index: var(--z-base); display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
/* Grid/flex children default to min-width:auto, so the device's min(100%,980px) width
   blows the track past a narrow viewport. Pin them to 0 so the track tracks the container. */
.hero__inner > *, .displays > *, .power > * { min-width: 0; }
.scene, .mini-monitors { max-width: 100%; }
.hero__copy { max-width: 40rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.02; margin: var(--s5) 0 var(--s5); }
.hero__sub { font-size: var(--fs-lead); color: var(--text-muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--s8); }
.hero__note { margin-top: var(--s5); font-size: 0.9rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hero__note .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* ---- Aurora background --------------------------------------------------- */
.aurora { position: absolute; inset: -10% -10% auto -10%; height: 130%; z-index: var(--z-bg); pointer-events: none; overflow: hidden; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.55; will-change: transform; }
.aurora__blob.b1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: radial-gradient(circle at 30% 30%, #f4abcb, transparent 65%); animation: drift1 26s var(--ease-io) infinite alternate; }
.aurora__blob.b2 { width: 50vw; height: 50vw; right: -12vw; top: -6vw; background: radial-gradient(circle at 60% 40%, #8b6ad6, transparent 65%); opacity: 0.5; animation: drift2 32s var(--ease-io) infinite alternate; }
/* one warm blob: a little firelight in the cool dusk (cozy, not cold) */
.aurora__blob.b3 { width: 40vw; height: 40vw; left: 34vw; top: 22vw; background: radial-gradient(circle at 50% 50%, #f4a96a, transparent 62%); opacity: 0.2; animation: drift3 38s var(--ease-io) infinite alternate; }
.aurora::after { /* fade into page bg toward the bottom */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--bg) 92%);
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 8vw, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(5vw, -5vw, 0) scale(1.2); } }

/* grain overlay (very subtle, masks gradient banding) */
/* plain (non-blend) overlay: mix-blend-mode forces a full-screen re-blend every frame the
   parallax moves, which stutters the tilt. A faint static layer is just as nice and free. */
.grain { position: fixed; inset: 0; z-index: var(--z-overlay); pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Hero 3D stage ------------------------------------------------------- */
.hero__stage { position: relative; z-index: var(--z-base); display: flex; justify-content: center; perspective: 1400px; perspective-origin: 50% 40%; }
.scene { position: relative; width: min(100%, 980px); transform-style: preserve-3d; }
.device {
  position: relative; transform-style: preserve-3d;
  /* parallax tilt — driven by a rAF lerp in JS (no CSS transition: a transition here would
     fight the per-frame updates and cause the "chopping"). The float is a separate property. */
  transform: rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 6deg));
  animation: float 9s ease-in-out infinite;
  will-change: transform; backface-visibility: hidden;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.device__frame {
  position: relative; border-radius: 20px; padding: 10px;
  background: linear-gradient(160deg, #2a2438, #14101f 60%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--glow);
}
.device__screen { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0a0711 url('../img/scene-poster.jpg') center / cover no-repeat; }
.device__screen video, .device__screen img.wp { width: 100%; height: 100%; object-fit: cover; }
.device__glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.18), transparent 30%, transparent 70%, rgba(255,255,255,0.06)); pointer-events: none; mix-blend-mode: screen; }
.device__stand { width: 26%; height: 16px; margin: 0 auto; background: linear-gradient(180deg, #211b30, #100c1a); border-radius: 0 0 10px 10px; box-shadow: 0 30px 50px -20px rgba(0,0,0,0.8); }
.device__foot { width: 38%; height: 7px; margin: 0 auto; background: #0c0915; border-radius: 10px; }

/* fake desktop chrome layered on the screen */
.desktop { position: absolute; inset: 0; transform: translateZ(40px); pointer-events: none; }
.desktop__menubar { position: absolute; top: 0; left: 0; right: 0; height: 6.5%; min-height: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 2.5%; background: rgba(20,16,28,0.42); backdrop-filter: blur(8px); font-size: clamp(7px, 1vw, 11px); color: #fff; font-family: var(--font-text); }
.desktop__menubar .left { display: flex; gap: 1rem; align-items: center; font-weight: 600; }
.desktop__menubar .right { display: flex; gap: 0.7rem; align-items: center; opacity: 0.92; }
.desktop__menubar .loop-ico { width: 13px; height: 13px; border-radius: 3px; background: var(--grad-brand); box-shadow: 0 0 8px rgba(201,139,232,0.8); }
.desktop__dock { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); display: flex; gap: 2.2%; padding: 1.1% 1.6%; border-radius: 14px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(12px); }
.desktop__dock i { display: block; width: clamp(16px, 3vw, 30px); aspect-ratio: 1; border-radius: 22%; }
.desktop__dock i:nth-child(1){ background: linear-gradient(160deg,#62b8ff,#2b6cf6); }
.desktop__dock i:nth-child(2){ background: linear-gradient(160deg,#7be0a0,#21a86a); }
.desktop__dock i:nth-child(3){ background: var(--grad-brand); box-shadow: 0 0 14px rgba(201,139,232,0.7); }
.desktop__dock i:nth-child(4){ background: linear-gradient(160deg,#ffd66b,#f5a623); }
.desktop__dock i:nth-child(5){ background: linear-gradient(160deg,#ff8fae,#ec4f7d); }

/* floating parallax chips */
.chip {
  position: absolute; z-index: var(--z-raise);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; border-radius: var(--r-pill);
  background: rgba(20,16,30,0.66); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 600; font-family: var(--font-display); color: var(--text);
  white-space: nowrap; will-change: transform; backface-visibility: hidden;
}
.chip svg { width: 16px; height: 16px; color: var(--pink-bright); }
.chip.c1 { top: 8%; left: -3%; --depth: 60; animation: float 7s ease-in-out infinite; }
.chip.c2 { top: 38%; right: -5%; --depth: 90; animation: float 8.5s ease-in-out infinite reverse; }
.chip.c3 { bottom: 9%; left: 4%; --depth: 75; animation: float 7.8s ease-in-out infinite 0.4s; }
.scene { transform: translate3d(calc(var(--mx,0) * 6px), calc(var(--my,0) * 6px), 0); }
.chip { transform: translate3d(calc(var(--mx,0) * (var(--depth,50) * -0.28px)), calc(var(--my,0) * (var(--depth,50) * -0.28px)), 0); }

/* =====================  MARQUEE  ========================================= */
.marquee { border-block: 1px solid var(--border); padding-block: var(--s5); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scrollx 34s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--text-dim); display: inline-flex; align-items: center; gap: 1.4rem; }
.marquee__track span::after { content: "✳"; color: var(--purple); font-size: 0.8em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* =====================  FEATURES (bento)  ================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.9rem, 1.6vw, 1.25rem); }
.feature { grid-column: span 2; }
.feature--wide { grid-column: span 3; }
.feature--tall { grid-column: span 3; }
.feature__icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--pink-bright); margin-bottom: var(--s4); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: var(--s2); }
.feature p { font-size: 0.96rem; color: var(--text-muted); }
.feature__media { margin: -0.4rem -0.4rem 1rem; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid var(--border); }
.feature__media video, .feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* =====================  HOW IT WORKS  ==================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: var(--s6); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: var(--s4); }
.step h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: var(--s2); }
.step p { font-size: 0.98rem; }

/* =====================  DISPLAYS showcase  =============================== */
.displays { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.displays__stage { position: relative; perspective: 1400px; }
.mini-monitors { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.6rem, 2vw, 1.4rem); transform: rotateY(-12deg) rotateX(4deg); transform-style: preserve-3d; }
.mini { flex: 1; max-width: 60%; }
.mini--front { transform: translateZ(60px); }
.mini__screen { border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; border: 2px solid #221c30; box-shadow: var(--shadow); background:#000; }
.mini__screen video, .mini__screen img { width:100%; height:100%; object-fit: cover; }
.mini__base { width: 30%; height: 10px; margin: 0 auto; background: linear-gradient(180deg,#211b30,#100c1a); border-radius: 0 0 6px 6px; }

/* =====================  COMPARISON  ===================================== */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.compare th, .compare td { padding: 1rem 1.15rem; text-align: left; font-size: 0.98rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare thead th { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 0.95rem; }
.compare thead .col-loop { color: var(--pink-bright); }
.compare tbody td:first-child { color: var(--text-muted); font-weight: 500; }
.compare .col-loop { background: linear-gradient(180deg, rgba(201,139,232,0.10), rgba(201,139,232,0.04)); color: var(--text); font-weight: 500; }
.compare tr:last-child td { border-bottom: none; }
.compare .ic { display: inline-flex; vertical-align: -3px; margin-right: 0.45rem; }
.compare .ic--no { color: #ff7a90; }
.compare .ic--yes { color: #5fd6a0; }

/* =====================  PRIVACY  ======================================== */
.privacy { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.privacy__list { display: grid; gap: var(--s4); margin-top: var(--s6); }
.privacy__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.privacy__item .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--pink-bright); margin-top: 1px; }
.privacy__item .tick svg { width: 15px; height: 15px; }
.privacy__item p { color: var(--text-muted); }
.privacy__item strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; margin-bottom: 1px; }
.privacy__visual { display: grid; place-items: center; }
.lockcard { position: relative; width: 100%; aspect-ratio: 1; max-width: 360px; border-radius: var(--r-xl); border: 1px solid var(--border); background: radial-gradient(circle at 50% 35%, rgba(201,139,232,0.18), transparent 60%), var(--elevated); display: grid; place-items: center; overflow: hidden; }
.lockcard__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.14); animation: spin 40s linear infinite; }
.lockcard__ring.r2 { inset: 24%; border-color: rgba(255,255,255,0.1); animation-duration: 28s; animation-direction: reverse; }
.lockcard svg.shield { width: 84px; height: 84px; color: var(--pink-bright); filter: drop-shadow(0 8px 24px rgba(201,139,232,0.5)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================  PRICING / GET  ================================== */
.getcard { max-width: 560px; margin-inline: auto; text-align: center; padding: clamp(2rem, 5vw, 3.2rem); border-radius: var(--r-xl); }
.getcard .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,5vw,2.8rem); margin-block: var(--s4) var(--s2); }
.getcard .price small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.getlist { display: grid; gap: 0.7rem; text-align: left; max-width: 380px; margin: var(--s6) auto; }
.getlist li { display: flex; gap: 0.6rem; align-items: center; color: var(--text-muted); list-style: none; }
.getlist svg { width: 18px; height: 18px; color: #5fd6a0; flex: none; }
.soon-note { font-size: 0.85rem; color: var(--text-dim); margin-top: var(--s5); }

/* =====================  FAQ  ============================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.4rem 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq__q .pm { flex: none; width: 22px; height: 22px; position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.8px; background: var(--pink-bright); border-radius: 2px; transform: translate(-50%,-50%); transition: transform var(--t) var(--ease); }
.faq__q .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__item.open .pm::after { transform: translate(-50%,-50%) rotate(0); }
/* grid-template-rows 0fr→1fr animates height without layout thrash (no max-height guesswork) */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a p { overflow: hidden; min-height: 0; padding: 0 0.25rem 1.4rem; color: var(--text-muted); max-width: 64ch; }

/* =====================  FINAL CTA  ====================================== */
.finalcta { position: relative; text-align: center; border-radius: var(--r-xl); padding: clamp(3rem, 8vw, 6rem) var(--gutter); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.finalcta .aurora { position: absolute; inset: -30%; height: 160%; opacity: 0.8; }
.finalcta__inner { position: relative; z-index: var(--z-base); max-width: 40ch; margin-inline: auto; }
.finalcta h2 { font-size: var(--fs-h2); margin-bottom: var(--s5); }
.finalcta .hero__cta { justify-content: center; }

/* =====================  FOOTER  ========================================= */
.footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem,5vw,4rem) var(--s10); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: var(--s12); }
.footer__brand .brand { margin-bottom: var(--s4); }
.footer__brand p { font-size: 0.92rem; color: var(--text-dim); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--s4); font-weight: 600; }
.footer__col a { display: block; padding: 0.32rem 0; font-size: 0.95rem; color: var(--text-muted); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: var(--s6); border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-dim); }

/* =====================  LEGAL pages  ==================================== */
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s3); }
.legal__updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: var(--s10); }
.legal__intro { font-size: var(--fs-lead); color: var(--text-muted); margin-bottom: var(--s10); }
.legal h2 { font-size: 1.4rem; font-weight: 600; margin: var(--s10) 0 var(--s4); scroll-margin-top: 84px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: var(--s4); color: var(--text-muted); }
.legal ul { margin: 0 0 var(--s4) 1.1rem; color: var(--text-muted); }
.legal li { margin-bottom: var(--s2); padding-left: 0.25rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--pink-bright); }
.backlink { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-weight: 500; margin-bottom: var(--s8); font-size: 0.95rem; }
.backlink:hover { color: var(--text); }
.backlink svg { width: 16px; height: 16px; }

/* =====================  Reveal animation  =============================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================  Hero wallpaper video  =========================== */
.device__screen > video { position: absolute; inset: 0; }

/* =====================  Wallpaper band ("this is your wallpaper now")  === */
.band { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(320px, 52vh, 560px); border: 1px solid var(--border); background: #0a0711 url('../img/scene-poster.jpg') center / cover no-repeat; }
.band video, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, transparent 20%, rgba(8,6,14,0.55) 75%), linear-gradient(180deg, rgba(8,6,14,0.35), rgba(8,6,14,0.15)); }
.band__inner { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; padding: var(--gutter); z-index: 2; }
.band__inner h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); text-shadow: 0 4px 30px rgba(0,0,0,0.5); max-width: 24ch; margin-inline: auto; }
.band__inner p { color: rgba(255,255,255,0.85); margin-top: var(--s4); font-size: var(--fs-lead); max-width: 38ch; margin-inline: auto; }

/* =====================  "A look inside" — real app screenshots  ========== */
.inside-stage { position: relative; padding-block: clamp(0.5rem, 2vw, 1.5rem); }
.inside-stage::before { /* brand glow behind the hero shot (background layer, ADR-027 discipline) */
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: min(82%, 780px); aspect-ratio: 1.5; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(201,139,232,0.34), rgba(244,171,203,0.13) 46%, transparent 70%);
  filter: blur(38px);
}
.shot { position: relative; z-index: 1; margin: 0; transition: transform var(--t) var(--ease); }
.shot img { width: 100%; height: auto; display: block; }
.shot:hover { transform: translateY(-5px); }
.shot figcaption { text-align: center; margin-top: var(--s2); color: var(--text-dim); font-size: 0.9rem; font-family: var(--font-display); font-weight: 500; }
.shot--hero { max-width: 860px; margin-inline: auto; }
.shots__row { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(1.3rem, 4vw, 3rem); align-items: end; max-width: 960px; margin: clamp(1.4rem, 4vw, 3rem) auto 0; }
@media (max-width: 760px) { .shots__row { grid-template-columns: 1fr; gap: 2.5rem; max-width: 460px; } }

/* =====================  Power widget (interactive)  ===================== */
.power { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.power__chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: var(--s6); }
.pchip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: all var(--t-fast) var(--ease);
}
.pchip svg { width: 15px; height: 15px; }
.pchip:hover { color: var(--text); border-color: rgba(255,255,255,0.26); }
.pchip[aria-pressed="true"] { background: var(--grad-brand-soft); border-color: rgba(255,179,218,0.5); color: var(--text); }
.pchip[aria-pressed="true"] svg { color: var(--pink-bright); }
.power__panel { padding: clamp(1.5rem, 3vw, 2.2rem); }
.power__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.power__row .label { font-size: 0.9rem; color: var(--text-dim); }
.power__state { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.power__state .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd6a0; box-shadow: 0 0 10px #5fd6a0; transition: background var(--t), box-shadow var(--t); }
.power.is-paused .power__state .dot { background: #ffb060; box-shadow: 0 0 10px #ffb060; }
.power__state .txt-play { color: #7fe3b4; } .power__state .txt-pause { color: #ffc081; display: none; }
.power.is-paused .txt-play { display: none; } .power.is-paused .txt-pause { display: inline; }
.meter { height: 16px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); overflow: hidden; border: 1px solid var(--border); }
.meter__fill { height: 100%; width: 100%; transform: scaleX(0.64); transform-origin: left; background: var(--grad-brand); border-radius: var(--r-pill); transition: transform 600ms var(--ease); }
.power.is-paused .meter__fill { transform: scaleX(0.04); }
.power__cap { margin-top: var(--s4); font-size: 0.82rem; color: var(--text-dim); }

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

/* =====================  Responsive  ===================================== */
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.02fr 1.18fr; align-items: center; }
  .hero__copy { max-width: none; }
}
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-nav);
    display: grid; gap: 0.25rem; padding: var(--gutter);
    background: rgba(10,7,17,0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  }
  .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a { padding: 0.85rem 0.5rem; font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; border-radius: 12px; }
  .nav__menu a:hover { background: var(--surface); }
  .nav__menu .btn { display: inline-flex; margin-top: var(--s3); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--wide, .feature--tall { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .displays { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .chip { font-size: 0.78rem; padding: 0.45rem 0.7rem; }
}

/* =====================  Delight (cozy character)  ====================== */
/* cards lift toward you with a touch of warm light; feature icons warm up too */
.card { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.card:hover { transform: translateY(-3px); border-color: rgba(244, 169, 106, 0.26); box-shadow: 0 24px 54px -26px rgba(244, 169, 106, 0.4); }
.feature__icon { transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.card:hover .feature__icon { color: var(--warm-bright); border-color: rgba(244, 169, 106, 0.35); }
/* the marquee's little star, warmed */
.marquee__track span::after { color: var(--warm); }

/* =====================  Reduced motion  ================================= */
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .device { transform: none !important; }
  .scene, .chip { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; transform: none; justify-content: center; flex-wrap: wrap; }
}
