/* ==========================================================================
   SwapTxt — Standalone Editorial Studio Homepage Layout (home.css)
   Completely independent architecture: floating pill navbar, tool-first
   full-width canvas, interactive tabbed showcase, asymmetric Bento grid,
   and warm-linen light editorial footer.
   ========================================================================== */

:root {
  color-scheme: light;
  --st-bg: #faf7f2;
  --st-paper: #ffffff;
  --st-linen: #f2ece1;
  --st-linen-deep: #e8e0d2;
  --st-ink: #151412;
  --st-ink-2: #4a443c;
  --st-muted: #787066;
  --st-rule: #ded6c7;
  --st-accent: #c84b31;
  --st-accent-hover: #a63a23;
  --st-forest: #1e5242;
  --st-font-serif: "Instrument Serif", "Newsreader", "Noto Serif SC", Georgia, serif;
  --st-font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --st-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --st-bg: #13110f;
  --st-paper: #1b1815;
  --st-linen: #24201b;
  --st-linen-deep: #2e2923;
  --st-ink: #f5f0e6;
  --st-ink-2: #c5bdb0;
  --st-muted: #8f877b;
  --st-rule: #322c25;
  --st-accent: #e06246;
  --st-accent-hover: #c84b31;
  --st-forest: #4da68a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--st-bg) !important;
  color: var(--st-ink);
  font-family: var(--st-font-sans);
  -webkit-font-smoothing: antialiased;
}

.st-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. Floating Pill Editorial Navigation Bar
   ========================================================================== */
.st-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 16px;
  margin-top: 14px;
}

.st-nav {
  max-width: 1140px;
  margin: 0 auto;
  height: 58px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--st-rule);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px -22px rgba(21, 20, 18, 0.28);
}

[data-theme="dark"] .st-nav {
  background: rgba(27, 24, 21, 0.88);
}

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

.st-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.st-brand span {
  font-family: var(--st-font-serif);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.st-nav-links a {
  text-decoration: none;
  color: var(--st-ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.st-nav-links a:hover {
  background: var(--st-linen);
  color: var(--st-ink);
}

.st-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--st-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.st-icon-btn:hover {
  background: var(--st-linen);
  color: var(--st-ink);
}

.st-lang-wrap {
  position: relative;
}

.st-lang-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--st-rule);
  background: var(--st-bg);
  color: var(--st-ink-2);
  font-size: 12px;
  font-family: var(--st-font-mono);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#stUserDropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.st-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 150px;
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px -18px rgba(21, 20, 18, 0.25);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.st-lang-menu.open { display: flex; }

.st-lang-menu a {
  text-decoration: none;
  color: var(--st-ink-2);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 7px;
}

.st-lang-menu a:hover {
  background: var(--st-linen);
  color: var(--st-ink);
}

#headerSignInBtn {
  height: 36px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: var(--st-ink) !important;
  color: var(--st-bg) !important;
  border: none !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}

#headerSignInBtn:hover {
  background: var(--st-accent) !important;
  color: #ffffff !important;
}

#headerSignInBtn span { color: inherit !important; }

#historyBtn {
  font-size: 13px;
  font-weight: 500;
  color: var(--st-ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
#historyBtn:hover { background: var(--st-linen); color: var(--st-ink); }

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

/* ==========================================================================
   2. Tool-First Editorial Studio Hero (0-Scroll Upload Canvas)
   ========================================================================== */
.st-hero {
  padding: 52px 0 36px;
}

.st-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

/* Live Animated Scanning Diptych in Hero */
.st-hero-diptych {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  align-items: center;
}

.st-scan-card {
  position: relative;
  border-radius: 10px;
  padding: 6px;
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  box-shadow: 0 18px 40px -28px rgba(21, 20, 18, 0.32);
  overflow: hidden;
}

.st-scan-frame {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--st-linen);
}

.st-scan-frame.portrait { aspect-ratio: 2 / 3; }
.st-scan-frame.landscape { aspect-ratio: 3 / 2; }

.st-scan-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-scan-after {
  animation: stScanReveal 6.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.st-scan-card.delay .st-scan-after {
  animation-delay: -3.2s;
}

.st-scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--st-accent);
  box-shadow: 0 0 14px 3px rgba(200, 75, 49, 0.55);
  animation: stScanBeam 6.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  pointer-events: none;
}

.st-scan-card.delay .st-scan-beam {
  animation-delay: -3.2s;
}

.st-scan-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 4px 2px;
  font-family: var(--st-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--st-muted);
  text-transform: uppercase;
}

.st-scan-caption strong {
  color: var(--st-accent);
  font-weight: 600;
}

@keyframes stScanReveal {
  0%, 14% { clip-path: inset(0 100% 0 0); }
  46%, 64% { clip-path: inset(0 0 0 0); }
  94%, 100% { clip-path: inset(0 100% 0 0); }
}

@keyframes stScanBeam {
  0%, 14% { left: 0%; opacity: 0; }
  18% { opacity: 1; }
  46% { left: 100%; opacity: 1; }
  50%, 64% { left: 100%; opacity: 0; }
  68% { opacity: 1; }
  94% { left: 0%; opacity: 1; }
  100% { left: 0%; opacity: 0; }
}

/* Multi-Card Interactive Before/After Gallery Grid */
.st-multi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .st-multi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .st-multi-grid { grid-template-columns: 1fr; }
}

.st-mini-compare {
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.st-mini-compare:hover {
  border-color: var(--st-accent);
}

.st-mini-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--st-linen);
}

.st-mini-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.st-mini-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.st-mini-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.st-mini-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--st-ink);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-mini-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 4px;
}

.st-mini-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--st-ink);
}

.st-mini-diff {
  font-family: var(--st-font-mono);
  font-size: 11px;
  color: var(--st-muted);
}

.st-mini-diff strong {
  color: var(--st-accent);
  font-weight: 600;
}

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 12px;
}

.st-eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--st-accent);
}

.st-h1 {
  margin: 0;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--st-ink);
}

.st-h1 em {
  color: var(--st-accent);
  font-style: italic;
}

.st-hero-side p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--st-ink-2);
}

.st-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-spec-pill {
  font-family: var(--st-font-mono);
  font-size: 11px;
  color: var(--st-ink-2);
  background: var(--st-linen);
  border: 1px solid var(--st-rule);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .st-hero-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   3. Full-Width Single-Column Interactive Studio Canvas (No "See the case")
   ========================================================================== */
.st-studio-frame {
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -42px rgba(21, 20, 18, 0.28);
}

.st-studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: var(--st-linen);
  border-bottom: 1px solid var(--st-rule);
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-studio-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.st-studio-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--st-accent);
}

/* Force single-column full-width canvas while idle (hide initial "See the case" panel) */
#workspace-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 24px 28px 28px !important;
  gap: 24px !important;
}

#workspace-right.workspace-right-init,
#comparisonSection {
  display: none !important;
}

/* When user runs an edit and #workspace-right leaves init mode, smoothly split into 2 columns */
#workspace-grid:has(#workspace-right:not(.workspace-right-init):not(.hidden)) {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) !important;
}

@media (max-width: 960px) {
  #workspace-grid:has(#workspace-right:not(.workspace-right-init):not(.hidden)) {
    grid-template-columns: 1fr !important;
  }
}

#imageContainer,
#drop-content {
  background-color: var(--st-bg) !important;
  border-color: var(--st-rule) !important;
  border-radius: 12px !important;
}

#uploadButton {
  background: var(--st-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--st-accent) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#uploadButton:hover {
  background: var(--st-accent-hover) !important;
}

/* 1-Click Sample Strip right under the Studio Canvas */
.st-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--st-linen);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
}

.st-samples-label {
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-sample-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--st-rule);
  background: var(--st-paper);
  color: var(--st-ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.st-sample-btn:hover {
  border-color: var(--st-accent);
  transform: translateY(-1px);
}

.st-sample-btn img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 999px;
}

/* ==========================================================================
   4. Interactive Tabbed Editorial Showcase Gallery
   ========================================================================== */
.st-section {
  padding: 76px 0;
  border-top: 1px solid var(--st-rule);
}

.st-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.st-h2 {
  margin: 0;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--st-ink);
}

.st-section-sub {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--st-ink-2);
}

.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.st-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--st-rule);
  background: var(--st-paper);
  color: var(--st-ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.st-tab.active {
  background: var(--st-ink);
  color: var(--st-bg);
  border-color: var(--st-ink);
}

.st-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .st-showcase-grid { grid-template-columns: 1fr; }
}

.st-compare-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-rule);
  background: var(--st-linen);
  aspect-ratio: 16 / 10;
  user-select: none;
  cursor: ew-resize;
}

.st-compare-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.st-compare-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.st-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.st-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--st-ink);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.st-compare-tag {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 20, 18, 0.75);
  color: #faf7f2;
  font-family: var(--st-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-compare-tag.left { left: 14px; }
.st-compare-tag.right { right: 14px; background: rgba(200, 75, 49, 0.9); }

.st-showcase-meta {
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.st-meta-kicker {
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 10px;
}

.st-meta-title {
  margin: 0 0 12px;
  font-family: var(--st-font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.st-meta-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--st-ink-2);
}

.st-diff-box {
  background: var(--st-bg);
  border: 1px solid var(--st-rule);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--st-font-mono);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-diff-from { color: var(--st-muted); text-decoration: line-through; }
.st-diff-to { color: var(--st-forest); font-weight: 600; }

/* ==========================================================================
   5. Asymmetric Bento Capabilities Grid
   ========================================================================== */
.st-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.st-bento-card {
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.st-bento-wide { grid-column: span 7; }
.st-bento-narrow { grid-column: span 5; }
.st-bento-accent {
  background: var(--st-linen);
}

@media (max-width: 860px) {
  .st-bento-wide, .st-bento-narrow { grid-column: span 12; }
}

.st-bento-num {
  font-family: var(--st-font-mono);
  font-size: 11px;
  color: var(--st-accent);
  letter-spacing: 0.1em;
}

.st-bento-card h3 {
  margin: 0 0 8px;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
}

.st-bento-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--st-ink-2);
}

.st-code-pill {
  font-family: var(--st-font-mono);
  font-size: 12px;
  background: var(--st-bg);
  border: 1px solid var(--st-rule);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--st-ink);
  overflow-x: auto;
}

/* ==========================================================================
   6. 3-Step Horizontal Timeline & Comparison Matrix
   ========================================================================== */
.st-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 52px;
}

@media (max-width: 800px) {
  .st-steps { grid-template-columns: 1fr; }
}

.st-step {
  padding: 24px;
  border-top: 2px solid var(--st-ink);
  background: var(--st-paper);
  border-left: 1px solid var(--st-rule);
  border-right: 1px solid var(--st-rule);
  border-bottom: 1px solid var(--st-rule);
  border-radius: 0 0 12px 12px;
}

.st-step-idx {
  font-family: var(--st-font-mono);
  font-size: 11px;
  color: var(--st-accent);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.st-step h3 {
  margin: 0 0 8px;
  font-family: var(--st-font-serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.st-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--st-ink-2);
}

.st-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--st-rule);
  border-radius: 14px;
  background: var(--st-paper);
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.st-table th, .st-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--st-rule);
}

.st-table tr:last-child td { border-bottom: none; }

.st-table th {
  font-family: var(--st-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-muted);
  background: var(--st-linen);
}

.st-table .st-col-brand {
  font-weight: 600;
  color: var(--st-accent);
}

/* ==========================================================================
   7. Two-Column Editorial FAQ
   ========================================================================== */
.st-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .st-faq-grid { grid-template-columns: 1fr; }
}

.st-faq-item {
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  padding: 20px 22px;
}

.st-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.st-faq-item summary::after {
  content: "+";
  font-family: var(--st-font-mono);
  font-size: 18px;
  color: var(--st-accent);
}

.st-faq-item[open] summary::after { content: "−"; }

.st-faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--st-ink-2);
}

/* ==========================================================================
   8. Warm-Linen Light Editorial Footer (Completely Different from Dark 5-Col)
   ========================================================================== */
.st-footer {
  background: var(--st-linen);
  border-top: 1px solid var(--st-rule);
  padding: 56px 0 36px;
  margin-top: 24px;
}

.st-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.65fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--st-rule);
}

@media (max-width: 860px) {
  .st-footer-grid { grid-template-columns: 1fr 1fr; }
}

.st-footer-statement {
  font-family: var(--st-font-serif);
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--st-ink);
}

.st-footer-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--st-ink-2);
  max-width: 36ch;
}

.st-footer h4 {
  margin: 0 0 14px;
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.st-footer a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--st-ink-2);
  transition: color 0.15s ease;
}

.st-footer a:hover { color: var(--st-accent); }

.st-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--st-font-mono);
  font-size: 11.5px;
  color: var(--st-muted);
}

/* Keep toasts cleanly below the floating pill navbar and above full-screen modals */
#toastNotification,
#aiSoftToast {
  top: 88px !important;
  z-index: 10050 !important;
}

/* High-contrast dark inputs inside the OCR Edit Scan Results modal */
#ocrModal {
  background: rgba(18, 16, 14, 0.96) !important;
  backdrop-filter: blur(10px) !important;
}

#ocrModal textarea,
#ocrModal input {
  background-color: #1f1c19 !important;
  color: #f5f1e8 !important;
  border-color: #3a342e !important;
  border-radius: 8px !important;
}

#ocrModal #btn-ocr-save {
  background: var(--st-accent) !important;
  border-color: var(--st-accent) !important;
  box-shadow: 0 8px 20px -8px rgba(200, 75, 49, 0.6) !important;
}

/* Warm Editorial styling for Editor Tips, Replacement Controls & Queue */
#staticTipsBox {
  background: var(--st-linen) !important;
  border: 1px solid var(--st-rule) !important;
  border-left: 3px solid var(--st-accent) !important;
  border-radius: 10px !important;
  color: var(--st-ink-2) !important;
}

#staticTipsBox svg {
  color: var(--st-accent) !important;
}

#replacementControls {
  background: var(--st-paper) !important;
  border: 1px solid var(--st-rule) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px -28px rgba(21, 20, 18, 0.22) !important;
}

#selectedOriginalText,
#newTextInput {
  background: var(--st-bg) !important;
  border: 1px solid var(--st-rule) !important;
  color: var(--st-ink) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

#selectedOriginalText:focus,
#newTextInput:focus {
  border-color: var(--st-accent) !important;
  box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.16) !important;
  outline: none !important;
}

#addToQueueBtn {
  background: var(--st-accent) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px -6px rgba(200, 75, 49, 0.5) !important;
}

#addToQueueBtn:hover:not(:disabled) {
  background: var(--st-accent-hover) !important;
}

#addToQueueBtn:disabled {
  background: var(--st-linen-deep) !important;
  color: var(--st-muted) !important;
  box-shadow: none !important;
}

#executeBatchBtn {
  background: linear-gradient(100deg, #c84b31, #d96b38) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 26px -10px rgba(200, 75, 49, 0.65) !important;
}

#executeBatchBtn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Subtle editorial hover polish on Bento & mini compare cards */
.st-bento-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.st-bento-card:hover {
  border-color: #c7bba7;
  box-shadow: 0 18px 38px -28px rgba(21, 20, 18, 0.22);
  transform: translateY(-2px);
}

.st-mini-compare:hover {
  box-shadow: 0 16px 34px -24px rgba(21, 20, 18, 0.24);
  transform: translateY(-2px);
}

/* Bespoke Editorial Studio Artwork Panel for #authModal */
.rw-auth-scene.st-auth-art {
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ebe4d7 !important;
}

.rw-auth-scene.st-auth-art::before,
.rw-auth-scene.st-auth-art::after {
  display: none !important;
  content: none !important;
}

.st-auth-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.st-auth-art-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 28px -12px rgba(22, 20, 18, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.st-auth-art-kicker {
  font-family: var(--st-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-auth-art-caption strong {
  font-family: var(--st-font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.22;
  color: #161412;
}
