/* ============================================
   TELYA LANDING PAGE — Brand Design System
   Adapted from telya.es identity
   ============================================ */

/* --- CSS Variables (Telya Brand) --- */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --bg: #EAEAEA;
  --bg-card: #FFFFFF;
  --lime: #ccff00;
  --glow-blue: #4c6fff;
  --glow-indigo: #6366f1;
  --whatsapp: #25D366;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #E0E0E0;
  --success: #16A34A;
  --success-bg: #F0FDF4;
  --danger: #DC2626;
  --radius-sm: 12px;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 60px rgba(0, 0, 0, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow (like telya.es) */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 100vh;
  top: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.35;
}

body::before {
  left: -100px;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
}

body::after {
  right: -100px;
  background: radial-gradient(circle, var(--glow-indigo), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Outline text effect (like telya.es headlines) */
.text-outline {
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 13px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(234, 234, 234, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Sections (shared) --- */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 48px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
  display: block;
  max-height: 400px;
  width: auto;

  /* 3D Floating Capsule Effect */
  border-radius: 100px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- How it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

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

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

.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Social Proof --- */
.social-proof {
  background: var(--white);
  border-radius: var(--radius-lg);
}

.stat-big {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 8px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
}

.testimonial-card blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Benefits --- */
.benefit-section {}

.benefit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.benefit-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 20px;
}

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

.benefit-visual {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table .old-price {
  text-decoration: line-through;
  color: var(--danger);
  font-weight: 600;
}

.comparison-table .new-price {
  color: var(--success);
  font-weight: 800;
  font-size: 20px;
}

.saving-callout {
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
}

.saving-callout strong {
  font-size: 28px;
  color: var(--success);
  display: block;
  margin-bottom: 4px;
}

.honesty-box {
  background: #FFF7ED;
  border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.honesty-box strong {
  color: var(--text-primary);
}

/* --- Features list --- */
.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  padding: 8px 0;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.feature-list li span:first-child {
  flex-shrink: 0;
}

/* --- Calculator --- */
.calculator-section {
  background: var(--white);
}

.calculator-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--glow-blue), var(--lime));
}

/* Progress bar */
.calc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.calc-step {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.calc-step.active {
  color: var(--glow-blue);
  font-weight: 600;
}

.calc-step.done {
  color: var(--success);
}

.calc-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}

.calc-step.active .calc-dot {
  border-color: var(--glow-blue);
  background: var(--glow-blue);
  color: white;
}

.calc-step.done .calc-dot {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.calc-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.calc-line.done {
  background: var(--success);
}

.calc-card h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 6px;
}

.calc-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--glow-blue) 53%, var(--border) 53%);
  outline: none;
  margin-bottom: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glow-blue);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.range-value {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--glow-blue);
  margin-bottom: 4px;
}

.range-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-item:hover {
  border-color: var(--glow-blue);
  background: #F8FAFF;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--glow-blue);
  cursor: pointer;
}

.checkbox-item label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  flex: 1;
}

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

.btn-calc {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Calculator results */
#calc-results {
  display: none;
  margin-top: 28px;
  animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: var(--success-bg);
  border: 2px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.result-headline {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-amount {
  font-size: 48px;
  color: var(--success);
  font-weight: 900;
  line-height: 1;
  margin: 8px 0;
}

.result-period {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-monthly {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.result-monthly strong {
  color: var(--text-primary);
}

.tangible-benefit {
  margin-top: 14px;
  padding: 14px;
  background: white;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.result-table th {
  padding: 8px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.result-table td {
  padding: 8px;
  text-align: center;
}

.no-savings-card {
  background: #FFF7ED;
  border: 2px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.no-savings-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

/* Lead capture */
.lead-capture {
  margin-top: 20px;
  padding: 24px;
  background: #F8FAFF;
  border: 1px solid #D1E3FF;
  border-radius: var(--radius-sm);
  text-align: center;
}

.lead-capture h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lead-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.email-form {
  display: flex;
  gap: 8px;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  border-color: var(--glow-blue);
}

.email-form button {
  background: var(--glow-blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.email-form button:hover {
  background: #3b5ee6;
}

.lead-trust {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.lead-trust a {
  color: var(--glow-blue);
}

.lead-success {
  display: none;
  padding: 16px;
  text-align: center;
}

.lead-success .check-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.lead-success p {
  font-size: 14px;
  line-height: 1.5;
}

.calc-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-calc-cta {
  display: block;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-calc-share {
  display: block;
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: transform 0.2s;
}

.btn-calc-share:hover {
  transform: translateY(-1px);
}

.calc-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* --- Pricing --- */
.pricing-card {
  max-width: 560px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--glow-blue));
}

.pricing-badge {
  display: inline-block;
  background: var(--black);
  color: var(--lime);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.pricing-old {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.pricing-amount {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li span:first-child {
  flex-shrink: 0;
  font-size: 18px;
}

.pricing-no {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-no li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 28px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Final --- */
.cta-final {
  text-align: center;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  margin: 0 24px;
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  color: var(--white);
}

.cta-final p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-final .btn-primary {
  background: var(--white);
  color: var(--black);
}

.cta-final .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.cta-urgency {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.cta-whatsapp {
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--black);
}

/* --- WhatsApp Floating --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* --- Popups --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text-primary);
}

.popup-close:hover {
  background: var(--border);
}

.popup-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-right: 40px;
}

.popup-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.popup-decline {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}

.popup-decline:hover {
  color: var(--text-secondary);
}

.popup-microcopy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.popup-microcopy a {
  color: var(--glow-blue);
}

/* Slide-in testimonial popup */
.popup-slidein {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.5s ease-out;
}

.popup-slidein.active {
  display: block;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sticky bar popup */
.popup-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  padding: 16px 24px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

.popup-sticky.active {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.popup-sticky .sticky-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.popup-sticky .sticky-text h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.popup-sticky .sticky-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .card {
    padding: 32px 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .benefit-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefit-visual {
    order: -1;
  }

  .calc-card {
    padding: 28px 20px;
  }

  .range-value {
    font-size: 26px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form button {
    padding: 14px;
  }

  .result-amount {
    font-size: 40px;
  }

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

  .cta-final {
    padding: 48px 24px;
    margin: 0 16px;
    border-radius: var(--radius-md);
  }

  .navbar {
    padding: 0 16px;
  }

  .nav-cta .btn-sm span.hide-mobile {
    display: none;
  }

  .popup-card {
    padding: 28px 24px;
  }

  .popup-slidein {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .popup-sticky .sticky-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  body::before,
  body::after {
    width: 150px;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .pricing-amount {
    font-size: 48px;
  }
}

/* ============ STUDY MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  z-index: 10;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  color: #111;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-header p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-benefits {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.modal-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.study-form .form-group {
  margin-bottom: 16px;
}

.study-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.study-form input[type="text"],
.study-form input[type="email"],
.study-form input[type="tel"],
.study-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.study-form input:focus,
.study-form select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.study-form small {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #666;
}

.form-checkbox input {
  margin-top: 3px;
}

.btn-block {
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
  }
}