/* ScribbleSign Homepage Styles
 * Mobile-first responsive stylesheet
 */

/* ========================================
 * CSS CUSTOM PROPERTIES (Design Tokens)
 * ======================================== */
:root {
  /* Primary Brand Colors */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #34d399;
  --dark: #1e293b;
  --light: #f8fafc;
  --accent: #f59e0b;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ========================================
 * BASE STYLES (Mobile-first)
 * ======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--light);
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2310b981' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ========================================
 * TYPOGRAPHY (Mobile-first)
 * ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

/* Mobile base typography */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.lead {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Override Bootstrap's text-primary */
.text-primary {
  color: var(--primary) !important;
}

/* Tablet typography */
@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.375rem; }

  .lead { font-size: 1.125rem; }
}

/* Desktop typography */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

/* Large desktop typography */
@media (min-width: 1200px) {
  h1 { font-size: 3.5rem; }
}

/* ========================================
 * HOVER STATES (Touch vs Mouse)
 * ======================================== */
@media (hover: hover) {
  a:hover {
    color: var(--primary-dark);
  }
}

@media (hover: none) {
  a:active {
    color: var(--primary-dark);
  }
}

/* ========================================
 * GRADIENT UTILITIES
 * ======================================== */
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
 * NAVBAR (Mobile-first)
 * ======================================== */
.navbar {
  padding: 0.75rem 0;
  transition: all var(--transition-slow);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

/* Navbar toggler touch target */
.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }

  .navbar.scrolled {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Mobile navbar collapse background */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }
}

@media (hover: hover) {
  .navbar .nav-link:hover,
  .navbar .nav-link.active {
    color: var(--primary);
  }
}

@media (hover: none) {
  .navbar .nav-link:active,
  .navbar .nav-link.active {
    color: var(--primary);
  }
}

/* Mascot image in navbar */
.mascot {
  width: 32px;
  height: auto;
  animation: mascot-float 3s ease-in-out infinite;
}

.mascot-static {
  animation: none;
  transform: rotate(-15deg);
}

@media (min-width: 768px) {
  .mascot {
    width: 40px;
  }
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-8px) rotate(20deg); }
}

/* ========================================
 * HERO SECTION (Mobile-first)
 * ======================================== */
.hero-section {
  min-height: auto;
  position: relative;
  padding: 3rem 0 2rem;
  background-color: var(--light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 1.875rem;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-section .lead {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
}

.hero-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
  bottom: -100px;
  right: -80px;
  z-index: 0;
  animation: blobTransform 20s ease-in-out infinite;
}

/* Tablet hero */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 7rem 0 4rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.125rem;
  }

  .hero-blob {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -150px;
  }
}

/* Desktop hero */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
    padding: 8rem 0 6rem;
  }

  .hero-section h1 {
    font-size: 3.5rem;
  }

  .hero-section .lead {
    font-size: 1.25rem;
  }

  .hero-blob {
    width: 700px;
    height: 700px;
    bottom: -300px;
    right: -200px;
  }
}

/* Large desktop hero */
@media (min-width: 1200px) {
  .hero-section {
    padding: 10rem 0 8rem;
  }

  .hero-section h1 {
    font-size: 4rem;
  }
}

@keyframes blobTransform {
  0%, 100% { border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%; }
  25% { border-radius: 57% 43% 30% 70% / 55% 55% 45% 45%; }
  50% { border-radius: 30% 70% 57% 43% / 45% 55% 55% 45%; }
  75% { border-radius: 70% 30% 43% 57% / 55% 45% 45% 55%; }
}

/* ========================================
 * HERO BUTTONS (Mobile-first)
 * ======================================== */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-buttons .btn,
.hero-buttons .btn-gradient,
.hero-buttons .btn-outline {
  width: 100%;
}

@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-gradient,
  .hero-buttons .btn-outline {
    width: auto;
  }
}

/* ========================================
 * BUTTONS (Mobile-first with 44px touch targets)
 * ======================================== */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-slow);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transition: width var(--transition-slow);
  z-index: -1;
  border-radius: inherit;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: calc(0.75rem - 2px) 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-slow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-white-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: calc(0.75rem - 2px) 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-slow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-light {
  background: white;
  color: var(--primary);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Tablet+ button padding */
@media (min-width: 768px) {
  .btn-gradient {
    padding: 0.875rem 2rem;
  }

  .btn-outline {
    padding: calc(0.875rem - 2px) 2rem;
  }

  .btn-white-outline {
    padding: calc(0.875rem - 2px) 2rem;
  }
}

/* Button hover states - only for devices with hover capability */
@media (hover: hover) {
  .btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .btn-gradient:hover::before {
    width: 100%;
  }

  .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
  }

  .btn-white-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
  }
}

/* Button touch states - for touch devices */
@media (hover: none) {
  .btn-gradient:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .btn-gradient:active::before {
    width: 100%;
  }

  .btn-outline:active {
    background: var(--primary);
    color: white;
    transform: scale(0.98);
  }

  .btn-outline-light:active {
    background: white;
    color: var(--primary);
    border-color: white;
  }

  .btn-white-outline:active {
    background: white;
    color: var(--primary);
    transform: scale(0.98);
  }

  .btn-light:active {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: scale(0.98);
  }
}

/* ========================================
 * SECTION STYLES
 * ======================================== */
section {
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  font-size: 1.5rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: var(--space-2xl);
    font-size: 1.875rem;
  }

  /* Left-aligned section titles on tablet+ */
  .col-lg-6 .section-title {
    text-align: left;
  }

  .col-lg-6 .section-title::after {
    left: 0;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Shape divider */
.custom-shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px;
}

@media (min-width: 768px) {
  .custom-shape-divider svg {
    height: 70px;
  }
}

.custom-shape-divider .shape-fill {
  fill: #FFFFFF;
}

/* ========================================
 * STATS SECTION (Mobile-first)
 * ======================================== */
.stats-item {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: white;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}

.stats-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-item p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .stats-item {
    padding: var(--space-xl);
  }

  .stats-number {
    font-size: 2.75rem;
  }

  .stats-item p {
    font-size: 1rem;
  }
}

@media (hover: hover) {
  .stats-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }
}

@media (hover: none) {
  .stats-item:active {
    transform: scale(0.98);
  }
}

/* ========================================
 * FEATURE CARDS (Mobile-first)
 * ======================================== */
.card-feature {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-feature::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  top: 0;
  left: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.feature-icon i {
  color: white;
}

.card-feature h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.card-feature ul {
  margin-top: var(--space-lg);
}

.card-feature ul li {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.card-feature ul li i {
  color: var(--primary);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

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

  .feature-description {
    font-size: 0.9375rem;
  }

  .card-feature ul li {
    font-size: 0.9375rem;
  }
}

/* Feature card hover - mouse only */
@media (hover: hover) {
  .card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }
}

/* Feature card touch - touch devices */
@media (hover: none) {
  .card-feature:active {
    transform: scale(0.98);
  }
}

/* ========================================
 * PROCESS / HOW IT WORKS (Mobile-first)
 * ======================================== */
.process-step {
  position: relative;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  width: 3px;
  height: calc(100% - 56px);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  left: 27px;
  top: 56px;
  z-index: -1;
  border-radius: 2px;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.process-step h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.process-step .feature-description {
  margin-bottom: var(--space-sm);
}

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

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    left: 33px;
    height: calc(100% - 70px);
    top: 70px;
  }

  .step-number {
    width: 70px;
    height: 70px;
    min-width: 70px;
    font-size: 1.5rem;
  }

  .process-step h3 {
    font-size: 1.375rem;
  }
}

/* ========================================
 * TESTIMONIALS (Mobile-first)
 * ======================================== */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 100%;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.testimonial-card h5 {
  margin-bottom: 0;
  font-size: 1rem;
}

.testimonial-card .text-muted {
  font-size: 0.8125rem;
}

.testimonial-card .text-warning i {
  color: var(--accent) !important;
  font-size: 0.8125rem;
}

.testimonial-card > p:last-child {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }

  .testimonial-card h5 {
    font-size: 1.125rem;
  }

  .testimonial-card .text-muted {
    font-size: 0.875rem;
  }

  .testimonial-card .text-warning i {
    font-size: 0.875rem;
  }

  .testimonial-card > p:last-child {
    font-size: 0.9375rem;
  }
}

@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }
}

@media (hover: none) {
  .testimonial-card:active {
    transform: scale(0.98);
  }
}

/* ========================================
 * PRICING CARDS (Mobile-first)
 * ======================================== */
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 100%;
  overflow: hidden;
}

/* Featured card - NO scale on mobile */
.pricing-card.featured {
  transform: none;
  box-shadow: var(--shadow-xl);
  z-index: 2;
  border: 2px solid var(--primary);
  margin-bottom: var(--space-lg);
}

.pricing-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
  padding: var(--space-lg);
  text-align: center;
}

.pricing-header h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.pricing-header p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.featured .pricing-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.featured .pricing-header h3,
.featured .pricing-header p {
  color: white;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-price span {
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card ul li {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.pricing-card ul li i {
  color: var(--primary);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .pricing-header {
    padding: var(--space-xl);
  }

  .pricing-header h3 {
    font-size: 1.375rem;
  }

  .pricing-header p {
    font-size: 0.9375rem;
  }

  .pricing-price {
    font-size: 3rem;
  }

  .pricing-card ul li {
    font-size: 0.9375rem;
  }

  .pricing-card ul li i {
    font-size: 0.875rem;
  }
}

/* Desktop - apply scale to featured card */
@media (min-width: 1024px) {
  .pricing-card.featured {
    transform: scale(1.05);
    margin-bottom: 0;
  }

  .pricing-price {
    font-size: 3.5rem;
  }
}

@media (hover: hover) {
  .pricing-card:hover {
    box-shadow: var(--shadow-xl);
  }
}

/* ========================================
 * FAQ ACCORDION (Mobile-first)
 * ======================================== */
.accordion-item {
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  padding: var(--space-md);
  min-height: 44px;
  font-size: 0.9375rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(16, 185, 129, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .accordion-button {
    padding: var(--space-lg);
    font-size: 1rem;
  }

  .accordion-body {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 0.9375rem;
  }
}

/* ========================================
 * CONTACT SECTION (Mobile-first)
 * ======================================== */
.form-control {
  border: 1.5px solid var(--gray-200);
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: 16px; /* Prevents iOS zoom on focus */
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  min-height: auto;
}

.form-label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .form-control {
    padding: 0.875rem 1rem;
  }
}

/* Contact info card icons */
.card .feature-icon {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .card .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.125rem;
  }
}

/* ========================================
 * FOOTER (Mobile-first)
 * ======================================== */
footer {
  background-color: var(--dark);
  color: white;
}

footer h3, footer h5 {
  color: white;
}

footer h3 {
  font-size: 1.25rem;
}

footer h5 {
  font-size: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-slow);
  text-decoration: none;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  footer h3 {
    font-size: 1.5rem;
  }

  .footer-links a {
    font-size: 0.9375rem;
    min-height: auto;
    padding: 0;
  }
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
  }

  .social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-4px);
  }
}

@media (hover: none) {
  .footer-links a:active {
    color: var(--primary);
  }

  .social-icon:active {
    background-color: var(--primary);
    transform: scale(0.95);
  }
}

/* ========================================
 * ANIMATIONS
 * ======================================== */
.floating {
  animation: floating 4s ease-in-out infinite;
}

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

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for cards */
.scroll-reveal.asymm-1 { transition-delay: 0.1s; }
.scroll-reveal.asymm-2 { transition-delay: 0.2s; }
.scroll-reveal.asymm-3 { transition-delay: 0.3s; }

/* Rotating headline animation */
.jstags {
  display: inline-block;
  transition: opacity 0.5s ease, width 0.3s ease;
}

/* ========================================
 * UTILITY CLASSES
 * ======================================== */
.bg-light {
  background-color: var(--gray-50) !important;
}

.rounded-4 {
  border-radius: var(--radius-xl) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ========================================
 * CONTAINER WIDTHS (Mobile-first)
 * ======================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* ========================================
 * CTA SECTION BUTTONS (Mobile-first)
 * ======================================== */
.bg-primary-gradient .d-flex.justify-content-center {
  flex-direction: column;
  align-items: center;
}

.bg-primary-gradient .d-flex.justify-content-center .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 576px) {
  .bg-primary-gradient .d-flex.justify-content-center {
    flex-direction: row;
  }

  .bg-primary-gradient .d-flex.justify-content-center .btn {
    width: auto;
    max-width: none;
  }
}

/* ========================================
 * ACCESSIBILITY - FOCUS STATES
 * ======================================== */
.btn-gradient:focus-visible,
.btn-outline:focus-visible,
.btn-light:focus-visible,
.btn-white-outline:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.form-control:focus-visible {
  outline: none; /* Using box-shadow instead */
}

.accordion-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.social-icon:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ========================================
 * REDUCED MOTION
 * ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating,
  .mascot,
  .hero-blob {
    animation: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
 * SAFE AREA INSETS (for notched phones)
 * ======================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .navbar {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  @media (min-width: 768px) {
    .navbar {
      padding-top: max(1rem, env(safe-area-inset-top));
    }
  }
}
