/* PinInspect landing hotfix v14.
   This file intentionally loads after app.css so the public tools demo does not
   render as raw HTML if an older app.css remains cached on cPanel/LiteSpeed. */

#home {
  background:
    radial-gradient(circle at 18% 30%, rgba(230, 0, 35, .08), transparent 34rem),
    radial-gradient(circle at 84% 28%, rgba(255, 177, 193, .14), transparent 34rem),
    linear-gradient(180deg, #fff 0%, #fff9fb 48%, #f8fafc 100%);
}

#home .hero,
#home .demo-section {
  overflow: visible;
}

#home .hero {
  padding-bottom: 18px !important;
}

#home .trust-row {
  margin-bottom: 0 !important;
}

#tools-demo.demo-section {
  max-width: 1220px;
  margin: 0 auto 44px;
  padding: 24px 18px 76px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#tools-demo.demo-section::before,
#tools-demo.demo-section::after {
  content: none !important;
}

#tools-demo .demo-header {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

#tools-demo .demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid #ffc4cf;
  border-radius: 999px;
  color: #e60023;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

#tools-demo .demo-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e60023;
}

#tools-demo .demo-title {
  max-width: 760px;
  margin: 0 auto 14px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.025em;
}

#tools-demo .demo-title em {
  color: #e60023;
  font-style: normal;
}

#tools-demo .demo-sub {
  max-width: 600px;
  margin: 0 auto;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

#tools-demo .tool-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 0 26px;
}

#tools-demo .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#tools-demo .tab-btn.active {
  color: #fff;
  border-color: #e60023;
  background: #e60023;
  box-shadow: 0 18px 46px rgba(230, 0, 35, .18);
}

#tools-demo .demo-stage {
  max-width: 1080px;
  margin: 0 auto;
}

#tools-demo .browser-frame {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(17, 24, 39, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(17, 24, 39, .12), 0 2px 8px rgba(17, 24, 39, .06);
}

#tools-demo .browser-frame::after {
  content: "";
  position: absolute;
  z-index: 8;
  width: 18px;
  height: 18px;
  left: 52%;
  top: 39%;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #e60023;
  box-shadow: 0 10px 24px rgba(230, 0, 35, .32);
  pointer-events: none;
  animation: demoCursorMove 3.5s ease-in-out infinite;
}

#tools-demo .browser-frame::before {
  content: "";
  position: absolute;
  z-index: 7;
  width: 160px;
  height: 160px;
  left: 44%;
  top: 30%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(230, 0, 35, .12), transparent 68%);
  pointer-events: none;
  animation: demoGlowMove 3.5s ease-in-out infinite;
}

#tools-demo .browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff, #f9fafb);
}

#tools-demo .browser-dots {
  display: flex;
  gap: 6px;
}

#tools-demo .browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34d399;
}

#tools-demo .browser-dots span:first-child { background: #ff6b7f; }
#tools-demo .browser-dots span:nth-child(2) { background: #fbbf24; }

#tools-demo .browser-url {
  flex: 1;
  max-width: 420px;
  padding: 7px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #6b7280;
  background: #fff;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#tools-demo .browser-badge {
  padding: 6px 10px;
  border: 1px solid #ffd0da;
  border-radius: 10px;
  color: #e60023;
  background: #fff1f4;
  font-size: 11px;
  font-weight: 650;
}

#tools-demo .tool-panel {
  display: none;
}

#tools-demo .tool-panel.active {
  display: block;
  animation: demoPanelIn .34s ease both;
}

#tools-demo .panel-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 520px;
}

#tools-demo .panel-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 18px;
  border-right: 1px solid #e5e7eb;
  background: #fff8fa;
}

#tools-demo .sidebar-title {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#tools-demo .sidebar-item {
  padding: 11px 12px;
  border-radius: 13px;
  color: #4b5563;
  font-weight: 650;
}

#tools-demo .sidebar-item.active {
  color: #e60023;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

#tools-demo .panel-content {
  min-width: 0;
  padding: 30px;
}

#tools-demo .panel-heading {
  margin: 0 0 10px;
  color: #111827;
  font-size: 26px;
  font-weight: 720;
}

#tools-demo .panel-desc {
  max-width: 660px;
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.7;
}

#tools-demo .input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

#tools-demo .fake-input {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #374151;
  background: #fff;
}

#tools-demo .fake-input::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 35, .08), transparent);
  animation: inputScan 3.5s ease-in-out infinite;
}

#tools-demo .btn-red {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #e60023;
  font-weight: 700;
}

#tools-demo .results-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

#tools-demo .results-table th,
#tools-demo .results-table td {
  height: auto !important;
  padding: 13px 14px !important;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  text-align: left;
}

#tools-demo .results-table th {
  color: #6b7280;
  background: #faf8f6;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#tools-demo .badge-opp,
#tools-demo .intent-pill,
#tools-demo .results-table .score-ring {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 650;
  background-image: none !important;
  box-shadow: none !important;
}

#tools-demo .results-table .score-ring {
  width: 34px !important;
  margin: 0 !important;
}

#tools-demo .badge-high,
#tools-demo .ring-g { color: #047857; background: #ecfdf5 !important; }
#tools-demo .badge-med,
#tools-demo .ring-y { color: #9a6d00; background: #fef3c7 !important; }
#tools-demo .badge-low,
#tools-demo .ring-r { color: #e60023; background: #fff1f4 !important; }
#tools-demo .intent-pill { color: #4b5563; background: #f3f4f6 !important; }

#tools-demo .score-grid,
#tools-demo .generator-layout,
#tools-demo .competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#tools-demo .competitor-grid { grid-template-columns: .8fr 1fr; }

#tools-demo .score-tile,
#tools-demo .gen-card,
#tools-demo .comp-profile,
#tools-demo .gap-list {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

#tools-demo .score-tile strong,
#tools-demo .stat-n {
  display: block;
  color: #e60023;
  font-size: 28px;
  font-weight: 720;
}

#tools-demo .check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: #374151;
}

#tools-demo .bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #fee2e2;
}

#tools-demo .bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e60023;
}

#tools-demo .autoplay-bar {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #e60023, #ff6b7f);
}

#tools-demo .autoplay-bar.active {
  animation: demoAutoplay 3.5s linear forwards;
}

#tools-demo .demo-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#tools-demo .progress-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  background: #fff;
  font: inherit;
}

#tools-demo .progress-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

#tools-demo .progress-dot.active {
  color: #e60023;
  border-color: #ffc4cf;
  background: #fff1f4;
}

#tools-demo .progress-dot.active span {
  background: #e60023;
}

#tools-demo .stats-strip {
  max-width: 900px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

#tools-demo .stat-cell {
  padding: 18px;
  text-align: center;
  border-right: 1px solid #e5e7eb;
}

#tools-demo .stat-cell:last-child {
  border-right: 0;
}

#tools-demo .stat-l {
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@keyframes demoAutoplay {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes demoPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes inputScan {
  0%, 34% { transform: translateX(0); opacity: 0; }
  45% { opacity: 1; }
  70%, 100% { transform: translateX(420%); opacity: 0; }
}

@keyframes demoCursorMove {
  0% { left: 57%; top: 39%; transform: scale(.86); }
  20% { left: 71%; top: 39%; transform: scale(1); }
  42% { left: 71%; top: 61%; transform: scale(.9); }
  64% { left: 47%; top: 61%; transform: scale(1); }
  82% { left: 47%; top: 47%; transform: scale(.9); }
  100% { left: 57%; top: 39%; transform: scale(.86); }
}

@keyframes demoGlowMove {
  0% { left: 49%; top: 30%; opacity: .55; }
  20% { left: 62%; top: 30%; opacity: .8; }
  42% { left: 62%; top: 52%; opacity: .5; }
  64% { left: 38%; top: 52%; opacity: .75; }
  82% { left: 38%; top: 38%; opacity: .55; }
  100% { left: 49%; top: 30%; opacity: .55; }
}

@media (max-width: 860px) {
  #tools-demo .panel-inner,
  #tools-demo .score-grid,
  #tools-demo .generator-layout,
  #tools-demo .competitor-grid,
  #tools-demo .stats-strip {
    grid-template-columns: 1fr;
  }

  #tools-demo .panel-sidebar {
    display: none;
  }

  #tools-demo .results-table {
    min-width: 560px;
  }

  #tools-demo .stat-cell {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  #tools-demo .stat-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  #tools-demo.demo-section {
    padding: 18px 0 56px;
  }

  #tools-demo .browser-bar {
    align-items: stretch;
    flex-direction: column;
  }

  #tools-demo .browser-url {
    max-width: none;
    width: 100%;
  }

  #tools-demo .panel-content {
    padding: 18px;
  }
}
