/* ReIndex Video — design system (single source of truth) */
:root {
  /* Surfaces */
  --bg: #f4f6fa;
  --bg-subtle: #eef2f7;
  --white: #ffffff;
  --surface: #ffffff;

  /* Text */
  --text: #0b192c;
  --text-soft: #475569;
  --muted: #64748b;

  /* Brand blue */
  --accent: #3d72fc;
  --accent-hover: #2a5fe0;
  --accent-light: #eef3ff;
  --accent-muted: #5cb0e9;
  --accent-indigo: #3d72fc;
  --accent-gradient: linear-gradient(270deg, #5cb0e9 0%, #3d72fc 100%);

  /* Dark surfaces (hero + footer only) */
  --navy: #0b192c;
  --navy-soft: #152238;
  --on-dark: #ffffff;
  --on-dark-soft: #c5c8cd;
  --on-dark-muted: #8a95a8;

  /* Semantic */
  --green: #059669;
  --green-bg: #ecfdf5;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;

  /* Borders & elevation */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow: 0 1px 2px rgba(11, 25, 44, 0.04), 0 6px 20px rgba(11, 25, 44, 0.06);
  --shadow-lg: 0 8px 32px rgba(11, 25, 44, 0.1);

  /* Layout */
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --shell-max: 1160px;
  --section-x: clamp(1rem, 3vw, 1.5rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 8px;
  font-size: 0.7rem;
}
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.header-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: 1.25rem;
  flex-wrap: wrap;
}
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: var(--accent); }
.header-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.header-nav .nav-repair-link { font-weight: 600; color: var(--text); }
.header-nav .nav-repair-link.is-active { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}
.header-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}

/* Hero band */
.hero-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(2, 132, 199, 0.09), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(99, 102, 241, 0.07), transparent);
}
.hero-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}
.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
.hero-band h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 720px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0 0 1.35rem;
  max-width: 620px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-note { font-size: 0.82rem; color: var(--muted); }

.issue-strip {
  background: transparent;
  color: var(--text);
  padding: 0 var(--section-x) 1.25rem;
}
.issue-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.issue-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
.issue-strip h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 640px;
  line-height: 1.3;
}
.issue-grid article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
}
.issue-grid strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.issue-grid p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .issue-grid { grid-template-columns: 1fr; }
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
}
.trust-row span { display: flex; align-items: center; gap: 0.25rem; }

/* App shell */
.app-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "sidebar workbench"
    "extra extra";
  gap: 1.5rem;
  align-items: start;
}

/* Sidebar — short context only; FAQ lives below wizard */
.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}
.app-shell-extra {
  grid-area: extra;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scenario-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.scenario-card:first-of-type { border-top: none; padding-top: 0; }
.scenario-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.scenario-card strong { display: block; font-size: 0.85rem; margin-bottom: 0.15rem; }
.scenario-card p { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.scenario-card code {
  font-size: 0.9em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}

.score-expl { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.65rem; }
.score-list {
  margin: 0 0 0.65rem;
  padding: 0 0 0 1.1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.score-list strong { color: var(--text); }
.score-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--accent-light);
  border-radius: 8px;
  line-height: 1.45;
}

.compact-faq details { border-top: 1px solid var(--border); padding: 0.55rem 0; }
.compact-faq details:first-of-type { border-top: none; }
.compact-faq summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; list-style: none; }
.compact-faq summary::-webkit-details-marker { display: none; }
.compact-faq summary:hover { color: var(--accent); }
.compact-faq p { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

/* Workbench */
.workbench {
  grid-area: workbench;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbff 0%, var(--white) 100%);
}
.workbench-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.workbench-body { padding: 0; min-height: 0; }
.workbench .upload-panel { min-height: 200px; margin: 0; }

.hidden { display: none !important; }

/* Steps */
.steps { display: flex; gap: 0.35rem; }
.step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  border: 1px solid transparent;
}
.step-num {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
}
.step.active { color: var(--accent); background: var(--accent-light); border-color: rgba(0,102,255,0.2); }
.step.active .step-num { background: var(--accent); color: #fff; }
.step.done { color: var(--green); }
.step.done .step-num { background: var(--green); color: #fff; }

.panel { margin-bottom: 0; }
.work-panel { padding: 0; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.meta { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted); }

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}
.pill.ok { background: var(--green-bg); color: #047857; }
.pill.warn { background: var(--amber-bg); color: #b45309; }
.pill.bad { background: var(--red-bg); color: #b91c1c; }
.pill.info { background: var(--accent-light); color: var(--accent); }

/* Upload */
.upload-panel {
  border: 2px dashed #c7d7f5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8faff 0%, var(--white) 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-panel:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-panel.disabled { opacity: 0.5; pointer-events: none; }
.upload-panel.drag { border-color: var(--accent); background: var(--accent-light); }
.upload-inner { text-align: center; padding: 2rem 1.5rem; width: 100%; }
.upload-icon { color: var(--accent); margin-bottom: 1rem; }
.upload-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.upload-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.5rem; }
.upload-note { font-size: 0.78rem; color: var(--muted); margin: 1rem 0 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-lg { padding: 0.85rem 1.85rem; font-size: 0.98rem; min-height: 48px; }
.btn-xl { padding: 0.95rem 2.1rem; font-size: 1.02rem; min-height: 52px; }
.btn-nav { padding: 0.55rem 1.15rem; font-size: 0.84rem; min-height: 40px; }
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-outline {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-block { width: 100%; padding: 0.85rem; margin-top: 0.75rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; width: 100%; margin-top: 0.5rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }

/* Analysis */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recovery-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  background: var(--accent-light);
  border: 1px solid #c7d7f5;
  border-radius: var(--radius);
}
.recovery-card.tier-high { background: var(--green-bg); border-color: #a7f3d0; }
.recovery-card.tier-mid { background: var(--amber-bg); border-color: #fde68a; }
.recovery-card.tier-low { background: var(--red-bg); border-color: #fecaca; }

.recovery-dial-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.recovery-dial { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: rgba(0,0,0,0.08); stroke-width: 8; }
.dial-fill {
  fill: none; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.8s ease;
}
.tier-high .dial-fill { stroke: var(--green); }
.tier-mid .dial-fill { stroke: var(--amber); }
.tier-low .dial-fill { stroke: var(--red); }
.dial-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dial-pct { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.dial-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.recovery-title { font-weight: 700; font-size: 0.88rem; text-align: center; margin: 0 0 0.25rem; }
.recovery-expl { font-size: 0.78rem; color: var(--text-soft); text-align: center; margin: 0 0 0.65rem; line-height: 1.45; }
.split-row {
  display: grid;
  grid-template-columns: 2.8rem 1fr 2.5rem;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.split-row strong { text-align: right; color: var(--text); }
.mini-bar { height: 6px; background: rgba(0,0,0,0.06); border-radius: 99px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 0.6s ease; }
.mini-fill.video { background: var(--accent); }
.mini-fill.audio { background: var(--green); }
.recovery-factors { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.72rem; color: var(--muted); }
.recovery-factors li { padding: 0.25rem 0; border-top: 1px solid rgba(0,0,0,0.06); }
.scan-note { font-size: 0.72rem; color: #b45309; text-align: center; margin: 0.4rem 0 0; }

.playback-card {
  padding: 1.15rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.playback-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.playback-list { margin: 0; padding: 0 0 0 1.1rem; font-size: 0.78rem; color: var(--text-soft); line-height: 1.5; }
.playback-tech-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0.65rem 0 0.25rem; }
.playback-tech-label.hidden { display: none; }
.playback-tech { margin: 0; padding: 0; list-style: none; font-size: 0.72rem; color: #b45309; font-family: ui-monospace, monospace; }
.playback-tech li { padding: 0.2rem 0.5rem; background: var(--amber-bg); border-radius: 4px; margin-bottom: 0.25rem; }

.summary {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin: 0 0 1rem;
}
.issues { margin-bottom: 1rem; }
.issue {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}
.issue h4 { margin: 0 0 0.2rem; font-size: 0.85rem; }
.issue .solve { color: #047857; margin: 0; font-size: 0.78rem; font-weight: 500; }

.ref-reqs {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.action-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ref-block h4 { margin: 0 0 0.3rem; font-size: 0.9rem; }
.tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}
.ref-help { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.65rem; }
.file-picker input { display: none; }
.file-picker-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}
.file-picker-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.ref-status { display: block; font-size: 0.78rem; margin-top: 0.35rem; color: var(--green); font-weight: 500; }

.check-row { display: flex; gap: 0.5rem; font-size: 0.84rem; color: var(--text-soft); margin: 0.85rem 0 0; cursor: pointer; }
.check-row input { accent-color: var(--accent); margin-top: 0.2rem; }
.repair-hint { font-size: 0.78rem; color: #b45309; text-align: center; margin: 0.5rem 0 0; }

/* Loading */
.loading-panel {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-weight: 700; margin: 0 0 0.25rem; }
.loading-detail { color: var(--muted); font-size: 0.82rem; margin: 0 0 1rem; }
.progress-track { width: 100%; max-width: 360px; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 0.85rem; }
.progress-bar { height: 100%; width: 0%; background: var(--accent-gradient); transition: width 0.3s; }
.status-log {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  width: 100%;
  max-width: 400px;
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 120px;
  overflow-y: auto;
}
.status-log li.active { color: var(--accent); font-weight: 500; }
.status-log li.done { color: var(--green); }

/* Result */
.result-grid { display: flex; gap: 1.25rem; align-items: flex-start; }
.preview-img { width: 160px; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.result-msg { font-weight: 700; margin: 0 0 0.35rem; font-size: 0.9rem; }
.result-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

.mono { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.92em; }

/* Before / after compare — Repairit-style */
.compare-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem 2.5rem;
}
.compare-inner { max-width: var(--shell-max); margin: 0 auto; }
.compare-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.compare-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.compare-lead { margin: 0; color: var(--text-soft); font-size: 0.92rem; max-width: 520px; }

.compare-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
}

.vlc-window {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #3a3a3a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.vlc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0 0 0 0.75rem;
  height: 32px;
  background: #2b2b2b;
  color: #f3f3f3;
  font-size: 0.75rem;
  user-select: none;
}

.vlc-title {
  font-weight: 500;
  letter-spacing: 0;
  color: #f3f3f3;
  text-align: left;
}

.vlc-win-ctrls {
  display: flex;
  height: 100%;
}
.vlc-win-ctrls i {
  width: 46px;
  height: 100%;
  display: block;
  position: relative;
}
.vlc-min::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: #eee;
  transform: translate(-50%, -50%);
}
.vlc-max::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #eee;
  transform: translate(-50%, -50%);
}
.vlc-x {
  background: transparent;
}
.vlc-x::before,
.vlc-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: #eee;
}
.vlc-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.vlc-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.compare-viewport {
  position: relative;
  overflow: hidden;
  user-select: none;
  aspect-ratio: 16 / 9;
  background: #000;
  touch-action: none;
  cursor: ew-resize;
}

.compare-layer {
  position: absolute;
  top: 0;
  bottom: 0;
}

.compare-after {
  z-index: 1;
  left: 0;
  right: 0;
  width: 100%;
}

.compare-before {
  z-index: 2;
  left: 0;
  right: auto;
  width: 46%;
  overflow: hidden;
  background: #000;
}

.compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vlc-dead {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: #000;
}

.traffic-cone {
  width: min(42%, 150px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}

.vlc-dead-caption {
  margin: 0;
  color: #c8c8c8;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.compare-chip {
  position: absolute;
  top: 0.85rem;
  z-index: 7;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-chip-before {
  left: 0.85rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.compare-chip-after {
  right: 0.85rem;
  background: #ff7a00;
  color: #fff;
}

.vlc-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem 0.6rem;
  background: #202020;
  color: #ddd;
  user-select: none;
}

.vlc-play {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 2px;
  background: #ff7a00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  padding-left: 2px;
  flex-shrink: 0;
}

.vlc-seek {
  flex: 1;
  height: 5px;
  border-radius: 1px;
  background: #3a3a3a;
  overflow: hidden;
}

.vlc-seek i {
  display: block;
  width: 36%;
  height: 100%;
  background: #ff7a00;
}

.vlc-time {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: #cfcfcf;
  white-space: nowrap;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 3px;
  margin-left: -1.5px;
  height: 100%;
  background: #fff;
  z-index: 8;
  pointer-events: none;
}

.compare-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.compare-viewport:hover .compare-handle-knob {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  appearance: none;
  background: transparent;
}

.compare-range::-webkit-slider-runnable-track,
.compare-range::-webkit-slider-thumb {
  appearance: none;
  background: transparent;
  border: 0;
}

.compare-range::-webkit-slider-thumb {
  width: 46px;
  height: 100%;
}

.compare-range::-moz-range-track,
.compare-range::-moz-range-thumb {
  background: transparent;
  border: 0;
}

.compare-range::-moz-range-thumb {
  width: 46px;
  height: 100%;
}

.compare-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.compare-foot strong { color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.feature-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-tile:hover {
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: var(--shadow-lg);
}
.tile-icon { font-size: 1.35rem; margin-bottom: 0.35rem; }
.feature-tile h3 { margin: 0 0 0.25rem; font-size: 0.88rem; font-weight: 700; }
.feature-tile p { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.feature-tile code {
  font-size: 0.9em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
}

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

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  line-height: 1.6;
}
.legal-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}
.legal-page h2 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
}
.legal-page p, .legal-page li { color: var(--text-soft); }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin: 0.35rem 0; }
.legal-back { margin-top: 2rem; }
.legal-back a { color: var(--accent); font-weight: 600; text-decoration: none; }

.legal-band {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.legal-band .legal-page { padding-top: 2rem; padding-bottom: 2rem; }
.legal-band h3 { font-size: 1.02rem; margin: 1.15rem 0 0.4rem; color: var(--text); }

/* Download */
.download-section {
  background: linear-gradient(180deg, #f0f7ff 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.download-inner { max-width: var(--shell-max); margin: 0 auto; text-align: center; }
.download-section h2 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 700; }
.download-lead { color: var(--text-soft); margin: 0 0 1.25rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto 1rem;
}
.download-icon { font-size: 2.5rem; }
.download-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.download-card p { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--muted); }
.download-list { margin: 0; padding: 0; list-style: none; font-size: 0.78rem; color: var(--text-soft); }
.download-list li { margin: 0.15rem 0; }
.download-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.5rem; }

.after-app {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 0.5rem;
  box-shadow: var(--shadow);
}
.after-app h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  text-align: center;
}
.after-app-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: after;
}
.after-app-steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.35rem 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.after-app-steps li:first-child { border-top: none; }
.after-app-steps li::before {
  counter-increment: after;
  content: counter(after);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  margin-top: 0.1rem;
}
.after-app-steps strong { font-size: 0.9rem; }
.after-app-steps span { grid-column: 2; font-size: 0.84rem; color: var(--text-soft); line-height: 1.45; }
.download-dev { max-width: 520px; margin: 1rem auto 0; text-align: left; font-size: 0.8rem; color: var(--muted); }
.download-dev summary { cursor: pointer; font-weight: 600; }
.download-smartscreen {
  max-width: 520px;
  margin: 1rem auto 0;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.download-smartscreen summary { cursor: pointer; font-weight: 700; color: #b45309; }
.download-smartscreen ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.download-smartscreen li { margin: 0.25rem 0; }
.server-banner {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  text-align: center;
}
.server-banner.hidden { display: none; }

.local-only { display: none !important; }
html.local-app .web-only { display: none !important; }
html.local-app .local-only { display: block !important; }
html.local-app .app-shell.local-only {
  display: grid !important;
}
html.local-app a.local-only.btn,
html.local-app button.local-only.btn,
html.local-app button.header-license.local-only {
  display: inline-flex !important;
}
html.local-app .hero-cta.local-only {
  display: flex !important;
}
html:not(.local-app) .local-only { display: none !important; }
html:not(.local-app) .web-only { display: block !important; }
html:not(.local-app) a.web-only.btn,
html:not(.local-app) button.web-only.btn {
  display: inline-flex !important;
}
html:not(.local-app) .activate-row.web-only,
html:not(.local-app) .web-key-hint.web-only {
  display: block !important;
}
html:not(.local-app) .hero-cta.web-only {
  display: flex !important;
}

.local-banner {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.45;
}
.local-banner strong { margin-right: 0.35rem; }

.site-preview-banner {
  display: none;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
html.site-preview .site-preview-banner { display: block; }
.site-preview-banner a { color: var(--accent); font-weight: 700; margin-left: 0.35rem; }

.local-safety {
  background: linear-gradient(180deg, #ecfdf5 0%, var(--white) 100%);
}
.local-safety-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  margin: 0 0 0.5rem;
}
.local-safety-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.local-safety-card .download-list { margin: 0 0 1rem; font-size: 0.92rem; }
.local-safety-card .btn { display: inline-flex; }

@media (max-width: 640px) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* How it works — cameraman guide */
.guide-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.guide-inner { max-width: var(--shell-max); margin: 0 auto; }
.guide-section h2 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 700; text-align: center; }
.guide-lead { text-align: center; color: var(--text-soft); margin: 0 0 1.5rem; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.guide-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.guide-card.problem { border-left: 4px solid #f59e0b; }
.guide-card.solution { border-left: 4px solid var(--accent); }
.guide-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.guide-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.guide-card p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--text-soft); line-height: 1.55; }
.guide-card ul { margin: 0; padding-left: 1.1rem; font-size: 0.84rem; color: var(--text-soft); }
.guide-card li { margin: 0.2rem 0; }
.guide-note { font-size: 0.82rem !important; background: #fffbeb; border-radius: 8px; padding: 0.65rem; margin-top: 0.65rem !important; }
.steps-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.steps-card h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.guide-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.guide-steps li:last-child { border-bottom: none; }
.guide-steps li::before {
  content: counter(step);
  width: 1.6rem;
  height: 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  grid-row: span 2;
}
.guide-steps strong { font-size: 0.88rem; color: var(--text); }
.guide-steps span { grid-column: 2; color: var(--text-soft); line-height: 1.45; }
.guide-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.pricing-inner { max-width: var(--shell-max); margin: 0 auto; text-align: center; }
.pricing-section h2 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 700; }
.pricing-lead { color: var(--text-soft); margin: 0 0 1.5rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.price-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--accent); background: var(--accent-light); }
.price-tag {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}
.price-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.price-amt { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--accent); }
.price-desc { font-size: 0.8rem; color: var(--muted); margin: 0 0 1rem; min-height: 2.5em; }
.price-card .btn { width: 100%; }

.audience-section {
  padding: 0 var(--section-x) 2.5rem;
}

.audience-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.audience-inner > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.audience-lead {
  color: var(--text-soft);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.audience-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.audience-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.aeo-block {
  display: grid;
  gap: 1.15rem;
  max-width: 46rem;
  margin: 0 auto;
}

.aeo-block article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.aeo-block h2,
.aeo-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.aeo-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.jake-band {
  padding: 0 var(--section-x) 2.5rem;
}

.jake-card {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar copy btn"
    "avatar quote quote";
  align-items: start;
  column-gap: 1.25rem;
  row-gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.jake-avatar {
  grid-area: avatar;
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.jake-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.jake-wa-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jake-wa-badge svg {
  width: 14px;
  height: 14px;
  display: block;
}

.jake-copy {
  grid-area: copy;
  min-width: 0;
  align-self: center;
}

.jake-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.jake-meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #128c7e;
}

.jake-story-title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

.jake-blurb {
  grid-area: auto;
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: none;
}

.jake-story {
  grid-area: quote;
  display: grid;
  gap: 0.65rem;
}

.jake-offer {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.jake-offer a {
  font-weight: 600;
}

.jake-card .btn-whatsapp {
  grid-area: btn;
  align-self: start;
  margin-left: 0;
  flex-shrink: 0;
  background: #25d366;
  color: #fff;
  box-shadow: none;
  min-height: 44px;
  padding: 0 1.15rem;
}

.btn-whatsapp:hover:not(:disabled) {
  background: #1ebe57;
  color: #fff;
  filter: none;
  transform: none;
}

.wa-logo {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .audience-grid { grid-template-columns: 1fr; }
  .jake-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "avatar"
      "copy"
      "quote"
      "btn";
    justify-items: center;
    text-align: center;
  }
  .jake-story { max-width: none; text-align: left; }
  .jake-card .btn-whatsapp { width: 100%; }
}

/* Repair section & web gate */
.activate-row {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.activate-row p { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
#license-key-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.activate-msg { font-size: 0.82rem; min-height: 1.2em; }
.activate-msg.ok { color: var(--green); }
.activate-msg.bad { color: #b91c1c; }

.header-license {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.header-license.active { background: var(--green-bg); color: #047857; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { margin: 0 0 0.5rem; }
.modal-card p { color: var(--text-soft); font-size: 0.88rem; margin: 0 0 1rem; }
.modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.repair-hint { font-size: 0.85rem; margin-top: 0.75rem; }
.repair-hint.ok { color: var(--green); }
.repair-hint.bad { color: #b45309; }
.repair-hint a { color: var(--accent); font-weight: 600; }

/* Section kickers */
.section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Download workflow */
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.75rem;
  text-align: left;
}
.workflow-step {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.workflow-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.workflow-step strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; }
.workflow-step p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.workflow-step code {
  font-size: 0.85em;
  background: var(--accent-light);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* Repair section & web gate */
.repair-section {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.repair-gate {
  margin: 1.5rem 0 0;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.repair-gate-inner { max-width: 720px; margin: 0 auto; }
.repair-gate h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}
.repair-gate-lead {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.repair-gate-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.repair-gate-step {
  padding: 1.15rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.repair-gate-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.repair-gate-step strong { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.repair-gate-step p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.repair-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.repair-gate-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: var(--amber-bg);
  border-radius: var(--radius);
  border: 1px solid #fde68a;
}

html.local-app .repair-section .app-shell {
  margin-top: 1.25rem;
  padding: 0 0 1.5rem;
}

@media (min-width: 901px) {
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.workbench-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}
.workbench-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}
.mobile-cta-bar .btn { flex: 1; }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "workbench"
      "sidebar"
      "extra";
    padding: 0;
  }
  .sidebar { position: static; }
  .app-shell-extra { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .header-actions .btn-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-header { flex-direction: column; align-items: flex-start; }
  .workflow-strip,
  .repair-gate-steps { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; gap: 0.5rem; }
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 520px) {
  .hero-band { padding: 1.75rem 1rem; }
  .app-shell { padding: 1rem; }
  .compare-section { padding: 1.5rem 1rem; }
  .steps { flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
}

.jake-float {
  display: none;
  position: fixed;
  right: 1.2rem;
  bottom: 1.35rem;
  z-index: 85;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  max-width: min(17.5rem, calc(100vw - 2.4rem));
  pointer-events: none;
}

html:not(.local-app) .jake-float.web-only {
  display: flex !important;
}

html.local-app .jake-float {
  display: none !important;
}

.jake-float-pop,
.jake-float-btn {
  pointer-events: auto;
}

.jake-float-pop {
  position: relative;
  background: #101c2e;
  color: #e8eef7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.8rem 2rem 0.85rem 0.95rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  line-height: 1.45;
}

.jake-float-pop p {
  margin: 0;
}

.jake-float-pop::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #101c2e;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.jake-float-close {
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  background: transparent;
  color: #9db0c8;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.jake-float-close:hover {
  color: #fff;
}

.jake-float.is-collapsed .jake-float-pop {
  display: none;
}

.jake-float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
}

.jake-float-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.jake-float-avatar img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 2px solid #25d366;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.jake-float-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #08111c;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: jake-online-pulse 2.2s ease-out infinite;
}

@keyframes jake-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.jake-float-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.jake-float-btn:hover .jake-float-avatar img,
.jake-float-btn:focus-visible .jake-float-avatar img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  html:not(.local-app) .jake-float.web-only {
    bottom: 5.35rem;
    right: 0.85rem;
  }
  html:not(.local-app) .jake-float-pop {
    display: none;
  }
}
