/* -------------------------------------------------------------
   Funnellotto CSS Design System
   Aesthetics: Logo-Matched Warm Theme (Terracotta, Espresso, Cream)
   ------------------------------------------------------------- */

/* Custom Design Tokens & Variables */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette - Matched with Brand Logo colors */
  --bg-primary: #120C0A;      /* Deep dark espresso coffee background */
  --bg-secondary: #1C1310;    /* Warm dark chocolate */
  --bg-card: rgba(28, 19, 16, 0.75);
  --bg-glass: rgba(36, 25, 21, 0.5);
  --border-glass: rgba(252, 239, 214, 0.08); /* Cream-rust tinted transparent border */
  
  --color-text-primary: #FCEFD6;   /* Main cream color from logo */
  --color-text-secondary: #E9DFCD; /* Slightly muted sand/cream */
  --color-text-muted: #A39682;     /* Muted greyish brown */
  
  --primary-gradient: linear-gradient(135deg, #E2843A 0%, #B94A1F 100%); /* Warm copper to terracotta */
  --secondary-gradient: linear-gradient(135deg, #FCEFD6 0%, #E2843A 100%);
  --accent-glow: rgba(185, 74, 31, 0.2);

  --color-primary: #B94A1F;        /* Terracotta red-orange */
  --color-primary-hover: #A03E18;
  --color-success: #10B981;        /* Muted success green */
  --color-warning: #D97706;        /* Warm amber */
  --color-danger: #EF4444;         /* Soft red */
  --color-info: #EAB308;           /* Golden yellow */

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 20px rgba(185, 74, 31, 0.25);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(185, 74, 31, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(226, 132, 58, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted) !important;
}

.text-danger {
  color: var(--color-danger) !important;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(185, 74, 31, 0.1);
}

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 12, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 52px; /* Increased size as requested */
  object-fit: contain;
  background: #FFF; /* In case logo background isn't transparent, wraps in white box */
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(252, 239, 214, 0.2);
}

.logo-fallback {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
  padding: 0.5rem 0.25rem;
  position: relative;
}

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

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Sections Base */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  border-color: rgba(252, 239, 214, 0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: rgba(185, 74, 31, 0.15); color: #FB923C; border: 1px solid rgba(185, 74, 31, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(217, 119, 6, 0.15); color: #FBBF24; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: #94A3B8; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-icon {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(185, 74, 31, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 74, 31, 0.45), var(--shadow-neon);
}

.btn-secondary {
  background: rgba(252, 239, 214, 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(252, 239, 214, 0.1);
}

.btn-secondary:hover {
  background: rgba(252, 239, 214, 0.1);
  border-color: rgba(252, 239, 214, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-2px);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: #fff;
}

.w-full {
  width: 100%;
}

.icon-inline {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* HERO SECTION */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(185, 74, 31, 0.12);
  color: #FB923C;
  border: 1px solid rgba(185, 74, 31, 0.2);
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(185, 74, 31, 0.1);
}

.consultant-note {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.55) 0%, rgba(28, 19, 16, 0.75) 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.consultant-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.consultant-note-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.consultant-note p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.hero-title {
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 750px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Simulator Calculator */
.calculator-card {
  width: 100%;
  max-width: 800px;
  margin-top: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 1.35rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.control-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.control-group label span {
  font-weight: 700;
  color: var(--color-warning);
}

/* Slider Track & Thumb */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: rgba(252, 239, 214, 0.12);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(185, 74, 31, 0.5);
  transition: transform var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #E2843A;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(252, 239, 214, 0.05);
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-value.highlight {
  background: linear-gradient(135deg, #EF4444 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
}

.calculator-cta {
  margin-top: 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  border-top: 1px solid rgba(252, 239, 214, 0.05);
  padding-top: 1rem;
}

.calculator-cta strong {
  color: var(--color-success);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 2.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Pain Points / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.icon-wrapper i {
  width: 28px;
  height: 28px;
}

.danger-bg { background: rgba(239, 68, 68, 0.12); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.25); }
.warning-bg { background: rgba(217, 119, 6, 0.12); color: #FBBF24; border: 1px solid rgba(217, 119, 6, 0.25); }
.info-bg { background: rgba(234, 179, 8, 0.12); color: #FEF08A; border: 1px solid rgba(234, 179, 8, 0.25); }
.success-bg { background: rgba(16, 185, 129, 0.12); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.25); }

.feature-card h3 {
  font-size: 1.25rem;
}

/* How It Works Section */
.how-it-works-section {
  margin: 4rem 0;
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.step-flow-item {
  position: relative;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(252, 239, 214, 0.04);
  border-radius: 12px;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(185, 74, 31, 0.3);
}

.step-flow-item h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

/* OFFERS & SERVICES VIEW */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 20px;
  background: var(--bg-glass);
}

.offer-card.featured {
  background: linear-gradient(135deg, rgba(28, 19, 16, 0.8) 0%, rgba(185, 74, 31, 0.1) 100%);
  border: 1px solid rgba(185, 74, 31, 0.35);
  box-shadow: 0 10px 40px rgba(185, 74, 31, 0.15);
}

.card-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: rgba(252, 239, 214, 0.08);
  border: 1px solid rgba(252, 239, 214, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-featured {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
}

.offer-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  min-height: 60px;
}

.offer-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  border-top: 1px solid rgba(252, 239, 214, 0.05);
  padding-top: 1rem;
}

.old-price {
  font-size: 1.15rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}

.offer-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.success-icon {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* QUESTIONNAIRE WIZARD */
.quiz-progress-bar {
  margin-bottom: 2.5rem;
}

.progress-fill {
  height: 8px;
  border-radius: 4px;
  background: var(--primary-gradient);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(185, 74, 31, 0.5);
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.5rem;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: slideIn 0.35s ease-out forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Input Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1 !important;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(252, 239, 214, 0.1);
  color: #fff;
  transition: all var(--transition-fast);
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 10px rgba(185, 74, 31, 0.2);
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A39682' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

select option {
  background-color: var(--bg-secondary);
  color: #fff;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(252, 239, 214, 0.05);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.input-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

/* LEAD GEN LOCK STEP 6 */
.gate-wrapper {
  padding: 1rem 0;
}

.gate-icon-container {
  width: 68px;
  height: 68px;
  background: rgba(185, 74, 31, 0.12);
  border: 1px solid rgba(185, 74, 31, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.gate-lock-icon {
  width: 32px;
  height: 32px;
  color: #FB923C;
}

.gate-form {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: left;
  border: 1px solid rgba(252, 239, 214, 0.12);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(252, 239, 214, 0.05);
  padding-top: 1.5rem;
}

.btn-nav {
  min-width: 120px;
}

/* DYNAMIC DIAGNOSIS RESULTS */
.quiz-result-box {
  max-width: 950px;
  margin: 1.5rem auto 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.result-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.result-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.result-summary-card,
.result-diagnosis-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(252, 239, 214, 0.04);
}

.revenue-leakage-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: auto;
}

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

.result-loss-big {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-danger);
  margin: 0.5rem 0 0;
}

.diagnosis-in-a-sentence {
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
}

.priority-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.priority-list li {
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  background: rgba(252, 239, 214, 0.02);
  border-radius: 6px;
  border-left: 3px solid var(--color-info);
}

.result-cta-box {
  background: linear-gradient(135deg, rgba(28, 19, 16, 0.8) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.result-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.result-cta-box p {
  margin-bottom: 1.75rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* CRM WORKSPACE VIEW */
.crm-header-dashboard {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.crm-actions-area {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.crm-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(252, 239, 214, 0.08);
  padding-bottom: 0.5rem;
}

.crm-tab-btn {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.crm-tab-btn:hover {
  color: #fff;
}

.crm-tab-btn.active {
  color: #fff;
}

.crm-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}

.crm-tab-content {
  display: none;
}

.crm-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* CRM Tables */
.table-container {
  overflow-x: auto;
  padding: 0.5rem;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.crm-table th {
  padding: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(252, 239, 214, 0.08);
  font-family: var(--font-heading);
}

.crm-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(252, 239, 214, 0.05);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

.crm-table tbody tr:hover {
  background: rgba(252, 239, 214, 0.02);
}

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

.crm-table .action-btns {
  display: flex;
  gap: 0.25rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 500px;
  background: #1c1310;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  border: 1px solid var(--border-glass);
}

.modal-card.large {
  max-width: 800px;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(252, 239, 214, 0.08);
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(252, 239, 214, 0.08);
}

.error-text {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Detail view styling */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-section {
  grid-column: span 2;
  border-bottom: 1px solid rgba(252, 239, 214, 0.06);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.detail-section h4 {
  font-size: 1.1rem;
  color: var(--color-warning);
  margin-bottom: 0.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

/* Webhook Settings */
.webhook-settings-panel h3 {
  margin-bottom: 0.5rem;
}

.webhook-settings-panel p {
  font-size: 0.95rem;
}

/* 9-card Pain Points Grid (3x3) */
.features-grid-9 {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 900px) {
  .features-grid-9 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .features-grid-9 {
    grid-template-columns: 1fr !important;
  }
}

/* Challenge Selector Cards (Step 2 Branching) */
.challenge-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.challenge-option {
  position: relative;
  cursor: pointer;
  padding: 1.5rem;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  transition: var(--transition-normal);
}

.challenge-option:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon);
}

.challenge-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.challenge-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(185, 74, 31, 0.12);
  box-shadow: var(--shadow-neon);
}

.challenge-content {
  text-align: center;
}

.challenge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--primary-gradient);
  color: white;
}

.challenge-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.challenge-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .challenge-selector {
    grid-template-columns: 1fr;
  }
}

/* Solutions Section - Expandable Cards */
.solutions-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.solution-card {
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.solution-card:hover {
  border-color: rgba(185, 74, 31, 0.3);
  box-shadow: var(--shadow-neon);
}

.solution-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.25rem 0;
}

.solution-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(185, 74, 31, 0.12);
  border: 1px solid rgba(185, 74, 31, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2843A;
}

.solution-icon i {
  width: 22px;
  height: 22px;
}

.solution-title {
  flex: 1;
}

.solution-title h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.solution-teaser {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.solution-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.solution-card.expanded .solution-chevron {
  transform: rotate(180deg);
}

.solution-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0;
}

.solution-card.expanded .solution-body {
  max-height: 600px;
  padding-top: 1.5rem;
}

.solution-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .solution-columns {
    grid-template-columns: 1fr;
  }
}

.solution-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.solution-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.solution-body ul li {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(185, 74, 31, 0.3);
}

.solution-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.solution-cta {
  border-top: 1px solid rgba(252, 239, 214, 0.06);
  padding-top: 1rem;
}

.solutions-note {
  font-size: 0.9rem;
}

.solutions-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Calculator Blocks */
.calc-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(252, 239, 214, 0.06);
}

.calc-block:first-of-type {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.calc-block-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-block-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.calc-result-inline {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(252, 239, 214, 0.05);
  margin-top: 1rem;
}

.calc-time-cascade {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.calc-arrow {
  color: var(--color-text-muted);
  font-size: 1.25rem;
}

.result-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.result-value.highlight-time {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
}

.calc-examples {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.88rem;
}

.calc-examples ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.calc-examples li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.calc-asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.calc-asset-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  line-height: 1.4;
}

/* CATALOG PAGE */
.catalog-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.catalog-level {
  margin-bottom: 3rem;
}

.catalog-level-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(252, 239, 214, 0.08);
}

.catalog-level-header h3 {
  font-size: 1.3rem;
}

.catalog-level-badge {
  flex-shrink: 0;
}

.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Solution Price Tags */
.solution-price {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(185, 74, 31, 0.15);
  color: #FB923C;
  border: 1px solid rgba(185, 74, 31, 0.3);
  vertical-align: middle;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.solution-price.free {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Alternating section backgrounds */
.section-alt {
  background: rgba(60, 40, 30, 0.55);
  border-top: 1px solid rgba(185, 74, 31, 0.12);
  border-bottom: 1px solid rgba(185, 74, 31, 0.12);
  padding: 3rem 1rem;
  margin: 0 -1rem;
}

.section-alt-dark {
  background: rgba(50, 35, 25, 0.45);
  border-top: 1px solid rgba(252, 239, 214, 0.06);
  border-bottom: 1px solid rgba(252, 239, 214, 0.06);
  padding: 3rem 1rem;
  margin: 0 -1rem;
}

/* Hero Image */
.hero-image {
  width: 100%;
  max-width: 700px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 1rem;
  border: 1px solid rgba(252, 239, 214, 0.08);
  opacity: 0.85;
}

/* About Section */
.about-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 3rem 2rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-photo {
  width: 160px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(185, 74, 31, 0.4);
  box-shadow: 0 0 20px rgba(185, 74, 31, 0.15);
  image-orientation: from-image;
}

/* Footer */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-container p {
  font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 12, 10, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glass);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(18, 12, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    z-index: 100;
    border-left: 1px solid var(--border-glass);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(252, 239, 214, 0.06);
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .hero-section {
    padding: 2rem 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    margin-bottom: 2rem;
  }

  .hero-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    text-align: center;
    line-height: 1.4;
  }

  .btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .section-header {
    margin: 2rem auto 1.5rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .features-grid {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .glass-panel {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .calculator-card {
    max-width: 100%;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .card-header h3 {
    font-size: 1.15rem;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calc-time-cascade {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .calc-arrow {
    display: none;
  }

  .solutions-section {
    padding: 2rem 0;
  }

  .solution-header {
    flex-wrap: wrap;
  }

  .solution-title h3 {
    font-size: 1rem;
  }

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

  .solution-card.expanded .solution-body {
    max-height: 1200px;
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-it-works-section {
    margin: 2rem 0;
  }

  .about-section {
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }

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

  .offer-price {
    font-size: 1.5rem;
  }

  .catalog-level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .catalog-level-header h3 {
    font-size: 1.1rem;
  }

  .challenge-selector {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: 95%;
    max-height: 90vh;
  }

  .modal-card.large {
    max-width: 95%;
  }

  .modal-body {
    max-height: 60vh;
  }

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

  .detail-section {
    grid-column: span 1;
  }

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

  .result-title {
    font-size: 1.5rem;
  }

  .result-cta-box {
    padding: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .crm-header-dashboard {
    flex-direction: column;
  }

  .crm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .crm-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .crm-tab-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .crm-table {
    min-width: 700px;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

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

  .quiz-nav {
    gap: 0.5rem;
  }

  .btn-nav {
    min-width: 100px;
    font-size: 0.9rem;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }

  .hero-image {
    height: 200px;
    border-radius: 12px;
  }

  .about-photo {
    width: 130px;
    height: 165px;
  }

  .section-alt, .section-alt-dark {
    margin: 0 -1rem;
    padding: 2rem 1rem;
  }

  .result-loss-big {
    font-size: 1.5rem;
  }

  .app-footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-badge {
    font-size: 0.85rem;
  }

  .logo-img {
    height: 40px;
  }

  .crm-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .offer-card {
    padding: 1.25rem;
  }
}
