/* ViciStack Landing Page — Minimal, fast, conversion-optimized */
/* System fonts only — no external loads */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --cta: #00873c;
  --cta-hover: #006e30;
  --dark: #1a1a2e;
  --text: #2d2d3a;
  --text-light: #5a5a6e;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #1a1a2e;
  --border: #e2e5ea;
  --radius: 8px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero Section ─── */
.hero {
  padding: 48px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subheadline {
  font-size: 20px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.cta-btn {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  line-height: 1.2;
}

.cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.micro-proof {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

/* ─── Pain Section ─── */
.pain {
  background: var(--bg-alt);
  padding: 72px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 48px;
}

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

.pain-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.pain-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── Offer Section ─── */
.offer {
  padding: 72px 0;
}

.offer-body {
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

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

.offer .cta-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ─── Why Section ─── */
.why {
  background: var(--bg-alt);
  padding: 72px 0;
}

.why-text {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.3;
}

/* ─── Features Section ─── */
.features {
  padding: 72px 0;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ─── Proof Section ─── */
.proof {
  background: var(--bg-dark);
  color: #fff;
  padding: 72px 0;
}

.proof .section-title {
  color: #fff;
}

.proof-intro {
  text-align: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.proof-list {
  max-width: 540px;
  margin: 0 auto;
  list-style: none;
}

.proof-list li {
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-list li:last-child {
  border-bottom: none;
}

.proof-check {
  color: var(--cta);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

/* ─── FAQ Section ─── */
.faq {
  padding: 72px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  font-size: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── Final CTA Section ─── */
.final-cta {
  background: var(--bg-alt);
  padding: 72px 0;
  text-align: center;
}

.final-cta .subheadline {
  font-size: 18px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ─── Modal / Form ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-overlay.active .modal {
  animation: modalScaleIn 0.25s ease-out;
}

.modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal .modal-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-option {
  display: block;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option span {
  display: block;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.radio-option input:checked + span {
  border-color: var(--primary);
  background: rgba(26, 115, 232, 0.12);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.radio-option span:hover {
  border-color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-family: var(--font);
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-btn {
  width: 100%;
  background: var(--cta);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-top: 8px;
}

.form-btn:hover {
  background: var(--cta-hover);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.step-dot.active {
  background: var(--primary);
}

/* ─── Thank-You Page ─── */
.thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.thankyou-card {
  max-width: 580px;
  text-align: center;
}

.thankyou-icon {
  font-size: 56px;
  margin-bottom: 24px;
}

.thankyou-card h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.thankyou-card .body-text {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.checklist {
  text-align: left;
  max-width: 380px;
  margin: 0 auto 32px;
  list-style: none;
}

.checklist li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist .check {
  color: var(--cta);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Footer ─── */
footer {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* ─── Trust Badges ─── */
.cta-trust {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ─── Form Inline Errors ─── */
.form-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 6px;
}

.form-input-error {
  border-color: #d32f2f !important;
}

.radio-group-error {
  outline: 2px solid #d32f2f;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── Loading Spinner ─── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── Form Back Button ─── */
.form-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.form-back:hover {
  text-decoration: underline;
}

/* ─── CRO Elements (Lever 9) ─── */

/* Urgency text */
.vs-urgency {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.vs-urgency strong {
  color: #c62828;
}

/* Sticky CTA bar */
.vs-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 15px;
  font-weight: 600;
}

.vs-sticky-bar.visible {
  transform: translateY(0);
}

.vs-sticky-btn {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.vs-sticky-btn:hover {
  background: var(--cta-hover);
}

/* Social proof toast */
.vs-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 800;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.vs-toast.visible {
  transform: translateY(0);
}

.vs-toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  flex-shrink: 0;
  font-family: var(--font);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Exit-intent overlay */
.vs-exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.vs-exit-overlay.active {
  display: flex;
  animation: modalFadeIn 0.15s ease-out;
}

.vs-exit-overlay.active .vs-exit-modal {
  animation: modalScaleIn 0.2s ease-out;
}

.vs-exit-modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
}

.vs-exit-modal h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.vs-exit-modal p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.vs-exit-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Accessibility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Feature Benefit Text ─── */
.feature-benefit {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

/* ─── Health Check Audit ─── */
.audit {
  padding: 72px 0;
  background: var(--bg);
}

.audit-quiz {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.audit-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.audit-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.audit-step-label {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 24px;
}

.audit-screen {
  display: none;
}

.audit-screen.active {
  display: block;
  animation: auditFadeIn 0.25s ease-out;
}

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

.audit-q-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.audit-q-hint {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.audit-radio-group .radio-option span {
  padding: 14px 16px;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-score-display {
  text-align: center;
  margin-bottom: 24px;
}

.audit-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 6px solid;
}

.audit-score-circle.tier-critical { border-color: #d32f2f; }
.audit-score-circle.tier-at-risk { border-color: #f57c00; }
.audit-score-circle.tier-solid { border-color: #fbc02d; }
.audit-score-circle.tier-optimized { border-color: #00c853; }

.audit-score-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.audit-score-circle.tier-critical .audit-score-num { color: #d32f2f; }
.audit-score-circle.tier-at-risk .audit-score-num { color: #f57c00; }
.audit-score-circle.tier-solid .audit-score-num { color: #fbc02d; }
.audit-score-circle.tier-optimized .audit-score-num { color: #00c853; }

.audit-score-of {
  font-size: 14px;
  color: var(--text-light);
}

.audit-tier-label {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.audit-impact-text {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

.audit-findings-list {
  list-style: none;
  margin-bottom: 24px;
}

.audit-finding-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.audit-finding-item:last-child {
  border-bottom: none;
}

.audit-finding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.audit-finding-dot.red { background: #d32f2f; }
.audit-finding-dot.orange { background: #f57c00; }
.audit-finding-dot.yellow { background: #fbc02d; }
.audit-finding-dot.green { background: #00c853; }

.audit-finding-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.audit-skip-btn {
  font-size: 15px !important;
  padding: 12px 24px !important;
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

.audit-skip-btn:hover {
  background: rgba(26, 115, 232, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero .subheadline {
    font-size: 17px;
  }

  .pain-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .modal {
    padding: 28px 20px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .audit-quiz {
    padding: 28px 20px;
  }

  .vs-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 70px;
  }

  .vs-sticky-bar {
    font-size: 13px;
    gap: 10px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .vs-toast {
    bottom: calc(52px + 12px);
  }
}
