/* ================================================================
   ProInspect Marketing Site — Custom Styles
   (Tailwind handles utilities; this file covers custom components
    and anything Tailwind CDN can't express cleanly)
   ================================================================ */

/* ── Base reset / root ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #121212;
}

/* ── Nav ──────────────────────────────────────────────────────── */
#nav {
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background-color: rgba(18, 18, 18, 0.92);
  border-bottom: 1px solid #333333;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  border-bottom: 1px solid #333333;
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: #ffffff;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FCAC2D;
  color: #111111;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.5;
}

.btn-primary:hover {
  background-color: #C77800;
  box-shadow: 0 0 20px rgba(252, 172, 45, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 1px solid #444444;
  cursor: pointer;
  line-height: 1.5;
}

.btn-secondary:hover {
  background-color: #1E1E1E;
  border-color: #666666;
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.625rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 172, 45, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(252, 172, 45, 0.08) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
}

.text-gradient {
  background: linear-gradient(135deg, #FFD180 0%, #FCAC2D 60%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mock app UI in hero ──────────────────────────────────────── */
.mock-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #2A2A2A;
  border: 1px solid #333333;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mock-card:hover {
  border-color: #444444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.mock-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
}

.mock-meta {
  font-size: 0.7rem;
  font-weight: 500;
}

/* ── Section common styles ────────────────────────────────────── */
.section-divider {
  border-top: 1px solid #1E1E1E;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FCAC2D;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

.section-subheading {
  font-size: 1.05rem;
  color: #9CA3AF;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Feature cards ────────────────────────────────────────────── */
.feature-card {
  background-color: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(252, 172, 45, 0.3);
  box-shadow: 0 8px 32px rgba(252, 172, 45, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background-color: rgba(252, 172, 45, 0.12);
  color: #FFD180;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.625rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ── How It Works steps ───────────────────────────────────────── */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: 1rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #FCAC2D;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #121212;
  z-index: 1;
}

.step-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: rgba(252, 172, 45, 0.1);
  border: 1px solid rgba(252, 172, 45, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ── Stats ────────────────────────────────────────────────────── */
.stat-card {
  background-color: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FCAC2D;
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (max-width: 639px) {
  .stat-value {
    font-size: 1.75rem;
  }
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B7280;
}

/* ── Pricing cards ────────────────────────────────────────────── */
.pricing-card {
  background-color: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: rgba(252, 172, 45, 0.5);
  background-color: rgba(252, 172, 45, 0.06);
  box-shadow: 0 0 40px rgba(252, 172, 45, 0.12);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCAC2D;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9CA3AF;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-cycle {
  font-size: 0.8rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #D1D5DB;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FCAC2D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Contact form ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #D1D5DB;
}

.form-input {
  background-color: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.form-input::placeholder {
  color: #4B5563;
}

.form-input:focus {
  border-color: #FCAC2D;
  box-shadow: 0 0 0 3px rgba(252, 172, 45, 0.15);
}

/* Form status messages */
#form-status.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  display: block !important;
}

#form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: block !important;
}

/* ── Utility ──────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* Ensure smooth scroll offset for sticky nav */
section[id] {
  scroll-margin-top: 72px;
}

/* ================================================================
   Docs Page — docs.html
   ================================================================ */

/* ── Docs layout ──────────────────────────────────────────────── */
.docs-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .docs-layout {
    padding: 0 1.5rem;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .docs-layout {
    padding: 0 2rem;
    gap: 3.5rem;
  }
}

.docs-sidebar {
  display: none;
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 0.5rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: #333333 transparent;
}

@media (min-width: 768px) {
  .docs-sidebar {
    display: block;
  }
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background-color: #333333;
  border-radius: 4px;
}

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 0 5rem;
  max-width: 780px;
}

/* ── Sidebar nav ──────────────────────────────────────────────── */
.docs-nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4B5563;
  padding: 1.25rem 0.875rem 0.375rem;
}

.docs-nav-link {
  display: block;
  font-size: 0.875rem;
  color: #9CA3AF;
  text-decoration: none;
  padding: 0.325rem 0.875rem;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  line-height: 1.45;
}

.docs-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.03);
}

.docs-nav-link.active {
  color: #FCAC2D;
  border-left-color: #FCAC2D;
  background-color: rgba(252, 172, 45, 0.07);
  font-weight: 500;
}

.docs-nav-link-sub {
  padding-left: 1.625rem;
  font-size: 0.825rem;
}

/* ── Section styles ───────────────────────────────────────────── */
.docs-section {
  scroll-margin-top: 88px;
  margin-bottom: 3.5rem;
}

.docs-section:last-child {
  margin-bottom: 0;
}

.docs-content h3[id] {
  scroll-margin-top: 88px;
}

.docs-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2A2A2A;
  line-height: 1.25;
}

.docs-h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.625rem;
  margin-top: 2rem;
}

.docs-p {
  font-size: 0.9375rem;
  color: #9CA3AF;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Callout ──────────────────────────────────────────────────── */
.docs-callout {
  background-color: rgba(252, 172, 45, 0.05);
  border-left: 3px solid #FCAC2D;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.875rem 1.125rem;
  margin: 1.25rem 0;
}

.docs-callout-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FCAC2D;
  margin-bottom: 0.35rem;
}

.docs-callout p {
  font-size: 0.875rem;
  color: #D1D5DB;
  line-height: 1.65;
  margin: 0;
}

/* ── Image placeholder ────────────────────────────────────────── */
.docs-img-placeholder {
  background-color: #181818;
  border: 1px dashed #2E2E2E;
  border-radius: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 2.5rem 1.5rem;
  margin: 1.25rem 0;
  min-height: 130px;
}

.docs-img-placeholder .placeholder-icon {
  color: #374151;
}

.docs-img-placeholder .img-caption {
  font-size: 0.8rem;
  color: #4B5563;
  text-align: center;
}

/* ── Steps ────────────────────────────────────────────────────── */
.docs-steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.25rem 0;
}

.docs-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.docs-step-number {
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background-color: #FCAC2D;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.docs-step-content {
  flex: 1;
  padding-top: 0.15rem;
}

.docs-step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.docs-step-desc {
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.65;
}

/* ── Role badges ──────────────────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.role-inspector { background-color: rgba(59,  130, 246, 0.18); color: #93C5FD; }
.role-manager   { background-color: rgba(139, 92,  246, 0.18); color: #C4B5FD; }
.role-admin     { background-color: rgba(239, 68,  68,  0.18); color: #FCA5A5; }
.role-installer { background-color: rgba(20,  184, 166, 0.18); color: #5EEAD4; }
.role-notifier  { background-color: rgba(249, 115, 22,  0.18); color: #FDBA74; }

/* ── Table ────────────────────────────────────────────────────── */
.docs-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
  border: 1px solid #2A2A2A;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 400px;
}

.docs-table th {
  background-color: #1E1E1E;
  color: #6B7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.625rem 1rem;
  text-align: left;
  border-bottom: 1px solid #2A2A2A;
}

.docs-table td {
  padding: 0.625rem 1rem;
  color: #D1D5DB;
  border-bottom: 1px solid #1E1E1E;
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* ── Mobile TOC ───────────────────────────────────────────────── */
.docs-mobile-toc {
  display: block;
  position: sticky;
  top: 64px;
  z-index: 40;
  background-color: rgba(18, 18, 18, 0.96);
  border-bottom: 1px solid #2A2A2A;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .docs-mobile-toc {
    display: none;
  }
}

.docs-toc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9CA3AF;
  background: none;
  border: 1px solid #333333;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.docs-toc-btn:hover {
  color: #ffffff;
  border-color: #555555;
}

.docs-toc-chevron {
  transition: transform 0.2s ease;
}

.docs-toc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1A1A1A;
  border-bottom: 1px solid #2A2A2A;
  padding: 0.375rem 0;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 39;
}

.docs-toc-dropdown.open {
  display: block;
}
