/* ReIndex Video — layout & component polish (uses tokens from style.css) */

/* ── Typography ── */
h1, h2, h3,
.brand,
.workbench-head h2,
.compare-header h2,
.pricing-section h2,
.guide-section h2,
.download-section h2,
.issue-strip h2 {
  font-family: var(--font-display);
}

.text-accent {
  color: var(--accent-muted);
}

/* ── Page rhythm — every section aligned to same grid ── */
.hero-band,
.issue-strip,
.compare-section,
.download-section,
.guide-section,
.pricing-section,
.repair-section,
.legal-band {
  padding-left: var(--section-x);
  padding-right: var(--section-x);
}

.compare-inner,
.download-inner,
.guide-inner,
.pricing-inner,
.repair-gate-inner,
.app-shell,
.app-shell-extra {
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
}

/* ── Header ── */
.site-header {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.85rem var(--section-x) 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  box-shadow: 0 2px 10px rgba(61, 114, 252, 0.3);
}

.brand {
  color: var(--text);
  letter-spacing: -0.03em;
}

.header-nav a {
  border-bottom: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.65rem;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--accent);
  background: var(--accent-light);
  border-bottom: none;
}

.header-license {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Kickers ── */
.kicker-pill,
.hero-kicker,
.section-kicker,
.workbench-kicker,
.legal-kicker,
.local-safety-kicker,
.issue-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1px solid rgba(61, 114, 252, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin-bottom: 0.75rem;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Hero (Repairit-style: light gradient + floating product cards) ── */
.hero-band {
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 55%, var(--bg) 100%);
  border: none;
  padding: 1.25rem var(--section-x) 2rem;
  overflow: hidden;
}

.hero-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-band h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: none;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-sub {
  color: var(--text-soft);
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.hero-band .kicker-pill,
.hero-band .hero-kicker {
  background: rgba(61, 114, 252, 0.08);
  border-color: rgba(61, 114, 252, 0.18);
  color: var(--accent) !important;
}

.hero-band .kicker-dot {
  background: var(--accent);
}

.hero-band .text-accent {
  color: var(--accent);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.hero-band .btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-band .btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  box-shadow: var(--shadow);
}

.platform-chip.active {
  color: var(--accent);
  border-color: rgba(61, 114, 252, 0.25);
  background: var(--accent-light);
}

.platform-chip.muted {
  opacity: 0.65;
}

.platform-chip.highlight {
  background: var(--green-bg);
  border-color: #a7f3d0;
  color: #047857;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Floating product visual */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-bg {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(circle at 30% 40%, rgba(92, 176, 233, 0.22), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(61, 114, 252, 0.15), transparent 45%);
  border-radius: 50%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(11, 25, 44, 0.12), 0 2px 8px rgba(11, 25, 44, 0.06);
  padding: 0.85rem 1rem;
  width: min(240px, 42vw);
  animation: float-y 6s ease-in-out infinite;
}

.float-broken {
  top: 8%;
  left: 0;
  transform: rotate(-3deg);
  animation-delay: 0s;
}

.float-scan {
  top: 38%;
  right: 0;
  width: min(200px, 38vw);
  animation-delay: -2s;
  z-index: 2;
}

.float-fixed {
  bottom: 6%;
  left: 18%;
  transform: rotate(2deg);
  animation-delay: -4s;
  z-index: 1;
}

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.float-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.float-tag.bad { background: var(--red-bg); color: var(--red); }
.float-tag.good { background: var(--green-bg); color: var(--green); }
.float-tag.neutral { background: var(--accent-light); color: var(--accent); }

.float-file {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.float-ext {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--red-bg);
  color: var(--red);
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
}

.float-ext.ok {
  background: var(--green-bg);
  color: var(--green);
}

.float-file strong {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-display);
}

.float-file span {
  font-size: 0.68rem;
  color: var(--muted);
}

.float-screen {
  height: 64px;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.float-screen.black {
  background: #0a0a0a;
  border: 1px solid #333;
}

.float-screen.play {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #4a7ab0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
}

.float-code {
  display: block;
  font-size: 0.62rem;
  color: var(--red);
  background: var(--red-bg);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
}

.float-meter span {
  font-size: 0.68rem;
  color: var(--muted);
}

.float-meter strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1.1;
}

.meter-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 99px;
}

.float-thumb {
  height: 48px;
  margin-top: 0.5rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #334155 0%, #64748b 100%);
}

/* ── Scenarios section ── */
.scenarios-section {
  padding: 0 var(--section-x) 1.75rem;
}

.scenarios-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  text-align: center;
}

.section-kicker.center {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.scenarios-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;
}

.scenarios-lead {
  color: var(--text-soft);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.scenario-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.scenario-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 114, 252, 0.25);
}

.scenario-tile.hot {
  border-color: rgba(61, 114, 252, 0.35);
  background: linear-gradient(160deg, #fff 0%, var(--accent-light) 100%);
}

.scenario-tile.limited {
  border-color: rgba(217, 119, 6, 0.22);
}

.scenario-limit-badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-pill);
}

.scenario-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
}

.scenario-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.scenario-tile h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.scenario-tile p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.scenario-tile code {
  font-size: 0.78em;
  background: var(--bg-subtle);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* ── Why section ── */
.why-section {
  padding: 1.5rem var(--section-x) 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f8 100%);
}

.why-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  text-align: center;
}

.why-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

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

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.why-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.why-cta {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Remove old dark hero inner — overridden above */
.hero-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  color: inherit;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-row span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Buttons (global) ── */
.btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
}

.btn-premium {
  gap: 0.75rem;
  padding-right: 0.5rem !important;
}

.btn-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(61, 114, 252, 0.3);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 114, 252, 0.35);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Light content sections ── */
.compare-section {
  background: transparent;
  border: none;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.compare-card,
.feature-tile,
.download-card,
.guide-card,
.price-card,
.sidebar-card,
.workbench,
.repair-gate-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.compare-card {
  padding: 1rem;
}

.feature-tile {
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.feature-tile:hover {
  border-color: rgba(61, 114, 252, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tile-icon-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tile-icon { display: none; }

.download-section,
.guide-section,
.pricing-section {
  background: transparent;
  border: none;
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}

.download-inner,
.guide-inner,
.pricing-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
}

.download-section h2,
.guide-section h2,
.pricing-section h2 {
  text-align: center;
  margin-bottom: 0.35rem;
}

.download-lead,
.guide-lead,
.pricing-lead {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.workflow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.workflow-num {
  background: var(--accent);
  color: #fff;
}

/* ── Pricing (light, same as rest of site) ── */
.price-card {
  padding: 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 114, 252, 0.3);
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

.price-amt {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.price-tag {
  background: var(--accent);
  color: #fff;
}

.activate-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 28rem;
  margin: 0 auto;
}

#license-key-input {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

#license-key-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 114, 252, 0.15);
}

/* ── Repair tool ── */
.repair-section {
  background: transparent;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.local-banner {
  background: var(--green-bg);
  border-bottom: 1px solid #a7f3d0;
  color: #065f46;
  text-align: center;
  padding: 0.65rem var(--section-x);
  font-size: 0.85rem;
}

.local-banner strong {
  color: #047857;
}

.app-shell {
  padding-top: 0.5rem;
  gap: 1.25rem;
}

.sidebar {
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
}

.workbench-head h2 {
  color: var(--text);
  font-size: 1.25rem;
}

.scenario-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* ── Wizard ── */
.step-indicator-inner.inactive {
  background: var(--bg-subtle);
  color: var(--muted);
}

.step-indicator-inner.active,
.step-indicator-inner.complete {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 114, 252, 0.18);
}

.step-connector {
  background: var(--border);
}

.step-connector-inner {
  background: var(--accent);
}

.stepper-next {
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(61, 114, 252, 0.28);
}

.upload-panel,
.ref-upload-zone {
  background: var(--bg);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.upload-panel.drag {
  border-color: var(--accent);
  background: var(--accent-light);
}

.instruction-box {
  background: var(--accent-light);
  border: 1px solid rgba(61, 114, 252, 0.12);
  border-radius: var(--radius);
}

.repair-console-bar-fill {
  background: var(--accent-gradient) !important;
}

.repair-step.active {
  border-color: rgba(61, 114, 252, 0.35);
  background: var(--accent-light);
}

/* ── Footer (only other dark band) ── */
.site-footer {
  max-width: calc(var(--shell-max) + var(--section-x) * 2);
  margin: 0 auto 1.5rem;
  padding: 2rem var(--section-x);
  background: var(--navy);
  color: var(--on-dark-soft);
  border-radius: var(--radius-xl);
}

.footer-brand .brand {
  color: var(--on-dark);
}

.footer-brand .brand em {
  color: var(--on-dark-muted);
}

.footer-brand .brand-icon {
  background: var(--accent-gradient);
}

.site-footer a {
  color: var(--accent-muted);
}

.footer-copy {
  color: var(--on-dark-muted);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.legal-band .legal-page {
  max-width: var(--shell-max);
  margin: 0 auto 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.mobile-cta-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-shell { border-radius: var(--radius-lg); }
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-visual {
    min-height: 320px;
    order: -1;
  }
  .float-broken { left: 2%; top: 4%; }
  .float-fixed { left: 8%; bottom: 2%; }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .scenarios-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .float-card { width: min(200px, 55vw); }
  .hero-visual { min-height: 280px; }
}
