/* app/static/styles.css */
.table td { vertical-align: middle; }

/* === Simple fade-in animation === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers */
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .25s; }
.delay-3 { transition-delay: .40s; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* === TitleSafe homepage styles === */
.ts-hero {
  padding: 4rem 0 2.5rem;
}

.ts-pricing {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .75rem;
}

.ts-pricing-plan {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: .75rem;
}

/* =========================================================
   MOBILE LAYOUT FOR TITLSAFE
   order: 992px → 576px → 480px → extras
   ========================================================= */

/* 1) Up to 992px (tablets / most phones sideways) */
@media (max-width: 991.98px) {
  .ts-hero {
    padding: 2.5rem 1rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .ts-hero h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: .75rem;
  }

  .ts-hero p.lead {
    font-size: 1.05rem;
    margin-top: .5rem;
  }

  /* stack the CTA buttons nicely */
  .ts-hero .d-flex {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .ts-hero .btn {
    width: 85%;
    max-width: 340px;
  }

  /* cards/pricing centered and narrower */
  .ts-card,
  .ts-pricing,
  .ts-pricing-plan {
    width: 95%;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  }

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

  /* make feature columns stack with space */
  .col-md-4 {
    margin-bottom: 1.5rem;
  }

  /* navbar more tappable */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }

  .navbar-nav .nav-link {
    padding: .75rem 1rem;
    font-size: 1.05rem;
  }

  /* buttons feel tappable */
  .btn {
    border-radius: .75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: all .2s ease-in-out;
  }
  .btn:active {
    transform: scale(.97);
  }
}

/* 2) Up to 576px (typical iPhone size) */
@media (max-width: 575.98px) {
  .ts-hero h1 {
    font-size: 1.65rem;
  }

  p.lead {
    font-size: 1rem;
  }

  .btn.btn-lg {
    font-size: 1.05rem;
    padding: .85rem 1rem;
  }

  img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 0;
  }
}

/* 3) Extra small / make it “native” (≤ 480px) */
@media (max-width: 480px) {
  .ts-hero {
    padding-top: 3rem;
  }

  .ts-hero h1 {
    font-size: 1.55rem;
  }

  .ts-card {
    padding: 1.4rem 1.1rem;
    border-radius: 1.25rem;
  }

  .btn-lg {
    width: 100%;
  }

  /* optional sticky bottom CTA if you add .sticky-cta on the button */
  .sticky-cta {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 999;
  }
}

/* 4) shimmer effect (global, but hero is already isolation: isolate above) */
@keyframes shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.ts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.3) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 5s infinite;
  pointer-events: none;
  z-index: 1;
  opacity: .4;
}
/* === super-mobile tuning (phones) === */
@media (max-width: 575.98px) {
  /* make the hero text actually big */
  .ts-hero {
    padding: 3rem 1.25rem 2rem;
  }

  .ts-hero h1,
  .ts-hero .display-5 {
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
  }

  .ts-hero .lead {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }

  /* stack CTAs full width */
  .ts-hero .d-flex,
  .ts-hero .d-flex.flex-wrap {
    flex-direction: column;
    gap: .6rem;
  }
  .ts-hero .btn {
    width: 100%;
    font-size: 1.05rem;
    padding: .9rem 1rem;
  }

  /* pricing card full width */
  .ts-card,
  .ts-pricing,
  .ts-pricing-plan {
    width: 100%;
    margin: 0 0 1.1rem 0;
    border-radius: 1.1rem;
    padding: 1.25rem 1rem;
  }

  /* stack the 3 bottom feature blocks */
  .row.g-5.mt-4 .col-md-4,
  .row.mt-4 .col-md-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 1.5rem;
  }

  /* center the alert image */
  img.img-fluid {
    max-width: 240px;
    margin: 1rem auto 0;
  }

  /* final CTA big */
  .btn.btn-primary.btn-lg {
    width: 100%;
  }
}

/* 4) shimmer effect (global) */
@keyframes shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.ts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.3) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 5s infinite;
  pointer-events: none;
  z-index: 1;
  opacity: .4;
}
