@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-blue: #1E90FF;
  --primary-blue-dark: #0066CC;
  --primary-blue-light: #E6F2FF;
  --accent-green: #20B2AA;
  --accent-green-dark: #12807B;
  --accent-green-light: #E6F8F7;
  --status-red: #FF4D4D;
  --bg-gradient: linear-gradient(180deg, #F8FAFC 0%, #EDF5FF 50%, #F0FDFA 100%);
  --surface-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --card-shadow: 0 10px 30px -5px rgba(30, 144, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --button-shadow: 0 8px 20px -4px rgba(30, 144, 255, 0.3);
  --green-button-shadow: 0 8px 20px -4px rgba(32, 178, 170, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Header & Progress */
.app-header {
  width: 100%;
  max-width: 600px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.back-button:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.brand-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.step-counter {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 6%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-green) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-in-out;
}

/* Main Container */
.main-container {
  width: 100%;
  max-width: 600px;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Quiz Screen Wrapper */
.screen {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
}

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

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

.title-large {
  font-size: 1.85rem;
  line-height: 1.25;
  text-align: center;
}

.title-large span.highlight {
  color: var(--primary-blue);
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.12) 0%, rgba(32, 178, 170, 0.12) 100%);
  padding: 2px 8px;
  border-radius: 6px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
}

/* Hero Media */
.hero-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(30, 144, 255, 0.4);
}

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

.btn-green {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  box-shadow: var(--green-button-shadow);
}

.btn-green:hover {
  box-shadow: 0 12px 25px -4px rgba(32, 178, 170, 0.4);
}

.btn-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-option {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-option:hover {
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
  transform: translateY(-1px);
}

.btn-option.selected {
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.15);
}

.btn-option .checkmark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-option.selected .checkmark {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-option.selected .checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Options Container */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Social Bar & Logos */
.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.avatar-stack {
  display: flex;
  margin-right: 4px;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.social-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.credibility-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.credibility-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.credibility-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cred-logo-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
  padding: 6px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  letter-spacing: -0.3px;
}

/* Checklist Box */
.checklist-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Testimonial Quote Box */
.quote-card {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--primary-blue);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-text {
  font-size: 0.98rem;
  font-style: italic;
  color: #334155;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Results Summary Screen 14 */
.result-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE2E2;
  color: #DC2626;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  align-self: flex-start;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-box {
  background: #F8FAFC;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Loading Screen 15 */
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.progress-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-blue) 0%, var(--accent-green) 53%, #E2E8F0 53%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circle-inner {
  width: 106px;
  height: 106px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
}

.loading-status-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  min-height: 28px;
}

/* Final Plan Screen */
.phase-card {
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 14px;
}

.phase-icon {
  font-size: 1.8rem;
}

.phase-title {
  font-size: 1rem;
  font-weight: 700;
}

.phase-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CHECKOUT PAGE SPECIFIC STYLES */
.checkout-header-banner {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.timer-pill {
  background: #B45309;
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 0.95rem;
}

.before-after-metrics {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.bar-track {
  height: 10px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill-now {
  height: 100%;
  width: 85%;
  background: var(--status-red);
}

.bar-fill-goal {
  height: 100%;
  width: 20%;
  background: var(--accent-green);
}

/* Pricing Plans Cards */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card.popular {
  border-color: var(--accent-green);
  box-shadow: 0 8px 24px rgba(32, 178, 170, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-card.selected .radio-dot {
  border-color: var(--accent-green);
  background: var(--accent-green);
}

.plan-card.selected .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.plan-price-box {
  text-align: right;
}

.price-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.plan-bonus {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green-dark);
  background: var(--accent-green-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

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

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

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

.faq-icon {
  transition: transform 0.2s;
  font-weight: bold;
}

/* Guarantee Section */
.guarantee-box {
  background: #FFFBEB;
  border: 1px dashed #F59E0B;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.guarantee-badge {
  width: 70px;
  height: 70px;
}

.footer-legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Responsiveness */
@media (max-width: 480px) {
  .title-large {
    font-size: 1.55rem;
  }
  .main-container {
    padding: 16px 14px 40px;
  }
  .btn-primary {
    padding: 16px 18px;
    font-size: 1.05rem;
  }
}
