/* ============================================================
   SignGuard Landing Page — Production CSS
   Premium contract analysis app landing page
   Mobile-first responsive design
   ============================================================ */

/* --------------------------------------------------------
   0. RESET & FOUNDATIONS
   -------------------------------------------------------- */

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

:root {
  /* Brand Colors */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-primary-hover: #3B82F6;

  /* Text */
  --color-text: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;

  /* Surfaces */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;

  /* Risk Indicators */
  --color-risk-red: #EF4444;
  --color-risk-yellow: #F59E0B;
  --color-risk-green: #10B981;
  --color-risk-red-bg: #FEF2F2;
  --color-risk-yellow-bg: #FFFBEB;
  --color-risk-green-bg: #ECFDF5;

  /* Dark / Navy */
  --color-navy: #0F172A;
  --color-navy-light: #1E293B;
  --color-navy-lighter: #334155;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --section-py: 80px;
  --section-py-lg: 120px;
  --container-px: 20px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-overlay: 900;
  --z-modal: 1000;
}

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}


/* --------------------------------------------------------
   1. LAYOUT UTILITIES
   -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section--lg {
  padding-block: var(--section-py-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
}

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

.text-center .section-subtitle {
  margin-inline: auto;
}

@media (min-width: 768px) {
  :root {
    --section-py: 100px;
    --section-py-lg: 140px;
    --container-px: 32px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-px: 40px;
  }

  .section-title {
    font-size: 42px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}


/* --------------------------------------------------------
   2. NAVIGATION
   -------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 16px 0;
  transition: background-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              padding var(--duration-normal) ease;
}

.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 10px 0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-decoration: none;
  z-index: var(--z-nav);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.nav--scrolled .nav__logo {
  color: var(--color-text);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: var(--z-nav);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease,
              visibility var(--duration-normal) ease;
  z-index: calc(var(--z-nav) - 1);
}

.nav__links.open {
  opacity: 1;
  visibility: visible;
}

.nav__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
}

.nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-surface);
  background: var(--color-primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--duration-fast) ease,
              transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }

  .nav__links {
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    gap: 4px;
  }

  .nav__link {
    font-size: 14px;
    padding: 6px 14px;
  }
}


/* --------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: linear-gradient(165deg, #F8FAFC 0%, #DBEAFE 40%, #EFF6FF 70%, #F8FAFC 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-xs);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-risk-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 560px;
}

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

.hero__description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-top: -16px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.hero__mockup {
  position: relative;
  flex-shrink: 0;
}

.hero__mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 48px;
  }

  .hero__description {
    font-size: 18px;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }

  .hero__content {
    flex: 1;
    max-width: 560px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__mockup {
    flex: 0 0 auto;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    font-size: 62px;
  }

  .hero__inner {
    gap: 80px;
  }
}


/* --------------------------------------------------------
   4. TRUST BAR
   -------------------------------------------------------- */

.trust-bar {
  padding: 32px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.trust-bar__track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: scroll-trust 30s linear infinite;
  width: max-content;
}

@keyframes scroll-trust {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-bar__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text-muted);
}

.trust-bar__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.trust-bar__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

.trust-bar__divider {
  width: 4px;
  height: 4px;
  background: var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .trust-bar {
    padding: 40px 0;
  }

  .trust-bar__track {
    animation: none;
    justify-content: center;
    width: auto;
    flex-wrap: wrap;
    gap: 32px 48px;
  }
}


/* --------------------------------------------------------
   5. HOW IT WORKS
   -------------------------------------------------------- */

.how-it-works {
  background: var(--color-surface);
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
  position: relative;
}

/* Connecting line (mobile: vertical left side) */
.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 23px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.step__content {
  flex: 1;
  padding-top: 8px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 400px;
}

.step__mockup {
  display: none;
}

@media (min-width: 768px) {
  .how-it-works__steps {
    gap: 80px;
    margin-top: 64px;
  }
}

@media (min-width: 1024px) {
  .how-it-works__steps {
    flex-direction: row;
    gap: 40px;
  }

  /* Connecting line: horizontal on desktop */
  .how-it-works__steps::before {
    top: 23px;
    bottom: auto;
    left: 80px;
    right: 80px;
    height: 2px;
    width: auto;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 20px;
  }

  .step__content {
    padding-top: 0;
  }

  .step__text {
    max-width: none;
  }

  .step__mockup {
    display: block;
    margin-top: 32px;
  }
}


/* --------------------------------------------------------
   6. FEATURES GRID
   -------------------------------------------------------- */

.features {
  background: var(--color-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: background-color var(--duration-normal) ease;
}

.feature-card:hover .feature-card__icon {
  background: var(--color-primary);
  color: var(--color-surface);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
  }

  .feature-card {
    padding: 36px;
  }
}


/* --------------------------------------------------------
   7. SCREENSHOT GALLERY
   -------------------------------------------------------- */

.screenshots {
  background: var(--color-surface);
  overflow: hidden;
}

.screenshots__scroll {
  display: flex;
  gap: 20px;
  padding: 0 var(--container-px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 48px;
}

.screenshots__scroll::-webkit-scrollbar {
  display: none;
}

.screenshots__item {
  flex: 0 0 260px;
  scroll-snap-align: center;
}

.screenshots__caption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.screenshots__caption-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
}

@media (min-width: 768px) {
  .screenshots__scroll {
    gap: 28px;
  }

  .screenshots__item {
    flex: 0 0 280px;
  }
}

@media (min-width: 1024px) {
  .screenshots__scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    overflow: visible;
    padding: 0;
    gap: 32px;
    margin-top: 64px;
  }

  .screenshots__item {
    flex: none;
  }
}


/* --------------------------------------------------------
   8. PRICING
   -------------------------------------------------------- */

.pricing {
  background: var(--color-bg);
}

.pricing__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-card__currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-card__period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pricing-card__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-risk-green-bg);
  color: var(--color-risk-green);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.pricing-card__feature--disabled {
  color: var(--color-text-muted);
}

.pricing-card__feature--disabled .pricing-card__check {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.pricing-card__action {
  width: 100%;
}

@media (min-width: 768px) {
  .pricing__cards {
    flex-direction: row;
    align-items: stretch;
  }

  .pricing-card {
    flex: 1;
    padding: 40px 32px;
  }

  .pricing-card--featured {
    transform: scale(1.04);
  }

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


/* --------------------------------------------------------
   9. FAQ (ACCORDION)
   -------------------------------------------------------- */

.faq {
  background: var(--color-surface);
}

.faq__list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.faq__item:hover {
  border-color: var(--color-primary-light);
}

.faq__item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration-fast) ease;
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq__icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-normal) var(--ease-out);
  margin-top: -3px;
}

.faq__item.active .faq__icon::before {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .faq__question {
    font-size: 16px;
    padding: 24px 28px;
  }

  .faq__answer-inner {
    padding: 0 28px 28px;
    font-size: 15px;
  }

  .faq__list {
    gap: 4px;
    margin-top: 64px;
  }
}


/* --------------------------------------------------------
   10. FINAL CTA
   -------------------------------------------------------- */

.final-cta {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-surface);
  max-width: 520px;
}

.final-cta__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-top: -16px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.final-cta__mockup {
  position: relative;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.final-cta__mockup:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
}

@media (min-width: 768px) {
  .final-cta__title {
    font-size: 42px;
  }

  .final-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .final-cta__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: 60px;
  }

  .final-cta__content {
    flex: 1;
  }

  .final-cta__actions {
    justify-content: flex-start;
  }

  .final-cta__title {
    font-size: 48px;
  }

  .final-cta__mockup {
    flex-shrink: 0;
    transform: perspective(800px) rotateY(-12deg) rotateX(6deg);
  }

  .final-cta__mockup:hover {
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
  }
}


/* --------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------- */

.footer {
  background: var(--color-navy);
  border-top: 1px solid var(--color-navy-lighter);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-surface);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer__link:hover {
  color: var(--color-surface);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-navy-lighter);
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer__legal a:hover {
  color: var(--color-surface);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .footer {
    padding: 80px 0 40px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .footer__brand {
    grid-column: auto;
  }
}


/* ============================================================
   IPHONE MOCKUP FRAME (Pure CSS)
   ============================================================ */

.iphone-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #1A1A1A;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Side button accents */
.iphone-frame::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 120px;
  width: 3px;
  height: 48px;
  background: linear-gradient(to bottom, #2A2A2A, #1A1A1A, #2A2A2A);
  border-radius: 0 2px 2px 0;
}

.iphone-frame::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 100px;
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, #2A2A2A, #1A1A1A, #2A2A2A);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 44px 0 0 #1A1A1A;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.06);
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 14px;
  z-index: 10;
}

/* Subtle camera dot on the notch */
.iphone-notch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #0D0D1A;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(50, 50, 100, 0.3);
}

.iphone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
  z-index: 10;
}

/* Scale variants for different contexts */
.iphone-frame--sm {
  width: 220px;
  border-radius: 36px;
  padding: 6px;
}

.iphone-frame--sm .iphone-screen {
  border-radius: 30px;
}

.iphone-frame--sm .iphone-notch {
  width: 80px;
  height: 22px;
  border-radius: 11px;
  top: 8px;
}

.iphone-frame--sm .iphone-home-indicator {
  width: 80px;
  height: 3px;
  bottom: 5px;
}

.iphone-frame--xs {
  width: 180px;
  border-radius: 30px;
  padding: 5px;
}

.iphone-frame--xs .iphone-screen {
  border-radius: 25px;
}

.iphone-frame--xs .iphone-notch {
  width: 66px;
  height: 18px;
  border-radius: 9px;
  top: 6px;
}

.iphone-frame--xs .iphone-home-indicator {
  width: 66px;
  height: 3px;
  bottom: 4px;
}

/* Responsive scaling for phone mockups */
@media (max-width: 639px) {
  .iphone-frame {
    width: 240px;
    border-radius: 38px;
    padding: 7px;
  }

  .iphone-frame .iphone-screen {
    border-radius: 31px;
  }

  .iphone-frame .iphone-notch {
    width: 86px;
    height: 24px;
    border-radius: 12px;
  }

  .iphone-frame .iphone-home-indicator {
    width: 86px;
  }
}

@media (min-width: 1280px) {
  .iphone-frame--lg {
    width: 320px;
    border-radius: 50px;
    padding: 10px;
  }

  .iphone-frame--lg .iphone-screen {
    border-radius: 40px;
  }

  .iphone-frame--lg .iphone-notch {
    width: 114px;
    height: 32px;
    border-radius: 16px;
    top: 12px;
  }

  .iphone-frame--lg .iphone-home-indicator {
    width: 114px;
    height: 5px;
    bottom: 8px;
  }
}


/* ============================================================
   MOCK APP SCREENS (Inside iPhone frames)
   ============================================================ */

/* --- Status Bar --- */
.mock-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  height: 44px;
}

.mock-status-bar__time {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mock-status-bar__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Signal bars */
.mock-signal {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 10px;
}

.mock-signal span {
  display: block;
  width: 3px;
  background: var(--color-text);
  border-radius: 1px;
}

.mock-signal span:nth-child(1) { height: 3px; }
.mock-signal span:nth-child(2) { height: 5px; }
.mock-signal span:nth-child(3) { height: 7px; }
.mock-signal span:nth-child(4) { height: 10px; }

/* Battery */
.mock-battery {
  width: 22px;
  height: 10px;
  border: 1.5px solid var(--color-text);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1px;
}

.mock-battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: var(--color-text);
  border-radius: 0 1px 1px 0;
}

.mock-battery__fill {
  width: 80%;
  height: 100%;
  background: var(--color-risk-green);
  border-radius: 1px;
}

/* --- Tab Bar --- */
.mock-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-bottom: 10px;
  z-index: 5;
}

.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--color-text-muted);
}

.mock-tab--active {
  color: var(--color-primary);
}

.mock-tab__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* --- Scan Screen --- */
.mock-scan-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
}

.mock-scan-screen__header {
  padding: 8px 16px 16px;
  text-align: center;
}

.mock-scan-screen__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.mock-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 16px auto;
  background: var(--color-primary);
  border-radius: 50%;
  color: var(--color-surface);
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}

.mock-scan-btn::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-surface);
  border-radius: 6px;
}

.mock-scan-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 16px;
  margin-bottom: 16px;
}

.mock-scan-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.mock-contract-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px;
  justify-content: center;
}

.mock-chip {
  padding: 4px 10px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

.mock-chip--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* --- Analyzing Screen --- */
.mock-analyzing-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
  padding: 0 16px;
}

.mock-analyzing-screen__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 8px 0 16px;
}

.mock-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--color-text-muted);
}

.mock-progress-step--done {
  color: var(--color-text);
}

.mock-progress-step--active {
  color: var(--color-primary);
  font-weight: 600;
}

.mock-progress-step__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.mock-progress-step--done .mock-progress-step__icon {
  background: var(--color-risk-green-bg);
  color: var(--color-risk-green);
}

.mock-progress-step--active .mock-progress-step__icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
  animation: mock-spin 1.5s linear infinite;
}

.mock-progress-step--pending .mock-progress-step__icon {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
}

@keyframes mock-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mock-progress-bar {
  margin-top: 20px;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mock-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-full);
  animation: mock-progress-fill 3s var(--ease-out) forwards;
  width: 0%;
}

@keyframes mock-progress-fill {
  0% { width: 0%; }
  20% { width: 25%; }
  50% { width: 55%; }
  80% { width: 80%; }
  100% { width: 92%; }
}

/* --- Result Screen --- */
.mock-result-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
  padding-bottom: 56px;
  overflow-y: auto;
}

.mock-result-screen__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  padding: 8px 16px 12px;
}

.mock-risk-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 16px;
}

.mock-risk-meter__svg {
  width: 100px;
  height: 60px;
}

.mock-risk-meter__circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.mock-risk-meter__bg {
  stroke: var(--color-border);
}

.mock-risk-meter__fill {
  stroke: var(--color-risk-yellow);
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: risk-meter-fill 1.5s var(--ease-out) 0.5s forwards;
  transform-origin: center;
}

@keyframes risk-meter-fill {
  to { stroke-dashoffset: 47; }
}

.mock-risk-meter__fill--low {
  stroke: var(--color-risk-green);
}

.mock-risk-meter__fill--medium {
  stroke: var(--color-risk-yellow);
}

.mock-risk-meter__fill--high {
  stroke: var(--color-risk-red);
}

.mock-risk-meter__label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.mock-risk-meter__label--low { color: var(--color-risk-green); }
.mock-risk-meter__label--medium { color: var(--color-risk-yellow); }
.mock-risk-meter__label--high { color: var(--color-risk-red); }

.mock-risk-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 12px;
}

.mock-risk-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
}

.mock-risk-badge--red {
  background: var(--color-risk-red-bg);
  color: var(--color-risk-red);
}

.mock-risk-badge--yellow {
  background: var(--color-risk-yellow-bg);
  color: var(--color-risk-yellow);
}

.mock-risk-badge--green {
  background: var(--color-risk-green-bg);
  color: var(--color-risk-green);
}

.mock-recommendation {
  margin: 0 12px 12px;
  padding: 10px 12px;
  background: var(--color-risk-yellow-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  font-size: 9px;
  color: #92400E;
  line-height: 1.4;
}

.mock-recommendation__title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* --- Clause Card (inside mock) --- */
.mock-clause-card {
  margin: 0 12px 8px;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  border-left-width: 3px;
  overflow: hidden;
}

.mock-clause-card--red {
  border-left-color: var(--color-risk-red);
}

.mock-clause-card--yellow {
  border-left-color: var(--color-risk-yellow);
}

.mock-clause-card--green {
  border-left-color: var(--color-risk-green);
}

.mock-clause-card__title {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-clause-card__text {
  font-size: 8px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   STORE BUTTONS
   ============================================================ */

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--duration-fast) ease,
              box-shadow var(--duration-normal) ease,
              background-color var(--duration-fast) ease,
              opacity var(--duration-fast) ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-store:active {
  transform: scale(0.97);
}

.btn-store svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-appstore {
  background: var(--color-text);
  color: var(--color-surface);
}

.btn-appstore:hover {
  background: #1E293B;
  color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-playstore {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-playstore:hover {
  border-color: var(--color-text-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

/* Secondary / dimmed variants for non-detected OS */
.btn-appstore.secondary {
  background: var(--color-navy-lighter);
  opacity: 0.7;
}

.btn-appstore.secondary:hover {
  opacity: 1;
  background: var(--color-text);
}

.btn-playstore.secondary {
  opacity: 0.55;
  border-color: var(--color-border);
}

.btn-playstore.secondary:hover {
  opacity: 1;
}

/* Store buttons on dark backgrounds */
.final-cta .btn-playstore,
.footer .btn-playstore {
  background: transparent;
  color: var(--color-surface);
  border-color: var(--color-navy-lighter);
}

.final-cta .btn-playstore:hover,
.footer .btn-playstore:hover {
  border-color: var(--color-text-muted);
  color: var(--color-surface);
}

.btn-store__label-sm {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1;
}

.btn-store__label-lg {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .store-buttons {
    flex-direction: row;
    width: auto;
  }
}


/* ============================================================
   CTA BUTTON (Generic)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--duration-fast) ease,
              box-shadow var(--duration-normal) ease,
              background-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

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

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

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

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
}

/* Pulsing glow on CTA buttons */
.btn--glow {
  position: relative;
}

.btn--glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--color-primary);
  opacity: 0;
  z-index: -1;
  animation: btn-glow-pulse 2.5s ease-in-out infinite;
  filter: blur(12px);
}

@keyframes btn-glow-pulse {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 0.25; transform: scale(1.02); }
}


/* ============================================================
   ANIMATIONS (Scroll-triggered)
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
.stagger-children > .animate-on-scroll:nth-child(7) { transition-delay: 480ms; }
.stagger-children > .animate-on-scroll:nth-child(8) { transition-delay: 560ms; }

/* Feature cards stagger in grid */
.features__grid > .feature-card:nth-child(1) { transition-delay: 0ms; }
.features__grid > .feature-card:nth-child(2) { transition-delay: 100ms; }
.features__grid > .feature-card:nth-child(3) { transition-delay: 200ms; }
.features__grid > .feature-card:nth-child(4) { transition-delay: 300ms; }
.features__grid > .feature-card:nth-child(5) { transition-delay: 400ms; }
.features__grid > .feature-card:nth-child(6) { transition-delay: 500ms; }


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll,
  .fade-in,
  .slide-left,
  .slide-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }

  .trust-bar__track {
    animation: none;
  }

  .mock-progress-bar__fill {
    width: 92%;
    animation: none;
  }

  .mock-risk-meter__fill {
    stroke-dashoffset: 47;
    animation: none;
  }

  .hero__badge-dot {
    animation: none;
  }

  .btn--glow::before {
    animation: none;
    opacity: 0;
  }

  .mock-progress-step--active .mock-progress-step__icon {
    animation: none;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .trust-bar,
  .iphone-frame,
  .hero__mockup,
  .step__mockup,
  .screenshots,
  .final-cta__mockup,
  .mock-tab-bar,
  .mock-status-bar,
  .btn--glow::before,
  .store-buttons,
  .nav__hamburger {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding-block: 30px;
    page-break-inside: avoid;
  }

  .final-cta {
    background: #F3F4F6 !important;
    color: #000 !important;
  }

  .final-cta__title,
  .final-cta__text {
    color: #000 !important;
  }

  .footer {
    background: #F3F4F6 !important;
  }

  .footer__logo,
  .footer__link,
  .footer__copyright,
  .footer__col-title {
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
  }

  .pricing-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .faq__item {
    border: 1px solid #ccc !important;
  }

  .faq__answer {
    max-height: none !important;
    overflow: visible !important;
  }
}


/* ============================================================
   MISC UTILITIES
   ============================================================ */

.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;
}

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Focus visible styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover lift */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Decorative dot grid pattern */
.dot-pattern {
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
}
