:root {
  /* Deep Navy - Hero & Footer */
  --navy: #0F172A;
  --navy-deep: #020617;

  /* Doctor White - Content sections */
  --white: #FFFFFF;
  --ice: #F8FAFC;

  /* Signal Green - CTAs */
  --green: #10B981;
  --green-hover: #059669;

  /* Text Colors */
  --text-light: #F1F5F9;
  --text-dark: #334155;
  --text-muted: #64748B;

  /* Borders */
  --border: #E2E8F0;
}

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

/* Mobile touch optimization - prevent 300ms double-tap-to-zoom delay */
button,
a,
input[type="submit"],
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 18px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1280px;
  width: 100%;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-light);
}

.hero h1 .highlight {
  color: var(--green);
}

.subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.subheadline strong {
  color: var(--text-light);
  font-weight: 600;
}

.value-prop {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 20px 48px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
  background: var(--green-hover);
}

/* Only apply transform on devices with hover capability (mouse/trackpad) */
@media (hover: hover) {
  .cta-button:hover {
    transform: translateY(-2px);
  }
}

.cta-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== VIDEO DEMO SECTION ===== */
.hero-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.iphone-mockup {
  position: relative;
  width: 280px;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.iphone-mockup:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.iphone-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1d 50%, #0d0d0f 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(6, 182, 212, 0.15),
    0 0 120px rgba(6, 182, 212, 0.1);
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0d0d0f;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.iphone-screen {
  position: relative;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.iphone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-caption {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 100px 32px;
}

.section.white {
  background: var(--white);
}

.section.ice {
  background: var(--ice);
}

.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--navy);
}

.section p {
  margin-bottom: 28px;
  color: var(--text-dark);
}

.section p:last-of-type {
  margin-bottom: 0;
}

.section strong {
  color: var(--navy);
  font-weight: 600;
}

.section em {
  color: var(--green-hover);
  font-style: normal;
  font-weight: 500;
}

/* ===== HOW IT WORKS PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  position: relative;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: left;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Arrow connectors between pillars */
.pillar:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
}

.pillar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.pillar-step {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pillar-icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

.pillar h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Doctor Card Preview (Passo 03) - matches CarouselCard */
.doctor-preview {
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin: 40px auto 20px auto;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(131, 197, 190, 0.4);
  display: block;
}

.doctor-preview-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.doctor-preview-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #006D77 0%, #83C5BE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(131, 197, 190, 0.4);
}

.doctor-preview-info {
  flex: 1;
  min-width: 0;
}

.doctor-preview-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: #1F2937;
  margin-bottom: 1px;
}

.doctor-preview-specialty {
  font-size: 0.75rem;
  color: #006D77;
  font-weight: 400;
  margin-bottom: 6px;
}

.doctor-preview-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.doctor-preview-stars {
  color: #FBBF24;
  font-size: 0.7rem;
}

.doctor-preview-rating-num {
  font-weight: 500;
  color: #1F2937;
}

.doctor-preview-online {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #006D77;
}

.doctor-preview-right {
  text-align: right;
  flex-shrink: 0;
}

.doctor-preview-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #006D77;
  white-space: nowrap;
}

.doctor-preview-location {
  font-size: 0.7rem;
  color: rgba(31, 41, 55, 0.6);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillar {
    padding: 24px 20px;
  }

  /* Rotate arrows to point down on mobile */
  .pillar:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -32px;
    transform: translateX(50%) rotate(90deg);
  }

  .pillar-step {
    font-size: 0.9rem;
  }
}

/* ===== OFFER LIST ===== */
.offer-list {
  margin: 48px 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  padding: 24px 0;
  padding-left: 40px;
  position: relative;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

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

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

.offer-list li strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.offer-list li span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== SECTION SUBTITLE ===== */
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: -24px;
  margin-bottom: 48px;
}

/* ===== PRICING CARD (SaaS Style) ===== */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  margin: 24px 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.pricing-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tagline {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-card-price {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
}

.price-period {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.pricing-features .feature-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.pricing-features .feature-icon.no-lock {
  color: var(--text-dark);
}

.pricing-features li div {
  flex: 1;
}

.pricing-features li strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pricing-features li span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features li.feature-highlight {
  background: var(--ice);
  margin: 16px -24px 0;
  padding: 16px 24px;
  border-radius: 8px;
  border-bottom: none;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  padding: 20px 32px;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
}

/* ===== GUARANTEE (Certificate Style) ===== */
.guarantee {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 40px 48px;
  margin: 48px 0;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.guarantee-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.guarantee h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--navy);
}

.guarantee p {
  margin-bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--navy);
  text-align: center;
  padding: 100px 32px;
}

.final-cta .cta-button {
  padding: 24px 64px;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  text-align: center;
  padding: 40px 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer p {
  margin-bottom: 8px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    padding: 60px 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-video {
    order: 2;
  }

  .iphone-mockup {
    transform: none;
    width: 240px;
  }

  .iphone-mockup:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 48px 20px;
    min-height: auto;
  }

  .hero-container {
    gap: 36px;
  }

  .hero h1 {
    font-size: 2.25rem;
    margin-bottom: 20px;
  }

  .subheadline {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .value-prop {
    display: none;
  }

  .cta-button {
    padding: 18px 32px;
    width: 100%;
    text-align: center;
    min-height: 48px;
  }

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

  .iphone-mockup {
    width: 220px;
  }

  .iphone-frame {
    border-radius: 36px;
    padding: 10px;
  }

  .iphone-notch {
    width: 80px;
    height: 24px;
    top: 10px;
  }

  .iphone-screen {
    border-radius: 28px;
  }

  .video-caption {
    font-size: 0.75rem;
    margin-top: 20px;
    max-width: 220px;
  }

  .section {
    padding: 72px 24px;
  }

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

  .container {
    padding: 0 24px;
  }

  .pricing {
    padding: 32px 24px;
  }

  .pricing .new-price {
    font-size: 2.4rem;
  }

  .guarantee {
    padding: 28px 24px;
  }

  .offer-list li {
    padding-left: 32px;
  }

  .final-cta {
    padding: 72px 24px;
  }

  .final-cta .cta-button {
    padding: 20px 32px;
    font-size: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes glowPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 80px rgba(6, 182, 212, 0.15),
      0 0 120px rgba(6, 182, 212, 0.1);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 100px rgba(6, 182, 212, 0.25),
      0 0 150px rgba(6, 182, 212, 0.15);
  }
}

.hero h1,
.hero .subheadline,
.hero .value-prop,
.hero .cta-button {
  animation: fadeInUp 0.7s ease-out backwards;
}

.hero .subheadline {
  animation-delay: 0.15s;
}

.hero .value-prop {
  animation-delay: 0.3s;
}

.hero .cta-button {
  animation-delay: 0.45s;
}

.hero .cta-note {
  animation: fadeInUp 0.7s ease-out backwards;
  animation-delay: 0.55s;
}

.hero-video {
  animation: fadeInRight 0.8s ease-out backwards;
  animation-delay: 0.3s;
}

.iphone-frame {
  animation: glowPulse 4s ease-in-out infinite;
}

.video-caption {
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.8s;
}

@media (max-width: 900px) {
  .hero-video {
    animation-name: fadeInUp;
    animation-delay: 0.6s;
  }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: var(--white);
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 100px;
    right: 16px;
    padding: 14px;
    border-radius: 50%;
    /* Icon-only on mobile for cleaner look */
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float span {
    display: none;
  }
}

/* ===== STICKY MOBILE CTA ===== */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .mobile-sticky-cta {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    /* No background - floating pill style */
    background: transparent;
    padding: 0 20px;
    z-index: 999;
    /* Hidden by default - shown via scroll trigger */
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Visible state - triggered when Hero CTA leaves viewport */
  .mobile-sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-sticky-cta .cta-button {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    /* Heavy elevation shadow for floating effect */
    box-shadow:
      0 10px 25px rgba(16, 185, 129, 0.35),
      0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .mobile-sticky-cta .cta-button:hover {
    box-shadow:
      0 12px 30px rgba(16, 185, 129, 0.4),
      0 8px 16px rgba(0, 0, 0, 0.18);
  }

  /* Hide the final CTA section on mobile since we have sticky */
  .final-cta {
    display: none;
  }

  /* Add padding to footer so content isn't hidden behind sticky CTA */
  footer {
    padding-bottom: 100px;
  }
}

/* ===== MOBILE PRICING OPTIMIZATIONS ===== */
@media (max-width: 640px) {
  .pricing-card {
    padding: 28px 20px;
    margin: 16px 0;
  }

  .pricing-card-header {
    margin-bottom: 20px;
  }

  .pricing-badge {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .pricing-tagline {
    font-size: 0.9rem;
    margin-top: 12px;
  }

  .pricing-card-price {
    padding: 20px 0;
    margin-bottom: 24px;
  }

  .price-amount {
    font-size: 2.75rem;
  }

  .price-period {
    font-size: 1rem;
  }

  .pricing-features {
    margin-bottom: 24px;
  }

  .pricing-features li {
    padding: 12px 0;
    gap: 12px;
  }

  .pricing-features li strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .pricing-features li span {
    font-size: 0.85rem;
  }

  .pricing-features li.feature-highlight {
    margin: 12px -16px 0;
    padding: 12px 16px;
  }

  .pricing-cta {
    padding: 16px 24px;
  }

  .pricing-note {
    font-size: 0.8rem;
    margin-top: 16px;
  }
}
