/* =========================================================
   STEREOMAKER by 3Dstreaming.org — design tokens
   ========================================================= */
:root{
  --bg:            #0a0d13;
  --bg-raised:     #10141d;
  --bg-panel:      #131826;
  --line:          #232a3b;
  --line-soft:     #1a2030;

  --text:          #e9edf5;
  --text-dim:      #9aa4b8;
  --text-faint:    #626c81;

  --cyan:          #4fd8e8;
  --cyan-dim:      #2b8f9c;
  --red:           #ef5b56;
  --red-dim:       #a53f3c;
  --green:         #3ddc84;
  --green-dim:     #279256;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --shadow-panel: 0 20px 60px -30px rgba(0,0,0,0.7);
}

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

/* Hard guarantee: the [hidden] attribute always wins over any class-based
   display rule below (e.g. .stage-canvas{display:block}, .stage-wrap{display:flex},
   .processing-overlay{display:flex} all have equal-or-lower specificity than
   this, so without this rule the browser can keep "hidden" elements visible). */
[hidden]{ display: none !important; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{ font-family: var(--font-display); margin:0; letter-spacing: -0.01em; }
p{ margin:0; }
a{ color: inherit; }
button{ font-family: inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* subtle film-grain / noise atmosphere */
.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 1;
  opacity: 0.035; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

   /* Social badges (X / YouTube) */
    .social-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 34px; height: 34px;
      border-radius: 8px;
      border: 1.5px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.05);
      color: #e5e7eb;
      transition: all 0.2s;
      flex-shrink: 0;
      text-decoration: none;
    }
    .social-badge svg { width: 16px; height: 16px; }
    .social-badge.badge-x:hover { border-color: #fff; background: #000; color: #fff; box-shadow: 0 0 14px rgba(255,255,255,0.25); }
    .social-badge.badge-yt:hover { border-color: #ff0000; background: rgba(255,0,0,0.15); color: #ff0000; box-shadow: 0 0 14px rgba(255,0,0,0.35); }
    .social-badges-inline { display: inline-flex; align-items: center; gap: 8px; }
	

/* ---------- work-in-progress banner ---------- */
/* Desktop/tablet: compact badge that lives inline inside the header-actions cluster */
.wip-banner{
  background:linear-gradient(90deg, rgba(255,107,107,0.14), rgba(255,107,107,0.05));
  border:1px solid rgba(255,107,107,0.35);
  border-radius:10px;
  color:#ffb3b3;
  font-size:13px;
  font-weight:600;
  text-align:left;
  padding:8px 14px;
  letter-spacing:0.01em;
  line-height:1.4;
  max-width:360px;
}

/* =========================================================
   Header
   ========================================================= */
header{
  position: sticky; top:0; z-index: 40;
  background: rgba(10,13,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand .mark{
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  width: 38px; height:38px;
  border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--red));
  color:#0a0d13; font-family: var(--font-display); font-size: 15px; font-weight:700;
}
header h1{
  display:flex; align-items:baseline; flex-wrap:wrap; gap:8px;
  font-family: var(--font-display); font-weight:600; letter-spacing: 0.05em; font-size: 18px;
}
header h1 span{
  font-family: var(--font-body); font-weight:500; letter-spacing: 0.02em;
  font-size: 11.5px; color: var(--text-faint);
}
.subtitle{ margin-top: 2px; font-size: 12.5px; color: var(--text-dim); }

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

.btn-watch-videos, .btn-help{
  display:inline-flex; align-items:center; gap: 6px;
  text-decoration:none; font-size: 14px; font-weight:600;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-watch-videos svg, .btn-help svg{ width:16px; height:16px; }

.btn-watch-videos{
  color:#0a0d13; background: var(--cyan); border-color: var(--cyan);
}
.btn-watch-videos:hover{ transform: translateY(-1px); background: var(--cyan-dim); border-color: var(--cyan-dim); }

.btn-help{
  color: var(--text-dim); background: transparent;
}
.btn-help:hover{ color: var(--text); border-color: var(--text-dim); }

@media (max-width: 760px){
  header{ padding: 12px 16px; }
  .subtitle{ display:none; }
  .btn-watch-videos span, .btn-help span{ display:none; }
}

/* =========================================================
   Hero — signature anaglyph-offset headline
   ========================================================= */
.hero{
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 96px 28px 72px;
}
.hero__inner{ max-width: 780px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 14.5px; color: var(--text-dim);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow__dot{ width:6px; height:6px; border-radius:50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.hero__title{
  position: relative;
  font-size: clamp(2.91rem, 6.48vw, 4.93rem);
  font-weight: 600; line-height: 1.04;
  margin-bottom: 26px;
}
.hero__title .ghost{
  position:absolute; top:0; left:0; white-space: pre-wrap;
  filter: blur(0.3px);
}
.hero__title .ghost--cyan{ color: var(--cyan); transform: translate3d(calc(-6px + var(--px,0)*1px), calc(var(--py,0)*1px), 0); mix-blend-mode: screen; opacity:.85; }
.hero__title .ghost--red{ color: var(--red); transform: translate3d(calc(6px + var(--px,0)*-1px), calc(var(--py,0)*-1px), 0); mix-blend-mode: screen; opacity:.85; }
.hero__title .ghost__base{ position:relative; color: var(--text); }

.hero__sub{
  font-size: 19.5px; color: var(--text-dim); max-width: 560px; margin-bottom: 36px;
}

.hero__actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-size: 16.5px; font-weight: 600; text-decoration:none; cursor:pointer;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary{ background: var(--text); color: var(--bg); }
.btn--primary:hover{ background: var(--cyan); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(79,216,232,0.45); }
.btn--primary:disabled{ opacity: .4; cursor:not-allowed; transform:none; box-shadow:none; }
.btn--ghost{ background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover{ border-color: var(--text-dim); }
.btn--green{ background: var(--green); color: #06170e; }
.btn--green:hover{ background: #58e79a; transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(61,220,132,0.5); }
.btn--green:disabled{ opacity: .4; cursor:not-allowed; transform:none; box-shadow:none; }
.btn--danger{ color: var(--red-dim); }
.btn--danger:hover{ border-color: var(--red); color: var(--red); }
.btn--danger:disabled{ opacity:.4; cursor:not-allowed; }
.btn--sm{ padding: 9px 16px; font-size: 15.5px; }
.btn--full{ width: 100%; margin-top: 6px; }

.hero__stats{
  display:flex; gap: 40px; margin:0; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.hero__stats dt{ font-family: var(--font-mono); font-size: 25.5px; color: var(--cyan); }
.hero__stats dd{ margin:4px 0 0; font-size: 14.5px; color: var(--text-faint); }

/* =========================================================
   Section heads
   ========================================================= */
.section-head{ max-width: 640px; margin: 0 auto 44px; padding: 0 28px; text-align:center; }
.section-head__eyebrow{
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan-dim); margin-bottom: 10px;
}
.section-head h2{ font-size: clamp(1.9rem, 3.24vw, 2.46rem); margin-bottom: 12px; }
.section-head__sub{ color: var(--text-dim); font-size: 17px; }

/* =========================================================
   Tool section — now doubles as the landing view
   ========================================================= */
.tool{ max-width: 1180px; margin: 0 auto; padding: 60px 28px 40px; position: relative; z-index:2; }

.tool--landing{ padding-top: 92px; }

.tool__intro{ max-width: 780px; margin: 0 auto 64px; }

/* Compact intro — smaller eyebrow/title/subtitle so the panels below get
   more room right away. */
.tool__intro--compact{ max-width: 620px; margin: 0 auto 40px; }
.tool__intro--compact .eyebrow{ font-size: 12.5px; padding: 4px 10px; margin-bottom: 16px; }
.tool__intro--compact .hero__title{
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 12px;
}
.tool__intro--compact .hero__sub{ font-size: 15.5px; margin-bottom: 0; max-width: 480px; }

.section-head--tool{ margin-top: 12px; }

.tool__mode-tabs{ margin: 0 auto 8px; width: max-content; }

.tool__grid{
  display:grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items:start;
}
@media (max-width: 900px){
  .tool__grid{ grid-template-columns: 1fr; }
  .panel--stage, .panel--controls{ grid-column: 1; order: initial; }
}

.panel{
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-panel);
}
/* Stage stays on the left, the parameters panel is pinned as a right-hand
   sidebar — set explicitly (rather than relying on source order) so the
   layout can't drift if the markup order ever changes. */
.panel--stage{ padding: 20px; grid-column: 1; order: 1; }
.panel--controls{ padding: 26px; position: sticky; top: 96px; grid-column: 2; order: 2; align-self: start; }
.panel__title{ font-size: 17px; font-weight:600; margin-bottom: 22px; letter-spacing: 0.01em; }

/* dropzone */
.dropzone{
  border: 1.5px dashed var(--line); border-radius: var(--radius-md);
  padding: 70px 24px; text-align:center; color: var(--text-dim);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.dropzone.is-dragover{ border-color: var(--cyan); background: rgba(79,216,232,0.04); color: var(--text); }
.dropzone__icon{ width: 40px; height:40px; margin-bottom: 16px; color: var(--text-faint); }
.dropzone__title{ font-size: 18px; color: var(--text); margin-bottom: 6px; font-weight:500; }
.dropzone__sub{ font-size: 15.5px; }
.dropzone__hint{ font-size: 12.5px; color: var(--text-faint); margin-top: 8px; max-width: 380px; }

/* separate folder-pick row (batch mode) — its own box, no shared
   click-to-open container with the dropzone above it */
.folder-pick{
  display:flex; align-items:center; gap: 14px;
  margin-top: 14px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
}
.folder-pick__icon{
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dim); background: rgba(255,255,255,0.03);
}
.folder-pick__icon svg{ width: 19px; height: 19px; }
.folder-pick__text{ flex: 1 1 auto; min-width: 0; }
.folder-pick__title{ font-size: 14.5px; color: var(--text); font-weight: 500; }
.folder-pick__sub{ font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.folder-pick .btn{ flex: none; }

.linklike{
  background:none; border:none; padding:0; color: var(--cyan); text-decoration: underline;
  text-underline-offset: 3px; cursor:pointer; font-size: inherit; display:inline;
}
.linklike:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }
.linklike--sub{ color: var(--text-dim); font-size: 15px; text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; display:inline-flex; align-items:center; }
.linklike--sub:hover{ color: var(--text); border-color: var(--text-dim); }

/* stage */
.stage-wrap{ display:flex; flex-direction:column; gap: 14px; }
.stage-toolbar{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.stage-toolbar__right{ display:flex; align-items:center; gap:8px; }

.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width: 32px; height: 32px; padding:0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-dim);
  cursor:pointer; transition: color .15s, border-color .15s, background .15s;
}
.icon-btn svg{ width: 16px; height:16px; }
.icon-btn:hover{ color: var(--text); border-color: var(--text-dim); }
.icon-btn--light{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--text); }
.icon-btn--light:hover{ background: rgba(255,255,255,0.12); }

.seg{ display:inline-flex; padding: 3px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 999px; }
.seg__btn{
  border:none; background:transparent; color: var(--text-dim); font-size: 14.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; cursor:pointer; transition: background .15s, color .15s;
}
.seg__btn.is-active{ background: var(--text); color: var(--bg); }

.canvas-frame{
  position:relative; width:100%; border-radius: var(--radius-md); overflow:hidden;
  background:
    linear-gradient(135deg, rgba(79,216,232,0.06), rgba(239,91,86,0.06)),
    repeating-conic-gradient(#151a26 0% 25%, #10141d 0% 50%) 0 0/24px 24px;
  border: 1px solid var(--line-soft);
  min-height: 260px;
  display:flex; align-items:center; justify-content:center;
}
.stage-canvas{ display:block; width: 100%; height: auto; }

.processing-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:10px;
  background: rgba(10,13,19,0.72); backdrop-filter: blur(2px);
  font-family: var(--font-mono); font-size: 15px; color: var(--text);
}
.spinner{
  width:16px; height:16px; border-radius:50%;
  border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
.spinner--lg{ width: 34px; height: 34px; border-width: 3px; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.stage-footer{ display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap:wrap; }
.stage-footer__actions{ display:flex; align-items:center; gap:10px; }
.mono-tag{ font-family: var(--font-mono); font-size: 14.5px; color: var(--text-faint); }

.batch-empty{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color: var(--text-faint); font-size: 15px; text-align:center; padding: 24px;
}

/* Little original / depth thumbnail previews under the batch canvas-frame */
.thumb-strips{ display:flex; flex-direction:column; gap: 12px; }
.thumb-strip{ display:flex; flex-direction:column; gap: 8px; }
.thumb-strip__label{ text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.thumb-row{
  display:grid; grid-template-columns: repeat(9, 64px); gap:8px; padding-bottom: 4px;
  overflow-x:auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.thumb-row:empty::after{
  content: "Nothing here yet";
  font-size: 13.5px; color: var(--text-faint); padding: 14px 4px;
  grid-column: 1 / -1;
}
.thumb{
  position: relative; width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow:hidden; padding:0; cursor:pointer;
  border: 1.5px solid var(--line); background: var(--bg-raised);
  transition: border-color .15s, transform .15s;
}
.thumb:hover{ border-color: var(--text-dim); transform: translateY(-1px); }
.thumb.is-active{ border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.thumb--empty{
  display:flex; align-items:center; justify-content:center;
  border-style: dashed; color: var(--text-faint); font-family: var(--font-mono); font-size: 11px;
}
.thumb--empty::before{ content: "…"; }
.thumb--empty img{ display:none; }
.thumb--error{ border-color: var(--red-dim); }
.thumb.is-processing{ pointer-events:none; }
.thumb.is-processing::before{
  content:""; position:absolute; inset:0; background: rgba(10,13,19,0.6); z-index:1;
}
.thumb.is-processing::after{
  content:""; position:absolute; top:50%; left:50%; z-index:2;
  width:16px; height:16px; margin:-8px 0 0 -8px;
  border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
.thumb__badge{ display:none; }

/* Per-thumbnail delete ("x") button, shown top-right corner of each thumb */
.thumb__del{
  position:absolute; top:2px; right:2px; z-index:3;
  width:18px; height:18px; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(10,13,19,0.72); border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-dim); cursor:pointer;
  opacity:0; transform: scale(0.85);
  transition: opacity .12s, transform .12s, background .12s, color .12s;
}
.thumb__del svg{ width:10px; height:10px; }
.thumb:hover .thumb__del, .thumb__del:focus-visible{ opacity:1; transform:scale(1); }
.thumb__del:hover{ background: var(--red); color:#1a0505; border-color: var(--red); }
.thumb.is-processing .thumb__del{ display:none; }

/* controls */
.field{ margin-bottom: 22px; }
.field__label-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.field__label-row label{ font-size: 15.5px; font-weight: 500; color: var(--text); }
.field__hint{ font-size: 14px; color: var(--text-faint); margin-top: 7px; }

input[type="range"]{
  -webkit-appearance:none; width:100%; height: 4px; border-radius: 999px;
  background: var(--line); outline:none; cursor:pointer;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:16px; height:16px; border-radius:50%;
  background: linear-gradient(135deg, var(--cyan), var(--red));
  border: 2px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--line);
  cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%; border: 2px solid var(--bg-panel);
  background: linear-gradient(135deg, var(--cyan), var(--red)); cursor:pointer;
}

.divider{ border:none; border-top: 1px solid var(--line-soft); margin: 24px 0; }

.chip-group{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-dim);
  font-size: 14.5px; padding: 8px 13px; border-radius: 999px; cursor:pointer;
  transition: all .15s;
}
.chip.is-active{ background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:hover:not(.is-active){ border-color: var(--text-dim); color: var(--text); }

.field--row{ display:flex; align-items:center; }
.switch{ display:flex; align-items:center; gap:10px; cursor:pointer; font-size: 15.5px; color: var(--text); }
.switch input{ display:none; }
.switch__track{
  width: 34px; height: 20px; border-radius: 999px; background: var(--line);
  position: relative; transition: background .15s; flex-shrink:0;
}
.switch__thumb{
  position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%;
  background: var(--text-dim); transition: transform .15s, background .15s;
}
.switch input:checked + .switch__track{ background: var(--cyan-dim); }
.switch input:checked + .switch__track .switch__thumb{ transform: translateX(14px); background: var(--cyan); }

/* Settings advisor — suggests parameter/model changes based on current state */
.advisor{
  display:flex; gap:12px; align-items:flex-start;
  margin: 22px 0; padding: 14px 15px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79,216,232,0.05), rgba(239,91,86,0.04));
}
.advisor__icon{ font-size: 17px; line-height:1; flex-shrink:0; margin-top:1px; }
.advisor__title{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--cyan-dim); margin: 0 0 4px;
}
.advisor__text{ font-size: 14.5px; color: var(--text-dim); line-height:1.5; margin:0; }

/* =========================================================
   Pipeline
   ========================================================= */
.pipeline{ max-width: 1180px; margin: 40px auto 0; padding: 60px 28px; }
.pipeline__steps{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px){ .pipeline__steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .pipeline__steps{ grid-template-columns: 1fr; } }

.step{
  padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-raised));
}
.step__num{
  display:block; font-family: var(--font-mono); font-size: 14px; color: var(--red);
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.step h3{ font-size: 18.5px; margin-bottom: 8px; font-weight:600; }
.step p{ font-size: 15.5px; color: var(--text-dim); }

/* =========================================================
   Formats
   ========================================================= */
.formats{ max-width: 1180px; margin: 0 auto; padding: 20px 28px 100px; }
.formats__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px){ .formats__grid{ grid-template-columns: 1fr; } }

.format-card{
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-panel);
}
.format-card h3{ font-size: 18px; margin: 4px 0 8px; }
.format-card p{ font-size: 15px; color: var(--text-dim); }

.format-preview{
  height: 90px; border-radius: var(--radius-sm); overflow:hidden; display:flex; margin-bottom: 16px;
  border: 1px solid var(--line-soft);
}
.format-preview span{ flex:1; }
.format-preview--sbs span:nth-child(1){ background: linear-gradient(135deg, var(--cyan-dim), var(--bg-raised)); }
.format-preview--sbs span:nth-child(2){ background: linear-gradient(135deg, var(--bg-raised), var(--red-dim)); }
.format-preview--cross span:nth-child(1){ background: linear-gradient(135deg, var(--red-dim), var(--bg-raised)); }
.format-preview--cross span:nth-child(2){ background: linear-gradient(135deg, var(--bg-raised), var(--cyan-dim)); }
.format-preview--ana{
  background:
    radial-gradient(circle at 42% 50%, rgba(79,216,232,0.55), transparent 55%),
    radial-gradient(circle at 58% 50%, rgba(239,91,86,0.55), transparent 55%),
    var(--bg-raised);
}

/* =========================================================
   Footer
   ========================================================= */
.footer{ border-top: 1px solid var(--line-soft); padding: 36px 28px 0; }

.footer__top{
  max-width: 1180px; margin: 0 auto; padding-bottom: 36px;
  display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px){ .footer__top{ grid-template-columns: 1fr; gap: 28px; } }

.footer__brand{ max-width: 360px; }
.brand--footer{ display:inline-flex; align-items:center; gap:9px; font-family: var(--font-display); color: var(--text-dim); margin-bottom: 14px; }
.brand--footer .brand__name{ font-size: 15px; }
.footer__blurb{ color: var(--text-faint); font-size: 14.5px; line-height:1.6; margin-bottom: 18px; }

.footer__social{ display:flex; gap: 10px; }
.social-btn{
  display:inline-flex; align-items:center; gap:7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  color: var(--text-dim); text-decoration:none; font-size: 13.5px; font-weight:500;
  transition: color .15s, border-color .15s, background .15s;
}
.social-btn svg{ width:15px; height:15px; }
.social-btn:hover{ color: var(--text); border-color: var(--cyan); background: rgba(79,216,232,0.06); }

.footer__col{ display:flex; flex-direction:column; gap: 12px; }
.footer__col h4{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--text-faint); margin: 0 0 4px;
}
.footer__col a{ color: var(--text-dim); text-decoration:none; font-size: 15px; transition: color .15s; }
.footer__col a:hover{ color: var(--text); }

.footer__inner.footer__bottom{
  border-top: 1px solid var(--line-soft);
  max-width: 1180px; margin:0 auto; padding: 18px 0;
  color: var(--text-faint); font-size: 13.5px;
}

/* ---------- footer tools ---------- */
.footer-tools{
  max-width: 1180px; margin: 0 auto; padding: 0 0 32px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 36px;
}
.footer-tools h2{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing:0.08em;
  text-transform:uppercase; color: var(--text-faint); margin: 0 0 16px;
}
.tools-row{ display:flex; flex-wrap:wrap; gap:14px; }
.tool-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  border-radius:999px;
  font-family: var(--font-body);
  font-weight:700;
  font-size:0.95rem;
  text-decoration:none;
  color:#fff;
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.tool-btn:hover{ transform:translateY(-2px); filter:brightness(1.08); }
.tool-btn svg{ width:20px; height:20px; flex-shrink:0; }
.tool-btn .tool-badge{
  position:absolute;
  top:-10px;
  right:-8px;
  background:#f5c518;
  color:#1a1a1a;
  font-family: var(--font-mono);
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.04em;
  padding:3px 8px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
}
.tool-depthmaker{
  background:linear-gradient(135deg, #b23bff 0%, #8a1fe0 55%, #7014c9 100%);
  box-shadow:0 2px 14px rgba(178,59,255,0.5);
}
.tool-stereomaker{
  background:linear-gradient(135deg, #35c7ff 0%, #2f9cff 55%, #1f7fe0 100%);
  box-shadow:0 2px 14px rgba(47,156,255,0.5);
}
.tool-stereorig{
  background:linear-gradient(135deg, #ffb24d 0%, #ff8a1e 55%, #ff6a00 100%);
  box-shadow:0 2px 14px rgba(255,138,30,0.5);
}
.tool-frameworks{
  background:linear-gradient(135deg, #23c98a 0%, #14b087 55%, #0f9f7f 100%);
  box-shadow:0 2px 14px rgba(20,176,135,0.5);
}
@media (max-width:640px){
  .tools-row{ gap:12px; }
  .tool-btn{ padding:12px 18px; font-size:0.88rem; }
}

/* =========================================================
   Conversion modal
   ========================================================= */
.modal-backdrop{
  position: fixed; inset:0; z-index: 100;
  background: rgba(6,8,12,0.72); backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center; padding: 20px;
}
.modal{
  width: 100%; max-width: 400px;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 32px 28px 28px; text-align:center;
}
.modal__icon{ display:flex; justify-content:center; margin-bottom: 18px; }
.modal h3{ font-size: 19px; font-weight:600; margin-bottom: 22px; }

.modal__steps{ list-style:none; margin:0 0 22px; padding:0; text-align:left; display:flex; flex-direction:column; gap: 12px; }
.modal__steps li{
  display:flex; align-items:center; gap:10px;
  font-size: 14px; color: var(--text-faint); transition: color .2s;
}
.modal__step-dot{
  width:9px; height:9px; border-radius:50%; background: var(--line); flex-shrink:0;
  transition: background .2s, box-shadow .2s;
}
.modal__steps li.is-active{ color: var(--text); }
.modal__steps li.is-active .modal__step-dot{ background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.modal__steps li.is-done{ color: var(--text-dim); }
.modal__steps li.is-done .modal__step-dot{ background: var(--cyan-dim); }

.modal__progress{ height: 4px; border-radius: 999px; background: var(--line); overflow:hidden; }
.modal__progress-bar{
  height:100%; width:0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  transition: width .25s ease;
}

/* Batch processing modal: current-item line above the bar, tally below it */
.modal__batch-current{
  font-size: 14.5px; color: var(--text); margin: -6px 0 14px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.modal__batch-count{ font-size: 13px; color: var(--text-faint); margin: 12px 0 0; font-family: var(--font-mono); }

/* Keep-tab-open warning shown inside a modal while work is actively running */
.modal__warning{
  display:flex; align-items:flex-start; gap:8px; text-align:left;
  margin-top: 20px; padding: 10px 12px;
  background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.32);
  border-radius: 8px; font-size: 12.5px; line-height:1.45; color:#ffb3b3;
}

/* Success checkmark that swaps in for the spinner once work finishes */
.modal__check{
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background: rgba(61,220,132,0.14); border: 2px solid var(--green);
  color: var(--green); font-size: 17px; font-weight:700;
  animation: modal-check-in .25s ease;
}
@keyframes modal-check-in{ from{ opacity:0; transform: scale(.6); } to{ opacity:1; transform:none; } }

/* "Done — close to view result(s)" button, shown once the modal reaches its done state */
.modal__close-btn{ margin-top: 20px; width:100%; }

/* =========================================================
   Status toast
   ========================================================= */
.toast{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display:flex; align-items:center; gap:10px;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px 11px 14px; box-shadow: var(--shadow-panel);
  font-size: 13.5px; color: var(--text);
  animation: toast-in .18s ease;
}
@keyframes toast-in{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform:none; } }
.toast__spinner{
  width:13px; height:13px; border-radius:50%; flex-shrink:0;
  border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   Fullscreen lightbox
   ========================================================= */
.lightbox{
  position: fixed; inset:0; z-index: 110;
  background: rgba(6,8,12,0.94);
  display:flex; flex-direction:column;
}
.lightbox__bar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 20px; flex-shrink:0;
}
.lightbox__stage{
  flex:1; display:flex; align-items:center; justify-content:center; padding: 0 20px 24px;
  overflow:auto;
}
.lightbox__stage canvas{
  max-width:100%; max-height: 100%; width:auto; height:auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}

/* =========================================================
   Back to top
   ========================================================= */
.to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-panel); border: 1px solid var(--line); color: var(--text-dim);
  cursor:pointer; box-shadow: var(--shadow-panel);
  opacity:0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, color .15s, border-color .15s;
}
.to-top svg{ width:18px; height:18px; }
.to-top.is-visible{ opacity:1; transform:none; }
.to-top:hover{ color: var(--text); border-color: var(--cyan); }
/* Sit above the status toast when both happen to be visible at once */
.toast ~ .to-top{ bottom: 74px; }
