/* ENAMEDIS CSS Design System - Premium Marketing Style */

:root {
  /* Colors */
  --primary: #0057B8;
  --primary-hover: #0047a0;
  --primary-light: #e6f0fc;
  --primary-dark: #003370;
  --primary-gradient: linear-gradient(135deg, #0057B8 0%, #0080FF 100%);
  
  --accent: #FF8008;
  --accent-light: #fff3e6;
  --accent-gradient: linear-gradient(135deg, #FF8008 0%, #FFC837 100%);
  
  --success: #10b981;
  --success-light: #d1fae5;
  
  --bg-light: #F6F8FB;
  --bg-white: #ffffff;
  
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  
  /* Layout & Spacing */
  --container-width: 1200px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-card: 20px; /* Matching the Flutter app CardTheme border radius */
  --border-radius-button: 30px;
  
  /* Shadows & Depth */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 30px rgba(0, 87, 184, 0.08);
  --shadow-premium: 0 20px 40px rgba(0, 87, 184, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
  border-radius: var(--border-radius-card);
}

/* Typography Utilities */
.text-center { text-align: center; }
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--border-radius-button);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(0, 87, 184, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 87, 184, 0.35);
  background: linear-gradient(135deg, #0047a0 0%, #006ce6 100%);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid rgba(0, 87, 184, 0.2);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  background: var(--bg-light);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 87, 184, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo-img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-gradient);
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--border-radius-button);
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.15);
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 87, 184, 0.25);
  background: linear-gradient(135deg, #0047a0 0%, #006ce6 100%);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 87, 184, 0.12) 0%, rgba(246, 248, 251, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 128, 8, 0.08) 0%, rgba(246, 248, 251, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 87, 184, 0.08);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-badge 1.8s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 87, 184, 0.7); }
  70% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 87, 184, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 87, 184, 0); }
}

.hero-content h1 {
  font-size: 54px;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px; /* Spacing between app badges and social proof text */
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-light);
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: white;
}

.hero-social-proof p {
  font-size: 14px;
  color: var(--text-muted);
}

/* App Mockup UI */
.hero-visual {
  position: relative;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.app-mockup {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
}

.mockup-header {
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.app-inner {
  display: flex;
  background: #f6f8fb;
  height: 340px;
}

.app-sidebar-mock {
  width: 48px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.sidebar-item {
  width: 24px;
  height: 24px;
  background: #e5e7eb;
  border-radius: 6px;
}

.sidebar-item.active {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.app-main-mock {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.streak-banner-mock {
  background: linear-gradient(135deg, #fff3e6 0%, #ffe6cc 100%);
  border: 1px solid rgba(255, 128, 8, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fire-icon {
  font-size: 22px;
  animation: fire-flicker 1s infinite alternate;
}

@keyframes fire-flicker {
  0% { transform: scale(1); }
  100% { transform: scale(1.15) rotate(2deg); }
}

.streak-title {
  font-weight: 700;
  font-size: 13px;
  color: #c26100;
  line-height: 1.2;
}

.streak-sub {
  font-size: 10px;
  color: #9c5c1f;
}

.xp-badge-mock {
  margin-left: auto;
  background: var(--accent-gradient);
  color: white;
  font-weight: bold;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
}

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

.dash-card-mock {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-bar-mock {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill-mock {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.card-footer-mock {
  font-size: 9px;
  font-weight: bold;
  color: var(--primary);
  text-align: right;
}

.radial-progress-mock {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.radial-svg {
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: #10b981;
  stroke-width: 3.8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.radial-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  color: #10b981;
}

.question-preview-mock {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-tag {
  font-size: 8px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.q-txt {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}

.options-mock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.option-item-mock {
  font-size: 9.5px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  color: var(--text-muted);
}

.option-item-mock.selected-correct {
  background: #e6fdf4;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 600;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 87, 184, 0.1);
  z-index: 10;
}

.floating-badge.badge-xp {
  top: 10%;
  left: -40px;
}

.floating-badge.badge-media {
  bottom: 8%;
  right: -40px;
}

.badge-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-light);
}

.floating-badge.badge-xp .badge-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.floating-badge strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.floating-badge span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Float Animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Stats Bar */
.stats-bar {
  background: var(--primary);
  color: white;
  padding: 40px 0;
  position: relative;
  z-index: 3;
}

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

.stat-item h3 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

/* Section Header styling */
.section-header {
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Recursos / Features Grid */
.recursos {
  padding: 100px 0;
  background: #ffffff;
}

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

.feature-card {
  padding: 40px 30px;
  border-radius: var(--border-radius-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  background: #ffffff;
  border-color: rgba(0, 87, 184, 0.1);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-gradient);
  color: white;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Gamificacao Section */
.gamificacao {
  padding: 100px 0;
  position: relative;
}

.gamification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.tag-accent {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.gamification-content h2 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gamification-content > p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.gamification-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gamification-features li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.g-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.gamification-features strong {
  display: block;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.gamification-features p, 
.gamification-features li div {
  font-size: 14.5px;
  color: var(--text-muted);
}

.gamification-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-sphere {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 128, 8, 0.15) 0%, rgba(246, 248, 251, 0) 70%);
  z-index: 1;
}

.streak-card {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 24px;
  z-index: 2;
  border-radius: var(--border-radius-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-premium);
}

.streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.streak-header h3 {
  font-size: 18px;
}

.days-indicator {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.day-dot {
  background: #f3f4f6;
  border-radius: 12px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  position: relative;
}

.day-dot span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.dot-check {
  font-size: 11px;
  color: white;
  background-color: var(--success);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.day-dot.completed {
  background-color: var(--success-light);
}

.day-dot.completed span {
  color: #065f46;
}

.day-dot.active-day {
  background: var(--accent-gradient);
}

.day-dot.active-day span {
  color: white;
}

.fire-mini {
  font-size: 16px;
  animation: fire-flicker 0.8s infinite alternate;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  animation: pulse-ring-anim 1.5s infinite;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

.streak-progress-desc {
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

.streak-progress-desc p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Study Goal XP Simulator */
.simulador {
  padding: 100px 0;
  background: #ffffff;
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 40px;
  background: var(--bg-light);
  border: 1px solid rgba(0, 87, 184, 0.05);
}

.simulator-inputs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.slider-val {
  color: var(--primary);
  font-weight: 800;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  transition: opacity .2s;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 87, 184, 0.4);
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 4px;
}

.simulator-info-box {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.simulator-info-box h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-tier-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.profile-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.simulator-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.output-card {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.output-card.highlighted {
  border-left: 4px solid var(--accent);
}

.output-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.output-value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 4px 0;
}

.output-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Pricing Section */
.precos {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--border-radius-card);
  padding: 48px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.pricing-card.premium-highlight {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-medium);
}

.pricing-card.premium-highlight:hover {
  box-shadow: var(--shadow-premium);
}

.badge-popular {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
}

.pricing-header h3 {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.amount {
  font-size: 48px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

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

.pricing-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 40px;
}

.pricing-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex: 1;
}

.pricing-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}

.check-icon {
  color: var(--success);
  font-weight: bold;
}

.pricing-card.premium-highlight .pricing-benefits li strong {
  color: var(--primary);
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.testimonial-card {
  padding: 30px;
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.rating {
  color: #ffb01f;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14.5px;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 20px;
}

.user-info strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}

.user-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq {
  padding: 100px 0;
}

.faq-accordion-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text-main);
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  font-weight: 300;
  transition: var(--transition-smooth);
}

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

.faq-answer p {
  padding-bottom: 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Active FAQ Item State */
.faq-item.active {
  border-color: rgba(0, 87, 184, 0.15);
  box-shadow: var(--shadow-medium);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CTA Banner Section */
.cta-banner {
  padding: 60px 0;
  background: #ffffff;
}

.cta-banner-container {
  background: var(--primary-gradient);
  padding: 60px;
  border-radius: var(--border-radius-card);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner-content h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.cta-banner-content p {
  font-size: 17px;
  opacity: 0.9;
}

.cta-banner-action {
  flex-shrink: 0;
}

/* Footer styling */
.footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  height: 44px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  font-size: 13px;
}

.medical-disclaimer {
  font-size: 12px;
  opacity: 0.5;
  max-width: 900px;
  margin: 0 auto;
}

/* Scroll Fade Animation Class */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Rules for iPhone 12 Pro (Mobile Portrait) & Tablets */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-desc {
    max-width: 100%;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 38px !important;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  h2 {
    font-size: 30px !important;
  }
  
  .hero {
    padding-top: 140px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 30px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    gap: 30px;
  }
  
  .pricing-grid {
    max-width: 450px;
  }
  
  .floating-badge {
    display: none; /* Hide floating badges on smaller mobile viewports for clean layout */
  }
  
  .streak-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    gap: 40px;
  }

  .app-download-badges {
    justify-content: center;
    width: 100%;
  }

  .store-badge-label {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }
}

/* App Store Download Badges */
.app-download-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09101d;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-subtle);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #121e30;
  box-shadow: var(--shadow-medium);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-text span:first-child {
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.store-btn-text span:last-child {
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

/* Legal / Document Pages Styling */
.legal-hero {
  padding: 160px 0 60px 0;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.05) 0%, rgba(246, 248, 251, 0) 100%);
  text-align: center;
  position: relative;
}

.legal-title {
  font-size: 42px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.legal-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.legal-section {
  padding: 40px 0 80px 0;
  background: var(--bg-light);
}

.legal-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 50px 60px;
  background: var(--bg-white);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--border-radius-card);
  border: 1px solid rgba(0, 87, 184, 0.05);
}

.legal-card h2 {
  font-size: 22px;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 87, 184, 0.1);
  padding-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 17px;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.legal-card p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-card ul, .legal-card ol {
  margin-left: 24px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.75;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .legal-hero {
    padding-top: 130px;
    padding-bottom: 40px;
  }
  .legal-title {
    font-size: 32px !important;
  }
  .legal-card {
    padding: 35px 20px;
  }
}

/* Compact / Mobile Portrait Rules */
@media (max-width: 576px) {
  /* 1. Prevent horizontal overflow from CTA buttons side-by-side */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  /* 3. Hide web app mockup in hero section */
  .hero-visual {
    display: none;
  }

  /* 4. Gamification (metas) section improvements */
  .gamification-grid {
    grid-template-columns: 1fr;
  }
  .gamification-visual {
    display: none;
  }

  /* Polish padding for other sections to prevent squished layouts */
  .simulator-wrapper {
    padding: 24px 16px;
  }
  .pricing-card {
    padding: 32px 20px;
  }
  .cta-banner-container {
    padding: 32px 20px;
  }
}
