/* Custom Design System variables - RentMate Brand Colors */
:root {
  /* Default Light Theme (Estate Trust) */
  --bg-primary: hsl(216, 33%, 97%); /* #F5F7FA */
  --bg-secondary: hsl(0, 0%, 100%); /* #FFFFFF */
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: hsla(200, 18%, 84%, 0.5);
  --card-border-hover: rgba(13, 71, 161, 0.35);
  
  --primary-color: hsl(216, 85%, 34%); /* #0D47A1 */
  --primary-hover: hsl(216, 85%, 28%);
  --secondary-color: hsl(204, 82%, 94%); /* #E3F2FD */
  --secondary-hover: hsl(204, 82%, 88%);
  
  --accent-cyan: hsl(216, 85%, 34%);
  --accent-cyan-glow: rgba(13, 71, 161, 0.15);
  --accent-teal: hsl(123, 46%, 34%); /* #2E7D32 */
  --accent-hover: hsl(216, 85%, 28%);
  
  --text-primary: hsl(234, 66%, 30%); /* #1A237E */
  --text-secondary: hsl(200, 18%, 26%); /* #37474F */
  --text-muted: hsl(200, 10%, 48%);
  
  --success-green: hsl(123, 46%, 34%);
  --error-red: hsl(0, 66%, 47%);
  --border-color: hsl(200, 18%, 84%);
  --input-bg: rgba(255, 255, 255, 0.9);
  
  /* Logo Colors */
  --logo-navy: #152640;
  --logo-green: #4E9F75;
  
  --btn-primary-bg: linear-gradient(135deg, hsl(216, 85%, 34%) 0%, hsl(216, 85%, 44%) 100%);
  --btn-primary-text: hsl(0, 0%, 100%);
  --btn-secondary-bg: hsl(204, 82%, 94%);
  --btn-secondary-text: hsl(216, 85%, 34%);
  --btn-secondary-border: hsl(200, 18%, 84%);
  --header-bg: rgba(245, 247, 250, 0.85);
  
  --font-primary: 'Assistant', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --ripple-active-opacity: 0.18;
}

body.dark {
  /* Modern Real Estate Dark Theme (Navy & Sage) */
  --bg-primary: hsl(220, 40%, 8%);
  --bg-secondary: hsl(220, 40%, 12%);
  --card-bg: rgba(30, 41, 59, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(215, 100, 70%, 0.4);
  
  --primary-color: hsl(215, 100%, 70%);
  --primary-hover: hsl(215, 100%, 65%);
  --secondary-color: hsl(215, 28%, 17%);
  --secondary-hover: hsl(215, 28%, 23%);
  
  --accent-cyan: hsl(215, 100%, 70%);
  --accent-cyan-glow: rgba(215, 100, 70%, 0.15);
  --accent-teal: hsl(142, 70%, 49%);
  --accent-hover: hsl(215, 100%, 65%);
  
  --text-primary: hsl(210, 20%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 52%);
  
  --success-green: hsl(142, 70%, 49%);
  --error-red: hsl(8, 50%, 51%);
  --border-color: hsl(215, 28%, 17%);
  --input-bg: rgba(15, 23, 42, 0.6);
  
  /* Logo Colors Dark Mode */
  --logo-navy: #FFFFFF;
  --logo-green: #4E9F75;
  
  --btn-primary-bg: linear-gradient(135deg, hsl(215, 100%, 70%) 0%, hsl(215, 100%, 60%) 100%);
  --btn-primary-text: hsl(220, 40%, 8%);
  --btn-secondary-bg: hsl(215, 28%, 17%);
  --btn-secondary-text: hsl(210, 20%, 98%);
  --btn-secondary-border: hsl(215, 28%, 23%);
  --header-bg: rgba(8, 18, 30, 0.8);
  --ripple-active-opacity: 0.32;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-hover);
}

/* Background Ambient Glows */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

.bg-glow-1 {
  top: 10%;
  left: -100px;
  background: var(--accent-cyan);
}

.bg-glow-2 {
  top: 60%;
  right: -100px;
  background: var(--accent-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-cyan-glow);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  opacity: 0.9;
  border-color: var(--btn-secondary-text);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.badge-accent {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
  color: var(--accent-teal);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* Logo T span styling removed for solid branding */

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--text-primary);
}

/* Hero Section with Video Backing */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none; /* Prevent interception of mouse events */
}

.hero-video-wrapper canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}

.scroll-down-hint {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.scroll-down-arrow {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Hero Text Section (Starts Below Video) */
.hero-text-section {
  position: relative;
  z-index: 10;
  background-color: transparent;
  padding: 60px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 10;
  text-align: center;
  margin: 0 auto;
}

/* Desktop Fixed Background scroll sequence */
@media (min-width: 768px) {
  .hero-video-wrapper {
    overflow: visible; /* Allow fixed canvas to break out and cover viewport */
  }
  .hero-video-wrapper canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }
  /* Stacking contexts for content sections above fixed background */
  .hero-text-section,
  .benefits-section,
  .features-section,
  .calculator-section,
  .waitlist-section,
  .academy-section,
  .contact-section {
    position: relative;
    z-index: 10;
  }
}

@media (max-width: 768px) {
  .hero-video-section {
    height: 60vh;
  }
  .hero-text-section {
    padding: 60px 16px;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(8, 18, 30, 0.6) 0%, 
    var(--bg-primary) 90%
  );
}


.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Features (Bento Grid) Section */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px 0 rgba(13, 71, 161, 0.03);
}

.bento-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px 0 rgba(13, 71, 161, 0.08), 0 0 0 1px var(--card-border-hover);
}

.card-large {
  grid-column: span 2;
  min-height: 380px;
}

.card-medium {
  grid-column: span 1;
  min-height: 380px;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Bento Card Visual Mockups */
.card-preview {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: var(--bg-primary);
  border-top: 1px solid var(--card-border);
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-line {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  width: 80%;
}

.mockup-line.accent-line {
  width: 40%;
  background: var(--accent-cyan);
}

.mockup-bar {
  height: 30px;
  background: var(--border-color);
  border-radius: 6px;
  width: 90%;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.mockup-bar.accent-bar {
  border-left: 3px solid var(--accent-teal);
  background: rgba(20, 184, 166, 0.05);
}

/* Waitlist Form Section */
.waitlist-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 100px 24px;
}

.waitlist-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.waitlist-header {
  text-align: center;
  margin-bottom: 40px;
}

.waitlist-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.waitlist-header p {
  color: var(--text-secondary);
}

/* Forms styling */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: var(--input-bg);
}

/* Errors */
.error-msg {
  font-size: 0.8rem;
  color: var(--error-red);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--error-red);
  background: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .error-msg,
.consent-group.has-error .error-msg {
  display: block;
}

/* Compliance Checkboxes */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  gap: 12px;
}

.consent-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  min-width: 20px;
  height: 20px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: inline-block;
  position: relative;
}

.consent-checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-cyan);
}

.consent-checkbox-container input:checked ~ .checkmark {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.consent-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.consent-checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.legal-link {
  color: var(--accent-cyan);
  border-bottom: 1px dotted var(--accent-cyan);
}

/* Status box */
.status-box {
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.status-success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
}

.status-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
}

.security-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Spinner Loading */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--bg-primary);
  animation: spin 0.8s linear infinite;
  display: none;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 64px 24px;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-disclaimer {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsiveness (Grid adjusting) */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-medium {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .card-large {
    grid-column: span 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .waitlist-card {
    padding: 28px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Header & Navigation mobile styling */
  .header-container {
    padding: 12px 16px;
  }
  .logo-text {
    font-size: 1.3rem;
  }
  nav {
    gap: 10px;
  }
  nav a:not(.btn) {
    display: none; /* Hide text navigation links on mobile */
  }
  .lang-selector, .theme-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  #nav-waitlist-btn {
    width: auto !important; /* Prevent header button from taking 100% width */
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Reduce size of background glows to prevent horizontal overflow */
  .bg-glow {
    width: 300px;
    height: 300px;
    filter: blur(80px);
  }
  .bg-glow-1 {
    left: -50px;
  }
  .bg-glow-2 {
    right: -50px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Language & Theme Selectors in Header */
.lang-selector, .theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.lang-selector:hover, .theme-toggle:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* CPI Calculator styling inside Bento card */
.cpi-calculator-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-top: 16px;
}
body.dark .cpi-calculator-card {
  background: rgba(0, 0, 0, 0.2);
}
.cpi-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cpi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cpi-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpi-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cpi-form-group input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.cpi-form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.cpi-result-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  display: none;
}
.cpi-result-box.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Academy Section */
.academy-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.academy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: var(--transition-smooth);
}
.academy-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px var(--accent-cyan-glow);
}
.academy-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}
.academy-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.academy-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.academy-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.academy-card-link:hover {
  opacity: 0.8;
}

/* Contact Us Section */
.contact-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 80px 24px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.contact-header {
  text-align: center;
  margin-bottom: 32px;
}
.contact-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.contact-header p {
  color: var(--text-secondary);
}

/* SVG icons styles */
.svg-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.dark .svg-icon {
  stroke: var(--accent-cyan);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-svg {
  width: 32px;
  height: 32px;
}

/* LTR adjustments when lang=en */
[dir="ltr"] .checkmark:after {
  left: 7px;
}
[dir="ltr"] .consent-checkbox-container {
  text-align: left;
}
[dir="ltr"] .waitlist-header, [dir="ltr"] .contact-header, [dir="ltr"] .section-header {
  text-align: center;
}
[dir="ltr"] .academy-card-link {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .academy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px;
  }
}

/* Benefits Section */
.benefits-section {
  max-width: 1200px;
  margin: -60px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}
.benefits-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px var(--accent-cyan-glow);
}
.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
body.dark .benefit-icon {
  color: var(--accent-cyan);
}
.benefit-icon svg {
  width: 28px;
  height: 28px;
}
.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CPI Calculator Section */
.calculator-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border-color);
}
.calculator-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.calculator-card-premium {
  background: #ffffff;
  border: 1px solid rgba(13, 71, 161, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 20px 45px rgba(13, 71, 161, 0.06);
  transition: var(--transition-smooth);
}
body.dark .calculator-card-premium {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.calculator-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}
[dir="ltr"] .calculator-info {
  text-align: left;
}
.calculator-info h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.calculator-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.formula-box {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
  direction: ltr;
  margin: 12px 0;
}
body.dark .formula-box {
  background: rgba(0, 0, 0, 0.2);
}

.calculator-card-premium .cpi-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calculator-card-premium label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.calculator-card-premium input {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}
.calculator-card-premium input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.cpi-calculator-card {
  display: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .calculator-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .benefits-section {
    margin-top: 20px;
  }
  .benefits-container {
    grid-template-columns: 1fr;
  }
}

/* Custom form elements for the new calculator */
.full-width {
  grid-column: span 1;
}
.cpi-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cpi-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.cpi-form-group.checkbox-group {
  margin-top: 10px;
}
.cpi-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.cpi-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.cpi-checkbox-container .checkmark {
  height: 22px;
  width: 22px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: inline-block;
  position: relative;
}
.cpi-checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary-color);
}
.cpi-checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.cpi-checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cpi-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
.cpi-checkbox-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Article Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 18, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(8, 18, 30, 0.25);
  position: relative;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(13, 71, 161, 0.08);
}
body.dark .modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--bg-primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  z-index: 10;
}
[dir="ltr"] .modal-close-btn {
  right: 24px;
  left: auto;
}
.modal-close-btn:hover {
  background: var(--secondary-color);
  transform: rotate(90deg);
}
body.dark .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}
[dir="ltr"] .modal-content-wrapper {
  text-align: left;
}
.modal-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.3;
}
.modal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.modal-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}
.modal-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.modal-body p {
  margin-bottom: 18px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-body h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  font-weight: 600;
}
.modal-body ul {
  margin-bottom: 18px;
  padding-right: 20px;
}
[dir="ltr"] .modal-body ul {
  padding-left: 20px;
  padding-right: 0;
}
.modal-body li {
  margin-bottom: 8px;
}

/* Store inline link styling */
.store-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9em;
}
.store-svg-inline {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Bento mini mockup styling */
.mini-mockup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.mini-badge-blue {
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}
body.dark .mini-badge-blue {
  background: rgba(215, 100, 70%, 0.15);
  color: var(--accent-cyan);
}
.mini-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mini-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.mini-label {
  color: var(--text-secondary);
}
.mini-value {
  font-weight: 600;
  color: var(--text-primary);
}

.scanner-container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
}

.mock-document {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  height: 100px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

body.dark .mock-document {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.doc-line {
  height: auto;
  background: transparent;
  width: 100%;
  font-size: 0.52rem;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}

body.dark .doc-line {
  color: var(--text-muted);
}

[dir="ltr"] .doc-line {
  direction: ltr;
}

.doc-line.doc-header {
  height: auto;
  font-weight: bold;
  font-size: 0.6rem;
  color: var(--primary-color);
  margin-bottom: 4px;
  background: transparent;
}

body.dark .doc-line.doc-header {
  color: var(--accent-cyan);
  background: transparent;
}

.doc-line.highlight {
  background: rgba(78, 159, 117, 0.1);
  border-right: 2px solid var(--logo-green);
  padding-right: 4px;
}

[dir="ltr"] .doc-line.highlight {
  border-right: none;
  border-left: 2px solid var(--logo-green);
  padding-right: 0;
  padding-left: 4px;
}

.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: scanLaser 3s ease-in-out infinite;
  z-index: 2;
}

.scan-result-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: scanResultFade 3s ease-in-out infinite;
}

/* Digital Handover Protocol Mockup Styling */
.mini-protocol-widget {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.protocol-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}

.mini-badge-green {
  background: rgba(78, 159, 117, 0.12);
  color: var(--logo-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.protocol-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.protocol-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.photo-badge {
  font-size: 0.6rem;
  padding: 1px 4px;
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary-color);
  border-radius: 3px;
  margin-inline-start: auto;
  font-weight: 600;
  white-space: nowrap;
}

body.dark .photo-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.status-dot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: bold;
  flex-shrink: 0;
}

.status-dot-icon.checked {
  background: rgba(78, 159, 117, 0.15);
  color: var(--logo-green);
}

.status-dot-icon.warning {
  background: rgba(217, 83, 79, 0.12);
  color: #d9534f;
}

.status-dot-icon.utility-icon {
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-color);
}

body.dark .status-dot-icon.utility-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.protocol-signature-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sig-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sig-pad {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  height: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sig-line-svg {
  width: 100%;
  height: 100%;
}

.sig-path {
  stroke: var(--primary-color);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawSignature 5s ease-in-out infinite;
}

body.dark .sig-path {
  stroke: var(--accent-cyan);
}

/* Animations */
@keyframes scanLaser {
  0%, 100% {
    top: 10px;
    opacity: 0;
  }
  5%, 95% {
    opacity: 1;
  }
  50% {
    top: 90px;
    opacity: 1;
  }
}

@keyframes scanResultFade {
  0%, 35% {
    opacity: 0.2;
    transform: translateY(2px);
    filter: blur(1px);
  }
  50%, 90% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  95%, 100% {
    opacity: 0.2;
  }
}

@keyframes drawSignature {
  0% {
    stroke-dashoffset: 1000;
  }
  30%, 75% {
    stroke-dashoffset: 0;
  }
  95%, 100% {
    stroke-dashoffset: -1000;
  }
}

/* App Showcase & Video Demo Section */
.showcase-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Phone Mockup Styling */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background: #1e293b;
  border: 12px solid #0f172a;
  border-radius: 40px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
body.dark .phone-mockup {
  border-color: #020617;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  position: relative;
  flex: 1;
  margin: 28px 8px 30px;
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.phone-button {
  width: 32px;
  height: 32px;
  border: 2px solid #334155;
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

/* Carousel Styles */
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.carousel-btn:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
  background: var(--accent-cyan);
  transform: scale(1.25);
}

/* Mock App UI Screens */
.mock-app-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  background: var(--bg-primary);
}

.mock-app-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.mock-app-avatar {
  font-size: 1.1rem;
}

.mock-app-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* Mock Widgets */
.mock-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.mock-property-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.mock-prop-name {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.mock-prop-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
}

.mock-prop-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mock-prop-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* AI Scanner Mockup */
.mock-scan-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.03);
}

.mock-scan-icon {
  font-size: 2.2rem;
  animation: floatMock 3s ease-in-out infinite;
}

.mock-scan-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-fill {
  width: 75%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 3px;
  animation: mockProgress 2.5s infinite linear;
}

.mock-clause-card {
  background: var(--card-bg);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-clause-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.mock-clause-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Protocol Screen Mockup */
.mock-checklist-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-primary);
}

.mock-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
}

.mock-checklist-item.done .mock-check-box {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mock-checklist-item.alert .mock-check-box {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mock-signature-box {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-sig-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mock-sig-line {
  border-bottom: 2px dashed var(--border-color);
  height: 24px;
}

/* Video Phone Mockup Specific Styling (Portrait Video) */
.video-phone-mockup .phone-screen .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
}

.video-phone-mockup .phone-screen .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fit perfectly in portrait mode */
  display: block;
}

.video-phone-mockup .custom-video-controls {
  padding: 8px 12px;
  gap: 8px;
}

/* Custom Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 18, 30, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.play-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-svg-overlay {
  width: 24px;
  height: 24px;
  margin-left: 4px; /* Shift to center triangle visually */
}

.video-play-overlay:hover .play-circle-btn {
  transform: scale(1.1);
  background: rgba(20, 184, 166, 0.3);
  border-color: var(--accent-cyan);
}

.fallback-play-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* Custom controls layer */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.video-wrapper:hover .custom-video-controls {
  opacity: 1;
  transform: translateY(0);
}

.control-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: var(--accent-cyan);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Animations */
@keyframes mockProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes floatMock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive grid for Showcase */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 60px 24px;
  }
}

/* Strategic CTA banner inside academy articles */
.article-cta-banner {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.04) 0%, rgba(20, 184, 166, 0.04) 100%);
  border: 1px solid rgba(13, 71, 161, 0.1);
  border-radius: var(--border-radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 0 20px rgba(13, 71, 161, 0.02);
  transition: var(--transition-smooth);
}

body.dark .article-cta-banner {
  background: linear-gradient(135deg, rgba(215, 100, 70, 0.08) 0%, rgba(142, 70, 49, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.article-cta-banner:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 32px rgba(13, 71, 161, 0.05);
  transform: translateY(-2px);
}

.article-cta-banner p {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.article-cta-banner .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

.article-cta-banner .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-cyan-glow);
}




/* Accessibility Widget */
.accessibility-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

.accessibility-widget:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.accessibility-widget svg {
  fill: currentColor;
  width: 26px;
  height: 26px;
}

/* Ensure focus outline is clear for keyboard navigation */
.accessibility-widget:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Scroll Wheel Date Picker Modal */
.cpi-date-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: var(--transition-smooth);
}
[dir="ltr"] .cpi-date-btn {
  text-align: left;
}
.cpi-date-btn:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.cpi-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.cpi-modal.show {
  display: flex;
}
.cpi-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 380px;
  box-shadow: var(--box-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cpi-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cpi-modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
#cpi-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
}
.cpi-wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  position: relative;
  padding: 10px 20px;
  background: var(--background-color);
  direction: ltr;
}
.cpi-wheel {
  flex: 1;
  height: 150px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cpi-wheel::-webkit-scrollbar {
  display: none;
}
.cpi-wheel-highlight {
  position: absolute;
  top: 50px;
  left: 4px;
  right: 4px;
  height: 50px;
  border-top: 1.5px solid var(--primary-color);
  border-bottom: 1.5px solid var(--primary-color);
  background-color: rgba(67, 97, 238, 0.04);
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}
.cpi-wheel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.cpi-wheel-item {
  height: 50px;
  line-height: 50px;
  text-align: center;
  scroll-snap-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.cpi-wheel-item.selected {
  color: var(--primary-color);
  opacity: 1;
  font-weight: 700;
  font-size: 1.25rem;
}
.cpi-wheel-item.empty {
  height: 50px;
  pointer-events: none;
}
.cpi-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}
.cpi-modal-footer button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================
   Pricing & Plans Section Styling
   ========================================== */
.pricing-section {
  padding: 80px 20px;
  background-color: var(--bg-secondary);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-color);
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 15px;
}

/* Premium Segmented Control Pill design */
.segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 71, 161, 0.06); /* Soft navy tint */
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

body.dark .segmented-control {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.segmented-checkbox {
  display: none;
}

.pricing-toggle-container .toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin: 0;
}

/* Active Highlight Styling */
.segmented-checkbox:not(:checked) ~ .segmented-control .toggle-label.monthly,
.segmented-checkbox:checked ~ .segmented-control .toggle-label.annual {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.15);
}

body.dark .segmented-checkbox:not(:checked) ~ .segmented-control .toggle-label.monthly,
body.dark .segmented-checkbox:checked ~ .segmented-control .toggle-label.annual {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Hover effects for the inactive option */
.segmented-checkbox:not(:checked) ~ .segmented-control .toggle-label.annual:hover {
  color: var(--text-primary);
}
.segmented-checkbox:checked ~ .segmented-control .toggle-label.monthly:hover {
  color: var(--text-primary);
}

body.dark .segmented-checkbox:not(:checked) ~ .segmented-control .toggle-label.annual:hover {
  color: #ffffff;
}
body.dark .segmented-checkbox:checked ~ .segmented-control .toggle-label.monthly:hover {
  color: #ffffff;
}

.pricing-toggle-container .save-badge {
  background: var(--success-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  animation: pulse-glow 2s infinite;
  
  /* Hidden by default, only shown when Yearly (checked) is active */
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-checkbox:checked ~ .save-badge {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

.pricing-card .plan-price-sub {
  color: var(--success-green);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  animation: fadeInPriceSub 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPriceSub {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: right;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

body[dir="ltr"] .pricing-disclaimer {
  text-align: left;
}

/* Pricing Cards Layout */
.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 60px auto;
}

/* Animated CSS property for custom fluid ripple expansion */
@property --ripple-radius {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* overflow: hidden; REMOVED to prevent badge clipping */
}

/* Inner container to clip the background spotlights and water waves */
.pricing-card .card-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Spotlights overlay style inside the clipped container - Starry Sky Nebula */
.pricing-card .card-glow-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  
  /* Starry network grid layout combined with nebula colored gradient */
  background-image: 
    linear-gradient(135deg, var(--ripple-color-start) 0%, var(--ripple-color-end) 100%),
    url('Background/constellation_grid.png');
  background-blend-mode: overlay;
  background-size: cover, cover;
  background-position: center, center;
  
  /* Spreads from the cursor using clip-path circle (very wide compatibility, hardware-accelerated) */
  clip-path: circle(0px at var(--mouse-x, 50%) var(--mouse-y, 50%));
  /* Apply GPU-accelerated filter to completely change the grid colors per card */
  filter: var(--card-ripple-filter, none);
  
  /* Transition both opacity and clip-path for a water spreading effect */
  transition: opacity 0.8s ease-out,
              clip-path 1.9s cubic-bezier(0.1, 0.75, 0.25, 1);
}

/* Card theme-specific color configurations */
#card-free {
  --ripple-color-start: rgba(148, 163, 184, 0.4); /* Slate Gray */
  --ripple-color-end: rgba(30, 41, 59, 0.05);
  --card-ripple-opacity: 0.12; /* Faint blueprint look */
  --card-ripple-filter: grayscale(100%) brightness(0.8); /* Muted monochrome gray */
}

#card-solo {
  --ripple-color-start: rgba(34, 197, 94, 0.35); /* Softened Emerald Green */
  --ripple-color-end: rgba(30, 41, 59, 0.05);
  --card-ripple-opacity: 0.14; /* Matched to Premium for supreme readability */
  --card-ripple-filter: hue-rotate(280deg) brightness(1.1) contrast(1.1); /* Rotate neon cyan to sage/mint green */
}

#card-premium {
  --ripple-color-start: rgba(13, 71, 161, 0.35);   /* Muted Royal Navy Blue */
  --ripple-color-end: rgba(0, 242, 254, 0.18);    /* Soft Electric Cyan */
  --card-ripple-opacity: 0.14; /* Reduced to make grid lines extremely subtle in light mode */
  --card-ripple-filter: saturate(1.4) contrast(1.1); /* Soften neon colors for readability */
}

/* Dark mode overrides for card ripples */
body.dark #card-free {
  --ripple-color-start: rgba(148, 163, 184, 0.3);
  --card-ripple-opacity: 0.18;
  --card-ripple-filter: grayscale(100%) brightness(0.75);
}

body.dark #card-solo {
  --ripple-color-start: rgba(74, 222, 128, 0.45);
  --card-ripple-opacity: 0.28; /* Matched to Premium for supreme readability */
  --card-ripple-filter: hue-rotate(280deg) brightness(1.15) contrast(1.15);
}

body.dark #card-premium {
  --ripple-color-start: rgba(33, 150, 243, 0.45);  /* Muted blue */
  --ripple-color-end: rgba(0, 242, 254, 0.15);   /* Muted cyan */
  --card-ripple-opacity: 0.28; /* Reduced to preserve readability in dark mode */
  --card-ripple-filter: saturate(1.6) contrast(1.1) drop-shadow(0 0 2px rgba(0, 242, 254, 0.20));
}

/* Trigger water spread on hover or touch active */
.pricing-card.glow-active .card-glow-bg::before,
.pricing-card.touch-active .card-glow-bg::before {
  opacity: var(--card-ripple-opacity, 0.2);
  clip-path: circle(650px at var(--mouse-x, 50%) var(--mouse-y, 50%));
}

/* Ensure the card content is stacked above the inner glow bg */
.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card .card-glow-bg {
  z-index: 0;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 30px rgba(13, 71, 161, 0.08);
}

body.dark .pricing-card:hover {
  box-shadow: 0 15px 30px rgba(215, 100, 70, 0.08);
}

/* Featured / Solo Card Styling */
.pricing-card.card-featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 25px var(--accent-cyan-glow);
}

.pricing-card.card-featured:hover {
  box-shadow: 0 15px 35px var(--accent-cyan-glow);
}

.pricing-card .card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.pricing-card .card-plan-header {
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.pricing-card .plan-name {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.plan-header-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

.pricing-card:hover .plan-header-icon {
  transform: scale(1.18) rotate(6deg);
}

/* th cell align icons */
.comparison-table th.tier-col {
  text-align: center;
}
.comparison-table th.tier-col .plan-header-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.0;
  vertical-align: middle;
  margin-inline-end: 6px;
}

#card-free .plan-header-icon,
.comparison-table th[data-i18n="plan-free"] .plan-header-icon {
  stroke: var(--text-muted);
}

#card-solo .plan-header-icon,
.comparison-table th[data-i18n="plan-solo"] .plan-header-icon {
  stroke: var(--success-green);
}

#card-premium .plan-header-icon,
.comparison-table th[data-i18n="plan-premium"] .plan-header-icon {
  stroke: var(--primary-color);
}

.pricing-card .plan-price-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: var(--text-primary);
}

.pricing-card .plan-price,
.pricing-card .plan-price-val {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-accent);
}

.pricing-card .plan-price-period {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.pricing-card .card-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.pricing-card .card-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600; /* Bolder text in general for supreme readability */
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.pricing-card .card-features-list .check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-teal);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Enhance text contrast when card is active/hovered */
.pricing-card.glow-active .card-features-list li,
.pricing-card.touch-active .card-features-list li {
  color: #0f172a; /* Maximum dark contrast in light mode */
}

.pricing-card.glow-active .plan-name,
.pricing-card.touch-active .plan-name,
.pricing-card.glow-active .plan-price-val,
.pricing-card.touch-active .plan-price-val {
  color: #020617; /* Slate 950 - deepest dark for maximum legibility */
}

.pricing-card.glow-active .plan-price-period,
.pricing-card.touch-active .plan-price-period {
  color: var(--text-secondary); /* Darker gray for period */
}

/* Make card background more opaque when hovered/active to eliminate background starry pattern noise */
.pricing-card.glow-active,
.pricing-card.touch-active {
  background: var(--bg-secondary);
}

/* Dark mode text contrast overrides when active */
body.dark .pricing-card.glow-active .card-features-list li,
body.dark .pricing-card.touch-active .card-features-list li {
  color: #ffffff; /* Maximum light contrast in dark mode */
}

body.dark .pricing-card.glow-active .plan-name,
body.dark .pricing-card.touch-active .plan-name,
body.dark .pricing-card.glow-active .plan-price-val,
body.dark .pricing-card.touch-active .plan-price-val {
  color: #ffffff; /* Pure white */
}

body.dark .pricing-card.glow-active .plan-price-period,
body.dark .pricing-card.touch-active .plan-price-period {
  color: #ffffff; /* Pure white period text */
}

.pricing-card .btn {
  margin-top: auto;
}

/* Features Comparison Table CSS */
.comparison-table-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

body.dark .comparison-table th {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:not(.feature-name-cell) {
  text-align: center;
  font-weight: 500;
}

.comparison-table td.highlight-val {
  color: var(--text-primary);
  font-weight: 650;
}

.comparison-table td.none-val {
  color: var(--text-muted);
  opacity: 0.65;
}

/* Custom premium SVG check/cross icons in table cells */
.table-val-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  vertical-align: middle;
}

.table-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.table-icon.check-icon {
  stroke: var(--success-green);
}

.table-icon.cross-icon {
  stroke: var(--error-red);
}

.val-text {
  font-size: 0.95rem;
  font-weight: 550;
}

.comparison-table .feature-name-cell {
  font-weight: 650;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

/* Tooltip Styling */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.tooltip-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.tooltip-trigger:hover {
  color: var(--primary-color);
}

.tooltip-trigger .info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tooltip-content {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: right;
  direction: rtl;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
}

/* Hover effect on Desktop */
@media (hover: hover) {
  .tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

/* Active class for tap trigger on Mobile */
.tooltip-container.active .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Responsive adjust for tooltips */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin: 0 -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .tooltip-content {
    width: 240px;
    left: auto;
    right: -20px;
    transform: translateY(10px);
  }

  .tooltip-content::after {
    left: auto;
    right: 22px;
  }

  .tooltip-container.active .tooltip-content {
    transform: translateY(0);
  }
}
