/* ==========================================================================
   Basis II — Darkroom Exhibition Stylesheet
   Aesthetic: Apple iPhone Pro Darkroom / Braun Precision Hardware Exhibition
   Palette: Deep Obsidian (#0A0A0C), Smoked Aluminum (#131316),
            Luminous Ivory (#F5F2EB), Warm Silver (#9B968D),
            Sage-Emerald Optical Accent (#8ED1A4)
   Zero external CDN dependencies. Responsive & accessible across all 3 pages.
   ========================================================================== */

:root {
  /* Core Darkroom Material Palette */
  --bg-obsidian: #0A0A0C;
  --bg-deep: #08080A;
  --bg-elevated: #131316;
  --bg-surface: #18181C;
  --bg-features-end: #101013;

  /* Ink & Luminous Hairlines */
  --ink-primary: #F5F2EB;
  --ink-secondary: #C5C0B7;
  --ink-muted: #9B968D;
  --line-subtle: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-bright: rgba(255, 255, 255, 0.24);
  --highlight-top: rgba(255, 255, 255, 0.08);

  /* Precision Optical Accents */
  --accent-sage: #8ED1A4;
  --accent-sage-bright: #C6F0D4;
  --accent-sage-soft: rgba(142, 209, 164, 0.14);
  --accent-sage-border: rgba(142, 209, 164, 0.30);
  --accent-legend: #9EDBB3;
  --accent-signal: #E06D4A;

  /* Compatibility LCD Tokens */
  --lcd-top: #B8D7BA;
  --lcd-mid: #A6CCA8;
  --lcd-bottom: #92BA95;
  --lcd-ink: #0E2B15;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  /* Radii & Elevation */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-slab:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 64px -28px rgba(0, 0, 0, 0.82),
    0 2px 8px rgba(0, 0, 0, 0.36);

  /* Layout */
  --container-max: 1120px;
  --header-h: 58px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-obsidian);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-primary);
  background-color: var(--bg-obsidian);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[data-page="privacy"],
body[data-page="support"] {
  background:
    radial-gradient(960px 440px at 50% -120px, rgba(142, 209, 164, 0.09), transparent 68%),
    linear-gradient(180deg, #0A0A0C 0%, #0E0E12 52%, #0A0A0C 100%);
}

body[data-page="privacy"] main,
body[data-page="support"] main {
  padding-top: calc(var(--header-h) + 32px);
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-legend);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 2px;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

/* ==========================================================================
   Full-Bleed Transparent Floating Header (transitions to dark frosted glass)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  min-height: var(--header-h);
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    backdrop-filter 0.32s ease;
}

body.is-scrolled .site-header {
  background-color: rgba(10, 10, 12, 0.74);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(245, 242, 235, 0.72);
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-primary);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Dark-Glass Segmented Language Toggle (中 / EN) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.1;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn:hover {
  color: var(--ink-primary);
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink-primary);
  color: var(--bg-obsidian);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Mobile Nav Row */
.mobile-nav-strip {
  display: none;
  border-top: 1px solid transparent;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.32s ease, border-color 0.32s ease;
}

body.is-scrolled .mobile-nav-strip {
  border-top-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.52);
}

.mobile-nav-strip .container {
  display: flex;
  gap: 4px;
  padding-top: 4px;
  padding-bottom: 6px;
}

/* ==========================================================================
   Shared Precision Micro-Elements
   ========================================================================== */
.spec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.spec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-signal);
  box-shadow: 0 0 10px rgba(224, 109, 74, 0.55);
  flex-shrink: 0;
}

.spec-dot--lcd {
  background: var(--accent-sage);
  box-shadow: 0 0 10px rgba(142, 209, 164, 0.65);
}

.section {
  padding: 84px 0 96px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-header {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin: 0 0 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.section-lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Full-Bleed 100vh Sticky Hero + Snappy 260vh Scroll-Scrubbed Half-Phone Showcase
   ========================================================================== */
.cinema-track {
  position: relative;
  height: 390vh;
  background: var(--bg-obsidian);
  scroll-margin-top: 0;
}

.cinema-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--bg-obsidian);
  isolation: isolate;
}

/* Layer 1: Zero-Paint GPU-Composited Studio Spotlight Halo (2 static opacity-swapping layers) */
.cinema-aura {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  contain: strict;
}

.cinema-aura-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(60% 38% at 50% -6%, var(--aura-color, rgba(142, 209, 164, 0.14)) 0%, transparent 68%),
    radial-gradient(36% 52% at 0% 52%, var(--aura-color, rgba(142, 209, 164, 0.14)) 0%, transparent 66%),
    radial-gradient(36% 52% at 100% 52%, var(--aura-color, rgba(142, 209, 164, 0.14)) 0%, transparent 66%),
    radial-gradient(48% 24% at 50% 104%, var(--aura-color, rgba(142, 209, 164, 0.14)) 0%, transparent 68%);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  transform: translateZ(0);
}

.cinema-aura-layer.is-active {
  opacity: 1;
}

/* Layer 2: Monumental Brushed-Silver Wordmark (dynamically anchored to Titanium iPhone top rail via --wm-top & --wm-size) */
.cinema-watermark {
  position: absolute;
  top: var(--wm-top, 204px);
  left: 50%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-size: var(--wm-size, clamp(5.8rem, 13.5vw, 13.2rem));
  font-weight: 840;
  line-height: 0.88;
  letter-spacing: -0.048em;
  transform: translate3d(-50%, var(--wm-y, 0px), 0);
  opacity: var(--wm-alpha, 1);
  will-change: transform, opacity;
}

.cinema-watermark-inner {
  display: inline-block;
  background: linear-gradient(
    180deg,
    rgba(252, 249, 242, 0.34) 0%,
    rgba(246, 242, 234, 0.19) 56%,
    rgba(245, 241, 232, 0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform, opacity;
}

/* Layer 6: Compact Refined Hero Copy Overlay (fades & glides upward 0% -> 9%) */
.cinema-hero-overlay {
  position: absolute;
  top: clamp(64px, 7.6vh, 88px);
  left: 50%;
  transform: translate3d(-50%, var(--hero-y, 0px), 0);
  opacity: var(--hero-alpha, 1);
  z-index: 6;
  width: min(calc(100% - 32px), 740px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
}

.cinema-hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-wrap: balance;
  background: linear-gradient(180deg, #FAF8F3 0%, #F5F2EB 58%, #CFC9BE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

/* Sleek Compact Translucent Store Pills (Luminous Ivory + Dark Glass) */
.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.store-pill:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.store-pill:active {
  transform: translateY(0.5px) scale(0.985);
}

.store-pill--primary {
  background: linear-gradient(180deg, #FAF8F3 0%, #EDE8DD 100%);
  color: #0A0A0C;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px -10px rgba(0, 0, 0, 0.78),
    0 0 24px -8px rgba(245, 242, 235, 0.24);
}

.store-pill--primary:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE6 100%);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 16px 32px -10px rgba(0, 0, 0, 0.86),
    0 0 30px -6px rgba(245, 242, 235, 0.34);
}

.store-pill--glass {
  background: rgba(24, 24, 29, 0.8);
  color: var(--ink-primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 12px 28px -12px rgba(0, 0, 0, 0.72);
}

.store-pill--glass:hover {
  background: rgba(36, 36, 43, 0.9);
  border-color: rgba(255, 255, 255, 0.26);
}

.store-pill-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.store-pill-label {
  line-height: 1;
}

/* Ephemeral Store Toast (empty & hidden by default; revealed ONLY when clicked) */
.store-toast {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(142, 209, 164, 0.28);
  color: var(--accent-sage-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -6px, 0);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.75);
}

.store-toast:empty {
  display: none;
}

.store-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* Layer 3: Monumental Upper-Half 1360x1520 Super-Retina 3D Stage (flush to bottom edge, #0A0A0C edge blend) */
.cinema-stage-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  contain: layout style paint;
}

.cinema-visual-frame {
  position: relative;
  width: min(86vw, calc((100vh - 72px) * 1360 / 1520), 610px);
  width: min(86vw, calc((100dvh - 72px) * 1360 / 1520), 610px);
  aspect-ratio: 1360 / 1520;
  flex-shrink: 0;
  background-color: transparent;
  transform-origin: center bottom;
  transform: translate3d(var(--stage-x, 0px), var(--stage-y, 0px), 0) scale(var(--stage-scale, 0.92));
  opacity: var(--stage-alpha, 1);
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Pixel-exact Titanium iPhone silhouette alpha mask at Hero (p = 0) so Basis II shows around & behind the curved titanium body with ZERO black box */
.cinema-visual-frame.is-hero-masked {
  -webkit-mask-image: url(./assets/hero-phone-mask.png?v=11);
  mask-image: url(./assets/hero-phone-mask.png?v=11);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.cinema-visual-frame.is-hero-masked::after {
  opacity: 0;
}

.cinema-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--bg-obsidian) 0%, transparent 4.5%, transparent 95.5%, var(--bg-obsidian) 100%),
    linear-gradient(to bottom, var(--bg-obsidian) 0%, transparent 3.5%, transparent 98%, var(--bg-obsidian) 100%);
}

.cinema-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  backface-visibility: hidden;
}

.cinema-media--canvas {
  z-index: 1;
}

.cinema-media--canvas.is-interactive {
  pointer-events: auto;
}

.cinema-media--ripple {
  z-index: 2;
  opacity: 1;
  will-change: opacity;
}

/* Layer 7: Interactive 3D Fanned Formula Card Deck (emerges from phone, then fans wide across darkroom stage) */
.cinema-cards-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: min(calc(100vw - 40px), 416px);
  opacity: var(--cards-alpha, 0);
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 60%;
  transform:
    perspective(1200px)
    translate3d(calc(-50% + var(--cards-x, 0px)), calc(-52% + var(--cards-y, 175px)), 0)
    scale(var(--cards-scale, 0.56))
    rotateX(var(--cards-rx, 14deg));
  will-change: transform, opacity;
}

.cinema-cards-overlay::before {
  content: "";
  position: absolute;
  inset: -64px -260px -40px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 64% 58% at 50% 48%,
    rgba(142, 209, 164, 0.14) 0%,
    rgba(120, 164, 188, 0.06) 48%,
    transparent 74%
  );
  opacity: var(--cards-alpha, 0);
}

.cinema-cards-overlay:not(.is-interactive),
.cinema-cards-overlay:not(.is-interactive) * {
  pointer-events: none !important;
  visibility: hidden !important;
}

.cinema-cards-overlay.is-interactive {
  pointer-events: auto;
}

.cinema-cards-overlay .fdeck {
  --fc-card-h: 254px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.cinema-demo-overlay:not(.is-interactive),
.cinema-demo-overlay:not(.is-interactive) * {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Layer 8: Stop 08 Native iOS Walkthrough Demo inside Grade-5 Titanium iPhone 16 Pro Hardware Frame */
.cinema-demo-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  opacity: var(--demo-alpha, 0);
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 52%;
  transform:
    translate3d(calc(-50% + var(--demo-x, 0px)), calc(-50% + var(--demo-y, 95px)), 0)
    scale(var(--demo-scale, 0.88));
  will-change: transform, opacity;
}

.cinema-demo-overlay::before {
  content: "";
  position: absolute;
  inset: -44px -72px -34px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 58% at 50% 48%,
    rgba(142, 209, 164, 0.14) 0%,
    rgba(218, 210, 196, 0.06) 44%,
    transparent 72%
  );
  opacity: var(--demo-alpha, 0);
}

.cinema-demo-overlay.is-interactive {
  pointer-events: auto;
}

.demo-phone-shell {
  position: relative;
  height: min(calc(100vh - 154px), 684px);
  height: min(calc(100dvh - 154px), 684px);
  aspect-ratio: 1252 / 2668;
  padding: 4px;
  border-radius: 52px;
  background: linear-gradient(
    142deg,
    #DED9CF 0%,
    #9C978E 18%,
    #6B6760 44%,
    #B6B0A4 68%,
    #58554F 88%,
    #C6C0B6 100%
  );
  box-shadow:
    0 36px 84px -18px rgba(0, 0, 0, 0.92),
    0 12px 32px -10px rgba(0, 0, 0, 0.78),
    inset 0 1px 1px rgba(255, 253, 248, 0.72),
    inset 0 -1px 1px rgba(20, 19, 18, 0.65);
}

.demo-phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #CFCAC0 0%, #7C7870 50%, #B4AEA3 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.demo-phone-btn--action {
  left: -2.5px;
  top: 19%;
  height: 4.5%;
}

.demo-phone-btn--vol1 {
  left: -2.5px;
  top: 26.5%;
  height: 8.2%;
}

.demo-phone-btn--vol2 {
  left: -2.5px;
  top: 36.8%;
  height: 8.2%;
}

.demo-phone-btn--power {
  right: -2.5px;
  top: 29%;
  height: 12.2%;
}

.demo-phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px;
  border-radius: 48px;
  background: #070708;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 2px 6px rgba(0, 0, 0, 0.85);
}

.demo-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #141416;
  cursor: pointer;
}

.demo-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.015) 24%,
    transparent 44%
  );
}

.demo-phone-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Layer 4b: Subtle Bottom Obsidian Scrim (keeps 6-item Dock crisp over half-phone keys) */
.cinema-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.92) 0%,
    rgba(10, 10, 12, 0.55) 55%,
    transparent 100%
  );
}

/* Layer 5: Kinetic Architectural Mode/Finish Readout (balanced left darkroom column on > 1080px) */
.cinema-finish-hud {
  position: absolute;
  left: clamp(36px, 7.2vw, 148px);
  top: 50%;
  z-index: 5;
  max-width: clamp(210px, 22vw, 276px);
  transform: translate3d(-14px, -50%, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-finish-hud.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.cinema-hud-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cinema-hud-inner.is-swapping,
.cinema-hud-detail.is-swapping {
  animation: hudSwapIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hudSwapIn {
  0% {
    opacity: 0.22;
    transform: translate3d(0, 8px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cinema-hud-plate-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cinema-hud-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hud-swatch, #8ED1A4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 12px var(--hud-swatch, rgba(142, 209, 164, 0.58));
  flex-shrink: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cinema-hud-plate {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.26s ease;
}

.cinema-finish-hud[data-active-stop="keymap"] .cinema-hud-plate,
.cinema-finish-hud[data-active-stop="formula"] .cinema-hud-plate,
.cinema-finish-hud[data-active-stop="cards"] .cinema-hud-plate,
.cinema-finish-hud[data-active-stop="demo"] .cinema-hud-plate {
  color: var(--accent-sage);
}

.cinema-hud-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: -0.034em;
  color: var(--ink-primary);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.cinema-hud-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 2px;
}

.cinema-hud-subname {
  margin: 0;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.016em;
  color: rgba(245, 242, 235, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.68);
}

.cinema-hud-subname[hidden] {
  display: none;
}

.cinema-hud-desc {
  margin: 0;
  font-size: clamp(0.84rem, 1.05vw, 0.94rem);
  font-weight: 420;
  line-height: 1.58;
  letter-spacing: -0.004em;
  color: rgba(245, 242, 235, 0.64);
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

/* Layer 6: Bottom Whisper Scroll Cue (fades out across 1% -> 4%) */
.cinema-cue-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.cinema-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 6;
  pointer-events: auto;
  transform: translate3d(-50%, var(--cue-y, 0px), 0);
  opacity: var(--cue-alpha, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 20, 0.86);
  color: rgba(245, 242, 235, 0.9);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow:
    0 12px 28px -10px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}

.cinema-scroll-cue:hover {
  background: rgba(30, 30, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink-primary);
}

.cinema-scroll-arrow {
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--accent-sage);
  animation: cinemaArrowBob 1.9s ease-in-out infinite;
}

@keyframes cinemaArrowBob {
  0%, 100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(2.5px);
  }
}

/* Layer 6: Dark-Glass 5-Stop Formula & Finish Dock (reveals once scroll >= 18%) */
.cinema-theme-dock {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 6;
  transform: translate3d(-50%, 14px, 0);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 20, 0.88);
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: calc(100vw - 24px);
}

.cinema-theme-dock.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.cinema-theme-dots {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cinema-dock-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.cinema-theme-dot {
  position: relative;
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--dot-ring, rgba(255, 255, 255, 0.26));
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.44) 0%, transparent 54%),
    var(--dot-fill, #CFC8BC);
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.cinema-theme-dot:hover {
  transform: scale(1.18);
}

.cinema-theme-dot[aria-pressed="true"] {
  transform: scale(1.2);
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.28),
    0 0 0 2px #141418,
    0 0 0 3.6px var(--ink-primary);
}

/* Feature Badge Buttons in 8-Stop Dock: Keymap, Σ Formula, Cards, Walkthrough Demo */
.cinema-theme-dot--keymap,
.cinema-theme-dot--sigma,
.cinema-theme-dot--cards,
.cinema-theme-dot--demo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142, 209, 164, 0.36);
  background: radial-gradient(circle at 32% 24%, rgba(142, 209, 164, 0.22) 0%, rgba(24, 29, 27, 0.96) 74%);
  color: rgba(206, 240, 218, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.52);
}

.cinema-dot-sigma {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

.cinema-dot-svg,
.cinema-dot-cards-icon {
  width: 13px;
  height: 13px;
  display: block;
}

.cinema-dot-play-icon {
  width: 11px;
  height: 11px;
  display: block;
  transform: translateX(0.5px);
}

.cinema-theme-dot--keymap:hover,
.cinema-theme-dot--sigma:hover,
.cinema-theme-dot--cards:hover,
.cinema-theme-dot--demo:hover {
  transform: scale(1.14);
  border-color: rgba(142, 209, 164, 0.72);
  color: #F4FFF7;
}

.cinema-theme-dot--keymap[aria-pressed="true"],
.cinema-theme-dot--sigma[aria-pressed="true"],
.cinema-theme-dot--cards[aria-pressed="true"],
.cinema-theme-dot--demo[aria-pressed="true"] {
  transform: scale(1.15);
  border-color: var(--accent-sage);
  background: radial-gradient(circle at 32% 24%, rgba(198, 240, 212, 0.34) 0%, rgba(22, 42, 30, 0.98) 72%);
  color: #F6FFF9;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 0 0 2px #141418,
    0 0 0 3.6px var(--accent-sage),
    0 0 16px rgba(142, 209, 164, 0.52);
}

/* Item 2: Retro Jet Black / Amber Enamel Swatch */
.cinema-theme-dot--retro {
  border-color: rgba(232, 134, 68, 0.44);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.34) 0%, transparent 50%),
    linear-gradient(135deg, #262524 0%, #1B1A19 50%, #DC6A32 52%, #EA984C 100%);
}

/* Item 4: Brushed Steel-Silver Swatch */
.cinema-theme-dot--metal {
  border-color: rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.56) 0%, transparent 50%),
    linear-gradient(135deg, #D2D8DD 0%, #8C939A 52%, #C5CBD1 100%);
}

/* ==========================================================================
   Cohesive Dark Exhibition Section (#features)
   ========================================================================== */
.features-section {
  position: relative;
  background: linear-gradient(180deg, #0A0A0C 0%, var(--bg-features-end) 100%);
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(142, 209, 164, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-slab);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  transition: border-color 0.24s ease;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.bento-card--span7 {
  grid-column: span 7;
}

.bento-card--span5 {
  grid-column: span 5;
}

.bento-card--formula {
  justify-content: flex-start;
  gap: 22px;
}

.bento-card--deck {
  justify-content: flex-start;
  gap: 18px;
}

.pillar-head {
  flex-shrink: 0;
}

.pillar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-num {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-sage-soft);
  border: 1px solid rgba(142, 209, 164, 0.24);
  color: var(--accent-sage);
}

.pillar-title {
  margin: 0 0 8px;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.026em;
  color: var(--ink-primary);
}

.bento-card--deck .pillar-title {
  margin-bottom: 0;
}

.pillar-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Card 01: Centered Luminous Sage Pixel Formula LCD */
.real-formula-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.pillar-preset-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hw-preset-btn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hw-preset-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.hw-preset-btn[aria-pressed="true"] {
  background: rgba(142, 209, 164, 0.16);
  color: var(--accent-sage-bright);
  border-color: rgba(142, 209, 164, 0.42);
  box-shadow: 0 0 18px -5px rgba(142, 209, 164, 0.45);
}

.real-formula-bezel {
  padding: 8px;
  border-radius: 15px;
  background: linear-gradient(180deg, #2B2D30 0%, #1C1D20 55%, #141518 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 24px 60px -18px rgba(142, 209, 164, 0.24),
    0 0 0 1px rgba(142, 209, 164, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.real-formula-glass {
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #CBD6CF 0%, #B6C5BD 56%, #9BACA4 100%);
  box-shadow:
    inset 0 3px 8px rgba(14, 28, 22, 0.34),
    inset 0 0 0 1px rgba(27, 38, 34, 0.28);
}

.formula-lcd-img {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 224;
  display: block;
}

/* Card 02 (.fdeck) styles live exclusively in ./cards.css */

/* ==========================================================================
   Subpages: Privacy & Support Dark Precision-Instrument Layout
   ========================================================================== */
.page-hero {
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--line-subtle);
}

.page-title {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink-primary);
}

.page-lead {
  margin: 0;
  font-size: 1.03rem;
  color: var(--ink-secondary);
  max-width: 62ch;
}

/* Calm Editorial Reading Measure for Privacy & Support (Zero Cards) */
body[data-page="privacy"] .container--narrow,
body[data-page="support"] .container--narrow {
  max-width: 740px;
}

.page-hero--support {
  padding: 40px 0 96px;
  border-bottom: 0;
}

.support-lead {
  margin-top: 14px;
  line-height: 1.8;
  color: rgba(245, 242, 235, 0.78);
}

.support-actions {
  margin-top: 30px;
}

.support-btn-email {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.84;
}

/* Flat Typographic Privacy Facts Strip (No Cards, Hairline-Separated) */
.privacy-facts {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line-subtle);
}

.privacy-facts-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 22px;
}

.privacy-facts-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--accent-sage-bright);
}

.privacy-facts-scope {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.privacy-facts-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
}

.privacy-fact {
  margin: 0;
}

.privacy-fact dt {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.privacy-fact dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 640;
  color: var(--ink-primary);
}

/* Continuous Editorial Policy Prose (Zero Cards, Generous Vertical Rhythm) */
.policy-article {
  padding: 6px 0 88px;
}

.policy-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.policy-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.policy-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: rgba(142, 209, 164, 0.82);
  flex-shrink: 0;
}

.policy-section p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(245, 242, 235, 0.78);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin: 14px 0 16px;
  padding-left: 20px;
  font-size: 0.96rem;
  line-height: 1.78;
  color: rgba(245, 242, 235, 0.78);
}

.policy-list li {
  margin-bottom: 8px;
}

.policy-list li::marker {
  color: rgba(142, 209, 164, 0.65);
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.policy-contact-line {
  margin-top: 6px;
}

.policy-email-link {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--accent-sage-bright);
  text-decoration: underline;
  text-decoration-color: rgba(142, 209, 164, 0.36);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.policy-email-link:hover {
  color: var(--ink-primary);
  text-decoration-color: rgba(245, 242, 235, 0.6);
}

/* Support Contact Card & Gesture Guide */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 34px 0 72px;
}

.support-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.support-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-slab);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.support-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #FAF8F3 0%, #ECE6DB 100%);
  color: #0A0A0C;
  font-size: 0.9rem;
  font-weight: 640;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.85);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-bright);
}

.gesture-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gesture-item {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line-subtle);
}

.gesture-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent-sage);
  margin-bottom: 4px;
}

.gesture-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.44;
}

/* FAQ Accordion */
.faq-section {
  padding-bottom: 80px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.99rem;
  font-weight: 640;
  color: var(--ink-primary);
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-secondary);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  background: var(--accent-sage);
  color: var(--bg-obsidian);
  border-color: var(--accent-sage);
}

.faq-body {
  padding: 14px 22px 20px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  line-height: 1.68;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-body p {
  margin: 0 0 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Minimal Dark Architectural Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  background: var(--bg-deep);
  padding: 38px 0 46px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--ink-primary);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(155, 150, 141, 0.78);
}

.footer-disclaimer {
  margin: 0;
  max-width: 82ch;
  line-height: 1.55;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Narrow desktop / tablet / mobile (<= 1080px):
   Clean editorial theme title anchored in the upper darkroom zone right below the single-row header */
@media (max-width: 1080px) {
  .cinema-visual-frame {
    width: min(88vw, calc((100vh - 168px) * 1360 / 1520), 560px);
    width: min(88vw, calc((100dvh - 168px) * 1360 / 1520), 560px);
  }

  .cinema-cards-overlay {
    top: 53%;
    width: min(calc(100vw - 36px), 380px);
  }

  .cinema-cards-overlay .fdeck {
    --fc-card-h: 238px;
  }

  .cinema-demo-overlay {
    top: 56%;
  }

  .demo-phone-shell {
    height: min(calc(100vh - 252px), 576px);
    height: min(calc(100dvh - 252px), 576px);
    border-radius: 44px;
    padding: 3.5px;
  }

  .demo-phone-bezel {
    border-radius: 41px;
    padding: 5px;
  }

  .demo-phone-screen,
  .demo-phone-screen::after {
    border-radius: 36px;
  }

  .cinema-finish-hud {
    top: calc(var(--header-h) + 16px);
    bottom: auto;
    left: 50%;
    transform: translate3d(-50%, -10px, 0);
    max-width: min(calc(100vw - 32px), 420px);
    text-align: center;
  }

  .cinema-finish-hud.is-visible {
    transform: translate3d(-50%, 0, 0);
  }

  .cinema-hud-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .cinema-hud-plate-row {
    gap: 7px;
  }

  .cinema-hud-swatch {
    width: 7px;
    height: 7px;
  }

  .cinema-hud-plate {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .cinema-hud-title {
    font-size: clamp(1.45rem, 4.2vw, 1.95rem);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.72);
  }

  .cinema-hud-detail {
    align-items: center;
    gap: 4px;
    margin-top: 1px;
  }

  .cinema-hud-subname {
    font-size: 0.96rem;
  }

  .cinema-hud-desc {
    font-size: 0.82rem;
    line-height: 1.44;
    max-width: 34ch;
  }
}

@media (max-width: 980px) {
  .bento-card--span7,
  .bento-card--span5 {
    grid-column: span 12;
  }

  .privacy-facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

  body[data-page="privacy"] main,
  body[data-page="support"] main {
    padding-top: calc(var(--header-h) + 24px);
  }

  .container {
    padding: 0 14px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-link {
    gap: 7px;
  }

  .brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    display: flex;
    gap: 2px;
  }

  .nav-link {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .lang-toggle {
    padding: 2px;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .cinema-track {
    height: 345vh;
  }

  .cinema-sticky {
    min-height: 540px;
  }

  .cinema-hero-overlay {
    top: calc(var(--header-h) + clamp(20px, 4vh, 42px));
    width: calc(100% - 28px);
  }

  .cinema-hero-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 7vw, 2.35rem);
  }

  .cinema-watermark {
    top: var(--wm-top, 340px);
    font-size: var(--wm-size, clamp(4.8rem, 23vw, 7.6rem));
  }

  .cinema-visual-frame {
    width: min(94vw, calc((100vh - 156px) * 1360 / 1520), 480px);
    width: min(94vw, calc((100dvh - 156px) * 1360 / 1520), 480px);
  }

  .cinema-cards-overlay {
    top: 54%;
    width: min(74vw, 294px);
  }

  .cinema-cards-overlay .fdeck {
    --fc-card-h: 204px;
  }

  .cinema-finish-hud {
    top: calc(var(--header-h) + 14px);
  }

  .cinema-theme-dock {
    bottom: 16px;
    padding: 6px 11px;
  }

  .cinema-theme-dots {
    gap: 8px;
  }

  .cinema-theme-dot {
    width: 17px;
    height: 17px;
  }

  .cinema-theme-dot--keymap,
  .cinema-theme-dot--sigma,
  .cinema-theme-dot--cards,
  .cinema-theme-dot--demo {
    width: 22px;
    height: 22px;
  }

  .cinema-demo-overlay {
    top: 56%;
  }

  .demo-phone-shell {
    height: min(calc(100vh - 242px), 548px);
    height: min(calc(100dvh - 242px), 548px);
    border-radius: 42px;
    padding: 3px;
  }

  .demo-phone-bezel {
    border-radius: 39px;
    padding: 4.5px;
  }

  .demo-phone-screen,
  .demo-phone-screen::after {
    border-radius: 34.5px;
  }

  .cinema-dot-sigma {
    font-size: 0.72rem;
  }

  .cinema-scroll-cue {
    bottom: 16px;
    font-size: 0.68rem;
    padding: 6px 13px;
  }

  .gesture-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0 68px;
  }

  .bento-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    gap: 6px;
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .nav-link {
    padding: 4px 6px;
    font-size: 0.74rem;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 0.65rem;
  }

  .privacy-facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .policy-section {
    padding: 24px 0;
  }

  .cinema-store-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .store-pill {
    height: 39px;
    padding: 0 15px;
    font-size: 0.82rem;
    gap: 7px;
  }

  .store-pill-icon {
    width: 15px;
    height: 15px;
  }

  .cinema-cards-overlay {
    top: 54%;
    width: min(73vw, 280px);
  }

  .cinema-cards-overlay .fdeck {
    --fc-card-h: 196px;
  }

  .cinema-finish-hud {
    top: calc(var(--header-h) + 12px);
  }

  .cinema-hud-plate {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .cinema-hud-title {
    font-size: 1.42rem;
  }

  .cinema-hud-subname {
    font-size: 0.88rem;
  }

  .cinema-hud-desc {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .cinema-theme-dots {
    gap: 7px;
  }

  .cinema-theme-dot {
    width: 15px;
    height: 15px;
  }

  .cinema-theme-dot--keymap,
  .cinema-theme-dot--sigma,
  .cinema-theme-dot--cards,
  .cinema-theme-dot--demo {
    width: 20px;
    height: 20px;
  }

  .cinema-dot-svg,
  .cinema-dot-cards-icon {
    width: 11px;
    height: 11px;
  }

  .cinema-dot-play-icon {
    width: 9.5px;
    height: 9.5px;
  }
}

/* ==========================================================================
   Choreographed Darkroom Page-Load Entrance (zero FOUC, zero scroll conflict)
   ========================================================================== */
html.is-entering .site-header,
html.is-entering .cinema-aura,
html.is-entering .cinema-hero-title,
html.is-entering .cinema-store-actions,
html.is-entering .cinema-stage-wrap,
html.is-entering .cinema-watermark-inner,
html.is-entering .cinema-cue-wrap,
html.is-entering .page-hero,
html.is-entering .privacy-facts,
html.is-entering .support-grid,
html.is-entering .policy-article {
  opacity: 0;
}

html.is-entered .cinema-aura {
  animation: darkroomAuraIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}

html.is-entered .site-header {
  animation: darkroomHeaderIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

html.is-entered .cinema-hero-title {
  animation: darkroomTitleIn 0.88s cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

html.is-entered .cinema-store-actions {
  animation: darkroomPillsIn 0.82s cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

html.is-entered .cinema-stage-wrap {
  animation: darkroomStageRise 1.14s cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

html.is-entered .cinema-watermark-inner {
  animation: darkroomWordmarkIn 1.04s cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
}

html.is-entered .cinema-cue-wrap {
  animation: darkroomCueIn 0.68s cubic-bezier(0.16, 1, 0.3, 1) 780ms both;
}

/* Subpages (Privacy & Support) restrained editorial rise */
html.is-entered .page-hero {
  animation: darkroomSubRise 0.66s cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

html.is-entered .privacy-facts,
html.is-entered .support-grid {
  animation: darkroomSubRise 0.72s cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

html.is-entered .policy-article {
  animation: darkroomSubRise 0.76s cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

@keyframes darkroomAuraIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes darkroomHeaderIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes darkroomTitleIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(8px) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0px) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  }
}

@keyframes darkroomPillsIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes darkroomStageRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 96px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes darkroomWordmarkIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.95);
    letter-spacing: 0.025em;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: -0.048em;
  }
}

@keyframes darkroomCueIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes darkroomSubRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.is-entering *,
  html.is-entered * {
    opacity: 1 !important;
    animation: none !important;
  }
  .cinema-media--formula {
    display: none;
  }
  .cinema-scroll-arrow,
  .cinema-hud-inner.is-swapping,
  .cinema-hud-detail.is-swapping {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
