/* ==========================================================================
   Texta Landing & Download Website - Neubrutalist Editorial Design System
   ========================================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Pure Neutral Dark Canvas & Surfaces (Exact App Tokens from src/index.css) */
  --bg-canvas: #1E1E22;
  --bg-surface: #26262B;
  --bg-surface-hover: #323238;
  --bg-surface-raised: #2D2D33;
  --bg-surface-elevated: #323238;

  --border-ink: #000000;
  --border-subtle: #3D3D44;
  --border-strong: #5A5A64;

  /* Tactile light shadow for Dark Mode physical depth (Exact App Token) */
  --shadow-ink: rgba(255, 255, 255, 0.14);

  --text-primary: #FFFFFF;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;

  /* Saturated Neubrutalist Accents & Solid Inks */
  --accent: #FFD23F;
  --accent-hover: #F5C518;
  --accent-subtle: #FFD23F;
  --accent-ink: #000000;
  --accent-soft: rgba(255, 210, 63, 0.14);

  --font-display: 'Syne', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --shadow-xs: 1.5px 1.5px 0px var(--shadow-ink);
  --shadow-sm: 3px 3px 0px var(--shadow-ink);
  --shadow-md: 5px 5px 0px var(--shadow-ink);
  --shadow-lg: 8px 8px 0px var(--shadow-ink);
  --shadow-xl: 12px 12px 0px var(--shadow-ink);

  /* Canonical App Neubrutalist Pop Fills */
  --pastel-coral: #FF6B6B;
  --pastel-sky: #74B9FF;
  --pastel-mint: #88D498;
  --pastel-lavender: #B8A9FA;
  --pastel-butter: #FFD23F;

  --status-success: #88D498;
  --status-warning: #FFD23F;
  --status-error: #FF6B6B;

  /* Header & Dot Pattern */
  --bg-header: rgba(38, 38, 43, 0.94);
  --dot-color: rgba(255, 255, 255, 0.08);

  /* Verification Studio Tokens - Exactly matching Desktop App EditorScreen in Dark Mode */
  --studio-bg-window: var(--bg-surface);
  --studio-titlebar-bg: var(--bg-surface-raised);
  --studio-titlebar-text: var(--text-primary);
  --studio-subbar-bg: var(--bg-surface-raised);
  --studio-pill-bg: var(--bg-surface-hover);
  --studio-pill-text: var(--text-primary);
  --studio-pill-hover: #3E3E46;
  --studio-viewport-bg: var(--bg-canvas);
  --studio-pane-pdf-bg: #18181C;
  --studio-pane-editor-bg: var(--bg-surface);
  --studio-pane-header-bg: var(--bg-surface-raised);
  --studio-pane-header-text: var(--text-primary);
  --studio-editor-text: var(--text-secondary);
  --studio-editor-heading: var(--text-primary);
  --studio-tool-btn-color: var(--text-primary);
  --studio-tool-btn-hover-bg: var(--bg-surface-hover);
  --studio-metrics-bg: var(--bg-surface-raised);
  --studio-metrics-text: var(--text-muted);
  --studio-popover-bg: var(--bg-surface);
  --studio-popover-card-bg: var(--bg-surface-raised);
  --studio-popover-card-text: var(--text-primary);
  --studio-popover-card-label: var(--text-secondary);
  --studio-popover-card-hint: var(--text-muted);
}

[data-theme="light"] {
  color-scheme: light;

  /* Tactile Neubrutalist Warm Cream Canvas & Surfaces (Exact App Tokens from src/index.css) */
  --bg-canvas: #FFFDF5;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F8F6F0;
  --bg-surface-raised: #F4F0E8;
  --bg-surface-elevated: #EDE8DE;

  --border-ink: #000000;
  --border-subtle: #D4D4D8;
  --border-strong: #000000;
  --shadow-ink: #000000;

  --text-primary: #000000;
  --text-secondary: #1F2937;
  --text-muted: #4B5563;

  --accent: #FFD23F;
  --accent-hover: #F5C518;
  --accent-subtle: #FEF9C3;
  --accent-ink: #000000;
  --accent-soft: rgba(255, 210, 63, 0.22);

  --shadow-xs: 1.5px 1.5px 0px var(--shadow-ink);
  --shadow-sm: 3px 3px 0px var(--shadow-ink);
  --shadow-md: 5px 5px 0px var(--shadow-ink);
  --shadow-lg: 8px 8px 0px var(--shadow-ink);
  --shadow-xl: 12px 12px 0px var(--shadow-ink);

  --pastel-coral: #FF6B6B;
  --pastel-sky: #74B9FF;
  --pastel-mint: #88D498;
  --pastel-lavender: #B8A9FA;
  --pastel-butter: #FFD23F;

  --status-success: #16A34A;
  --status-warning: #CA8A04;
  --status-error: #E11D48;

  --bg-header: rgba(255, 253, 245, 0.94);
  --dot-color: rgba(0, 0, 0, 0.22);

  /* Verification Studio Tokens - Exactly matching Desktop App EditorScreen in Light Mode */
  --studio-bg-window: var(--bg-surface);
  --studio-titlebar-bg: var(--bg-surface-raised);
  --studio-titlebar-text: var(--text-primary);
  --studio-subbar-bg: var(--bg-surface-raised);
  --studio-pill-bg: var(--bg-surface);
  --studio-pill-text: var(--text-primary);
  --studio-pill-hover: var(--bg-surface-hover);
  --studio-viewport-bg: #EAE5D9;
  --studio-pane-pdf-bg: #EAE5D9;
  --studio-pane-editor-bg: var(--bg-surface);
  --studio-pane-header-bg: var(--bg-surface-raised);
  --studio-pane-header-text: var(--text-primary);
  --studio-editor-text: var(--text-secondary);
  --studio-editor-heading: var(--text-primary);
  --studio-tool-btn-color: var(--text-primary);
  --studio-tool-btn-hover-bg: var(--bg-surface-hover);
  --studio-metrics-bg: var(--bg-surface-raised);
  --studio-metrics-text: var(--text-muted);
  --studio-popover-bg: var(--bg-surface);
  --studio-popover-card-bg: var(--bg-surface-raised);
  --studio-popover-card-text: var(--text-primary);
  --studio-popover-card-label: var(--text-secondary);
  --studio-popover-card-hint: var(--text-muted);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg-canvas: #FFFDF5;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F8F6F0;
    --bg-surface-raised: #F4F0E8;
    --bg-surface-elevated: #EDE8DE;
    --border-ink: #000000;
    --border-subtle: #D4D4D8;
    --border-strong: #000000;
    --shadow-ink: #000000;
    --text-primary: #000000;
    --text-secondary: #1F2937;
    --text-muted: #4B5563;
    --accent: #FFD23F;
    --accent-hover: #F5C518;
    --accent-subtle: #FEF9C3;
    --accent-ink: #000000;
    --accent-soft: rgba(255, 210, 63, 0.22);

    --shadow-xs: 1.5px 1.5px 0px var(--shadow-ink);
    --shadow-sm: 3px 3px 0px var(--shadow-ink);
    --shadow-md: 5px 5px 0px var(--shadow-ink);
    --shadow-lg: 8px 8px 0px var(--shadow-ink);
    --shadow-xl: 12px 12px 0px var(--shadow-ink);

    --pastel-coral: #FF6B6B;
    --pastel-sky: #74B9FF;
    --pastel-mint: #88D498;
    --pastel-lavender: #B8A9FA;
    --pastel-butter: #FFD23F;

    --status-success: #16A34A;
    --status-warning: #CA8A04;
    --status-error: #E11D48;

    --bg-header: rgba(255, 253, 245, 0.94);
    --dot-color: rgba(0, 0, 0, 0.22);

    --studio-bg-window: var(--bg-surface);
    --studio-titlebar-bg: var(--bg-surface-raised);
    --studio-titlebar-text: var(--text-primary);
    --studio-subbar-bg: var(--bg-surface-raised);
    --studio-pill-bg: var(--bg-surface);
    --studio-pill-text: var(--text-primary);
    --studio-pill-hover: var(--bg-surface-hover);
    --studio-viewport-bg: #EAE5D9;
    --studio-pane-pdf-bg: #EAE5D9;
    --studio-pane-editor-bg: var(--bg-surface);
    --studio-pane-header-bg: var(--bg-surface-raised);
    --studio-pane-header-text: var(--text-primary);
    --studio-editor-text: var(--text-secondary);
    --studio-editor-heading: var(--text-primary);
    --studio-tool-btn-color: var(--text-primary);
    --studio-tool-btn-hover-bg: var(--bg-surface-hover);
    --studio-metrics-bg: var(--bg-surface-raised);
    --studio-metrics-text: var(--text-muted);
    --studio-popover-bg: var(--bg-surface);
    --studio-popover-card-bg: var(--bg-surface-raised);
    --studio-popover-card-text: var(--text-primary);
    --studio-popover-card-label: var(--text-secondary);
    --studio-popover-card-hint: var(--text-muted);
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Architectural Dotted Canvas */
.dot-canvas {
  background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--border-ink);
}


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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-raised);
  color: var(--text-primary);
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.theme-toggle-btn:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-surface-hover);
}

.theme-toggle-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px var(--shadow-ink);
}

/* Toggle icon display: Sun in dark mode, Moon in light mode */
[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: inline-block;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: inline-block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle-btn .icon-sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .theme-toggle-btn .icon-moon {
    display: inline-block;
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Buttons - Unified, Consistent Color Hierarchy */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.neo-btn:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--shadow-md);
}

.neo-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px var(--shadow-ink);
}

/* Primary Button: Brand Yellow */
.neo-btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.neo-btn-primary:hover {
  background-color: var(--accent-hover);
}

/* Secondary Button: Clean Raised Surface with Ink Outline */
.neo-btn-secondary {
  background-color: var(--bg-surface-raised);
  color: var(--text-primary);
}

.neo-btn-secondary:hover {
  background-color: var(--bg-surface-hover);
}

.neo-btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
}

.neo-btn-lg:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  background-color: var(--bg-surface-raised);
  color: var(--text-secondary);
}

.icon-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Feature Cards Grid */
.features-section {
  padding: 5rem 0;
  border-top: 2.5px solid var(--border-ink);
  background-color: var(--bg-surface);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background-color: var(--bg-surface-raised);
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  background-color: var(--accent);
  color: var(--accent-ink);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Vector Icon System */
.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-svg-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-svg-xs {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ==========================================================================
   Verification Studio / Split-View Workflow Mockup (High-Contrast & Tactile)
   ========================================================================== */
.preview-section {
  padding: 5rem 0;
  border-top: 2.5px solid var(--border-ink);
  background-color: var(--bg-canvas);
}

.preview-window {
  background-color: var(--studio-bg-window);
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

/* Window Titlebar */
.window-titlebar {
  height: 42px;
  background-color: var(--studio-titlebar-bg);
  border-bottom: 2px solid var(--border-ink);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  user-select: none;
}

.window-dots {
  display: flex;
  gap: 7px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border-ink);
}

.dot-close {
  background-color: var(--pastel-coral);
}

.dot-min {
  background-color: var(--accent);
}

.dot-max {
  background-color: var(--pastel-mint);
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--studio-titlebar-text);
  pointer-events: none;
}

/* Studio Subheader Toolbar (Matches EditorScreen Header) */
.studio-subbar {
  background-color: var(--studio-subbar-bg);
  border-bottom: 2px solid var(--border-ink);
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  flex-wrap: wrap;
}

.studio-bar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.studio-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--studio-pill-bg);
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--studio-pill-text);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.studio-pill-btn:hover {
  background-color: var(--studio-pill-hover);
  color: var(--studio-pill-text);
}

.studio-mode-switcher {
  display: inline-flex;
  border: 2px solid var(--border-ink);
  background-color: var(--studio-pill-bg);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  overflow: hidden;
}

.mode-tab {
  background: transparent;
  border: none;
  border-right: 1.5px solid var(--border-ink);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--studio-pill-text);
  cursor: pointer;
  transition: color 0.1s ease;
}

.mode-tab:last-child {
  border-right: none;
}

.mode-tab:hover {
  background-color: var(--studio-pill-hover);
  color: var(--studio-pill-text);
}

.mode-tab.active {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
}

.studio-split-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--border-ink);
  background-color: var(--studio-pill-bg);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--studio-pill-text);
  cursor: pointer;
}

.studio-split-btn.active {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
}

/* Page Flipper */
.studio-page-flipper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--studio-pill-bg);
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 3px 10px;
}

.page-flip-btn {
  background: transparent;
  border: none;
  color: var(--studio-pill-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.page-flip-btn:hover {
  color: var(--accent);
}

.page-flip-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--studio-pill-text);
  padding: 0 4px;
}

.studio-bar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.studio-diff-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--pastel-coral);
  color: var(--accent-ink);
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
}

.studio-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--studio-pill-bg);
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--studio-pill-text);
}

/* Studio Viewport (Split Layout) */
.studio-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 570px;
  background-color: var(--studio-viewport-bg);
}

.studio-pane {
  display: flex;
  flex-direction: column;
  background-color: var(--studio-pane-editor-bg);
  overflow: hidden;
}

.studio-pane-pdf {
  border-right: 2.5px solid var(--border-ink);
  background-color: var(--studio-pane-pdf-bg);
}

.studio-pane-editor {
  background-color: var(--studio-pane-editor-bg);
}

/* Pane Headers */
.pane-header {
  height: 42px;
  background-color: var(--studio-pane-header-bg);
  border-bottom: 2px solid var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  user-select: none;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--studio-pane-header-text);
}

.pane-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--studio-tool-btn-color);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tool-btn:hover {
  border-color: var(--border-ink);
  background-color: var(--studio-tool-btn-hover-bg);
  color: var(--studio-pane-header-text);
}

.tool-zoom-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--studio-tool-btn-color);
  padding: 0 4px;
}

/* Scanned PDF Canvas */
.pdf-paper-canvas {
  flex: 1;
  padding: 1.75rem 1.25rem 8rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--studio-pane-pdf-bg);
  overflow-y: auto;
}

.book-page-sheet {
  background-color: #faf8f2;
  color: #1a1917;
  border: 2.5px solid var(--border-ink);
  box-shadow: 4px 4px 0px var(--shadow-ink);
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 480px;
  font-family: 'Newsreader', 'Charter', 'Georgia', 'Times New Roman', serif;
  user-select: text;
}

.book-header-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #555047;
  border-bottom: 1.5px solid #dcd7ca;
  padding-bottom: 6px;
  margin-bottom: 1.25rem;
}

.book-body-text {
  font-size: 0.9rem;
  line-height: 1.74;
  text-align: justify;
}

.book-body-text p {
  margin-bottom: 0.95rem;
  text-indent: 1.25em;
}

.book-body-text p:first-of-type {
  text-indent: 0;
}

.book-footer-line {
  margin-top: 1.5rem;
  padding-top: 6px;
  border-top: 1.5px solid #dcd7ca;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #6d665a;
  letter-spacing: 0.06em;
}

/* Scanned Word & Bounding Box */
.scanned-word-wrap {
  position: relative;
  display: inline-block;
  text-indent: 0;
  font-weight: 700;
}

.scanned-word-text {
  background-color: rgba(251, 191, 36, 0.35);
  padding: 0 3px;
}

.bounding-box-overlay {
  position: absolute;
  top: -3px;
  left: -4px;
  right: -4px;
  bottom: -3px;
  border: 2.5px solid #d97706;
  background-color: rgba(245, 158, 11, 0.4);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  pointer-events: none;
  animation: pulseBox 2s infinite ease-in-out;
}

@keyframes pulseBox {
  0%, 100% {
    border-color: #d97706;
    background-color: rgba(245, 158, 11, 0.4);
  }
  50% {
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.55);
  }
}

.bounding-box-tag {
  position: absolute;
  top: -26px;
  left: 0;
  background-color: #000000;
  color: var(--accent);
  border: 1.5px solid #d97706;
  box-shadow: 2px 2px 0px var(--shadow-ink);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f59e0b;
  animation: pingDot 1.4s infinite;
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* TipTap Editor Pane */
.editor-toolbar {
  background-color: var(--studio-pane-header-bg);
}

.editor-tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.editor-tool-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--studio-tool-btn-color);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.editor-tool-btn:hover {
  border-color: var(--border-ink);
  background-color: var(--studio-tool-btn-hover-bg);
  color: var(--studio-tool-btn-color);
}

.editor-tool-btn.active {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-color: var(--border-ink);
  box-shadow: 1.5px 1.5px 0px var(--shadow-ink);
}

.tool-separator {
  width: 1.5px;
  height: 18px;
  background-color: var(--border-ink);
  opacity: 0.35;
  margin: 0 4px;
}

.editor-save-indicator {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border-ink);
  background-color: var(--pastel-mint);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1.5px 1.5px 0px var(--shadow-ink);
}

.editor-canvas-area {
  flex: 1;
  padding: 1.75rem 1.5rem 8rem;
  background-color: var(--studio-pane-editor-bg);
  overflow-y: auto;
}

.manuscript-paper {
  max-width: 500px;
  margin: 0 auto;
}

.manuscript-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--studio-editor-heading);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.manuscript-paragraph {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--studio-editor-text);
  margin-bottom: 1.05rem;
}

.manuscript-diff-highlight {
  background-color: var(--pastel-mint);
  color: #000000;
  font-weight: 800;
  padding: 2px 7px;
  border: 1.5px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  border-radius: 0;
  transition: all 0.15s ease;
  display: inline-block;
}

.manuscript-diff-highlight.is-ocr-chosen {
  background-color: var(--pastel-coral);
  color: #000000;
}

.editor-metrics-bar {
  height: 34px;
  border-top: 2px solid var(--border-ink);
  background-color: var(--studio-metrics-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--studio-metrics-text);
}

/* Floating Discrepancy Popover (Matches DiscrepancyPopover.tsx) */
.discrepancy-popover-mockup {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 630px;
  background-color: var(--studio-popover-bg);
  border: 2.5px solid var(--border-ink);
  box-shadow: 8px 8px 0px var(--shadow-ink);
  padding: 0.95rem 1.15rem;
  z-index: 30;
  user-select: none;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-ink);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.popover-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popover-icon-box {
  width: 24px;
  height: 24px;
  background-color: var(--accent);
  border: 1.5px solid var(--border-ink);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popover-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--studio-pane-header-text);
}

.popover-status-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border: 1.5px solid var(--border-ink);
  box-shadow: 1.5px 1.5px 0px var(--shadow-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}

.popover-status-badge.status-resolved {
  background-color: var(--pastel-mint);
  color: #000000;
}

.popover-status-badge.status-review {
  background-color: var(--pastel-coral);
  color: #000000;
}

.popover-nav-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.popover-nav-btn {
  background-color: var(--studio-pill-bg);
  border: 1.5px solid var(--border-ink);
  color: var(--studio-pill-text);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px var(--shadow-ink);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.popover-nav-btn:hover {
  background-color: var(--studio-pill-hover);
  color: var(--accent);
}

.popover-nav-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* 2-Option Choice Grid */
.popover-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.popover-option-card {
  border: 2px solid var(--border-ink);
  background-color: var(--studio-popover-card-bg);
  box-shadow: 2.5px 2.5px 0px var(--shadow-ink);
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popover-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--shadow-ink);
}

/* Inactive Card Styling */
.popover-option-card.option-card-a {
  background-color: var(--studio-popover-card-bg);
  border-color: var(--border-ink);
  color: var(--studio-popover-card-text);
}

.popover-option-card.option-card-a .option-card-label {
  color: var(--studio-popover-card-label);
}

.popover-option-card.option-card-a .option-word-display {
  color: var(--studio-popover-card-text);
}

.popover-option-card.option-card-a .option-action-hint {
  color: var(--studio-popover-card-hint);
}

/* Active Option A (Selected: Solid Butter Yellow with 100% Solid Black Text) */
.popover-option-card.option-card-a.active {
  background-color: var(--pastel-butter) !important;
  border: 2.5px solid var(--border-ink) !important;
  box-shadow: 3.5px 3.5px 0px var(--shadow-ink) !important;
  color: #000000 !important;
}

.popover-option-card.option-card-a.active .option-card-label {
  color: rgba(0, 0, 0, 0.85) !important;
  font-weight: 800;
}

.popover-option-card.option-card-a.active .option-word-display {
  color: #000000 !important;
  font-weight: 900;
}

.popover-option-card.option-card-a.active .option-action-hint {
  color: rgba(0, 0, 0, 0.8) !important;
  font-weight: 800;
}

/* Inactive Option B */
.popover-option-card.option-card-b {
  background-color: var(--studio-popover-card-bg);
  border-color: var(--border-ink);
  color: var(--studio-popover-card-text);
}

.popover-option-card.option-card-b .option-card-label {
  color: var(--studio-popover-card-label);
}

.popover-option-card.option-card-b .recommend-tag {
  background-color: rgba(136, 212, 152, 0.2);
  color: var(--pastel-mint);
  border: 1px solid var(--pastel-mint);
  font-weight: 800;
}

[data-theme="light"] .popover-option-card.option-card-b .recommend-tag {
  background-color: #DCFCE7;
  color: #16A34A;
  border: 1px solid #16A34A;
}

.popover-option-card.option-card-b .option-word-display {
  color: var(--studio-popover-card-text);
}

.popover-option-card.option-card-b .option-action-hint {
  color: var(--studio-popover-card-hint);
}

/* Active Option B (Selected: Solid Mint Green with 100% Solid Black Text) */
.popover-option-card.option-card-b.active {
  background-color: var(--pastel-mint) !important;
  border: 2.5px solid var(--border-ink) !important;
  box-shadow: 3.5px 3.5px 0px var(--shadow-ink) !important;
  color: #000000 !important;
}

.popover-option-card.option-card-b.active .option-card-label {
  color: rgba(0, 0, 0, 0.85) !important;
  font-weight: 800;
}

.popover-option-card.option-card-b.active .recommend-tag {
  background-color: #000000 !important;
  color: var(--pastel-mint) !important;
  border: 1px solid #000000 !important;
  font-weight: 800;
}

.popover-option-card.option-card-b.active .option-word-display {
  color: #000000 !important;
  font-weight: 900;
}

.popover-option-card.option-card-b.active .option-action-hint {
  color: rgba(0, 0, 0, 0.8) !important;
  font-weight: 800;
}

.option-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recommend-tag {
  padding: 1px 6px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.option-word-display {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 2px 0;
}

.option-action-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Responsive Studio Rules */
@media (max-width: 900px) {
  .studio-viewport {
    grid-template-columns: 1fr;
  }
  .studio-pane-pdf {
    border-right: none;
    border-bottom: 2.5px solid var(--border-ink);
    max-height: 340px;
  }
  .pdf-paper-canvas,
  .editor-canvas-area {
    padding-bottom: 8rem;
  }
  .discrepancy-popover-mockup {
    width: calc(100% - 1.5rem);
  }
}

@media (max-width: 580px) {
  .popover-options-grid {
    grid-template-columns: 1fr;
  }
  .studio-subbar {
    gap: 0.5rem;
  }
  .studio-page-flipper {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}


/* Downloads Matrix Section */
.downloads-section {
  padding: 5rem 0;
  border-top: 2.5px solid var(--border-ink);
  background-color: var(--bg-surface);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.platform-card {
  background-color: var(--bg-surface-raised);
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-md);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.platform-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.platform-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--shadow-ink);
}

.package-info {
  display: flex;
  flex-direction: column;
}

.package-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
}

.package-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.download-btn-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  border-top: 2.5px solid var(--border-ink);
  background-color: var(--bg-canvas);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface-raised);
  border: 2.5px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.75rem;
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-q svg {
  color: var(--status-warning);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 2.5px solid var(--border-ink);
  background-color: var(--bg-surface);
  padding: 3rem 0 2rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .preview-body {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-buttons .neo-btn {
    width: 100%;
  }
}
