:root {
  --bg-canvas: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F4F9;
  --bg-grid: #E4E8EF;
  --ink-primary: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --border: #DDE3EC;
  --border-strong: #C2CCD9;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;
  --success-bg: #ECFDF5;
  --success-ink: #065F46;
  --success-border: #A7F3D0;
  --warn-bg: #FFFBEB;
  --warn-ink: #92400E;
  --warn-border: #FDE68A;
  --danger-bg: #FEF2F2;
  --danger-ink: #991B1B;
  --danger-border: #FECACA;
  --info-bg: #EFF6FF;
  --info-ink: #1E40AF;
  --info-border: #BFDBFE;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.28);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

.header-status {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.22);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: #AEB9C8;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  border-color: transparent;
  padding: 7px 10px;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.35;
  white-space: normal;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-ink);
  border-color: var(--success-border);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-border);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border-color: var(--danger-border);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info-ink);
  border-color: var(--info-border);
}

.badge-neutral {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border-color: var(--border);
}

/* Cards & Surfaces */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card-pad {
  padding: 22px;
}

/* Alerts & Banners */
.banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.banner-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-ink);
}

.banner-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-ink);
}

.banner-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.banner-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-ink);
}

/* Homepage Hero */
.hero {
  padding: 36px 0 34px;
  background: radial-gradient(920px 420px at 78% -40px, rgba(37, 99, 235, 0.08), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.34fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.hero-sub {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.hero-trust-list svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

/* Dynamic Hero Showcase Card */
.hero-demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}

.hero-sample-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.hero-demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.hero-play-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-play-btn.playing {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.hero-outline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
}

.hero-phase-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: #FAFBFD;
}

.hero-phase-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
  min-width: 0;
  text-align: left;
}

.hero-phase-btn:last-child {
  border-right: none;
}

.hero-phase-btn:hover {
  color: var(--ink-primary);
  background: rgba(241, 244, 249, 0.7);
}

.hero-phase-btn.active {
  color: var(--accent);
  background: var(--bg-surface);
}

.hero-phase-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
}

.hero-phase-btn.active::after {
  width: calc(var(--hero-phase-progress, 0.35) * 100%);
}

.hero-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  flex-shrink: 0;
}

.hero-phase-btn.active .hero-phase-num {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-phase-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot-grid-box {
  background-color: #FAFBFD;
  background-image: radial-gradient(#D5DCE6 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.hero-stage-viewport {
  display: block;
  aspect-ratio: auto;
  padding: 36px 0 46px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  user-select: none;
  touch-action: pan-y;
}

.hero-stage-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.hero-motion-card[data-phase="1"] .hero-stage-viewport {
  cursor: ew-resize;
}

.hero-layer-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.hero-raster-clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--hero-split, 50%)) 0 0);
  transition: clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  background-color: #FAFBFD;
  background-image: radial-gradient(#D5DCE6 1px, transparent 1px);
  background-size: 14px 14px;
}

.hero-motion-card[data-phase="0"] .hero-raster-clip {
  clip-path: inset(0 0 0 0);
}

.hero-motion-card[data-phase="2"] .hero-raster-clip {
  clip-path: inset(0 100% 0 0);
}

.hero-motion-card.is-live-motion .hero-raster-clip,
.hero-motion-card.is-dragging .hero-raster-clip {
  transition: none;
}

.hero-layer-raster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-vector-overlay {
  z-index: 3;
  transition: opacity 0.24s ease;
}

.hero-motion-card[data-phase="1"] .hero-vector-overlay {
  clip-path: inset(0 0 0 var(--hero-split, 50%));
}

.hero-motion-card[data-outlines="0"]:not([data-phase="0"]) .hero-vector-overlay rect[data-hero-select]:not(.is-selected) {
  opacity: 0;
  pointer-events: none;
}

.hero-motion-card[data-phase="0"] .hero-vector-overlay rect.is-scan {
  opacity: 0;
  animation: heroBoxReveal 0.45s ease forwards;
  animation-delay: var(--box-delay, 0s);
}

.hero-motion-card[data-phase="0"] .hero-vector-overlay rect:not(.is-scan) {
  opacity: 0.25;
}

@keyframes heroBoxReveal {
  0% {
    opacity: 0;
  }

  45% {
    opacity: 0.92;
  }

  100% {
    opacity: 0.72;
  }
}

.hero-scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8%;
  width: 56px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.16) 72%, rgba(29, 78, 216, 0.85) 97%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 2px 0 14px rgba(37, 99, 235, 0.35);
}

.hero-motion-card[data-phase="0"] .hero-scan-beam {
  opacity: 1;
  animation: heroScanSweep 3.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes heroScanSweep {
  0% {
    left: -10%;
  }

  100% {
    left: 102%;
  }
}

.hero-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-split, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(15, 23, 42, 0.24);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-motion-card[data-phase="1"] .hero-split-handle {
  opacity: 1;
  pointer-events: auto;
  cursor: ew-resize;
}

.hero-split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage-tag {
  position: absolute;
  top: 6px;
  z-index: 6;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-stage-tag-left {
  left: 10px;
}

.hero-stage-tag-right {
  right: 10px;
  background: rgba(29, 78, 216, 0.92);
}

.hero-motion-card[data-phase="0"] .hero-stage-tag-right,
.hero-motion-card[data-phase="2"] .hero-stage-tag-left {
  opacity: 0;
}

.hero-scan-hud {
  position: absolute;
  left: 10px;
  bottom: 7px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-primary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-motion-card[data-phase="0"] .hero-scan-hud {
  opacity: 1;
  transform: translateY(0);
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.hero-edit-callout {
  position: absolute;
  left: 10px;
  bottom: 6px;
  z-index: 6;
  max-width: min(360px, calc(100% - 20px));
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-motion-card[data-phase="2"] .hero-edit-callout {
  opacity: 1;
  transform: translateY(0);
}

.hero-callout-type {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  flex-shrink: 0;
}

.hero-callout-body {
  min-width: 0;
}

.hero-callout-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-callout-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.hero-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-surface);
  font-size: 13px;
}

.hero-selected-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.pill-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.pill-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Progress draft two-pane layout */
.hero-demo-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.hero-pane {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-pane:first-child {
  border-right: 1px solid var(--border);
}

.pane-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Sections & Gallery */
.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

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

.section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

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

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.cat-tab.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}

.example-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.example-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.example-thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  background-color: #FAFBFD;
  background-image: radial-gradient(#D5DCE6 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.example-thumb img,
.example-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.22s ease;
}

.example-card:hover .example-thumb img {
  transform: scale(1.02);
}

.example-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.example-title {
  font-weight: 650;
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.example-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.example-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 12px;
  color: var(--ink-muted);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-mono);
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* Workspace & Upload */
.workspace-wrap {
  padding: 28px 0 52px;
}

.two-col-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: #FAFBFD;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.dropzone:hover {
  border-color: #94A3B8;
  background: #F4F7FC;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.dropzone-formats span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.file-preview-card {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  margin-top: 14px;
}

.file-thumb {
  width: 76px;
  height: 58px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.file-thumb img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Streamlined Quality Dropdown */
.quality-field {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-subtle);
}

.quality-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-label {
  font-weight: 650;
  font-size: 14px;
  color: var(--ink-primary);
  margin: 0;
  display: block;
}

.select-wrap {
  position: relative;
}

.select-control {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 38px 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23475569' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  color: var(--ink-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.select-control:hover:not(:disabled) {
  border-color: #94A3B8;
}

.select-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.select-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quality-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Upload Value Props Card */
.feature-list {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.feature-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.brand-mark svg,
.step-icon svg,
.dropzone-icon svg,
.hero-play-btn svg,
.hero-split-knob svg,
.hero-trust-list svg,
.feature-item-icon svg {
  display: block;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-primary);
}

.feature-item>div>span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

/* Progress & Job Tiles */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

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

.progress-live {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-line {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

@keyframes indeterminateBar {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(260%);
  }
}

.progress-bar-indeterminate {
  width: 38%;
  animation: indeterminateBar 1.6s ease-in-out infinite;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.job-tile {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-surface);
  padding: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.job-tile:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

.job-tile img {
  width: 100%;
  height: 138px;
  object-fit: contain;
  border-radius: 7px;
  border: 1px solid var(--bg-subtle);
  background-color: #FAFBFD;
  background-image: radial-gradient(#D5DCE6 1px, transparent 1px);
  background-size: 12px 12px;
  padding: 6px;
}

.job-name {
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 32px;
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.link-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Result Comparison Screen */
.result-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.result-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.result-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.result-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.result-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 16px;
  padding: 16px 0 40px;
  align-items: start;
}

.viewer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.seg-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.mobile-pane-switch {
  display: none;
}

.panes-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 520px;
  position: relative;
}

.compare-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.compare-pane:first-child {
  border-right: 1px solid var(--border);
}

.pane-header {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #FAFBFD;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: #FAFBFD;
  background-image: radial-gradient(#D5DCE6 1px, transparent 1px);
  background-size: 16px 16px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pane-viewport:active {
  cursor: grabbing;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.viewer-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.viewer-overlay rect[data-select],
.viewer-overlay rect[data-hero-select] {
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.viewer-footer-note {
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: #FAFBFD;
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Inspector */
.inspector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.insp-tab {
  padding: 10px 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.insp-tab.active {
  color: var(--accent);
  background: var(--bg-surface);
  border-bottom-color: var(--accent);
}

.inspector-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #FAFBFD;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.component-filter {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
}

.inspector-list {
  max-height: 460px;
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.component-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  background: var(--bg-surface);
}

.component-row:hover {
  border-color: var(--border-strong);
  background: #FAFBFD;
}

.component-row.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.inspector-detail {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #FAFBFD;
  font-size: 13px;
}

.detail-quote {
  margin: 6px 0;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 11.5px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.mini-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.notes-list {
  max-height: 520px;
  overflow: auto;
}

.note-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

/* Downloads screen */
.downloads-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  padding: 20px 0 48px;
  align-items: start;
}

.downloads-aside-sticky {
  position: sticky;
  top: 78px;
}

.export-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-xs);
}

.export-section h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.export-section p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.component-scroll {
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selected-preview {
  width: 100%;
  height: 175px;
  object-fit: contain;
}

.zip-tree {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  background: #0F172A;
  color: #F3F4F6;
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 10px 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 8px;
  cursor: pointer;
}

.notification {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90vw;
  background: #0F172A;
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 22px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .hero-scan-beam,
  .hero-vector-overlay rect[data-hero-select],
  .progress-bar-indeterminate,
  .spinner {
    animation: none !important;
  }

  .hero-raster-clip,
  .hero-phase-btn::after {
    transition: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero {
    padding: 22px 0 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .two-col-paths,
  .downloads-grid,
  .result-workspace {
    grid-template-columns: 1fr;
  }

  .downloads-aside-sticky {
    position: static;
  }

  .mobile-pane-switch {
    display: inline-flex;
  }

  .panes-wrap {
    grid-template-columns: 1fr;
    height: 340px;
  }

  .compare-pane:first-child {
    border-right: none;
  }

  .compare-pane.mobile-hidden {
    display: none;
  }

  .result-title {
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .task-actions .btn {
    flex: 1;
  }

  .result-title-group {
    min-width: 0;
  }

  .hero-demo-panes {
    grid-template-columns: 1fr;
  }

  .header-status {
    display: none;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 12px;
  }

  .header-nav {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .header-nav .nav-link {
    padding: 4px 6px;
    font-size: 13px;
  }

  .header-nav .btn-sm {
    padding: 5px 9px;
    font-size: 12.5px;
  }

  .nav-hide-xs {
    display: none;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .hero-stage-viewport {
    padding: 28px 0 36px;
  }

  .hero-phase-btn {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }

  .hero-stage-tag,
  .hero-scan-hud {
    font-size: 10px;
    padding: 3px 7px;
  }

  .hero-edit-callout {
    display: none;
  }

  .hero-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .panes-wrap {
    height: 280px;
  }

  .result-actions {
    width: 100%;
  }

  .result-actions .btn {
    flex: 1;
  }
}

/* Header Promo & Session Pill */
.nav-promo-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-ink);
  border: 1px solid var(--success-border);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}
.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.session-chip:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.session-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Queue & Credit Banner */
.queue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: 16px;
  font-size: 13px;
}
.queue-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-secondary);
}
.queue-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pricing & Early-Bird Page */
.pricing-hero-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.5) 0%, #FFFFFF 36%);
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pricing-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1;
}
.pricing-old {
  font-size: 16px;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.pricing-billing {
  font-size: 13px;
  color: var(--ink-secondary);
}
.pricing-features {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  font-size: 13px;
  color: var(--ink-secondary);
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.credit-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.credit-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* SEO FAQ Accordion */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.faq-item summary {
  font-weight: 650;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--ink-primary);
}
.faq-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.input-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink-primary);
  margin-top: 6px;
}
.input-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

@media (max-width: 960px) {
  .pricing-grid,
  .credit-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pricing-grid,
  .credit-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .nav-hide-xxs {
    display: none;
  }
  .session-chip {
    display: none;
  }
}
