/* ==========================================================================
   Tax Velocity — Product page styles
   APPEND this to your existing css/styles.css.
   These rules are pure CSS — they do NOT depend on Tailwind arbitrary values
   being present in your compiled tailwind.css, so they render reliably.
   ========================================================================== */

/* ===== Tokens (mirror what's already in your styles.css) ===== */
.tv-h-dark {
  color: #024188;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

/* ==========================================================================
   1. HERO FLOW DIAGRAM   (Upload → Advanced OCR → Delivers tax-ready files)
   ========================================================================== */
.tv-flow {
  max-width: 1070px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin: 70px auto;
}

@media (max-width: 900px) {
  .tv-flow {
    /* grid-template-columns: 1fr; */
    flex-direction: column;
    gap: 24px;
    max-width: 360px;
  }
}

/* --- Side cards (left dashed / right blue) ---------- */
.tv-flow__card {
  background: #fff;
  border-radius: 4px;
  padding: 20px 18px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.tv-flow__card--dashed {
  border: 2px dashed #cbd5e1;
}
.tv-flow__card--blue {
  border: 2px solid #0078c8;
}
.tv-flow__card--dashed:hover,
.tv-flow__card--blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(2, 65, 136, 0.18);
}
.tv-flow__card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0a1628;
  margin: 0 0 14px;
}

.tv-flow__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tv-flow__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.tv-flow__item:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 16px -8px rgba(2, 65, 136, 0.18);
}
.tv-flow__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}
.tv-flow__item-label {
  font-size: 13px;
  color: #0a1628;
  font-weight: 500;
}

/* --- Middle card (Advanced OCR) ---------- */
.tv-flow__card--center {
  width: 220px;
  height: 280px;
  background: #fff;
  border-radius: 4px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 24px 50px -18px rgba(2, 65, 136, 0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  justify-self: center;
  border: 2px dashed #cbd5e1;
}
.tv-flow__card--center:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 60px -16px rgba(0, 120, 200, 0.28);
}
@media (max-width: 900px) {
  .tv-flow__card--center {
    justify-self: stretch;
    width: 100%;
  }
}

.tv-flow__center-icons {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
}
.tv-flow__center-icon {
  width: 80px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tv-flow__center-icon--pink {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 6px 14px -4px rgba(236, 72, 153, 0.45);
}
.tv-flow__center-icon--blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 6px 14px -4px rgba(59, 130, 246, 0.4);
}
/* Yellow accent dot above the pink emoji */
.tv-flow__center-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tv-flow__center-title {
  font-size: 15px;
  font-weight: 700;
  color: #0a1628;
  margin: 0;
}
.tv-flow__center-sub {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
}

/* --- Dashed connectors (4 horizontal lines, evenly spaced) ---------- */
.tv-flow__connector {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 28px 0;
  width: 17%;
  min-height: 280px;
}
.tv-flow__connector span {
  display: block;
  height: 0;
  border-top: 2px dashed #cbd5e1;
}
@media (max-width: 900px) {
  .tv-flow__connector {
    display: none;
  }
}

/* ==========================================================================
   2. CORE MODULE SECTIONS  (6 alternating text/image blocks)
   ========================================================================== */
.tv-modules {
  padding: 64px 0 24px;
  background: #fff;
}
@media (min-width: 768px) {
  .tv-modules {
    padding: 80px 0 100px;
  }
}

.tv-module {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 40px;
  align-items: start;
  /* padding: 56px 0; */
  /* border-bottom: 1px solid #e2e8f0; */
}

.tv-module .tv-module__text,
.tv-module_img_media {
  padding: 40px 0;
}

@media (min-width: 991px) {
  .tv-module .tv-module__text,
  .tv-module_img_media {
    padding: 80px 0;
  }
}

.tv-module:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .tv-module {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
  }
}

/* Reverse (image left / text right) */
.tv-module--reverse .tv-module__media {
  order: 1;
}
.tv-module--reverse .tv-module__divider {
  order: 2;
}
.tv-module--reverse .tv-module__text {
  order: 3;
}

/* ---- Text column ---- */
.tv-module__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: #0078c8;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
}
.tv-module__title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #0a1628;
  margin: 0 0 16px;
}

.tv-module__desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px;
  /* max-width: 480px; */
}

/* Bullet list with circle-check icons */
.tv-module__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tv-module__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  transition: transform 0.2s ease;
}
.tv-module__list li:hover {
  transform: translateX(3px);
}

/* The check icon — outlined circle with check inside */
.tv-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  position: relative;
  display: inline-block;
}
.tv-check::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #0078c8;
}
.tv-check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid #0078c8;
  border-bottom: 1.5px solid #0078c8;
  transform: rotate(45deg);
}

/* ---- Divider between columns ---- */
.tv-module__divider {
  background: #024188;
  width: 1px;
  align-self: stretch;
  min-height: 100%;
}
@media (max-width: 900px) {
  .tv-module__divider {
    display: none;
  }
}

/* ---- Media column ---- */

.tv-module__media {
  position: relative;
  max-width: 480px;
}
.tv-module__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.5s ease;
}
.tv-module:hover .tv-module__media img {
  transform: scale(1.012);
}

/* Floating badge top-right of image */
.tv-module__badge {
  position: absolute;
  top: -26px;
  right: -86px;
  background: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 2px 6px 20px 1px rgba(2, 65, 136, 0.28);
  max-width: 300px;
  animation: tvBadgeBob 4.5s ease-in-out infinite;
}

@media (max-width: 900px) {
  .tv-module__badge {
    right: -10px;
    gap: 6px;
  }
}

@keyframes tvBadgeBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.tv-module__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eff6ff;
  color: #0078c8;
  flex-shrink: 0;
}
.tv-module__badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.tv-module__badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #0a1628;
}
.tv-module__badge-meta {
  font-size: 11px;
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

/* ==========================================================================
   3. "MORE INSIDE EVERY PLAN"  (3x3 feature card grid)
   ========================================================================== */
.tv-more {
  background: #F8F9FC;
  padding: 72px 0 84px;
}
@media (min-width: 768px) {
  .tv-more {
    padding: 96px 0 110px;
  }
}

.tv-more__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: #0078c8;
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
}
.tv-more__title {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  color: #024188;
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .tv-more__title {
    font-size: 38px;
  }
}
@media (min-width: 1024px) {
  .tv-more__title {
    font-size: 42px;
  }
}

.tv-more__desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 660px;
}

.tv-more__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .tv-more__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tv-more__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.tv-more__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tv-more__card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 120, 200, 0.35);
  box-shadow: 0 18px 40px -16px rgba(2, 65, 136, 0.22);
}

.tv-more__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
}
.tv-more__card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
}
.tv-more__card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.5s ease;
}
.tv-more__card:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .tv-module__badge,
  .tv-flow__card,
  .tv-flow__item,
  .tv-flow__card--center,
  .tv-module__media img,
  .tv-more__card,
  .tv-more__card img,
  .tv-module__list li {
    animation: none !important;
    transition: none !important;
  }
}
