/* ============================================================
   INTELLIQUINTE.COM — Design System & Global Styles
   Privacy-First Software Studio
   Modern, clean, professional SaaS design
   ============================================================ */

/* --- Reset / Normalize --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; }

/* Focus styles: visible for keyboard users, hidden for mouse users */
body.using-mouse *:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent-blue, #2563EB);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-toggle:focus-visible { outline-offset: 4px; }
.btn:focus-visible { outline-offset: 3px; }
.faq-question:focus-visible { outline-offset: -2px; }

/* --- Design Tokens --- */
:root {
  /* Colors */
  --black:        #000000;
  --white:        #FFFFFF;
  --gray-50:      #FAFAFA;
  --gray-100:     #F5F5F5;
  --gray-200:     #E8E8E8;
  --gray-300:     #D0D0D0;
  --gray-400:     #A0A0A0;
  --gray-500:     #6B6B6B;
  --gray-600:     #4A4A4A;
  --gray-700:     #333333;
  --gray-800:     #1A1A1A;
  --gray-900:     #0D0D0D;

  /* Brand accent */
  --accent:          #111111;
  --accent-hover:    #333333;
  --accent-soft:     rgba(0,0,0,0.06);
  --blue:            #2563EB;
  --blue-light:      #3B82F6;
  --blue-soft:       rgba(37, 99, 235, 0.08);
  --green:           #16A34A;
  --green-soft:      rgba(22, 163, 74, 0.08);

  /* Semantic Colors */
  --text-primary:    var(--gray-800);
  --text-secondary:  var(--gray-600);
  --text-muted:      var(--gray-500);
  --text-inverse:    var(--white);
  --bg-primary:      var(--white);
  --bg-secondary:    var(--gray-50);
  --bg-elevated:     var(--gray-100);
  --bg-dark:         #0A0A0A;
  --bg-dark-secondary: #111111;
  --border-light:    var(--gray-200);
  --border-medium:   var(--gray-300);
  --border-focus:    var(--blue);
  --success:         var(--green);
  --error:           #DC2626;

  /* Typography */
  --font-body:    'Raleway', sans-serif;
  --font-display: 'Poppins', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  clamp(2.75rem, 5vw, 3.75rem);
  --text-6xl:  clamp(3.25rem, 6vw, 5rem);

  /* Spacing (8px grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width:    1200px;
  --max-width-sm: 720px;
  --max-width-xs: 560px;
  --nav-height:   72px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.12);

  /* Animation */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.5s;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-6xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.text-numbers,
.text-display {
  font-family: var(--font-display);
}

.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--text-muted); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-xs {
  max-width: var(--max-width-xs);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-24) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

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

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

.section-light {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: var(--space-4) auto 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.section-dark .section-label {
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.12);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img.nav-icon {
  height: 28px;
  width: auto;
}

.nav-logo img.nav-wordmark {
  height: 16px;
  width: auto;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-center a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-sign-in {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.nav-sign-in:hover {
  color: var(--text-primary);
}

body.iq-authenticated .nav-sign-in {
  display: none !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  background: var(--accent);
  color: var(--text-inverse) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-center,
  .nav-right {
    display: none;
  }

  .nav-mobile-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-8) var(--space-8);
    gap: var(--space-1);
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    display: flex;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-mobile-links.open {
    transform: translateX(0);
  }

  .nav-mobile-links a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    width: 100%;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--dur-fast);
  }

  .nav-mobile-links a:hover { color: var(--text-primary); }

  .nav-mobile-links .mobile-cta {
    margin-top: var(--space-4);
    font-weight: 600;
    text-align: center;
    padding: var(--space-3) var(--space-6);
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--radius-md);
    border-bottom: none;
    width: 100%;
  }
  .nav-mobile-links .mobile-cta:hover { color: var(--text-inverse); }

  .nav-mobile-links .mobile-sign-in {
    margin-top: var(--space-2);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: none;
  }
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* Mobile links & overlay — hidden on desktop only */
@media (min-width: 769px) {
  .nav-mobile-links {
    display: none !important;
  }
  .nav-overlay {
    display: none !important;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--text-secondary);
}

.btn-ghost svg {
  transition: transform var(--dur-fast) var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-md);
}

.btn-white {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--white);
}

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

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

.card-flat {
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.card-dark {
  background: var(--bg-dark-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--text-xl);
}

.section-dark .card-icon {
  background: var(--white);
  color: var(--black);
}

.card h3, .card h4 {
  margin-bottom: var(--space-3);
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  margin-bottom: var(--space-6);
  line-height: 1.08;
}

.hero .lead {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: -5%;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-pattern {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.03) 0%, transparent 40%);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Stats Strip --- */
.stats-strip {
  padding: var(--space-16) 0;
  background: var(--bg-secondary);
}

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

.stat-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.stat-item p {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* --- Product Cards (Home) --- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

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

.product-card-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  width: fit-content;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.product-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.product-card h3 {
  font-size: var(--text-3xl);
  margin-bottom: 0;
}

.product-card h3:only-child {
  margin-bottom: var(--space-2);
}

.product-card .tagline {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-style: italic;
}

.product-card .description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  flex: 1;
  line-height: 1.7;
}

.product-card .features-list {
  margin-bottom: var(--space-8);
}

.product-card .features-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.product-card .features-list li:last-child {
  border-bottom: none;
}

.product-card .features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-item {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.2rem;
}

.section-dark .feature-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.section-dark .feature-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.section-dark .feature-icon {
  background: var(--white);
  color: var(--black);
}

.feature-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-item p {
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.step h4 {
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-12); }
}

/* --- Pricing --- */
.pricing-card {
  text-align: center;
  padding: var(--space-12);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 480px;
  margin: 0 auto;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
  margin-bottom: var(--space-2);
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  margin: var(--space-6) 0 var(--space-2);
}

.pricing-card .price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.pricing-card .price-alt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pricing-features li::before {
  content: '\2713';
  font-weight: 700;
  color: var(--success);
  font-size: var(--text-base);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-5) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-2) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-question .faq-icon {
  font-size: var(--text-xl);
  transition: transform var(--dur-base) var(--ease);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease), padding var(--dur-base) var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-4);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-10);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.timeline-item h4 {
  margin-bottom: var(--space-2);
}

.timeline-item p {
  font-size: var(--text-sm);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  background: var(--bg-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--gray-400);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand h4 {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  max-width: 320px;
}

.footer-col h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  padding: var(--space-1) 0;
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--gray-500);
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--space-24) 0;
}

.cta-banner h2 {
  margin-bottom: var(--space-4);
}

.cta-banner p {
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.cta-banner .btn + .btn {
  margin-left: var(--space-4);
}

/* --- Legal Pages --- */
.legal-content {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-24);
}

.legal-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

.legal-content .legal-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-12);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content ul li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* --- Resource Articles (long-form content typography) --- */
/* Used on /resources/* and /alternatives/* article bodies. Keeps the
   reading column comfortable: real heading spacing, real list bullets,
   underlined links, and `--text-secondary` body copy for sustained reading. */
.resource-article h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.resource-article h2:first-child {
  margin-top: 0;
}

.resource-article h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.resource-article p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.resource-article ul,
.resource-article ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.resource-article ol {
  list-style: decimal;
}

.resource-article li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

.resource-article a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.resource-article a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.resource-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.resource-article em {
  color: var(--text-primary);
}

/* --- Resource Hub Cards (clickable, light, with hover lift) ---
   Replaces `.card-dark` on resources/index.html. `.card-dark` puts
   `--text-primary` (near-black) text on a `--bg-dark-secondary` (#111)
   background, which is unreadable outside a `section-dark` wrapper. */
.resource-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

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

.resource-card .section-label {
  margin-bottom: var(--space-2);
}

.resource-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.resource-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* --- Resource Disclaimer (the "not legal advice" block) --- */
.resource-disclaimer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light, var(--gray-200, #E5E5E5));
  border-left: 3px solid var(--text-primary);
  border-radius: var(--radius-md, 12px);
  padding: var(--space-5);
  margin-bottom: var(--space-10);
}

.resource-disclaimer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.resource-disclaimer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  section {
    padding: var(--space-16) 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero .lead {
    font-size: var(--text-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-bg { display: none; }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
  }

  .page-hero {
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-10);
  }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: var(--text-3xl); }

  .section-header { margin-bottom: var(--space-10); }

  .product-card { padding: var(--space-8); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
}

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

.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: var(--space-6) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}
