/*
  seo-geo-autopilot.css
  Page-scoped styles for /seo-geo-autopilot — the nightly site-improvement
  subscription. Night-shift identity: deep navy field, emerald work-light
  accent (#10b981), the hero's terminal night-log as the signature element.
  Everything under .sap-* ; shared partials (logos/compare/outcomes) inherit
  the accent via --pt-accent set on the page root.
*/

/* ============================================================
   1. PAGE ROOT
   ============================================================ */
.sap {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}
.sap * { box-sizing: border-box; }

/* Reset the global h2 rule (styles.css applies border-bottom + inline-block
   to every h2 site-wide, which breaks landing-page headings). */
.sap h2 {
  border-bottom: 0;
  display: block;
  padding-bottom: 0;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* the night field: a barely-there radial glow, like a screen lit in a dark room */
.sap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 120vh;
  background:
    radial-gradient(52% 38% at 72% 12%, rgba(16, 185, 129, 0.10), transparent 65%),
    radial-gradient(40% 30% at 12% 30%, rgba(139, 92, 246, 0.07), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* shared section rhythm */
.sap-sec {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1.5rem;
}
.sap-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pt-accent);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.sap-h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: var(--heading-color);
  font-weight: 800;
}
.sap-sec-sub {
  max-width: 640px;
  margin: 0 0 2.2rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ============================================================
   2. HERO
   ============================================================ */
.sap-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}
.sap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.sap-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--pt-accent);
  margin-bottom: 1.1rem;
}
.sap-h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 1.2rem;
  color: var(--heading-color);
}
.sap-h1 span { display: block; }
.sap-h1-grad {
  background: linear-gradient(120deg, var(--pt-grad-from), var(--pt-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sap-sub {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1.8rem;
  max-width: 540px;
}
.sap-cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.sap-cta-center { justify-content: center; }
.sap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sap-btn-solid {
  background: linear-gradient(120deg, var(--pt-grad-from), var(--pt-grad-to));
  color: #04110b;
  box-shadow: 0 8px 26px var(--pt-glow);
}
.sap-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--pt-glow); }
.sap-btn-ghost {
  border: 1px solid color-mix(in srgb, var(--pt-accent) 45%, transparent);
  color: var(--heading-color);
  background: transparent;
}
.sap-btn-ghost:hover { border-color: var(--pt-accent); background: color-mix(in srgb, var(--pt-accent) 10%, transparent); transform: translateY(-2px); }
.sap-trust {
  margin: 1.1rem 0 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

/* ---- the signature: the night-log terminal ---- */
.sap-terminal {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.92), rgba(8, 13, 24, 0.96));
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 24px 70px rgba(2, 6, 14, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.sap-term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.sap-term-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, 0.25); }
.sap-term-bar .sap-term-dot:first-child { background: rgba(239, 68, 68, 0.55); }
.sap-term-bar .sap-term-dot:nth-child(2) { background: rgba(245, 158, 11, 0.55); }
.sap-term-bar .sap-term-dot:nth-child(3) { background: rgba(16, 185, 129, 0.6); }
.sap-term-title {
  margin-inline-start: auto;
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.6);
  font-family: 'Consolas', 'Menlo', monospace;
}
.sap-term-body {
  padding: 1.1rem 1.2rem 1.4rem;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sap-term-line {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #d7e2ee;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.sap-term-line.on { opacity: 1; transform: none; }
.sap-term-time {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.74rem;
  color: rgba(16, 185, 129, 0.85);
  direction: ltr;
  flex-shrink: 0;
}
.sap-term-text { line-height: 1.5; }
.sap-term-delta { color: #34d399; font-weight: 800; }
.sap-term-line[data-line="6"] .sap-term-text { color: #a7f3d0; font-weight: 700; }
.sap-term-cursor {
  width: 9px;
  height: 17px;
  background: var(--pt-accent);
  margin-top: 0.2rem;
  animation: sapBlink 1.05s steps(1) infinite;
}
@keyframes sapBlink { 50% { opacity: 0; } }

/* ---- live fleet stats strip ---- */
.sap-stats {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 16, 30, 0.5);
}
.sap-stats-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pt-accent);
}
.sap-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pt-accent);
  animation: sapPulse 1.8s ease infinite;
}
@keyframes sapPulse { 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12); } }
.sap-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.sap-stat strong { font-size: 1.35rem; color: var(--heading-color); line-height: 1; }
.sap-stat span { font-size: 0.78rem; color: var(--text-secondary); }
.sap-stats-zero .sap-stat strong { color: var(--text-secondary); }

/* ============================================================
   3. 01 THE SHIFT
   ============================================================ */
.sap-shift-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  max-width: 960px;
}
.sap-shift-cols p { margin: 0; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; }
.sap-shift-punch {
  border-inline-start: 3px solid var(--pt-accent);
  padding-inline-start: 1.1rem;
  color: var(--heading-color) !important;
  font-weight: 600;
}

/* ============================================================
   4. 02 THE METHOD — numbered nightly sequence
   ============================================================ */
.sap-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: none;
}
.sap-step {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 1.3rem 1.1rem 1.2rem;
  background: rgba(10, 16, 30, 0.45);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sap-step:hover { border-color: color-mix(in srgb, var(--pt-accent) 55%, transparent); transform: translateY(-3px); }
.sap-step-n {
  position: absolute;
  top: -0.7rem;
  inset-inline-start: 1rem;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--pt-grad-from), var(--pt-grad-to));
  color: #04110b;
  font-weight: 900;
  font-size: 0.82rem;
}
.sap-step .fa { color: var(--pt-accent); font-size: 1.15rem; margin-bottom: 0.6rem; display: block; }
.sap-step h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--heading-color); }
.sap-step p { margin: 0; font-size: 0.83rem; line-height: 1.55; color: var(--text-secondary); }

/* ============================================================
   5. 03 THE CATALOG
   ============================================================ */
.sap-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.sap-cat-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 1.35rem 1.2rem;
  background: rgba(10, 16, 30, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sap-cat-card:hover { border-color: color-mix(in srgb, var(--pt-accent) 55%, transparent); transform: translateY(-3px); }
.sap-cat-star { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.05); }
.sap-cat-card .fa { color: var(--pt-accent); font-size: 1.2rem; }
.sap-cat-card h3 { margin: 0; font-size: 1.02rem; color: var(--heading-color); }
.sap-cat-card p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary); flex: 1; }
.sap-cat-price {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
}
.sap-cat-free {
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

/* ============================================================
   6. 05 THE PROOF — diff card
   ============================================================ */
.sap-diff-card {
  max-width: 720px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 16, 30, 0.55);
  overflow: hidden;
}
.sap-diff-head {
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.sap-diff-rows { padding: 0.9rem 0; }
.sap-diff-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
}
.sap-diff-row code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.86rem;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: start;
}
.sap-diff-del { background: rgba(239, 68, 68, 0.07); }
.sap-diff-del code { color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(252, 165, 165, 0.5); }
.sap-diff-add { background: rgba(16, 185, 129, 0.08); }
.sap-diff-add code { color: #6ee7b7; }
.sap-diff-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 3.4rem;
  color: var(--text-secondary);
}
.sap-diff-why {
  margin: 0;
  padding: 0.9rem 1.2rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* ============================================================
   7. 06 PRICING
   ============================================================ */
.sap-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.sap-price-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 1.7rem 1.4rem 1.5rem;
  background: rgba(10, 16, 30, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sap-price-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pt-accent) 55%, transparent); }
.sap-price-popular { border-color: var(--pt-accent); box-shadow: 0 14px 44px rgba(16, 185, 129, 0.12); }
.sap-price-pop {
  position: absolute;
  top: -0.75rem;
  inset-inline-start: 1.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pt-grad-from), var(--pt-grad-to));
  color: #04110b;
}
.sap-price-card h3 { margin: 0; font-size: 1.25rem; color: var(--pt-accent); font-weight: 900; letter-spacing: 0.02em; }
.sap-price-desc { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.sap-price-num strong { font-size: 1.7rem; color: var(--heading-color); }
.sap-price-num span { font-size: 0.78rem; color: var(--text-secondary); margin-inline-start: 0.3rem; }
.sap-price-ils { font-size: 0.85rem; color: var(--text-secondary); }
.sap-price-btn { margin-top: 0.6rem; }
.sap-price-note {
  margin: 1.6rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ============================================================
   8. FINAL CTA
   ============================================================ */
.sap-final {
  text-align: center;
  padding-bottom: 5rem;
}
.sap-final .sap-sec-sub { margin-inline: auto; }
.sap-final .sap-trust { opacity: 0.7; }

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .sap-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .sap-steps { grid-template-columns: repeat(2, 1fr); }
  .sap-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .sap-price-grid { grid-template-columns: 1fr; max-width: 460px; }
  .sap-shift-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sap-hero { padding-top: 3rem; }
  .sap-steps { grid-template-columns: 1fr; }
  .sap-cat-grid { grid-template-columns: 1fr; }
  .sap-stats { gap: 1.4rem; }
  .sap-sec { padding-top: 3.2rem; }
}

/* ============================================================
   10. LIGHT THEME
   The terminal keeps its night identity (a terminal is dark in any
   theme); everything else moves to light surfaces so the page follows
   the visitor's theme like every other product page.
   ============================================================ */
body.light-theme .sap::before {
  background:
    radial-gradient(52% 38% at 72% 12%, rgba(16, 185, 129, 0.10), transparent 65%),
    radial-gradient(40% 30% at 12% 30%, rgba(139, 92, 246, 0.06), transparent 60%);
}
body.light-theme .sap-step,
body.light-theme .sap-cat-card,
body.light-theme .sap-price-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}
body.light-theme .sap-cat-star { background: rgba(16, 185, 129, 0.07); border-color: rgba(16, 185, 129, 0.4); }
body.light-theme .sap-stats {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}
body.light-theme .sap-diff-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .sap-diff-del { background: rgba(239, 68, 68, 0.08); }
body.light-theme .sap-diff-del code { color: #b91c1c; }
body.light-theme .sap-diff-add { background: rgba(16, 185, 129, 0.1); }
body.light-theme .sap-diff-add code { color: #047857; }
body.light-theme .sap-price-popular { box-shadow: 0 14px 44px rgba(16, 185, 129, 0.16); }

/* reduced motion: land everything instantly */
@media (prefers-reduced-motion: reduce) {
  .sap-term-line { opacity: 1; transform: none; transition: none; }
  .sap-term-cursor, .sap-live-dot { animation: none; }
  .sap-btn, .sap-step, .sap-cat-card, .sap-price-card { transition: none; }
}
