/* Fleat — Vibrant Retro-Modern Theme */
:root {
  /* ═══════════════════════════════════════════════════════════════════
     VIBRANT COLOR PALETTE
     ═══════════════════════════════════════════════════════════════════ */
  
  /* Primary - Punchy Lime Green */
  --primary: #84cc16;
  --primary-dark: #65a30d;
  --primary-darker: #3f6212;
  --primary-light: #a3e635;
  --primary-vibrant: #bef264;
  --primary-glow: rgba(132, 204, 22, 0.4);
  
  /* Accent - Electric Teal (complementary) */
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  
  /* Backgrounds */
  --off-white: #f8fafc;
  --white: #ffffff;
  --cream: #fefce8;
  
  /* Dark Mode Elements */
  --dark: #0f172a;
  --dark-surface: #1e293b;
  
  /* Derived Neutrals */
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  
  /* ═══════════════════════════════════════════════════════════════════
     SEMANTIC TOKENS
     ═══════════════════════════════════════════════════════════════════ */
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: var(--gray-500);
  --text-light: #6b7280; /* AA on white (4.83:1) */
  
  /* Backgrounds */
  --surface-green: rgba(132, 204, 22, 0.12);
  --bg-body: var(--white);
  --bg-surface: var(--white);
  --bg-subtle: var(--off-white);
  
  /* Section Gradients */
  --gradient-alternate: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
  --gradient-subtle: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  
  /* Borders */
  --border-light: var(--gray-200);
  --border-hairline: rgba(0, 0, 0, 0.06);
  
  /* Footer - Rich Dark */
  --footer-text: #f1f5f9;
  --footer-text-muted: #94a3b8;
  
  /* ═══════════════════════════════════════════════════════════════════
     LAYOUT & SPACING
     ═══════════════════════════════════════════════════════════════════ */
  --container-width: 1080px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* ═══════════════════════════════════════════════════════════════════
     EFFECTS & SHADOWS (more dramatic)
     ═══════════════════════════════════════════════════════════════════ */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-float: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-hover: 0 30px 60px -15px rgb(0 0 0 / 0.2);
  
  /* ═══════════════════════════════════════════════════════════════════
     TYPOGRAPHY
     ═══════════════════════════════════════════════════════════════════ */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  box-shadow: var(--shadow-card);
}
.skip-link:focus {
  left: 0;
}

/* Visible keyboard focus across the whole site */
:focus-visible {
  outline: 3px solid var(--primary-darker);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary-darker);
  outline-offset: 3px;
  border-radius: 9999px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400; /* Serif usually looks better at regular weight */
  letter-spacing: -0.02em; /* Tight tracking */
  color: var(--text-main);
  line-height: 1.1;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.75rem, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem); margin-bottom: 0.5rem; }
h4 { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem); margin-bottom: 0.5rem; }

p { margin: 0 0 1.5em; color: var(--text-muted); font-size: 1.05rem; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }

/* Lead / Subhead (used across sections) */
.subhead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Layout Utilities */
.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.section-sm { padding: clamp(40px, 5vw, 60px) 0; }

/* Typography Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }

/* Micro Labels */
.micro-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 1rem;
  display: inline-block;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(132, 204, 22, 0.2);
}

/* Buttons - Vibrant & Bold */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  line-height: 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(132, 204, 22, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(132, 204, 22, 0.45);
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(132, 204, 22, 0.35);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.08) 0%, rgba(20, 184, 166, 0.05) 100%);
  color: var(--primary-dark);
}

/* Cards - Enhanced with hover glow */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  border: 1px solid var(--border-light);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(132, 204, 22, 0.1);
  border-color: rgba(132, 204, 22, 0.2);
}

.card:hover::before {
  opacity: 1;
}

/* Disable top bar effect for pricing cards */
.pricing-card::before {
  display: none;
}

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

/* Header */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand img {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:not(.btn):hover { color: var(--primary); }

.nav-cta { display: flex; gap: 1rem; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; z-index: 1001; }

/* CTA shown inside the mobile overlay only — never alongside the header CTA */
.nav-menu-cta { display: none; }

/* Stop the page scrolling behind the open overlay */
body.nav-open { overflow: hidden; }

/* Mobile Nav Overlay */
.nav-links.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open a:not(.btn) {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-cta.open {
    display: none;
  }

  /* CTA lives inside the overlay, as the last item in the stack */
  .nav-links.open .nav-menu-cta {
    display: inline-flex;
    margin-top: 1rem;
    font-size: 1rem;
    padding: 16px 40px;
  }
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + clamp(24px, 3.5vw, 56px));
  padding-bottom: clamp(40px, 6vw, 96px);
  background: linear-gradient(135deg, #fefce8 0%, #f0fdf4 50%, #ecfeff 100%);
  min-height: min(78vh, 760px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   AURORA EFFECT - Vibrant Animated Gradient Blobs
   ═══════════════════════════════════════════════════════════════════ */
.hero::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: 
    radial-gradient(circle 600px at 20% 30%, rgba(132, 204, 22, 0.5) 0%, transparent 50%),
    radial-gradient(circle 500px at 80% 20%, rgba(20, 184, 166, 0.4) 0%, transparent 45%),
    radial-gradient(circle 700px at 60% 80%, rgba(163, 230, 53, 0.45) 0%, transparent 50%),
    radial-gradient(circle 400px at 10% 90%, rgba(45, 212, 191, 0.35) 0%, transparent 45%);
  animation: auroraMove 12s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: 
    radial-gradient(circle 550px at 70% 60%, rgba(132, 204, 22, 0.4) 0%, transparent 50%),
    radial-gradient(circle 450px at 30% 70%, rgba(190, 242, 100, 0.5) 0%, transparent 45%),
    radial-gradient(circle 600px at 90% 90%, rgba(20, 184, 166, 0.3) 0%, transparent 50%);
  animation: auroraDrift 18s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes auroraMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3%, -2%) rotate(1deg);
  }
  50% {
    transform: translate(-2%, 3%) rotate(-1deg);
  }
  75% {
    transform: translate(-3%, -1%) rotate(0.5deg);
  }
}

@keyframes auroraDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 2%) scale(1.02);
  }
  66% {
    transform: translate(-2%, 1%) scale(0.98);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.95rem, 2.6vw + 0.85rem, 3.1rem);
  text-wrap: balance;
}

/* Keep the two parallel sentences on their own lines rather than letting
   the accent phrase break across them. */
.hero-content h1 .gradient-text {
  display: block;
}

.hero-content .subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-bullets {
  margin-bottom: 1.5rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.3rem 0;
  transition: transform 0.2s ease;
}

.hero-bullets li:hover {
  transform: translateX(4px);
}

.hero-bullets svg {
  color: var(--primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
  padding: 4px;
  border-radius: 50%;
  box-sizing: content-box;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-micro {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-micro-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.hero-micro .tick { color: var(--primary-dark); font-weight: 700; }
.hero-micro-sep { opacity: 0.4; }

.hero-visual {
  position: relative;
  animation: gentleBob 6s ease-in-out infinite;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 0;
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.float-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(132, 204, 22, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(132, 204, 22, 0.2);
}

.float-card--tr { top: 10%;    right: -10%; animation-delay: 0s; }
.float-card--bl { bottom: 15%; left: -15%;  animation-delay: 1.5s; }
.float-card--mr { top: 60%;    right: -5%;  animation-delay: 3s; }
.float-card--ml { bottom: 45%; left: -20%;  animation-delay: 4.5s; }

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

/* Trust Strip */
.trust-strip {
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 0;
  background: white;
}
.trust-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

/* CTA / Contact - Vibrant */
.cta-card {
  background: linear-gradient(135deg, #fefce8 0%, #f0fdf4 50%, #ecfeff 100%);
  border: 1px solid rgba(132, 204, 22, 0.2);
  padding: clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(132, 204, 22, 0.15);
}

/* Decorative orbs on CTA */
.cta-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.2) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-form {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(132, 204, 22, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-wide { grid-column: 1 / -1; }

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

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

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

.input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.15), 0 4px 12px rgba(132, 204, 22, 0.1);
}

.input:hover:not(:focus) {
  border-color: var(--gray-300);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-alt {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-alt a {
  color: var(--primary-darker);
  text-decoration: underline;
  font-weight: 600;
}

.cta-micro {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.feature-card-content {
  margin-bottom: 1.5rem;
}

.feature-points {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-points li {
  padding-left: 1rem;
  position: relative;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-dark);
}

.feature-visual {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  border: 1px solid var(--border-hairline);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: -2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--border-light) 100%);
  z-index: 0;
}

.timeline-step:last-child::before { display: none; }

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 4px white, 0 4px 12px rgba(132, 204, 22, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px white, 0 6px 20px rgba(132, 204, 22, 0.4);
}

.step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  margin-top: 0.75rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.stat-number {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1rem;
  align-items: start;
  overflow: visible;
  isolation: isolate;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.pricing-header { margin-bottom: 2rem; }
.pricing-price { font-size: clamp(2rem, 3vw + 0.5rem, 2.5rem); font-weight: 700; margin: 1rem 0; }
.pricing-features { margin-bottom: 2rem; flex-grow: 1; }
.pricing-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Footer - Rich Dark with Gradient */
.footer {
  padding: 5rem 0 3rem;
  border-top: none;
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  color: var(--footer-text);
  position: relative;
  overflow: hidden;
}

/* Subtle footer aurora accent */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, var(--accent) 75%, transparent 100%);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse at center top, rgba(132, 204, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer h4,
.footer .brand {
  color: var(--footer-text);
}

.footer p,
.footer .text-muted,
.footer .text-sm {
  color: var(--footer-text-muted) !important;
}

.footer a {
  color: var(--footer-text-muted);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer a:hover { 
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer .brand {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer .brand:hover {
  opacity: 0.9;
  transform: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* Large Tablet & Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .float-card {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  /* Rein in float cards at smaller desktop */
  .float-card--tr { right: -5%; }
  .float-card--bl { left: -8%; }
  .float-card--ml { left: -10%; }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 1.5rem;
  }

  .pricing-grid-3 {
    gap: 1.25rem;
  }

  .beam-container {
    height: 350px;
    padding: 1.5rem;
  }

  .beam-content {
    max-height: 260px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.875rem;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-width: 100%;
    --header-height: 64px;
  }

  .wrap {
    padding: 0 20px;
  }

  /* Navigation */
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-content { text-align: center; }
  .hero-content .subhead { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-bullets { display: inline-block; text-align: left; }
  .hero-micro { justify-content: center; }

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .float-card { 
    padding: 0.6rem 0.85rem; 
    font-size: 0.75rem;
    gap: 0.6rem;
  }

  /* Constrain float cards within hero visual on tablet */
  .float-card--tr,
  .float-card--mr { right: 0; }
  .float-card--bl,
  .float-card--ml { left: 0; }

  /* CTA / Contact */
  .cta-inner { grid-template-columns: 1fr; }
  .cta-copy { text-align: center; }
  /* Keep the list left-aligned as a block, centred within the column,
     so the checkmarks share one edge instead of chasing wrapped text. */
  .cta-benefits {
    display: inline-flex;
    text-align: left;
    margin: 0 auto;
  }

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

  /* Timeline */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step { padding-left: 3rem; padding-bottom: 2rem; }
  .timeline-step::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 15px;
    right: auto;
  }
  .step-number { position: absolute; left: 0; top: 0; margin: 0; }

  /* Stats & Pricing */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-card { padding: 1.25rem; }
  .stat-card .stat-number { font-size: 1.5rem; }
  .stat-card .stat-label { font-size: 0.8rem; }
  .pricing-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  /* Beam */
  .beam-container {
    height: 300px;
    padding: 1rem;
  }
  .beam-content {
    max-height: 220px;
  }
  .beam-circle {
    width: 2.75rem;   /* 44px — minimum touch target */
    height: 2.75rem;
    padding: 0.5rem;
  }
  .beam-circle.large {
    width: 4rem;
    height: 4rem;
    padding: 0.75rem;
  }

  /* Security */
  .security-tile {
    padding: 1.25rem;
  }
}
/* Animated Beam */
.beam-container {
  position: relative;
  display: flex;
  width: 100%;
  height: 400px; /* Increased height for better spacing */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  /* border: 1px solid var(--border-light); Removed border */
  margin-top: 2rem;
}

.beam-content {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 300px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  z-index: 5;
  position: relative;
}

.beam-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.beam-circle {
  z-index: 5;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: white;
  padding: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.beam-circle:hover {
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

.beam-circle.large {
  width: 5rem;
  height: 5rem;
  padding: 1rem;
  animation: gentlePulse 3s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
  border-color: rgba(132, 204, 22, 0.3);
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(132, 204, 22, 0.2);
  }
}

.beam-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@keyframes beam-flow {
  to {
    stroke-dashoffset: 0;
  }
}

/* Beam Nodes with Labels */
.beam-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Brief highlight when a beam node jumps you to its feature card */
.feature-flash {
  box-shadow: 0 0 0 4px var(--primary-light) !important;
  transition: box-shadow 0.3s ease;
}
.feature-flash:focus { outline: none; }

.beam-node:hover {
  transform: scale(1.05);
}

.beam-node:hover .beam-circle {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.beam-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.beam-node:hover .beam-label {
  color: var(--primary-dark);
}

/* Mobile adjustments for beam labels */
@media (max-width: 768px) {
  .beam-label {
    display: none; /* Hide labels on mobile to prevent clutter */
  }
}

/* ========================================
   VISUAL ENHANCEMENTS - Vibrant & Retro Inspired
   ======================================== */

/* Hero Eyebrow - Vibrant Glassmorphism */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(132, 204, 22, 0.2);
  box-shadow: 
    0 4px 20px rgba(132, 204, 22, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-eyebrow:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(132, 204, 22, 0.4);
  box-shadow: 
    0 8px 30px rgba(132, 204, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Trust Strip Enhanced */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.trust-badge:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.trust-badge-more {
  background: var(--surface-green);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Stats Cards */
.stat-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Security Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.security-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.security-tile:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.security-tile h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
}

.security-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: all 0.3s ease;
}

.security-tile:hover .security-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  transform: scale(1.1);
}

/* Pricing Enhanced - Vibrant */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  overflow: visible;
  isolation: isolate;
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, rgba(132, 204, 22, 0.08) 0%, var(--white) 100%);
  box-shadow: 
    0 0 0 4px rgba(132, 204, 22, 0.12),
    0 20px 35px -5px rgba(0, 0, 0, 0.12),
    0 8px 10px -6px rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card-featured:hover {
  border-color: var(--accent);
  box-shadow: 
    0 0 0 6px rgba(132, 204, 22, 0.18),
    0 0 40px rgba(132, 204, 22, 0.25),
    0 0 80px rgba(20, 184, 166, 0.15),
    0 25px 40px -5px rgba(0, 0, 0, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.4);
  white-space: nowrap;
  z-index: 30;
}

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

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* CTA Benefits List */
.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-benefits svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Button press feedback */
.btn:active {
  transform: scale(0.98);
}

/* Scroll-triggered fade animations (only when JS can reveal them again) */
.js [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing grid 3-col -> tablet */
@media (max-width: 900px) {
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card-featured {
    transform: none;
    order: -1;
  }
}

/* Mobile responsive for new elements */
@media (max-width: 768px) {
  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  
  .pricing-card-featured {
    transform: none;
    order: -1;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  
  
  .security-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-benefits {
    margin-top: 1rem;
  }

  /* Align the tick to the first line of wrapped text, not the block's middle */
  .cta-benefits li {
    align-items: flex-start;
  }

  .cta-benefits svg {
    margin-top: 0.28rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

/* Small Phone (max-width: 480px) */
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    max-width: 260px;
  }

  .float-card {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }

  /* RSP-02: keep float cards fully inside the viewport on small phones */
  .float-card--tr,
  .float-card--mr { right: 0; }
  .float-card--bl,
  .float-card--ml { left: 0; }
  .float-card { max-width: 60%; }

  /* Hide 2 of 4 float cards on very small screens to reduce clutter */
  .float-card--mr,
  .float-card--ml { display: none; }

  /* Stats go to 1 column on very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  /* Footer single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Beam */
  .beam-container {
    height: 250px;
    padding: 0.75rem;
  }
  .beam-content {
    max-height: 200px;
  }
  .beam-circle {
    width: 2.75rem;   /* keep the 44px target even on small phones */
    height: 2.75rem;
    padding: 0.5rem;
  }
  .beam-circle.large {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.5rem;
  }

  /* Trust badges wrap better */
  .trust-badges {
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
  }

  /* Pricing card */
  .card {
    padding: 1.5rem;
  }

  /* Feature visual height */
  .feature-visual {
    height: 140px;
  }

  /* FAQ items */
  .q-trigger { font-size: 1rem; }

  /* Security tiles */
  .security-tile {
    padding: 1rem;
    gap: 0.75rem;
  }

  .security-icon {
    width: 36px;
    height: 36px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ADDITIONAL ANIMATIONS & VISUAL EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Gradient text for headings */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse glow for CTAs */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(132, 204, 22, 0.35);
  }
  50% {
    box-shadow: 0 4px 25px rgba(132, 204, 22, 0.55), 0 0 40px rgba(132, 204, 22, 0.2);
  }
}

.btn-primary.pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* Staggered entrance animations */

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

/* Glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: var(--off-white);
}

.section-dark p {
  color: var(--gray-400);
}

/* Enhanced nav with scroll effect */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════
   ADVANCED ANIMATIONS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Magnetic hover effect for buttons */
.btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(15px);
}

.btn:hover::after {
  opacity: 0.4;
}

/* Bounce entrance for cards */

/* Gentle bob animation */
@keyframes gentleBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Sparkle animation for highlights */

/* Rotate animation for icons */

/* Typing cursor blink */

/* Number counter animation */

/* Wave animation for hero visual */

/* Stagger animation classes */

/* Hover lift for interactive elements */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

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

/* Icon bounce on hover */
.icon-bounce:hover svg {
  animation: gentleBob 0.6s ease-in-out;
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Shine sweep effect */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 4s ease-in-out infinite;
}

.icon-glow:hover::before {
  opacity: 1;
}

/* Confetti burst keyframes */

/* ═══════════════════════════════════════════════════════════════════
   LANDSCAPE PHONE & TOUCH OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

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

  .hero-visual {
    max-width: 240px;
  }

  .float-card {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .section-sm {
    padding: 30px 0;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links a:not(.btn) {
    padding: 8px 0;
  }

  .footer-grid a {
    padding: 11px 0;   /* 22px line-box + 22px padding = 44px target */
  }

  .q-trigger {
    padding: 1.25rem 0;
  }

  /* Disable hover transforms on touch devices to prevent sticky states */
  .card:hover {
    transform: none;
  }

  .float-card:hover {
    transform: none;
  }

  .security-tile:hover {
    transform: none;
  }

  .hover-lift:hover {
    transform: none;
  }
}

/* Extra wide screens - cap content width */
@media (min-width: 1440px) {
  .hero {
    max-width: 100vw;
  }

  .hero-grid {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════ */
.q {
  border-bottom: 1px solid var(--border-light);
}

.q-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
}

.q-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.q-trigger:hover { color: var(--primary-dark); }

.q-trigger:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.q-trigger .acc-toggle {
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.a {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
}

.a[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   Eleven infinite animations run on this page. Switch them all off,
   and make sure nothing that relies on animation stays hidden.
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Content must never depend on an animation to become visible */
  .js [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Ambient decoration serves no purpose without motion */
  .hero::before,
  .hero::after,
  .shine-effect::before {
    animation: none !important;
  }

  .hero-visual,
  .float-card,
  .beam-circle.large {
    animation: none !important;
  }

  /* Hover lifts are transitions, not animations — neutralise them too */
  .card:hover,
  .float-card:hover,
  .security-tile:hover,
  .hover-lift:hover,
  .stat-card:hover,
  .trust-badge:hover,
  .beam-node:hover {
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ROTATING QUOTES
   Slides are stacked in one grid cell, so the viewport is as tall as the
   longest quote and advancing never shifts the page.
   ═══════════════════════════════════════════════════════════════════ */
.quotes {
  max-width: 680px;
  margin: 3.5rem auto 0;
}

.quotes-viewport {
  display: grid;
  align-items: start;
}

.quote {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0 clamp(0px, 2vw, 1.5rem);
  text-align: center;
  opacity: 0;
  visibility: hidden;          /* also drops it from the a11y tree */
  transition: opacity 0.45s ease;
}

.quote.is-active {
  opacity: 1;
  visibility: visible;
}

.quote-mark {
  color: var(--primary);
  opacity: 0.28;
  margin: 0 auto 0.85rem;
}

.quote-text {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.6;
  font-style: italic;
  color: var(--text-main);
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.quote-by {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.quote-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quotes-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.quotes-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.quotes-arrow:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
}

.quotes-dots {
  display: flex;
  gap: 0.5rem;
}

.quotes-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.quotes-dot:hover { background: var(--primary-light); }

.quotes-dot.is-active {
  background: var(--primary-dark);
  transform: scale(1.35);
}

/* Comfortable hit areas without changing the visual dot size */
@media (hover: none) and (pointer: coarse) {
  .quotes-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 12px transparent;
  }
  .quotes-controls { gap: 1.35rem; }
  .quotes-dots { gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES
   Long-form reading layout for the privacy policy and terms.
   Global resets (list-style: none, muted paragraphs, display headings)
   are overridden here so the document stays readable.
   ═══════════════════════════════════════════════════════════════════ */
.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 2.75rem) 24px 5rem;
  overflow-wrap: anywhere;
}

.legal h1.legal-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 0.6rem;
  line-height: 1.05;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.legal h1,
.legal h2,
.legal h3,
.legal h4,
.legal [id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 1.2vw + 1.1rem, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 2.75rem 0 0.85rem;
}

.legal h3 {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 2rem 0 0.65rem;
}

.legal h4 {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 1.5rem 0 0.45rem;
}

.legal-num {
  font-family: var(--font-sans);
  font-weight: 650;
  color: var(--primary-darker);
  margin-right: 0.35rem;
}

.legal p,
.legal li {
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal p { margin: 0 0 1rem; }

.legal strong { font-weight: 650; }

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.legal a {
  color: var(--primary-darker);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal a:hover { color: var(--accent); }

.legal ul,
.legal ol {
  margin: 0 0 1.15rem;
  padding-left: 1.3rem;
}

.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }

.legal li { margin: 0.4rem 0; }
.legal li p { margin: 0.3rem 0; }

.legal-toc {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem 1.15rem 1.6rem;
  margin: 0 0 2.25rem;
}

.legal-toc ol { margin: 0; }
.legal-toc li { margin: 0.3rem 0; }

.legal-table {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.legal table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table-wide {
  width: min(1120px, calc(100vw - 64px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.legal-table-wide table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-cell-label { display: none; }

.legal th,
.legal td {
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 0.9rem;
  vertical-align: top;
  text-align: left;
}

.legal tbody tr:last-child th,
.legal tbody tr:last-child td { border-bottom: none; }

.legal thead th {
  background: var(--off-white);
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.legal tbody th { font-weight: 400; }

@media (max-width: 1199px) {
  .legal-table-wide {
    width: 100%;
    margin-left: 0;
    transform: none;
    overflow: visible;
    border: 0;
  }

  .legal-table-wide table,
  .legal-table-wide tbody,
  .legal-table-wide tr,
  .legal-table-wide th,
  .legal-table-wide td { display: block; }

  /* Keep column headers accessible while each category becomes a reading card. */
  .legal-table-wide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .legal-table-wide tbody tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .legal-table-wide tbody th,
  .legal-table-wide tbody td {
    padding: 1rem 1.15rem;
    border-bottom: 0;
    font-size: 1rem;
  }

  .legal-table-wide tbody th { background: var(--off-white); }
  .legal-table-wide tbody td + td { border-top: 1px solid var(--border-light); }

  .legal-cell-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-darker);
  }
}

@media print {
  .legal-table-wide {
    width: 100%;
    margin-left: 0;
    transform: none;
    overflow: visible;
  }
}

.legal td p,
.legal th p {
  margin: 0 0 0.4rem;
  font-size: inherit;
  line-height: 1.5;
  color: inherit;
}

.legal td p:last-child,
.legal th p:last-child { margin-bottom: 0; }

.legal-note,
.legal-draft {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
}

.legal blockquote {
  margin: 0 0 1.15rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--primary);
  color: var(--text-main);
}

.legal blockquote p:last-child { margin-bottom: 0; }

.legal hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 2rem 0;
}
