/* Cross-Document View Transitions (GoogleChrome/modern-web-guidance) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  /* Pearl Cream Palette & Editorial Tokens (from render-localized.html & PearlCreamDesign.swift) */
  --bg: #f7f5f0;
  --bg-warm: #f0e8da;
  --surface: #fcfaf6;
  --surface-elevated: #ffffff;
  --surface-muted: #ede8df;
  --surface-sand: #efe2cf;
  --surface-sand-strong: #e8d5b9;
  --ink: #302a22;
  --ink-strong: #1d1914;
  --ink-secondary: #665c50;
  --ink-tertiary: #968b7c;
  --brand-gold: #a47e4d;
  --line: rgba(48, 42, 34, 0.08);
  --line-strong: rgba(48, 42, 34, 0.14);
  --accent: #df8a28;
  --accent-bright: #eba346;
  --accent-deep: #be6d12;
  --accent-soft: rgba(223, 138, 40, 0.14);
  --success: #5a9a68;
  --success-soft: rgba(90, 154, 104, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-stage:
    0 32px 80px -16px rgba(68, 52, 31, 0.16),
    0 12px 28px -8px rgba(68, 52, 31, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --shadow-card:
    0 12px 32px -8px rgba(68, 52, 31, 0.07),
    0 2px 6px rgba(68, 52, 31, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;

  /* Physics-Based Easing (from GoogleChrome/modern-web-guidance) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-easing: linear(
    0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017,
    1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%,
    1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%,
    0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1
  );

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  --font-serif: "Songti SC", "STSongti-SC-Regular", "Noto Serif CJK SC", "Hiragino Mincho ProN", "AppleMyungjo", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 55% at 85% 12%, rgba(237, 221, 189, 0.65), transparent 62%),
    radial-gradient(ellipse 75% 45% at 12% 38%, rgba(235, 214, 178, 0.38), transparent 60%),
    linear-gradient(165deg, #fbf9f4 0%, #f5efe4 52%, #f0e8da 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

/* Entrance & Scroll Reveal Animations using Individual Transform Properties */
.hero-anim {
  opacity: 0;
  translate: 0 20px;
  animation: heroIn 0.78s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes heroIn {
  to { opacity: 1; translate: 0 0; }
}

/* Content stays visible until scroll-driven entry effects are available. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-entry {
      from { opacity: 0; translate: 0 24px; }
      to { opacity: 1; translate: 0 0; }
    }

    .reveal-ready .reveal:not(.reveal .reveal):not(:focus-within) {
      animation: reveal-entry auto var(--ease-out) backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.8);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-strong);
}

.brand-icon {
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(68, 52, 31, 0.16);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 14px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink-strong); }
.nav-links a[aria-current="page"] { color: var(--ink-strong); font-weight: 600; }

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

.lang-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(48, 42, 34, 0.045);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.18s ease, scale 0.35s var(--spring-easing);
}

.lang-wrap:hover {
  background: rgba(48, 42, 34, 0.08);
  scale: 1.05;
}

.lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Warm Amber Gold Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    translate 0.35s var(--spring-easing),
    scale 0.35s var(--spring-easing),
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.btn:hover { translate: 0 -2px; }
.btn:active { scale: 0.96; }

.btn-sm { padding: 7px 16px; font-size: 13px; }

.btn-primary {
  background: linear-gradient(180deg, #eea74d 0%, #df8a28 54%, #d17b19 100%);
  color: #ffffff;
  border-color: rgba(182, 102, 14, 0.4);
  box-shadow:
    0 10px 24px -6px rgba(214, 126, 26, 0.42),
    0 2px 6px rgba(214, 126, 26, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.38) inset;
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow:
    0 14px 30px -6px rgba(214, 126, 26, 0.5),
    0 4px 10px rgba(214, 126, 26, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--ink-strong);
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(48, 42, 34, 0.05);
}

/* Official Apple App Store Badge Link (preserves official ratio & artwork) */
.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition:
    translate 0.35s var(--spring-easing),
    scale 0.35s var(--spring-easing),
    filter 0.22s ease;
}

.app-store-badge-link:hover {
  translate: 0 -2px;
  filter: drop-shadow(0 8px 18px rgba(48, 42, 34, 0.16));
}

.app-store-badge-link:active {
  scale: 0.97;
}

.app-store-badge-link img {
  display: block;
  width: auto;
}

.app-store-badge-link.is-sm img {
  height: 34px;
}

.app-store-badge-link.is-lg img {
  height: 48px;
}

/* =====================================================
   Editorial Hero (Matching render-localized.html & 01-space.png)
   ===================================================== */
.hero-section {
  padding: 58px 0 76px;
}

.hero-copy {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 38px;
}

.brand-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.editorial-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 66px);
  line-height: 1.13;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
  margin: 0 0 16px;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
}

/* =====================================================
   DEMO 1 (Hero Stage): Real App inside Apple iPhone Duo
   ===================================================== */
.duo-device-stage {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 3093 / 2247;
  filter: drop-shadow(0 28px 46px rgba(57, 45, 26, 0.22));
}

.duo-screen {
  position: absolute;
  z-index: 1;
  left: 3.879728%;
  top: 5.340454%;
  width: 92.240543%;
  height: 89.319092%;
  border-radius: 6% / 8.5%;
  overflow: hidden;
  background: var(--bg);
}

.duo-bezel-img {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.duo-screen .app-canvas {
  height: 100%;
  background: var(--bg);
  border: 0;
  border-radius: 0;
  padding-block: 20px;
  padding-inline: 24px 18px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 54px;
  gap: 20px;
  align-content: center;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.duo-screen .app-Brand-header .app-gear-btn {
  display: none;
}

.duo-screen .app-left-col {
  padding-top: 6px;
}

.duo-screen .app-right-col {
  width: 100%;
  max-width: none;
  margin: 0;
}

.duo-screen .photo-grid-9 {
  gap: 8px;
  padding-bottom: 26px;
}

.app-duo-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.duo-status-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-strong);
}

.duo-clock {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.duo-antenna-arc {
  display: block;
}

.app-canvas {
  background: var(--bg);
  border-radius: 22px;
  border: 1px solid rgba(48, 42, 34, 0.08);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

/* Left Column of App Canvas (Real ModernImportPanel) */
.app-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-Brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-serif-logo {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink-strong);
  line-height: 1.1;
}

.app-gear-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(48, 42, 34, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.real-import-card {
  background: var(--surface);
  border: 1px solid rgba(48, 42, 34, 0.06);
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    0 12px 28px -8px rgba(68, 52, 31, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.ric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ric-top strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
}

.ric-chevron {
  width: 28px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-sand);
  color: var(--accent-deep);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 3 Warm Sand Vertical Cards (Date / Device / Type) */
.sand-tiles-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sand-tile {
  min-width: 0;
  background: var(--surface-sand);
  border: 1.5px solid transparent;
  border-radius: 15px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition:
    scale 0.45s var(--spring-easing),
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.sand-tile.is-pulse {
  scale: 1.04;
  background: var(--surface-sand-strong);
  border-color: rgba(223, 138, 40, 0.45);
}

.sand-tile small {
  font-size: 11px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sand-tile strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Glowing Amber Scan Button */
.amber-scan-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #eea74d 0%, #df8a28 55%, #cf7918 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow:
    0 8px 18px -4px rgba(214, 126, 26, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.38) inset;
  margin-bottom: 14px;
  transition: scale 0.35s var(--spring-easing), filter 0.2s ease;
}

.amber-scan-btn:hover { filter: brightness(1.04); }
.amber-scan-btn:active, .amber-scan-btn.is-pressed { scale: 0.96; }

.white-pair-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.white-pill-btn {
  padding: 9px 8px;
  border-radius: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(48, 42, 34, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-strong);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 36px;
}

.plan-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-secondary);
}

.plan-footer-row strong {
  color: var(--ink-strong);
}

/* Right Column of App Canvas: 3x3 Photo Grid + Space Meter + Floating Liquid Glass Bar */
.app-right-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qh-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.qh-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-strong);
}

.qh-space-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(48, 42, 34, 0.04);
}

.qh-space-pill del {
  color: #756b5f;
}

.qh-space-pill strong {
  color: var(--ink-strong);
}

.qh-saved-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #386a41;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: scale 0.4s var(--spring-easing);
}

.qh-saved-tag.is-pop {
  scale: 1.07;
}

/* 3x3 Real Rounded Photo Grid (matching pro-queue.png & duo-home.png) */
.photo-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 34px;
}

.pg-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: 0 4px 12px rgba(48, 42, 34, 0.07);
  transition:
    scale 0.5s var(--spring-easing),
    opacity 0.35s ease;
}

.pg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: scale 0.6s var(--ease-out);
}

.pg-tile:hover img {
  scale: 1.04;
}

/* Shimmer sweep during conversion */
.pg-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 248, 232, 0.68) 48%,
    rgba(238, 167, 77, 0.42) 54%,
    transparent 78%
  );
  translate: -120% 0;
  pointer-events: none;
}

.pg-tile[data-state="converting"]::after {
  animation: tileSweep 0.65s var(--ease-out) forwards;
}

@keyframes tileSweep {
  to { translate: 120% 0; }
}

/* Green Checkmark Circle in Top-Right (exact match to completed-light.png) */
.pg-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #679c73;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  scale: 0;
  opacity: 0;
  transition:
    scale 0.5s var(--spring-easing),
    opacity 0.22s ease;
}

.pg-tile[data-state="done"] .pg-check {
  scale: 1;
  opacity: 1;
}

/* Size Saved Chip in Bottom-Left */
.pg-size-chip {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(29, 25, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: space-between;
  translate: 0 8px;
  opacity: 0;
  transition:
    translate 0.42s var(--spring-easing),
    opacity 0.25s ease;
}

.pg-size-chip em {
  font-style: normal;
  color: #8ce3a3;
  font-weight: 700;
}

.pg-tile[data-state="done"] .pg-size-chip {
  translate: 0 0;
  opacity: 1;
}

/* Floating Frosted Liquid Glass Bottom Bar (exact match to duo-home.png & completed-light.png) */
.floating-glass-dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.liquid-glass-pill {
  flex: 1;
  height: 54px;
  padding: 0 10px 0 20px;
  border-radius: 999px;
  background: rgba(252, 249, 244, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 34px rgba(48, 42, 34, 0.14),
    0 2px 6px rgba(48, 42, 34, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lgp-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.lgp-play-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #eea74d 0%, #df8a28 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(214, 126, 26, 0.32);
  transition: scale 0.35s var(--spring-easing);
  flex-shrink: 0;
}

.lgp-play-btn.is-duo-circle {
  width: 38px;
  height: 38px;
  padding: 0;
}

.lgp-play-btn .lgp-icon-play,
.lgp-play-btn .lgp-icon-replay {
  display: none;
}

.lgp-play-btn[data-state="play"] .lgp-icon-play {
  display: block;
  translate: 1px 0;
}

.lgp-play-btn[data-state="replay"] .lgp-icon-replay {
  display: block;
}

.lgp-play-btn:hover { scale: 1.03; }
.lgp-play-btn:active { scale: 0.95; }

.liquid-share-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(252, 249, 244, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(48, 42, 34, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  scale: 0.82;
  opacity: 0.45;
  transition:
    scale 0.55s var(--spring-easing),
    opacity 0.3s ease;
}

.liquid-share-orb.is-ready {
  scale: 1;
  opacity: 1;
}

/* =====================================================
   Editorial Feature Sections (Matching 02-batch.png & 04-quality.png)
   ===================================================== */
.editorial-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.editorial-copy .brand-eyebrow {
  margin-bottom: 12px;
}

.editorial-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.15;
  color: var(--ink-strong);
  margin: 0 0 16px;
}

.editorial-copy p {
  margin: 0 0 14px;
  font-size: 16.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* =====================================================
   DEMO 2: 1:1 Quality & Save Sheet (matching 04-quality.png)
   ===================================================== */
.quality-sheet-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(48, 42, 34, 0.09);
  padding: 26px 28px;
  box-shadow: var(--shadow-stage);
}

.qs-top-handle {
  width: 38px;
  height: 5px;
  border-radius: 99px;
  background: rgba(48, 42, 34, 0.16);
  margin: 0 auto 14px;
}

.qs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.qs-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-strong);
}

.qs-check-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-strong);
  font-size: 14px;
}

/* 3-Segment Quality Pill (省空间 | 均衡 推荐 | 高质量) */
.qs-seg-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-muted);
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.qs-seg-btn {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 8px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-secondary);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    scale 0.35s var(--spring-easing);
}

.qs-seg-btn strong {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.qs-seg-btn small {
  font-size: 11px;
  color: var(--accent-deep);
  font-weight: 600;
}

.qs-seg-btn.is-active {
  background: var(--surface-elevated);
  color: var(--ink-strong);
  box-shadow: 0 3px 10px rgba(48, 42, 34, 0.08);
}

/* Reference Size White Card (12 MP | 48 MP with orange bars) */
.qs-ref-card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(48, 42, 34, 0.03);
}

.qs-ref-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 14px;
}

.qs-ref-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.qs-divider {
  height: 54px;
  background: var(--line);
}

.qs-mp-label {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.qs-mp-val {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}

.qs-mp-val strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.qs-mp-val span {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.qs-mini-track {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
}

.qs-mini-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.35s var(--ease-out);
}

.qs-ref-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

/* HEIC Quality Slider Row */
.qs-slider-section {
  margin-bottom: 16px;
}

.qs-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.qs-slider-head output {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  color: var(--accent-deep);
}

.heic-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.qs-slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

.qs-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.qs-hdr-row strong {
  display: block;
  font-size: 14px;
  color: var(--ink-strong);
}

.qs-hdr-row small {
  font-size: 12px;
  color: var(--ink-secondary);
}

.ios-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  border: 0;
  padding: 2px;
  cursor: pointer;
  transition: background-color 0.22s ease;
}

.ios-switch[aria-checked="false"] {
  background: #d6cfc3;
}

.ios-switch span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  translate: 18px 0;
  transition: translate 0.35s var(--spring-easing);
}

.ios-switch[aria-checked="false"] span {
  translate: 0 0;
}

/* =====================================================
   SECTION 2: AUTO IMPORT WITH POCKET 4P ON TOP
   ===================================================== */
.editorial-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  color: var(--ink-strong);
  margin: 0 0 16px;
}

.ai-layout-switcher {
  text-align: center;
  margin-bottom: 34px;
}

.ai-note-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ai-note-pill:empty {
  display: none;
}

.ai-note-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-sand);
  border: 1px solid rgba(164, 126, 77, 0.22);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 600;
}

.pocket-inline-badge {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #f5ebd9 0%, #ead9be 100%);
  border: 1px solid rgba(164, 126, 77, 0.28);
  box-shadow: 0 6px 14px rgba(68, 52, 31, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: center;
}

.pocket-inline-badge img {
  width: 36px;
  height: auto;
  margin-top: 3px;
  object-fit: contain;
}

.auto-import-section[data-pocket-layout="L3"] .pocket-inline-badge {
  display: inline-flex;
}

.ai-stage-slots {
  display: grid;
  grid-template-areas: "slot";
  align-items: center;
}

.ai-slot-idle,
.ai-slot-progress,
.ai-slot-result,
.ai-slot-queued {
  grid-area: slot;
  min-width: 0;
  width: 100%;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.26s;
}

.auto-import-section[data-ai-phase="idle"] .ai-slot-idle,
.auto-import-section[data-ai-phase="scanning"] .ai-slot-progress,
.auto-import-section[data-ai-phase="importing"] .ai-slot-progress,
.auto-import-section[data-ai-phase="result"] .ai-slot-result,
.auto-import-section[data-ai-phase="queued"] .ai-slot-queued {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.ai-viewfinder-icon {
  flex-shrink: 0;
  transition: transform 0.35s var(--spring-easing);
}

.auto-import-section[data-ai-phase="idle"] .ai-viewfinder-icon {
  animation: aiViewfinderPulse 2.4s ease-in-out infinite;
}

#aiScanBtn:hover .ai-viewfinder-icon {
  transform: scale(1.08) rotate(5deg);
}

@keyframes aiViewfinderPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.07) rotate(5deg); }
}

.ai-feedback-box {
  position: relative;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px;
}

.auto-import-section[data-ai-phase="scanning"] .ai-slot-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, rgba(223, 138, 40, 0) 0%, rgba(223, 138, 40, 0.08) 50%, rgba(223, 138, 40, 0) 100%);
  animation: aiScanSweep 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes aiScanSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

.afp-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.afp-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(207, 121, 24, 0.22);
  border-top-color: var(--accent);
  animation: aiSpin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

.afp-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.afp-cancel-btn,
.afq-rescan-btn {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.afp-cancel-btn:hover,
.afq-rescan-btn:hover {
  background: var(--surface-sand);
}

.afp-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
}

.afp-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.afr-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 12px;
}

.afr-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.afr-col {
  flex: 1;
  min-width: 0;
}

.afr-col strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.afr-col.is-accent strong {
  color: var(--accent-deep);
}

.afr-col small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.afr-divider {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.ai-confirm-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(233, 154, 60, 0.7);
  background: linear-gradient(180deg, #f2b65f 0%, #e99a3c 100%);
  color: #3e2b12;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(188, 140, 68, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: scale 0.35s var(--spring-easing), filter 0.2s ease;
}

.ai-confirm-btn:hover { filter: brightness(1.03); }
.ai-confirm-btn:active { scale: 0.98; }

.afq-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 12px;
}

.aqp-head {
  font-size: 13.5px;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.ai-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ai-queue-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-muted);
  opacity: 0;
  transform: scale(0.92) translateY(6px);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s var(--spring-easing);
}

.ai-queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auto-import-section[data-ai-phase="queued"] .ai-queue-thumb {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.auto-import-section[data-ai-phase="queued"] .ai-queue-thumb:nth-child(1) { transition-delay: 40ms; }
.auto-import-section[data-ai-phase="queued"] .ai-queue-thumb:nth-child(2) { transition-delay: 100ms; }
.auto-import-section[data-ai-phase="queued"] .ai-queue-thumb:nth-child(3) { transition-delay: 160ms; }
.auto-import-section[data-ai-phase="queued"] .ai-queue-thumb:nth-child(4) { transition-delay: 220ms; }

.ai-q-tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(29, 25, 20, 0.78);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
}

.auto-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 52px;
  align-items: center;
}

.auto-import-layout > .editorial-copy {
  isolation: isolate;
}

.auto-import-stage {
  position: relative;
  padding-top: 38px;
  isolation: isolate;
  transition: padding 0.35s var(--ease-out);
}

/* Shared container for the DJI camera accent (L1: Corner Peek · L2: Bottom-Right Prop · L3: Hidden from stage) */
.pocket-accent-wrap {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.45s var(--spring-easing);
}

/* L1: Tucked diagonally behind top-right corner of the card */
.auto-import-section[data-pocket-layout="L1"] .pocket-accent-wrap {
  top: 0;
  right: 26px;
  z-index: 1;
  transform: rotate(9deg);
}

.auto-import-section[data-pocket-layout="L1"] .pocket-device-img {
  height: 158px;
}

/* L2: Grounded lightly alongside the bottom-right corner as a desk prop */
.auto-import-section[data-pocket-layout="L2"] .auto-import-stage {
  padding-top: 8px;
  padding-right: 46px;
  padding-bottom: 8px;
}

.auto-import-section[data-pocket-layout="L2"] .pocket-accent-wrap {
  top: auto;
  bottom: -6px;
  right: 2px;
  z-index: 4;
  transform: rotate(-6deg);
}

.auto-import-section[data-pocket-layout="L2"] .pocket-device-img {
  height: 146px;
  filter: drop-shadow(-4px 14px 18px rgba(48, 42, 34, 0.24));
}

/* L3: Camera moves cleanly to left copy inline badge; card stands uncluttered */
.auto-import-section[data-pocket-layout="L3"] .auto-import-stage {
  padding-top: 8px;
}

.auto-import-section[data-pocket-layout="L3"] .pocket-accent-wrap {
  opacity: 0;
  transform: scale(0.88) translateY(8px);
}

.pocket-halo {
  position: absolute;
  width: 170px;
  height: 120px;
  bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 198, 134, 0.5) 0%, rgba(235, 198, 134, 0) 70%);
  filter: blur(8px);
  opacity: 0.72;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pocket-scan-ring {
  position: absolute;
  width: 130px;
  height: 60px;
  top: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 138, 40, 0.42);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.auto-import-section[data-ai-phase="scanning"] .pocket-halo {
  opacity: 1;
}

.auto-import-section[data-ai-phase="scanning"] .pocket-scan-ring {
  animation: aiRadarRing 1.4s var(--ease-out) infinite;
}

@keyframes aiRadarRing {
  0% { opacity: 0.6; transform: scale(0.76); }
  100% { opacity: 0; transform: scale(1.42); }
}

.pocket-device-img {
  position: relative;
  width: auto;
  height: 158px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(57, 45, 26, 0.22));
  transition: translate 0.55s var(--spring-easing), height 0.35s ease;
  will-change: transform;
}

.auto-import-stage:hover .pocket-device-img {
  translate: 0 -4px;
}

.auto-import-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid rgba(48, 42, 34, 0.09);
  border-radius: var(--radius-xl);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-stage);
}

.ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ai-card-head strong {
  font-size: 15.5px;
  color: var(--ink-strong);
}

.ai-dev-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-dev-pill {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, scale 0.35s var(--spring-easing);
}

.ai-dev-pill:hover {
  scale: 1.03;
  color: var(--ink-strong);
}

.ai-dev-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(214, 126, 26, 0.28);
}

.ai-filter-tiles {
  margin-bottom: 12px;
}

.auto-import-section[data-ai-phase="scanning"] .ai-filter-tiles .sand-tile.is-pulse {
  border-color: rgba(223, 138, 40, 0.45);
  box-shadow: 0 0 0 3px rgba(223, 138, 40, 0.12);
}

/* =====================================================
   SECTION 3: QUALITY vs SPACE (3 CANDIDATE VISUAL OPTIONS)
   ===================================================== */
.qp-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 38px;
}

.qp-lead {
  font-size: 16.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
}

.qp-switcher-bar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}

.qp-sw-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.04em;
}

.qp-sw-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.qp-sw-btn {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, scale 0.35s var(--spring-easing);
}

.qp-sw-btn:hover { color: var(--ink-strong); scale: 1.03; }
.qp-sw-btn.is-active {
  background: var(--ink-strong);
  color: #ffffff;
  border-color: var(--ink-strong);
}

.qp-option-block {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 34px 32px;
  box-shadow: var(--shadow-stage);
  margin-bottom: 32px;
}

.qp-option-block:last-child {
  margin-bottom: 0;
}

.qp-option-block.is-hidden {
  display: none;
}

.qpo-head {
  margin-bottom: 24px;
}

.qpo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-sand);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.qpo-head h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 0 0 8px;
}

.qpo-head p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

/* OPTION A: 200% Detail Magnifier + 10 GB Everyday Capacity */
.opta-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.opta-visual-card, .opta-cap-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.opta-spots-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.opta-spots-head > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
}

.opta-spot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.loupe-spot-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface-elevated);
  color: var(--ink-secondary);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, scale 0.35s var(--spring-easing);
}

.loupe-spot-btn:hover { scale: 1.03; color: var(--ink-strong); }
.loupe-spot-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.opta-compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.opta-frame {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opta-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.oft-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.oft-orig { background: var(--surface-muted); color: var(--ink-strong); }
.oft-heic { background: var(--success-soft); color: var(--success); }

.oft-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.opta-photo-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  background: var(--surface-muted);
}

.opta-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opta-reticle {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2.5px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.45s var(--ease-out), top 0.45s var(--ease-out);
}

.opta-loupe-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.opta-loupe {
  width: 100%;
  height: 138px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-repeat: no-repeat;
  background-size: 320%;
  transition: background-position 0.45s var(--ease-out);
}

.opta-spot-note {
  margin-top: 12px;
  background: var(--surface-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-strong);
}

.opta-cap-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.opta-cap-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink-strong);
  margin: 0 0 6px;
}

.opta-cap-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.cap-compare-row {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.cap-compare-row.is-highlight {
  border-color: rgba(223, 138, 40, 0.45);
  box-shadow: 0 6px 18px rgba(214, 126, 26, 0.09);
}

.cap-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.cap-row-top strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.cap-compare-row.is-highlight .cap-row-top strong {
  color: var(--accent-deep);
}

.cap-track {
  height: 10px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
  margin-bottom: 7px;
}

.cap-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.cap-fill-orig { background: #a89f92; }
.cap-fill-heic { background: linear-gradient(90deg, #eea74d 0%, #df8a28 100%); }

.cap-compare-row small {
  font-size: 12px;
  color: var(--ink-secondary);
}

.cap-takeaway {
  background: var(--surface-sand);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.5;
}

/* OPTION B: 488-Photo Real Benchmark Plain-English Report Card */
.optb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.optb-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.optb-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold);
}

.optb-stat {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 30px);
  color: var(--ink-strong);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.optb-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--surface-sand);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.b-space-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bsb-row {
  background: var(--surface-muted);
  border-radius: 8px;
  height: 24px;
  overflow: hidden;
}

.bsb-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.bsb-orig { background: #9b9082; }
.bsb-heic { background: linear-gradient(90deg, #5a9a68, #6ea97b); }

.b-ssim-track {
  height: 24px;
  background: var(--surface-muted);
  border-radius: 8px;
  overflow: hidden;
}

.b-ssim-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #eea74d 0%, #df8a28 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.b-psnr-ruler {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.25fr;
  gap: 4px;
  align-items: center;
  height: 24px;
}

.bpr-zone {
  height: 100%;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpr-low { background: var(--surface-muted); color: var(--ink-tertiary); }
.bpr-line { background: var(--surface-sand-strong); color: var(--accent-deep); border-left: 2px dashed var(--accent-deep); }
.bpr-pass { background: var(--success-soft); color: var(--success); border: 1px solid rgba(90, 154, 104, 0.35); }

.optb-plain {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.optb-footnote {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-tertiary);
  line-height: 1.55;
}

/* OPTION C: App Quality Slider + 200-Photo Trip Bill */
.optc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.optc-bill-card {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(237, 221, 189, 0.55), transparent 55%),
    var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bill-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
}

.bill-tier-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-sand);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 700;
}

.bill-numbers-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bn-col small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.bn-col strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.bn-col.is-out strong {
  color: var(--accent-deep);
}

.bn-arrow {
  font-size: 20px;
  color: var(--ink-tertiary);
}

.bn-save-pill {
  margin-inline-start: auto;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bill-bar-wrap {
  position: relative;
  height: 14px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
}

.bill-bar-orig {
  position: absolute;
  inset: 0;
  background: rgba(155, 144, 130, 0.25);
}

.bill-bar-heic {
  position: relative;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #eea74d 0%, #df8a28 100%);
  transition: width 0.35s var(--ease-out);
}

.bill-feel-box {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.bfb-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 5px;
}

.bill-feel-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-strong);
  line-height: 1.65;
}

.bill-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bill-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

/* =====================================================
   3 Store-Screen Story Cards (03-live-photo, 05-privacy, 06-duo)
   ===================================================== */
.trio-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trio-card {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(237, 221, 189, 0.55), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: translate 0.4s var(--spring-easing), box-shadow 0.25s ease;
}

.trio-card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-stage);
}

.trio-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.18;
  color: var(--ink-strong);
  margin: 8px 0 10px;
}

.trio-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.trio-mini-ui {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tmu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-strong);
  font-weight: 500;
}

.tmu-row + .tmu-row {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.tmu-tag {
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--surface-sand);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Download Section */
.download-section {
  padding: 72px 0 84px;
  border-top: 1px solid var(--line);
}

.download-card {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(237, 221, 189, 0.65), transparent 65%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 52px 24px;
  box-shadow: var(--shadow-stage);
}

.download-icon {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(68, 52, 31, 0.16);
  margin-bottom: 18px;
}

.download-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--ink-strong);
}

.download-card p {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--ink-secondary);
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 38px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-vi-brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; }
.footer-vi-brand img { display: block; width: 76px; height: auto; }
.footer-vi-year { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-secondary); letter-spacing: 0.02em; }
.footer-vi-year::before { content: ""; width: 1px; height: 16px; background: var(--line-strong); }

.footer-links a:hover, .icp-link:hover { color: var(--ink-strong); }
.icp-link { color: var(--ink-secondary); }

/* Privacy Policy & Support Pages */
.privacy-main { padding: 44px 0 84px; }
.privacy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.privacy-toc {
  position: sticky;
  top: 76px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}
.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 6px;
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  transition: background-color 0.16s ease, color 0.16s ease;
  line-height: 1.35;
}
.toc-link:hover { background: var(--bg); color: var(--ink-strong); }
.toc-link.is-active {
  background: var(--surface-sand);
  color: var(--accent-deep);
  font-weight: 600;
}
.toc-num {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  min-width: 18px;
}
.toc-link.is-active .toc-num { color: var(--accent-deep); }

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.priv-hero {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.priv-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.priv-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-sand);
  color: var(--accent-deep);
}
.priv-updated {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}
.privacy-card h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  color: var(--ink-strong);
}
.priv-lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
}
.priv-section {
  padding: 26px 0 6px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px;
}
.priv-section:last-child { border-bottom: 0; padding-bottom: 0; }
.priv-sec-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.priv-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
  flex-shrink: 0;
}
.privacy-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
}
.privacy-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.76;
}
.priv-subgrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}
.priv-subcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.priv-subcard-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}
.priv-subcard-num {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  background: var(--surface-sand);
  padding: 1px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.priv-subcard-head strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-strong);
}
.priv-subcard p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.72;
}
.privacy-card a:not(.privacy-back):not(.btn) {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 920px) {
  .duo-screen .app-canvas {
    grid-template-columns: 224px minmax(0, 1fr) 44px;
    gap: 14px;
    padding: 16px 14px 16px 18px;
  }
  .duo-screen .app-right-col { max-width: none; }
  .duo-screen .app-serif-logo { font-size: 24px; }
  .duo-screen .real-import-card { padding: 12px; }
  .duo-screen .sand-tile { padding: 8px 4px; }
  .duo-screen .sand-tile strong { font-size: 12px; }
  .duo-screen .amber-scan-btn { height: 38px; font-size: 13px; margin-bottom: 10px; }
  .duo-screen .white-pill-btn { padding: 7px 6px; font-size: 11.5px; }
  .duo-screen .liquid-glass-pill { height: 44px; padding: 0 6px 0 14px; }
  .duo-screen .liquid-share-orb { width: 44px; height: 44px; }
  .duo-screen .lgp-play-btn.is-duo-circle { width: 32px; height: 32px; }
  .duo-clock { font-size: 9.5px; }
  .duo-antenna-arc { width: 22px; height: 18px; }
  .editorial-grid,
  .auto-import-layout,
  .opta-grid,
  .optb-grid,
  .optc-grid,
  .trio-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .privacy-toc { position: static; }
  .toc-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
}

@media (max-width: 720px) {
  .duo-device-stage {
    aspect-ratio: auto;
    border-radius: 24px;
    padding: 10px;
    background:
      radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.7), transparent 50%),
      linear-gradient(155deg, rgba(244, 236, 222, 0.92), rgba(232, 219, 198, 0.88));
    border: 1px solid rgba(164, 126, 77, 0.22);
    filter: none;
    box-shadow: var(--shadow-stage);
  }
  .duo-screen {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(48, 42, 34, 0.08);
  }
  .duo-bezel-img { display: none; }
  .app-duo-rail { display: none; }
  .duo-screen .app-Brand-header .app-gear-btn { display: inline-flex; }
  .duo-screen .app-canvas,
  .app-canvas {
    height: auto;
    padding: 18px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-section { padding: 36px 0 54px; }
  .duo-device-stage { padding: 8px; }
  .duo-screen .app-canvas,
  .app-canvas { padding: 16px; }
  .auto-import-section[data-pocket-layout="L2"] .auto-import-stage { padding-right: 0; padding-bottom: 0; }
  .pocket-accent-wrap { display: none; }
  .auto-import-stage { padding-top: 0; }
  .qp-option-block { padding: 24px 18px; }
  .opta-compare-pair { grid-template-columns: 1fr; }
  .privacy-card { padding: 26px 20px; }
  .toc-nav { grid-template-columns: 1fr; }
}

/* Keep arrowed numeric ratios & size chips readable in RTL locales */
.pg-size-chip,
.qh-space-pill,
.bill-numbers-row {
  direction: ltr;
  unicode-bidi: isolate;
}

/* RTL typography & mirrored UI controls (ar / ur) */
html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

html[dir="rtl"] .ios-switch span {
  translate: -18px 0;
}

html[dir="rtl"] .ios-switch[aria-checked="false"] span {
  translate: 0 0;
}

html[dir="rtl"] .auto-import-section[data-pocket-layout="L1"] .pocket-accent-wrap {
  right: auto;
  left: 26px;
  transform: rotate(-9deg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
