/* ==========================================================================
   VARIABLES & THEME SYSTEM (Nyaya AI Landing Pages)
   ========================================================================== */
:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.1);
  --bg-app: #FFFFFF;
  --bg-sidebar: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-input: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.06), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --max-width: 1200px;
}

[data-theme="dark"] {
  --primary: #F8FAFC;
  --primary-light: #E2E8F0;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.15);
  --bg-app: #0F172A;
  --bg-sidebar: #1E293B;
  --bg-card: #1E293B;
  --bg-input: #334155;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.35), 0 10px 15px -5px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   BASE STYLES & SCROLL PROGRESS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #3b82f6 100%);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

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

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

.hero-badge {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-sub {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-section .btn {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.page-grid {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background-color: var(--bg-card, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .site-header {
  background-color: rgba(15, 23, 42, 0.92);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: var(--accent-light, rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.logo-link:hover .logo-box {
  transform: scale(1.05);
}

.logo-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-center-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-center-links a {
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-center-links a:hover,
.nav-center-links a.active {
  color: var(--accent-hover, #059669);
  background: var(--accent-light, rgba(16, 185, 129, 0.1));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-sidebar);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 90px 0 70px;
  background-color: var(--bg-sidebar);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.04) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.06) 0, transparent 50%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  opacity: 0.18;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 11.5px;
  border-radius: 9999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ==========================================================================
   ARTICLE LAYOUT (MAIN GRID)
   ========================================================================== */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 70px 0;
}

.article-content {
  min-width: 0;
}

/* GENERAL CONTENT BLOCKS */
.content-block {
  margin-bottom: 54px;
}

.content-block h2 {
  font-size: 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  letter-spacing: -0.02em;
}

.content-block p {
  font-size: 16.5px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.75;
}

.content-block ul, .content-block ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
}

/* STEP CARDS */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.step-card {
  display: flex;
  gap: 22px;
  padding: 24px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.step-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FORMAT DISPLAY (PREMIUM LEGAL PAPER)
   ========================================================================== */
.format-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.format-header {
  padding: 14px 24px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.format-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.format-actions {
  display: flex;
  gap: 10px;
}

.format-body {
  padding: 40px 48px;
  background-color: var(--bg-card);
  position: relative;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.01);
}

/* Red Margin Line for Legal Drafts */
.format-body::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 1px;
  background-color: rgba(239, 68, 68, 0.22);
  pointer-events: none;
}

.format-pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
  line-height: 1.8;
  padding-left: 16px;
  border-left: 1px solid transparent; /* Keeps padding align */
}

.format-footer-info {
  padding: 16px 24px;
  background-color: var(--accent-light);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--accent-hover);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   FAQ SECTION (ACCORDIONS)
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  transition: background-color 0.25s, border-color 0.25s;
}

.faq-question:hover .faq-icon {
  background-color: var(--accent-light);
  border-color: var(--accent);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-main);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.faq-question:hover .faq-icon::before, .faq-question:hover .faq-icon::after {
  background-color: var(--accent);
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.active .faq-icon {
  background-color: var(--accent);
  border-color: var(--accent);
}

.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after {
  background-color: #FFFFFF;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-sidebar);
}

.faq-answer-inner {
  padding: 4px 28px 24px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer-inner a {
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.faq-answer-inner a:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   SIDEBAR (WIDGETS)
   ========================================================================== */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 104px;
  height: fit-content;
}

.widget-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.widget-card.cta-widget {
  background: linear-gradient(190deg, var(--primary) 0%, #1e293b 100%);
  border: none;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.widget-card.cta-widget::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.widget-card.cta-widget h3 {
  color: #FFFFFF;
  font-size: 22px;
  margin-bottom: 14px;
}

.widget-card.cta-widget p {
  color: #cbd5e1;
  font-size: 14.5px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.widget-card.cta-widget .btn-primary {
  width: 100%;
}

.widget-title {
  font-size: 19px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 14px;
}

.toc-link {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.toc-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.5);
  flex-shrink: 0;
}

.toc-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.toc-link.active {
  color: var(--accent);
  font-weight: 700;
  padding-left: 4px;
}

.toc-link.active::before {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   IN-ARTICLE CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}

.cta-banner-content {
  flex: 1;
}

.cta-banner-title {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-banner-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER STYLE MATCHING MAIN APP
   ========================================================================== */
.site-footer {
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.footer-column h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   STICKY MOBILE CTA
   ========================================================================== */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: none;
  z-index: 999;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .sticky-mobile-cta {
  background-color: rgba(15, 23, 42, 0.96);
}

.sticky-mobile-cta .btn {
  width: 100%;
}

/* ==========================================================================
   SOCIAL PROOF TRUST BAR
   ========================================================================== */
.social-proof-bar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  padding: 18px 0;
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.proof-stat .proof-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.proof-stat .proof-icon.green { background: rgba(16, 185, 129, 0.12); }
.proof-stat .proof-icon.blue { background: rgba(59, 130, 246, 0.12); }
.proof-stat .proof-icon.purple { background: rgba(99, 102, 241, 0.12); }
.proof-stat .proof-icon.orange { background: rgba(245, 158, 11, 0.12); }

.proof-stat .proof-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.proof-stat .proof-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 2s ease-in-out infinite;
  margin-right: 6px;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ==========================================================================
   INSTANT DEMO CHAT WIDGET
   ========================================================================== */
.demo-chat-section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-app) 0%, var(--bg-sidebar) 100%);
}

.demo-chat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-chat-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.demo-chat-text p {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.demo-chat-text .demo-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(16, 185, 129, 0.08);
  max-width: 480px;
}

.demo-chat-header {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.demo-chat-header-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

.demo-chat-header-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.demo-chat-header-sub {
  font-size: 11px;
  color: #99f6e4;
  font-weight: 500;
}

.demo-chat-messages {
  padding: 20px;
  min-height: 280px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  animation: msgSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-msg.bot {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text-main);
}

.demo-msg.user {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.demo-typing {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  align-self: flex-start;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.demo-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.demo-chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.demo-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.demo-chat-input:focus {
  border-color: var(--accent);
}

.demo-chat-input::placeholder {
  color: var(--text-muted);
}

.demo-chat-send {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.demo-chat-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.demo-chat-send svg {
  width: 20px;
  height: 20px;
}

.demo-sample-questions {
  padding: 0 16px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-sample-q {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.demo-sample-q:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ==========================================================================
   WHATSAPP FLOATING SHARE BUTTON
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-fab-tooltip {
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fabBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.whatsapp-fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0,0,0,0.12);
}

.whatsapp-fab-btn svg {
  width: 32px;
  height: 32px;
}

@keyframes fabBounceIn {
  from { opacity: 0; transform: scale(0.3) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hide WhatsApp FAB when sticky CTA is visible on mobile */
@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 88px;
    right: 16px;
  }
  .whatsapp-fab-btn {
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sidebar-widgets {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 17px;
  }
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sticky-mobile-cta {
    display: block;
  }
  body {
    padding-bottom: 72px; /* Space for sticky mobile CTA */
  }
}

/* Mobile UX sprint: preserve breathing room and reliable touch targets. */
@media (max-width: 768px) {
  .header-nav { height: 64px; gap: 10px; overflow: hidden; }
  .logo-link { min-width: 0; font-size: 19px; gap: 8px; flex-shrink: 0; }
  .logo-box { width: 34px; height: 34px; }
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav-actions > a:first-child { display: none; }
  .theme-toggle-btn { width: 44px; height: 44px; flex: 0 0 44px; }
  .nav-actions .btn { min-height: 44px; padding: 10px 14px; white-space: nowrap; font-size: 13px; }
  .hero-teal { padding: 64px 0 48px; }
  .hero-teal-trust { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
  .landing-section { padding: 52px 0; }
  .how-step, .help-card, .pricing-card { padding: 20px 16px; }
  /* Social proof bar mobile */
  .social-proof-inner { gap: 16px; }
  .proof-divider { display: none; }
  .proof-stat .proof-number { font-size: 17px; }
  .proof-stat .proof-label { font-size: 11px; }
  /* Demo chat mobile */
  .demo-chat-layout { grid-template-columns: 1fr; gap: 32px; }
  .demo-chat-container { max-width: 100%; }
  .demo-chat-text h2 { font-size: 28px; }
  .demo-chat-section { padding: 52px 0; }
  .footer-top { gap: 28px; }
}

@media (max-width: 359px) {
  .logo-link > span { display: none; }
  .nav-actions .btn { padding: 10px 11px; font-size: 13px; }
}

/* ==========================================================================
   PRINT FRIENDLY LAYOUT
   ========================================================================== */
@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt !important;
    padding-bottom: 0 !important;
  }
  
  .scroll-progress-bar,
  .site-header,
  .hero-badge,
  .hero-sub,
  .theme-toggle-btn,
  .btn,
  .sidebar-widgets,
  .cta-banner,
  .faq-container,
  .site-footer,
  .sticky-mobile-cta,
  .btn-copy,
  .format-header {
    display: none !important;
  }
  
  .page-grid {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .content-block {
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }
  
  .format-box {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    margin: 20px 0 !important;
    page-break-inside: avoid;
  }
  
  .format-body {
    padding: 20px 30px !important;
    background-color: #FFFFFF !important;
  }
  
  .format-body::before {
    left: 20px !important;
    border-left: 1px solid #999999 !important;
  }
  
  .format-pre {
    font-size: 10.5pt !important;
    color: #000000 !important;
    line-height: 1.6 !important;
    padding-left: 12px !important;
  }
  
  .hero-section {
    padding: 10px 0 !important;
    background: none !important;
    border-bottom: 2px solid #000000 !important;
  }
  
  .hero-section::before {
    display: none !important;
  }
  
  .hero-title {
    font-size: 20pt !important;
    color: #000000 !important;
    margin-bottom: 0 !important;
  }
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  z-index: 100;
  width: 100%;
}
.announcement-icon {
  font-size: 15px;
  animation: wiggle 2s infinite ease-in-out;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-10deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-4deg); }
  60% { transform: rotate(4deg); }
}


/* ==========================================================================
   LANDING PAGE SPECIFIC STYLES
   ========================================================================== */
/* ==========================================================================
   LANDING PAGE HERO (Modern Premium Design - Human Crafted)
   ========================================================================== */
.hero-teal {
  background: var(--bg-app);
  color: var(--text-main);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-teal::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.14) 0%, rgba(59, 130, 246, 0.06) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-teal::before {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.22) 0%, rgba(59, 130, 246, 0.1) 45%, transparent 75%);
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-light, rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: var(--accent-hover, #059669);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-badge-pill {
  color: #34d399;
}

.hero-badge-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-teal .hero-title {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-teal .hero-sub {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Prompt Launcher Bar in Hero */
.hero-launcher-box {
  max-width: 700px;
  width: 100%;
  margin: 32px auto 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

[data-theme="dark"] .hero-launcher-box {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: var(--bg-sidebar);
}

.hero-launcher-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2), 0 0 0 4px var(--accent-light);
}

.hero-launcher-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

.hero-launcher-input::placeholder {
  color: var(--text-muted);
}

.hero-launcher-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.hero-launcher-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.hero-prompt-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 20px auto 0;
}

.prompt-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.prompt-chip:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-teal-trust {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-teal-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Landing Section General */
.landing-section {
  padding: 85px 0;
  border-bottom: 1px solid var(--border);
}

.landing-section.bg-alt {
  background-color: var(--bg-sidebar);
}

/* Document Showcase & Interactive Previewer (Replaces Testimonials) */
.doc-showcase-section {
  background-color: var(--bg-app);
}

.doc-preview-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.doc-tab-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.doc-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.doc-paper-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.doc-canvas-header {
  padding: 20px 30px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-canvas-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--text-main);
}

.doc-type-icon {
  font-size: 20px;
}

.law-tag-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.law-tag-chip {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.doc-paper-body {
  padding: 40px 48px;
  background: var(--bg-card);
  position: relative;
  overflow-x: auto;
}

.doc-paper-body::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 1px;
  background-color: rgba(239, 68, 68, 0.25);
  pointer-events: none;
}

.doc-pre-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
  line-height: 1.75;
  padding-left: 16px;
}

.doc-canvas-footer {
  padding: 20px 30px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-footer-note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.landing-section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.landing-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

/* Category Filter Tabs for Journeys */
.journey-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Smart Home legal journeys */
.smart-home-section { padding-top: 76px; }
.section-heading-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.section-eyebrow { color: var(--accent-hover); font-size: 12px; font-weight: 800; letter-spacing: .12em; margin-bottom: 10px; text-transform: uppercase; }
.section-heading-wrap .landing-section-sub { margin-bottom: 28px; }

.legal-journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.legal-journey-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.legal-journey-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.12);
}

.journey-card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.legal-journey-card h3 { font-size: 18.5px; margin-bottom: 8px; font-weight: 700; }
.legal-journey-card > p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.legal-journey-card .journey-meta { color: var(--accent-hover); font-size: 12.5px; font-weight: 750; margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.legal-journey-card .journey-docs { margin-top: 6px; font-size: 12.5px; }

.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.journey-link:hover { color: var(--accent); text-decoration: underline; }

.journey-card-safety { border-color: rgba(239, 68, 68, .36); background: #fffafa; }
.journey-card-safety .journey-card-icon-wrap { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.journey-card-safety .journey-meta, .journey-card-safety .journey-link { color: #b91c1c; }
[data-theme="dark"] .journey-card-safety { background: rgba(127, 29, 29, .14); }

.journey-disclaimer { max-width: 760px; margin: 32px auto 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* How It Works Grid */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.how-step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.how-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.how-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.how-step p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* What We Help With Cards */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.help-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.help-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.help-card-icon {
  font-size: 34px;
  margin-bottom: 18px;
  display: inline-block;
}

.help-card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.help-card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.help-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #eab308;
  margin-bottom: 18px;
  font-size: 16px;
}

.testimonial-text {
  font-style: italic;
  font-size: 15.5px;
  color: var(--text-main);
  margin-bottom: 26px;
  line-height: 1.65;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.testimonial-info h4 {
  font-size: 14.5px;
  margin-bottom: 2px;
}

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

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1050px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card:hover:not(.popular) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan-name {
  font-size: 16.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  text-align: left;
}

.plan-features li {
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* NALSA ALERT BANNER */
.nalsa-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
}

.nalsa-banner-icon {
  font-size: 44px;
  flex-shrink: 0;
}

.nalsa-banner-text h4 {
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--danger);
}

.nalsa-banner-text p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

.nalsa-link {
  color: var(--danger);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .how-it-works-grid, .help-grid, .testimonials-grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-journey-grid { grid-template-columns: 1fr; gap: 12px; }
  .legal-journey-card { padding: 18px; }
  .journey-link { margin-top: 6px; padding-top: 8px; }
  .pricing-card.popular {
    transform: scale(1);
    margin: 16px 0;
  }
  .nalsa-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .hero-teal {
    padding: 80px 0 60px;
  }
  .hero-teal .hero-title {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }
  .hero-teal .hero-sub {
    font-size: 16px !important;
    margin-bottom: 24px !important;
  }
  .hero-teal .btn-primary {
    width: 100% !important;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  .landing-section-title {
    font-size: 28px;
  }
  /* Tap target adjustments on landing page */
  a.btn, .btn, .help-card-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
