/* ==========================================================================
   EASY PICK v3 — FULL-STACK OPTICAL DISSECTION STUDIO STYLESHEET
   Applies Six-Dimension Visual Alchemy across Homepage, /pricing, Scenarios,
   Legal Docs, Real Results, Auth/Library/Purchase Modals & Asset Loupe.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mat-a);
  color: var(--ink);
  font-family: var(--ep-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button, input, select, a { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--sig);
  outline-offset: 2px;
}
::selection { background: var(--sig); color: #fff; }
html:has(dialog[open]) { overflow: hidden; }

/* Subtle studio optical grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Machined hardware liquid-glass capsule mixin */
.hw-capsule {
  background:
    linear-gradient(180deg, color-mix(in oklch, #ffffff 34%, transparent) 0%, transparent 45%),
    var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  box-shadow: var(--shadow-hw);
}
html[data-bench="dark"] .hw-capsule {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 46%, rgba(0,0,0,0.22) 100%),
    var(--glass);
}

.checker-bg {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(-45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #EAE8DF 75%),
    linear-gradient(-45deg, transparent 75%, #EAE8DF 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
html[data-bench="dark"] .checker-bg {
  background-color: #161C19;
  background-image:
    linear-gradient(45deg, #212A26 25%, transparent 25%),
    linear-gradient(-45deg, #212A26 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #212A26 75%),
    linear-gradient(-45deg, transparent 75%, #212A26 75%);
}

/* ==========================================================================
   1. UNIFIED HARDWARE PERIMETER HEADER (ALL ROUTES)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: none;
  height: 62px;
  margin: 0;
  padding: 0 var(--ep-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(180deg, color-mix(in oklch, #ffffff 30%, transparent) 0%, transparent 50%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--line-hard);
}
html[data-bench="dark"] header {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    rgba(10, 14, 12, 0.84);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-symbol { width: 30px; height: 30px; display: block; flex: none; }
.brand-symbol svg { display: block; width: 100%; height: 100%; }
html[data-bench="dark"] .brand-symbol .ep-e,
html[data-bench="dark"] .brand-symbol path { fill: #F5F2EB; }
.brand-symbol rect { fill: var(--sig); }
.brand-wordmark strong {
  font-family: var(--ep-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.navlink {
  background: none;
  border: 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--ease-cut), background var(--ease-cut);
}
.navlink:hover { color: var(--ink); background: color-mix(in oklch, var(--ink) 7%, transparent); }

/* Unified hardware control segment (Darkroom + SFX) */
.ep-hw-tools {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
html[data-bench="dark"] .ep-hw-tools { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }

.u-seg {
  height: 100%;
  padding: 0 11px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background var(--ease-cut), color var(--ease-cut);
}
.u-seg:last-child { border-right: none; }
.u-seg:hover { background: color-mix(in oklch, var(--ink) 8%, transparent); color: var(--ink); }
.u-seg .led-mini {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-subtle);
  opacity: 0.45;
  transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.u-seg[aria-pressed="true"] { color: var(--ink); }
.u-seg[aria-pressed="true"] .led-mini {
  background: var(--sig);
  opacity: 1;
  box-shadow: 0 0 8px var(--sig);
}

/* Language Switcher injected by localized-page.js */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-subtle);
  white-space: nowrap;
}
.language-switch a {
  color: var(--ink-muted);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--ease-cut);
}
.language-switch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 800;
}
.language-switch a:hover { color: var(--sig); }

.nav-guest, .nav-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 3D-Beveled Molten Coral Hardware Keycap */
.loginbtn,
.choose,
.studio-primary,
.plan.featured .plan-buy,
#download,
#unlock-result,
.full,
.library-primary,
.scenario-cta button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: linear-gradient(180deg, #FF603E 0%, var(--sig) 54%, #DC3514 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 3px 0 #A7240A,
    0 12px 22px -10px rgba(255, 77, 41, 0.65);
  transition: transform 90ms ease, filter 160ms ease, box-shadow 120ms ease;
}
.loginbtn {
  height: 34px;
  padding: 0 16px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.loginbtn:hover, .choose:hover, .studio-primary:hover, .plan.featured .plan-buy:hover, #download:hover, #unlock-result:hover, .full:hover, .library-primary:hover, .scenario-cta button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #FFFFFF;
}
.loginbtn:active, .choose:active, .studio-primary:active, .full:active {
  transform: translateY(1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 1px 0 #A7240A;
}

/* Account dropdown menu */
.account-menu { position: relative; }
.account-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--sig); }
.account-avatar svg { width: 15px; height: 15px; }
.account-caret { width: 14px; height: 14px; opacity: 0.65; }
.account-mobile-label { display: none; }
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  padding: 12px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-poster);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
}
.account-dropdown-info {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-muted);
}
.account-dropdown-info strong { display: block; color: var(--ink); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.account-dropdown-info p { margin: 4px 0 0; color: var(--sig); font-weight: 600; font-size: 11.5px; }
.account-dropdown button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.account-dropdown button:hover { background: color-mix(in oklch, var(--ink) 8%, transparent); }

/* ==========================================================================
   2. PAGE WRAPPER & HOMEPAGE OPTICAL DISSECTION HERO (1440×900 BENCH)
   ========================================================================== */
.page {
  max-width: none;
  margin: 0;
  padding: 0;
}

body:not([data-scenario]) .hero.acid-hero {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100dvh - 62px);
  min-height: 740px;
  max-height: 920px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--mat-a);
  border-bottom: 1px solid var(--line-hard);
}

/* LAYER 0: Live WebGL Snell Chromatic Dispersion & Caustic Light-Table */
#lightCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* LAYER 1: Paper-Design Diagonal Architectural Cut-Fold + Calibrated Grid */
.paper-fold-plane {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(128deg, transparent 0%, transparent 59.5%, color-mix(in oklch, var(--ink) 5.5%, transparent) 60%, color-mix(in oklch, var(--mat-b) 52%, transparent) 60.3%, color-mix(in oklch, var(--mat-b) 34%, transparent) 100%);
}
html[data-bench="dark"] .paper-fold-plane {
  background: linear-gradient(128deg, transparent 0%, transparent 59.6%, rgba(46, 232, 255, 0.08) 59.9%, rgba(255, 255, 255, 0.025) 60.2%, transparent 100%);
}
.mat-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--mat-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mat-grid) 1px, transparent 1px),
    linear-gradient(to right, var(--mat-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mat-major) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

/* LAYER 2: Monumental Subject-Through-Typography (Retina crisp >= 78%) */
.monumental-plane {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding-bottom: 108px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.monu-row {
  width: 100%;
  padding: 0 clamp(20px, 3.8vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.monu-word {
  font-family: var(--ep-display);
  font-weight: 800;
  font-size: clamp(128px, 17.6vw, 248px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ink) 11%, transparent);
  -webkit-text-stroke: 1.5px color-mix(in oklch, var(--ink) 22%, transparent);
  text-shadow:
    -1.5px 0 0 color-mix(in oklch, var(--prism-c) 24%, transparent),
     1.5px 0 0 color-mix(in oklch, var(--sig) 20%, transparent);
  transition: transform 280ms var(--ease-snap);
}
.monu-word.accent-stroke {
  color: color-mix(in oklch, var(--sig) 8.5%, transparent);
  -webkit-text-stroke: 1.6px color-mix(in oklch, var(--sig) 44%, transparent);
}
html[lang="zh-CN"] .monu-word {
  font-family: var(--ep-font);
  font-weight: 900;
  font-size: clamp(122px, 16.8vw, 236px);
  letter-spacing: 0.06em;
  -webkit-text-stroke: 0;
  color: color-mix(in oklch, var(--ink) 10%, transparent);
  text-shadow:
    -2.5px 0 0 color-mix(in oklch, var(--prism-c) 24%, transparent),
     2.5px 0 0 color-mix(in oklch, var(--sig) 22%, transparent);
}
html[lang="zh-CN"] .monu-word.accent-stroke {
  -webkit-text-stroke: 0;
  color: color-mix(in oklch, var(--sig) 14%, transparent);
  text-shadow:
    -2.5px 0 0 color-mix(in oklch, var(--prism-c) 22%, transparent),
     2.5px 0 0 color-mix(in oklch, var(--sig) 34%, transparent);
}
html[data-bench="dark"] .monu-word {
  color: color-mix(in oklch, var(--ink) 7%, transparent);
  -webkit-text-stroke: 1.5px color-mix(in oklch, var(--ink) 24%, transparent);
  text-shadow:
    -2px 0 12px color-mix(in oklch, var(--prism-c) 26%, transparent),
     2px 0 12px color-mix(in oklch, var(--sig) 24%, transparent);
}
html[lang="zh-CN"][data-bench="dark"] .monu-word {
  -webkit-text-stroke: 0;
  color: color-mix(in oklch, var(--ink) 9%, transparent);
}
html[lang="zh-CN"][data-bench="dark"] .monu-word.accent-stroke {
  -webkit-text-stroke: 0;
  color: color-mix(in oklch, var(--sig) 16%, transparent);
}

/* Homepage Hero Copy & Real Upload Dock (Bottom-Left Bay) */
body:not([data-scenario]) .hero-copy {
  display: contents;
  max-width: none;
}
body:not([data-scenario]) .hero-masthead {
  position: absolute;
  top: 10px;
  left: var(--ep-gutter);
  z-index: 12;
  max-width: 440px;
  pointer-events: auto;
}
body:not([data-scenario]) .hero-masthead .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  font-family: var(--ep-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
body:not([data-scenario]) .hero-masthead .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
body:not([data-scenario]) .hero-masthead h1 {
  margin: 0;
  font-family: var(--ep-display);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}
body:not([data-scenario]) .hero-masthead h1 br { display: none; }
body:not([data-scenario]) .hero-masthead h1 .accent { color: var(--sig); }
html[lang="en"] body:not([data-scenario]) .hero-masthead h1 .accent { margin-left: 0.28em; }
body:not([data-scenario]) .hero-masthead .sub {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.38;
  color: var(--ink-muted);
  max-width: 430px;
}
body:not([data-scenario]) .hero-masthead .sub br { display: block; }

/* REAL UPLOAD WORKSPACE — Left Bay of the Floating Machined Bottom Dock */
body:not([data-scenario]) .workspace {
  position: absolute;
  bottom: 14px;
  left: max(var(--ep-gutter), calc((100% - var(--ep-max)) / 2));
  width: min(468px, calc(36vw));
  z-index: 20;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in oklch, #ffffff 34%, transparent) 0%, transparent 45%),
    var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--shadow-hw);
}
html[data-bench="dark"] body:not([data-scenario]) .workspace {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 46%, rgba(0,0,0,0.22) 100%),
    var(--glass);
}

.purchase-status {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
}
.drop {
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  transition: outline-color var(--ease-cut), background var(--ease-cut);
}
.drop.dragging {
  outline: 2px dashed var(--sig);
  outline-offset: 6px;
  background: var(--sig-soft);
}
body:not([data-scenario]) .drop-top { display: none; }
.drop-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 8px;
}
.choose {
  width: 100%;
  margin: 0;
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  white-space: nowrap;
}
.studio-try {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  background: var(--recess);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: border-color var(--ease-cut), color var(--ease-cut), background var(--ease-cut);
}
.studio-try:hover { border-color: var(--sig); color: var(--sig); background: var(--surface-solid); }

.under-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 0;
  font-size: 10.5px;
  color: var(--ink-subtle);
}
.under-upload span { display: inline-flex; align-items: center; gap: 5px; }
.selection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.selection img { width: 38px; height: 42px; object-fit: contain; border-radius: 5px; border: 1px solid var(--line-hard); background: var(--surface-solid); }
.selection .name { font-size: 11.5px; font-weight: 600; color: var(--ink); margin: 0; }
.selection button { font-size: 11px; color: var(--sig); background: none; padding: 2px 0; font-weight: 600; }
.status { margin-top: 8px; font-size: 11.5px; color: var(--ink); }
.status strong { font-weight: 600; color: var(--ink); }
.status .elapsed { color: var(--ink-muted); font-size: 11px; margin-top: 2px; }
.retry {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--line-hard);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}
.retry:hover { border-color: var(--sig); color: var(--sig); }
body[data-phase="working"] .drop { min-height: 0; }

/* ==========================================================================
   3. OPEN 3D OPTICAL DISSECTION STAGE (.visual-wrap)
   ========================================================================== */
body:not([data-scenario]) .visual-wrap {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  --spread: 0.86;
}
body:not([data-scenario]) .visual-wrap::before,
body:not([data-scenario]) .visual-wrap::after { display: none; }

/* Top strip: Centered sliding-thumb sample rail + right HUD hint */
.stage-top-strip {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--ep-gutter) 4px;
  min-height: 58px;
  pointer-events: none;
}

.sample-rail-wrap {
  pointer-events: auto;
  height: 40px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
}
.case-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 2px;
  margin: 0;
  border-radius: 8px;
  background: var(--recess);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
  width: auto;
}
.rail-slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.32);
  transition: transform 280ms var(--ease-spring), width 260ms var(--ease-snap);
  z-index: 0;
  pointer-events: none;
}
.case-tabs button {
  position: relative;
  z-index: 1;
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: none;
  transition: color 200ms ease;
}
.case-tabs button .st-idx {
  font-family: var(--ep-mono);
  font-size: 9.5px;
  opacity: 0.65;
}
.case-tabs button:hover { color: var(--ink); }
.case-tabs button[aria-selected="true"] {
  background: transparent;
  color: var(--mat-a);
  box-shadow: none;
  transform: none;
}
.case-tabs button[aria-selected="true"] .st-idx { color: var(--sig); opacity: 1; }

.stage-hint-bar {
  position: absolute;
  right: var(--ep-gutter);
  top: 22px;
  font-family: var(--ep-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--ink-subtle);
  max-width: 490px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Central 3D Dissection Arena */
.stage-arena {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 138px; /* Clean clearance above floating bottom console */
  perspective: 1400px;
  pointer-events: auto;
}

#tetherSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.case-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.case-heading, .case-arrow, .case-output > .case-label, .case-note, .carousel-controls, .case-source .case-label {
  display: none;
}
.case-demo {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}

/* Central 3D Poster Frame */
.case-source {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: min(330px, 28vw);
  max-height: calc(100% - 26px);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  border-radius: 9px;
  background: var(--surface-solid);
  border: 1px solid var(--line-hard);
  box-shadow: var(--shadow-poster);
  z-index: 6;
  overflow: hidden;
  transition: transform 280ms var(--ease-snap);
}
.case-source > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(326px, 27.6vw);
  max-height: calc(100vh - 300px);
  min-height: 290px;
  object-fit: contain;
  border-radius: 8px;
}

/* Poster Bounding-Box Cut Overlay */
.cut-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}
.cut-box {
  position: absolute;
  border: 1.5px solid color-mix(in oklch, var(--sig) 82%, transparent);
  background: color-mix(in oklch, var(--sig) 6%, transparent);
  border-radius: 3px;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color var(--ease-cut), background var(--ease-cut), opacity var(--ease-cut), box-shadow var(--ease-cut);
}
.cut-box-idx {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 1px 5px;
  font-family: var(--ep-mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--sig);
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
}
.cut-box.is-active {
  border-color: var(--prism-c);
  background: color-mix(in oklch, var(--prism-c) 16%, transparent);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--prism-c) 35%, transparent), 0 0 18px color-mix(in oklch, var(--prism-c) 35%, transparent);
  z-index: 9;
}
.cut-box.is-dimmed { opacity: 0.24; }

/* Prismatic R/G/B Dispersion Laser Scan Beam */
.laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 3px;
  background: linear-gradient(90deg, var(--prism-c), #FFFFFF 45%, var(--sig) 75%, var(--prism-v));
  box-shadow:
    0 0 18px 4px color-mix(in oklch, var(--sig) 70%, transparent),
    0 -3px 14px 2px color-mix(in oklch, var(--prism-c) 65%, transparent),
    0 14px 30px 6px color-mix(in oklch, var(--sig) 22%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}
.laser-beam.scanning { animation: epLaserSweep 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes epLaserSweep {
  0%   { top: -4%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}

/* Floating Refractive Acrylic Specimen Plates (Positioned Mathematically by studio.js) */
.case-output, .case-grid {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  margin: 0;
  pointer-events: none;
  z-index: 9;
}
.case-grid figure {
  position: absolute;
  top: 0;
  left: 0;
  width: 204px;
  margin: 0;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid var(--line-hard);
  background:
    linear-gradient(155deg, color-mix(in oklch, #ffffff 55%, transparent) 0%, transparent 42%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--shadow-plate);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: border-color var(--ease-cut), box-shadow 220ms var(--ease-snap), opacity 200ms ease;
}
html[data-bench="dark"] .case-grid figure {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.12) 0%, transparent 45%),
    rgba(20, 26, 23, 0.86);
}
/* Live cursor-tracked grazing specular light glint */
.case-grid figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle 130px at var(--gx, 50%) var(--gy, 20%), rgba(255,255,255,0.42), transparent 72%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 4;
}
html[data-bench="dark"] .case-grid figure::before {
  background: radial-gradient(circle 130px at var(--gx, 50%) var(--gy, 20%), rgba(46, 232, 255, 0.24), transparent 72%);
}
.case-grid figure:hover::before,
.case-grid figure.is-active::before { opacity: 1; }

.case-grid figure.is-active {
  border-color: var(--sig);
  box-shadow: 0 28px 54px -14px rgba(255, 77, 41, 0.34), 0 0 0 1.5px var(--sig);
  z-index: 16;
}
.case-grid figure.is-dimmed { opacity: 0.30 !important; }

.studio-piece-button {
  position: relative;
  width: 100%;
  height: 112px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in oklch, var(--surface-solid) 92%, var(--recess));
  display: grid;
  place-items: center;
  overflow: hidden;
}
html[data-bench="dark"] .studio-piece-button {
  background: rgba(10, 14, 12, 0.72);
}
.acrylic-idx {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--mat-a);
  font-family: var(--ep-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.acrylic-idx i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--sig);
  display: inline-block;
}
.case-grid figure.is-active .acrylic-idx { background: var(--sig); color: #fff; }
.case-grid figure.is-active .acrylic-idx i { background: #fff; }

.case-grid figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
  display: block;
}
.case-grid figcaption {
  margin: 0;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acrylic-dim-tag {
  font-family: var(--ep-mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   4. FLOATING BOTTOM RIGHT HARDWARE CONSOLE (.studio-view-control)
   Calibrated Vernier Dissection Dial + 35mm Contact-Sheet Filmstrip
   ========================================================================== */
.studio-view-control {
  position: absolute;
  bottom: 14px;
  left: calc(max(var(--ep-gutter), (100% - var(--ep-max)) / 2) + min(468px, 36vw) + 12px);
  right: max(var(--ep-gutter), calc((100% - var(--ep-max)) / 2));
  z-index: 20;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
}

.dock-vernier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.vernier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vernier-lbl {
  font-family: var(--ep-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.vernier-readout {
  font-family: var(--ep-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sig);
  font-variant-numeric: tabular-nums;
}

.vernier-track-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.snap-btn {
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid var(--line-hard);
  background: var(--recess);
  color: var(--ink-muted);
  font-family: var(--ep-mono);
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--ease-cut), color var(--ease-cut), border-color var(--ease-cut);
}
.snap-btn:hover { background: var(--ink); color: var(--mat-a); border-color: var(--ink); }

.vernier-housing {
  position: relative;
  flex: 1;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line-hard);
  background: var(--recess);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.vernier-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 86%;
  background: linear-gradient(90deg, color-mix(in oklch, var(--prism-c) 45%, transparent), color-mix(in oklch, var(--sig) 52%, transparent));
  pointer-events: none;
}
.vernier-ticks {
  position: absolute;
  inset: 0 10px;
  background-image: repeating-linear-gradient(to right, var(--ink-subtle) 0 1px, transparent 1px 10px);
  background-size: 100% 7px;
  background-position: left bottom;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
}
.vernier-knob {
  position: absolute;
  top: 50%;
  left: 86%;
  width: 22px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 1px, rgba(0,0,0,0.16) 1px 3px),
    linear-gradient(180deg, #F8F6F0 0%, #D8D4CA 100%);
  border: 1px solid rgba(15, 25, 20, 0.36);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
  display: grid;
  place-items: center;
}
html[data-bench="dark"] .vernier-knob {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, rgba(0,0,0,0.38) 1px 3px),
    linear-gradient(180deg, #3A423E 0%, #1F2522 100%);
  border-color: rgba(255, 255, 255, 0.28);
}
.vernier-knob::after {
  content: "";
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--sig);
  box-shadow: 0 0 6px var(--sig);
}
.vernier-native {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.vernier-btns { display: flex; gap: 6px; margin-top: 2px; }
.hw-keycap-dark {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--ink) 88%, #fff) 0%, var(--ink) 100%);
  color: var(--mat-a);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 0 rgba(0, 0, 0, 0.26);
  transition: transform 80ms ease, background var(--ease-cut), border-color var(--ease-cut);
}
.hw-keycap-dark:hover { background: var(--sig); border-color: var(--sig); color: #fff; }
.hw-keycap-dark:active { transform: translateY(1.5px); }

.hw-keycap-ghost {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-hard);
  border-radius: 7px;
  background: var(--recess);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: border-color var(--ease-cut), color var(--ease-cut), background var(--ease-cut);
}
.hw-keycap-ghost:hover { border-color: var(--sig); color: var(--sig); background: var(--surface-solid); }

/* Right Bay: 35mm Leica Contact-Sheet Specimen Strip */
.dock-filmstrip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.filmstrip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--ep-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
#studio-quick-zip {
  font-family: var(--ep-font);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sig);
  white-space: nowrap;
}
#studio-quick-zip:hover { text-decoration: underline; }

.filmstrip-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.slide-slot {
  border: 1px solid var(--line-hard);
  border-radius: 8px;
  background: var(--recess);
  padding: 5px 7px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: border-color var(--ease-cut), background var(--ease-cut), transform 180ms var(--ease-snap);
}
.slide-slot:hover, .slide-slot.is-active {
  border-color: var(--sig);
  background: color-mix(in oklch, var(--sig) 10%, var(--surface-solid));
  transform: translateY(-2px);
}
.strip-thumb {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--line);
  padding: 3px;
  display: grid;
  place-items: center;
}
.strip-thumb img { max-width: 100%; max-height: 26px; width: auto; height: auto; object-fit: contain; }
.strip-info { min-width: 0; }
.strip-name { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-dim { font-family: var(--ep-mono); font-size: 8.5px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   5. BELOW-THE-FOLD: REAL RESULTS, USE-CASE GALLERY, PROCESS STRIP, FOOTER
   ========================================================================== */
body[data-phase="complete"] .hero.acid-hero {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 20px var(--ep-gutter);
}
body[data-phase="complete"] #lightCanvas,
body[data-phase="complete"] .paper-fold-plane,
body[data-phase="complete"] .monumental-plane,
body[data-phase="complete"] .hero-masthead,
body[data-phase="complete"] .visual-wrap { display: none !important; }
body[data-phase="complete"] .workspace {
  position: static;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.resultsection {
  max-width: var(--ep-max);
  margin: 36px auto 64px;
  padding: 0 var(--ep-gutter);
}
.result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ep-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}
.result-head h1 {
  margin: 6px 0 0;
  font-family: var(--ep-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.another {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line-hard);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.another:hover { border-color: var(--sig); color: var(--sig); }
.result-notice {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklch, var(--sig) 35%, var(--line));
  background: var(--sig-soft);
  color: var(--ink);
  font-size: 13px;
  margin: 0 0 18px;
}
.file-expiry { color: var(--ink-muted); font-size: 12.5px; margin: 0 0 18px; }
.result-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
}
.panel h2 { font-family: var(--ep-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); margin: 0 0 12px; }
.canvas img { width: 100%; border-radius: 8px; border: 1px solid var(--line-hard); display: block; }
.slices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative;
  height: 152px;
  padding: 12px 12px 30px;
  border: 1px solid var(--line-hard);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background-color: #FFFFFF;
  background-image:
    linear-gradient(45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(-45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #EAE8DF 75%),
    linear-gradient(-45deg, transparent 75%, #EAE8DF 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  transition: border-color var(--ease-cut), transform 180ms var(--ease-snap);
}
html[data-bench="dark"] .tile {
  background-color: #141A17;
  background-image:
    linear-gradient(45deg, #1E2723 25%, transparent 25%),
    linear-gradient(-45deg, #1E2723 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1E2723 75%),
    linear-gradient(-45deg, transparent 75%, #1E2723 75%);
}
.tile:hover { border-color: var(--sig); transform: translateY(-2px); }
.tile img { max-width: 88%; max-height: 102px; object-fit: contain; }
.tile-caption { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--ink-muted); }
.downloadbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
}
.downloadbar strong { font-size: 14px; color: var(--ink); }
.downloadbar p { font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; }
#download, #unlock-result {
  padding: 11px 22px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Use-Case Gallery (#use-cases) */
.scenario-links {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 64px var(--ep-gutter) 20px;
  border: 0;
}
.scenario-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.scenario-section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ep-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sig);
  margin-bottom: 6px;
}
.scenario-section-heading .eyebrow::before { display: none; }
.scenario-section-heading h2 {
  margin: 0;
  font-family: var(--ep-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.scenario-section-heading > p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  max-width: 340px;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
  transition: transform 200ms var(--ease-snap), border-color var(--ease-cut), box-shadow 200ms ease;
}
.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--sig);
  box-shadow: 0 24px 44px -18px rgba(255, 77, 41, 0.24);
}
.scenario-card-images {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 8px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--recess);
  min-height: 164px;
  align-items: center;
}
.scenario-card-images img {
  width: 100%;
  height: 136px;
  object-fit: contain;
  background: var(--surface-solid);
  border-radius: 6px;
  padding: 4px;
  border: 1px solid var(--line);
}
.scenario-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.scenario-card-title h3 { margin: 0; font-family: var(--ep-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.scenario-card-title > span { color: var(--sig); font-size: 20px; font-weight: 700; }
.scenario-card p { margin: 8px 0 14px; font-size: 13px; color: var(--ink-muted); line-height: 1.58; flex: 1; }
.scenario-card-link { font-size: 12.5px; font-weight: 700; color: var(--sig); }

/* 3-Step Process Strip */
.flow-strip {
  max-width: var(--ep-max);
  margin: 44px auto 54px;
  padding: 26px var(--ep-gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  background: transparent;
}
.flow-strip::before { display: none; }
.flow-item {
  padding: 20px 22px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--surface-solid);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-hw);
}
.flow-item + .flow-item { border-left: 1px solid var(--line-hard); }
.stepno { font-family: var(--ep-mono); font-size: 11px; font-weight: 700; color: var(--sig); padding-top: 2px; flex-shrink: 0; }
.flow-item h3 { margin: 0 0 5px; font-family: var(--ep-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.flow-item p { margin: 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; max-width: none; }

/* Architectural Footer */
.site-footer {
  max-width: none;
  margin: 24px 0 0;
  padding: 28px var(--ep-gutter) 32px;
  border-top: 1px solid var(--line-hard);
  background: var(--mat-b);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--ink-muted);
}
.footer-business span { font-weight: 700; color: var(--ink); }
.footer-business p { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-subtle); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-muted); font-weight: 600; transition: color var(--ease-cut); }
.footer-links a:hover { color: var(--sig); text-decoration: none; }

/* ==========================================================================
   6. PRICING PAGE (/pricing), SCENARIO PAGES, & LEGAL DOCS
   ========================================================================== */
.pricing-page,
.document-page {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 36px var(--ep-gutter) 64px;
}
.pricing-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--surface-solid);
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.pricing-account a { color: var(--sig); font-weight: 700; }
.pricing-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--surface-solid);
  margin-bottom: 24px;
}
.pricing-preview > img { width: 72px; height: 82px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: var(--recess); }
.pricing-preview a { color: var(--sig); font-weight: 700; }
.pricing-image-note { padding: 12px 16px; border-radius: 10px; background: var(--sig-soft); color: var(--ink); font-size: 12.5px; margin-bottom: 20px; }

.pricing-section#prices { max-width: none; width: 100%; padding: 8px 0 24px; }
.pricing-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pricing-display {
  font-family: var(--ep-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: color-mix(in oklch, var(--ink) 16%, transparent);
}
.pricing-display span { color: var(--sig); }
.pricing-page .section-heading { text-align: left; margin: 0; }
.pricing-page .section-heading h1 {
  margin: 0;
  font-family: var(--ep-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-page .section-heading p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-muted); }

.pricing-page .plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}
.pricing-page .plan {
  position: relative;
  padding: 24px 20px;
  border: 1.5px solid var(--line-hard);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-index { font-family: var(--ep-mono); font-size: 10px; font-weight: 700; color: var(--sig); margin-bottom: 6px; display: block; }
.pricing-page .plan h3 { margin: 0; font-family: var(--ep-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.pricing-page .plan b { font-family: var(--ep-display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 8px; color: var(--ink); }
.pricing-page .plan b small { font-size: 18px; margin-right: 2px; }
.pricing-page .plan > div { font-size: 13px; color: var(--ink-muted); }
.pricing-page .plan p { font-family: var(--ep-mono); font-size: 11px; color: var(--ink-subtle); margin: 6px 0 0; }
.pricing-page .plan .plan-buy,
.pricing-page .plan button {
  margin-top: 22px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-hard);
  background: var(--ink);
  color: var(--mat-a);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.pricing-page .plan .plan-buy:hover { background: var(--sig); border-color: var(--sig); color: #fff; }
.pricing-page .plan button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Signature Deep Obsidian-Pine Lifetime Pillar */
.pricing-page .plan.featured {
  background: #0F1E17;
  border-color: var(--sig);
  color: #F5F2EB;
  box-shadow: 0 22px 46px -16px rgba(255, 77, 41, 0.35);
}
.pricing-page .plan.featured h3,
.pricing-page .plan.featured b { color: #F5F2EB; }
.pricing-page .plan.featured > div,
.pricing-page .plan.featured p { color: rgba(245, 242, 235, 0.74); }
.pricing-page .plan.featured .plan-buy {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #FF603E 0%, var(--sig) 54%, #DC3514 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 3px 0 #A7240A, 0 12px 22px -10px rgba(255, 77, 41, 0.65);
}
.pricing-page .plan.featured .plan-buy:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  color: #FFFFFF;
}
.plan-symbol {
  font-family: var(--ep-display);
  font-size: 52px;
  line-height: 0.85;
  font-weight: 800;
  color: var(--sig);
  display: block;
  margin-top: 8px;
}
.pricing-note { font-size: 12.5px; color: var(--ink-muted); margin: 8px 0; }
.pricing-note a { color: var(--sig); text-decoration: underline; text-underline-offset: 3px; }

/* Scenario Pages (/poster-slicing, /illustration-slicing, /screenshot-extraction) */
.scenario-page { max-width: var(--ep-max); margin: 0 auto; padding: 24px var(--ep-gutter) 56px; }
.breadcrumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 12px; color: var(--ink-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-subtle); }
.scenario-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.scenario-nav a {
  padding: 7px 14px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  background: var(--surface-solid);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}
.scenario-nav a[aria-current="page"] { background: var(--ink); color: var(--mat-a); border-color: var(--ink); }

.scenario-page .hero.acid-hero {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line-hard);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
  overflow: hidden;
}
.scenario-page #lightCanvas,
.scenario-page .paper-fold-plane,
.scenario-page .monumental-plane { display: none; }
.scenario-page .hero-copy { display: block; position: relative; z-index: 2; }
.scenario-page .hero-masthead { position: static; max-width: none; }
.scenario-page .hero-masthead .eyebrow { color: var(--sig); font-family: var(--ep-mono); font-size: 10.5px; font-weight: 700; margin-bottom: 10px; }
.scenario-page .hero-masthead .eyebrow::before { display: none; }
.scenario-page .hero-masthead h1 { font-family: var(--ep-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; margin: 0 0 14px; color: var(--ink); }
.scenario-page .hero-masthead h1 .accent { color: var(--sig); }
.scenario-page .hero-masthead .sub { font-size: 14px; line-height: 1.72; color: var(--ink-muted); margin: 0 0 22px; max-width: 480px; }
.scenario-page .workspace {
  position: static;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  background: var(--recess);
}
.scenario-page .drop-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.scenario-page .upload-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-solid); border: 1px solid var(--line); display: grid; place-items: center; color: var(--sig); }
.scenario-page .drop h2 { font-size: 14.5px; margin: 0; color: var(--ink); }
.scenario-page .types { font-size: 11px; color: var(--ink-subtle); }
.scenario-page .studio-try { display: none; }
.scenario-page .drop-actions { grid-template-columns: 1fr; }

.scenario-visual { position: relative; z-index: 2; }
.example-comparison {
  padding: 20px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--recess);
}
.example-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.example-heading h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.example-heading span { font-family: var(--ep-mono); font-size: 10px; font-weight: 700; color: var(--sig); }
.example-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) 20px minmax(0, 1.15fr); gap: 12px; align-items: center; }
.example-arrow { text-align: center; color: var(--sig); font-weight: 800; }
.example-label { font-family: var(--ep-mono); font-size: 10px; color: var(--ink-subtle); margin: 0 0 8px; }
.example-zoom { width: 100%; padding: 6px; border: 1px solid var(--line-hard); border-radius: 8px; background: var(--surface-solid); display: grid; place-items: center; }
.example-zoom:hover { border-color: var(--sig); }
.example-zoom img { width: 100%; max-height: 290px; object-fit: contain; display: block; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.example-grid figure { margin: 0; }
.example-grid .example-zoom img { height: 92px; }
.example-grid figcaption { font-size: 11px; color: var(--ink-muted); text-align: center; margin-top: 4px; }
.example-caption, .example-hint { font-size: 11.5px; color: var(--ink-subtle); margin: 10px 0 0; }

.scenario-content { margin-top: 32px; display: flex; flex-direction: column; gap: 36px; }
.scenario-fit { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 24px; padding: 24px; border: 1px solid var(--line-hard); border-radius: 14px; background: var(--surface-solid); }
.scenario-fit h2 { margin: 6px 0 0; font-family: var(--ep-display); font-size: 26px; color: var(--ink); }
.scenario-fit h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.scenario-fit p { margin: 0 0 14px; font-size: 13px; color: var(--ink-muted); line-height: 1.65; }
.scenario-faq details { padding: 14px 18px; border: 1px solid var(--line-hard); border-radius: 10px; background: var(--surface-solid); margin-top: 10px; }
.scenario-faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.scenario-faq p { margin: 10px 0 0; color: var(--ink-muted); font-size: 13px; }
.scenario-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: 14px; background: #0F1E17; color: #F5F2EB; }
.scenario-cta h2 { margin: 0; font-size: 22px; color: #F5F2EB; }
.scenario-cta p { margin: 6px 0 0; font-size: 13px; color: rgba(245, 242, 235, 0.72); }
.scenario-cta button { padding: 11px 22px; font-size: 13px; white-space: nowrap; }

/* Legal Docs (/terms, /privacy, /refunds, /contact) */
.document-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line-hard);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-hw);
}
.document-content h1 { margin: 0 0 20px; font-family: var(--ep-display); font-size: 32px; font-weight: 800; color: var(--ink); }
.document-content h2 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.document-content p { font-size: 14px; line-height: 1.85; color: var(--ink-muted); }
.document-content a { color: var(--sig); text-decoration: underline; text-underline-offset: 3px; }
.back-home { display: block; max-width: 820px; margin: 22px auto 0; color: var(--sig); font-size: 13px; font-weight: 700; }

/* ==========================================================================
   7. DIALOGS: LOGIN, PURCHASE, MY IMAGES LIBRARY, ASSET VIEWER & V3 LOUPE
   ========================================================================== */
dialog {
  border: 1.5px solid var(--line-hard);
  border-radius: 16px;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow-poster);
  padding: 28px;
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); }
dialog .close {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-hard);
  background: var(--recess);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}
dialog .close:hover { background: var(--ink); color: var(--mat-a); }
.dialog-language { margin-bottom: 12px; }
.dialog-language .language-switch { height: 28px; font-size: 11px; }

#login, #purchase { width: min(440px, calc(100vw - 32px)); }
#login h2, #purchase h2 { margin: 0 0 8px; font-family: var(--ep-display); font-size: 24px; font-weight: 800; color: var(--ink); }
.auth-tabs { display: flex; gap: 6px; padding: 3px; border-radius: 9px; background: var(--recess); margin: 16px 0; }
.auth-tabs button { flex: 1; padding: 8px; border-radius: 7px; background: transparent; color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.auth-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--mat-a); }
.field { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 14px; }
.field input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  margin-top: 6px;
  border: 1px solid var(--line-hard);
  border-radius: 9px;
  background: var(--mat-a);
  color: var(--ink);
  font-size: 14px;
}
.input-help { font-size: 11px; color: var(--ink-subtle); margin: 5px 0 0; }
.form-error { color: var(--error); font-size: 12px; font-weight: 600; margin: 10px 0 0; }
.full { width: 100%; margin-top: 18px; min-height: 44px; font-size: 13.5px; }
.purchase-summary { font-family: var(--ep-display); font-size: 32px; font-weight: 800; color: var(--sig); margin: 14px 0 8px; }
.purchase-details { font-size: 13px; color: var(--ink-muted); line-height: 1.7; }
.purchase-links a { color: var(--sig); text-decoration: underline; }

/* My Images Library (#account) */
#account {
  width: min(1060px, calc(100vw - 40px));
  max-width: 1060px;
  height: min(820px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  background: var(--surface-solid);
}
#account[open] { display: flex; flex-direction: column; }
.library-top { padding: 22px 28px 16px; border-bottom: 1px solid var(--line); }
.library-eyebrow { font-family: var(--ep-mono); font-size: 10px; font-weight: 700; color: var(--sig); }
#account h2 { font-family: var(--ep-display); font-size: 26px; font-weight: 800; color: var(--ink); margin: 4px 0 0; }
.library-balance { color: var(--ink); background: var(--recess); padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-hard); }
.library-balance strong { color: var(--ink); }
.balance-dot { background: var(--success); }
#account-buy { color: var(--sig); font-weight: 700; }
.library-primary { padding: 10px 18px; min-height: 40px; }
.library-close { border: 1px solid var(--line-hard); background: var(--recess); color: var(--ink); }
#account .account-tabs { padding: 0 28px; border-bottom: 1px solid var(--line); }
#account .account-tabs button { color: var(--ink-muted); font-weight: 600; }
#account .account-tabs button[aria-selected="true"] { color: var(--sig); border-bottom-color: var(--sig); }
.library-content { padding: 22px 28px; }
.library-card { background: var(--mat-a); border: 1px solid var(--line-hard); border-radius: 12px; }
.library-preview { background: var(--recess); border-bottom: 1px solid var(--line); }
.library-card h3 { color: var(--ink); }
.library-card p, .library-card time { color: var(--ink-muted); }
.library-card-actions { border-top-color: var(--line); }
.library-card-actions a { color: var(--ink-muted); }
.library-card-actions .library-download { background: var(--sig-soft); color: var(--sig); font-weight: 700; }
.library-footer { background: var(--recess); border-top: 1px solid var(--line); color: var(--ink-muted); padding: 12px 28px; }
.library-footer button { color: var(--ink); font-weight: 600; }
#customer-orders-list .history-row { background: var(--mat-a); border: 1px solid var(--line-hard); border-radius: 10px; }
#customer-orders-list .history-row strong { color: var(--ink); }
#customer-orders-list .history-row button { background: var(--ink); color: var(--mat-a); border-radius: 7px; font-weight: 600; }

/* Asset Viewer & Example Viewer */
#asset-viewer, #example-viewer { width: min(920px, calc(100vw - 32px)); padding: 22px; }
.asset-viewer-canvas, .example-viewer-canvas {
  display: grid;
  place-items: center;
  min-height: 260px;
  height: 58vh;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line-hard);
  background: var(--recess);
}
#example-viewer-image, #asset-viewer-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.asset-viewer-controls button { border: 1px solid var(--line-hard); border-radius: 8px; background: var(--recess); color: var(--ink); font-weight: 600; }

/* UPGRADED V3 PRECISION ASSET LOUPE (#studio-example) */
.studio-dialog {
  width: min(1240px, calc(100vw - 36px));
  height: min(760px, calc(100dvh - 44px));
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--line-hard);
  border-radius: 16px;
}
.studio-dialog[open] { display: grid; grid-template-rows: 62px minmax(0, 1fr); }
.studio-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  background: var(--recess);
  border-bottom: 1px solid var(--line-hard);
}
.studio-dialog-brand { display: flex; align-items: center; gap: 10px; }
.studio-mark { width: 14px; height: 14px; border-radius: 3px; background: var(--sig); transform: rotate(9deg); display: block; }
.studio-dialog-brand h2 { margin: 0; font-family: var(--ep-display); font-size: 17px; font-weight: 800; color: var(--ink); }
.studio-demo-label { font-family: var(--ep-mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--sig-soft); color: var(--sig); }
.studio-dialog-header .dialog-language { margin: 0; }

.studio-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 264px;
  min-height: 0;
  overflow: hidden;
}
.studio-original {
  padding: 16px;
  border-right: 1px solid var(--line-hard);
  background: var(--mat-a);
  overflow: auto;
}
.studio-panel-label { font-family: var(--ep-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sig); display: block; margin-bottom: 8px; }
.studio-original select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-hard);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
#studio-original-image {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line-hard);
  background: var(--surface-solid);
}
.studio-help { font-size: 11.5px; color: var(--ink-muted); margin: 12px 0 10px; }
.studio-asset-list { display: grid; gap: 6px; }
.studio-asset-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.studio-asset-list button[aria-pressed="true"] { border-color: var(--sig); background: var(--sig-soft); }
.studio-asset-list button img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; background: var(--recess); }

.studio-preview-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-solid); }
.studio-preview-toolbar {
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.studio-toolbar-right { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ep-mono); font-size: 11px; color: var(--ink-muted); }
.studio-zoom-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-hard);
  background: var(--recess);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.studio-zoom-btn:hover { border-color: var(--sig); color: var(--sig); }

.studio-preview {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
  transition: background 180ms ease;
}
.studio-preview[data-backdrop="paper"] { background: #FFFFFF; }
.studio-preview[data-backdrop="green"] { background: #090B0A; }
.studio-preview[data-backdrop="coral"] { background: #FF4D29; }
.studio-preview[data-backdrop="grid"] {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(-45deg, #EAE8DF 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #EAE8DF 75%),
    linear-gradient(-45deg, transparent 75%, #EAE8DF 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.studio-preview img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 220ms var(--ease-snap); }
.studio-preview[data-zoom="2"] img { transform: scale(1.68); }

.studio-preview-bottom {
  height: 54px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.studio-backgrounds { display: flex; gap: 8px; }
.studio-backgrounds button {
  width: 34px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--line-hard);
}
.studio-backgrounds button[aria-pressed="true"] { border-color: var(--sig); box-shadow: 0 0 0 2px var(--sig-soft); }
.studio-backgrounds [data-studio-bg="grid"] {
  background-color: #FFFFFF;
  background-image: linear-gradient(45deg, #DAD6CA 25%, transparent 25%, transparent 75%, #DAD6CA 75%);
  background-size: 10px 10px;
}
.studio-backgrounds [data-studio-bg="paper"] { background: #FFFFFF; }
.studio-backgrounds [data-studio-bg="green"] { background: #090B0A; }
.studio-backgrounds [data-studio-bg="coral"] { background: #FF4D29; }

.studio-inspector {
  padding: 20px 18px;
  border-left: 1px solid var(--line-hard);
  background: var(--mat-a);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.studio-inspector h3 { margin: 0 0 16px; font-family: var(--ep-display); font-size: 20px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.studio-properties { display: grid; gap: 12px; margin: 0; }
.studio-properties > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.studio-properties dt { font-family: var(--ep-mono); font-size: 9.5px; color: var(--ink-subtle); text-transform: uppercase; margin-bottom: 3px; }
.studio-properties dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.studio-export { display: grid; gap: 9px; }
.studio-primary, .studio-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9px;
}
.studio-secondary { border: 1px solid var(--line-hard); background: var(--surface-solid); color: var(--ink); }
.studio-secondary:hover { border-color: var(--sig); color: var(--sig); }
.studio-own-upload {
  padding: 11px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--sig);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   8. RESPONSIVE & MOBILE 390×844 CRAFT (ZERO OVERFLOW · UNOBSTRUCTED POSTER)
   ========================================================================== */
@media (max-width: 1160px) {
  body:not([data-scenario]) .hero.acid-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 14px 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body:not([data-scenario]) .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 2;
  }
  body:not([data-scenario]) .hero-masthead {
    position: static;
    max-width: none;
  }
  body:not([data-scenario]) .workspace {
    position: static;
    width: 100%;
  }
  body:not([data-scenario]) .visual-wrap {
    position: relative;
    inset: auto;
    order: 1;
    pointer-events: auto;
    gap: 12px;
  }
  .stage-top-strip { padding: 0; min-height: 0; flex-direction: column; gap: 6px; }
  .sample-rail-wrap { width: 100%; justify-content: center; padding: 3px; }
  .case-tabs { width: 100%; justify-content: space-between; }
  .case-tabs button { flex: 1; justify-content: center; padding: 0 5px; font-size: 11px; gap: 4px; }
  .stage-hint-bar { display: none; }

  .stage-arena {
    flex: none;
    margin-bottom: 0;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
  }
  .case-slide { position: relative; inset: auto; width: 100%; display: flex; justify-content: center; }
  .case-slide[hidden] { display: none !important; }
  .case-demo { position: relative; inset: auto; display: flex; justify-content: center; }
  .case-source { position: relative; left: auto; top: auto; transform: none !important; max-width: 72vw; max-height: 280px; }
  .case-source > img { max-width: 72vw; max-height: 272px; min-height: 0; }
  #tetherSvg, .case-output { display: none !important; }

  .studio-view-control {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .dock-vernier { padding-right: 0; border-right: none; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .filmstrip-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .slide-slot { padding: 6px; gap: 6px; }

  .monumental-plane { padding-bottom: 0; }
  .monu-word { font-size: 84px; }

  .scenario-cards, .flow-strip, .pricing-page .plans, .scenario-page .hero.acid-hero, .scenario-fit, .result-body {
    grid-template-columns: 1fr;
  }
  .studio-workspace { grid-template-columns: 1fr; overflow: auto; }
  .studio-original, .studio-inspector { border: 0; border-top: 1px solid var(--line); }
  .studio-preview { min-height: 240px; }
}

@media (max-width: 640px) {
  header {
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-symbol { width: 26px; height: 26px; }
  .brand-wordmark strong { font-size: 16px; }
  .account-nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }
  .account-nav > .navlink { padding: 5px 6px; font-size: 11.5px; }
  .ep-hw-tools { height: 30px; }
  .u-seg { padding: 0 7px; font-size: 10.5px; }
  .language-switch { height: 30px; padding: 0 7px; font-size: 10.5px; }
  .loginbtn { height: 30px; padding: 0 11px; font-size: 11px; }
  .drop-actions { grid-template-columns: 1fr; }
  .slices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-cta { flex-direction: column; align-items: flex-start; }
  .pricing-page .plans { grid-template-columns: 1fr; }
}

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