/* ========================================
   Shared Page Styles (Services, Audit, etc.)
   ======================================== */

/* Page Hero */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-content {
  max-width: 640px;
}

.page-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
}

/* ========================================
   Services Page — System Details
   ======================================== */

.system-detail {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.system-alt {
  background: var(--bg-secondary);
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.system-number {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--indigo);
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.system-content h2 {
  margin-bottom: 12px;
}

.system-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.system-problem,
.system-solution,
.system-output {
  margin-bottom: 32px;
}

.system-problem h3,
.system-solution h3,
.system-output h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-problem p,
.system-solution p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.system-output ul {
  list-style: none;
  padding: 0;
}

.system-output li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  padding: 8px 0;
}

.system-output li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
  margin-top: 8px;
}

/* System Sidebar */
.system-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.system-integrations,
.system-powered {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.system-integrations h4,
.system-powered h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.int-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.system-powered p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Systems Connect */
.systems-connect {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.connect-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.connect-card h2 {
  margin-bottom: 24px;
}

.connect-card p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.connect-card .btn {
  margin-top: 24px;
}

/* ========================================
   Audit Page
   ======================================== */

/* Who This Is For */
.audit-who {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.audit-who h2 {
  margin-bottom: 48px;
}

.audit-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
}

.audit-who-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.audit-who-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--indigo);
}

.audit-who-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* Audit Process */
.audit-process {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.audit-process .section-sub {
  margin-bottom: 64px;
}

.audit-steps {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.audit-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-step:first-child {
  padding-top: 0;
}

.audit-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.audit-step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-glow);
  border: 1px solid var(--border-subtle);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo);
}

.audit-step-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.audit-step-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Deliverables */
.audit-deliverables {
  padding: 100px 0;
}

.audit-deliverables h2 {
  margin-bottom: 48px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deliverable-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.deliverable-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.deliverable-card svg {
  width: 28px;
  height: 28px;
  color: var(--indigo);
  margin-bottom: 16px;
}

.deliverable-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.deliverable-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Pricing */
.audit-pricing {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.pricing-card h2 {
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-from {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pricing-note {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.pricing-detail h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-detail ul {
  list-style: none;
  padding: 0;
}

.pricing-detail li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.pricing-detail li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  position: absolute;
  left: 0;
  top: 12px;
}

.pricing-detail p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.pricing-cta {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.pricing-cta-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}

/* Relationship to Full Builds */
.audit-relationship {
  padding: 100px 0;
}

.relationship-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.relationship-card h2 {
  margin-bottom: 20px;
}

.relationship-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.relationship-card .btn {
  margin-top: 24px;
}

/* ========================================
   Outcome-Based Pricing Examples
   ======================================== */

.pricing-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

/* ========================================
   Responsive — Sub Pages
   ======================================== */

@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }

  .system-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .system-sidebar {
    position: static;
  }

  .system-detail { padding: 60px 0; }

  .audit-who-grid {
    grid-template-columns: 1fr;
  }

  .audit-step {
    flex-direction: column;
    gap: 16px;
  }

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

  .pricing-card { padding: 32px 24px; }

  .pricing-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-examples { grid-template-columns: 1fr; }

  .systems-connect { padding: 80px 0; }
  .audit-who,
  .audit-process,
  .audit-deliverables,
  .audit-pricing,
  .audit-relationship { padding: 60px 0; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .system-grid {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   ROI Calculator
   ======================================== */

.calc-section {
  padding: 0 0 100px;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.calc-input-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.calc-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--indigo);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.calc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--indigo);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.calc-value-display {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 120px;
  justify-content: flex-end;
}

.calc-num-input {
  width: 60px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.calc-num-input::-webkit-inner-spin-button,
.calc-num-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-num-input:focus {
  border-color: var(--indigo);
}

.calc-unit {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Results Panel */
.calc-results-wrapper {
  position: relative;
}

.calc-results {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-result-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.calc-result-value {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-result-highlight .calc-result-value {
  font-size: 28px;
}

.calc-result-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* Email Gate */
.calc-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  transition: opacity 0.3s ease;
  z-index: 10;
}

.calc-gate-content {
  text-align: center;
  padding: 32px;
}

.calc-gate-content > p:first-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.calc-gate-form {
  display: flex;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.calc-email-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.calc-email-input:focus {
  border-color: var(--indigo);
}

.calc-email-input::placeholder {
  color: var(--text-muted);
}

.calc-gate-btn {
  padding: 14px 24px;
  white-space: nowrap;
}

.calc-gate-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* FAQ */
.calc-faq {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border-subtle);
}

.calc-faq h2 {
  margin-bottom: 48px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
}

.faq-item {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Calculator Responsive */
@media (max-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-slider-row {
    flex-wrap: wrap;
  }

  .calc-value-display {
    min-width: auto;
  }

  .calc-results {
    padding: 28px;
  }

  .calc-result-highlight .calc-result-value {
    font-size: 22px;
  }

  .calc-gate-form {
    flex-direction: column;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Comparison Page
   ======================================== */

.compare-section {
  padding: 0 0 100px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.compare-table thead th {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 24px;
}

.compare-table thead th:first-child {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}

.compare-table tbody td {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Highlight MKTfit column */
.compare-col-highlight {
  background: rgba(99, 102, 241, 0.04);
  position: relative;
}

.compare-table thead .compare-col-highlight {
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius) var(--radius) 0 0;
}

.compare-table tbody tr:last-child .compare-col-highlight {
  border-radius: 0 0 var(--radius) var(--radius);
}

.compare-col-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.compare-table thead .compare-col-highlight::after {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Comparison mobile cards */
.compare-cards {
  display: none;
}

.compare-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.compare-card-highlight {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.08);
}

.compare-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.compare-card-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.compare-card-row:last-child {
  border-bottom: none;
}

.compare-card-label {
  color: var(--text-muted);
  font-weight: 500;
}

.compare-card-value {
  color: var(--text-secondary);
  text-align: right;
  max-width: 55%;
}

@media (max-width: 768px) {
  .compare-table-wrapper {
    display: none;
  }

  .compare-cards {
    display: block;
  }
}
