/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE STYLES (Shared across all personal insurance pages)
   ═══════════════════════════════════════════════════════════════ */

/* ── Product Hero ── */
.product-hero {
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

.product-hero--blue {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--color-2a) 100%);
}

.product-hero--dark {
  background: rgb(18, 18, 18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-hero--dark h1 {
  color: #ffffff;
}

.product-hero--dark p {
  color: rgb(148, 163, 184);
}

.product-hero--dark .product-hero__icon {
  color: #ffffff;
}

/* ── White navbar for dark-hero pages ── */
.page--dark-hero .navbar {
  background: #ffffff;
  border-bottom-color: var(--border-light);
}

.page--dark-hero .navbar.scrolled {
  background: #ffffff;
}

.product-hero--pink {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--color-2a) 100%);
}

.product-hero--cyan {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--color-4a) 100%);
}

.product-hero--orange {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--color-5a) 100%);
}

.product-hero__content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.product-hero__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.product-hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.product-hero h1 .highlight {
  color: var(--brand-accent);
}

.product-hero p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.product-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.product-hero__decoration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.product-hero__blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(60px);
  opacity: 0.4;
  animation: blob-morph 12s ease-in-out infinite;
}

/* ── Product Hero Two-Column Layout ── */
.product-hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.product-hero__image {
  flex: 0 0 auto;
  width: clamp(260px, 40%, 460px);
  position: relative;
  z-index: 2;
}

.product-hero__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
  display: block;
}

.product-hero--dark .product-hero__image::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 0;
}

@media (max-width: 1024px) {
  .product-hero__decoration { display: none; }
  .product-hero__image { display: none; }
  .product-hero { padding-bottom: var(--space-8); }
  .product-hero .container { display: block; }
}

@media (max-width: 480px) {
  .product-hero__actions { flex-direction: column; }
  .product-hero__actions .btn { width: 100%; }
}


/* ── Animated Stats Row ── */
.product-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  padding-block: var(--space-10);
  flex-wrap: wrap;
}

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

.product-stat__number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--brand-accent);
  line-height: 1;
}

.product-stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

@media (max-width: 480px) {
  .product-stats {
    gap: var(--space-6);
  }
  .product-stat__number {
    font-size: var(--text-3xl);
  }
}


/* ── Coverage Comparison Table ── */
.coverage-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--surface);
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 700px;
}

.coverage-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.coverage-table th {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  border-bottom: 2px solid var(--border-light);
  background: var(--bg-secondary);
}

.coverage-table th:first-child {
  text-align: left;
  padding-left: var(--space-6);
}

.coverage-table th.plan-highlight {
  background: var(--color-2a);
  color: var(--brand-accent);
  position: relative;
  padding-top: calc(var(--space-5) + 20px);
}

.coverage-table th.plan-highlight::before {
  content: 'Most Popular';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-accent);
  color: white;
  font-size: var(--text-xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.coverage-table td {
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.coverage-table td:first-child {
  text-align: left;
  padding-left: var(--space-6);
  font-weight: var(--weight-medium);
}

.coverage-table tr:last-child td {
  border-bottom: none;
}

.coverage-table tr:hover td {
  background: var(--bg-secondary);
}

.coverage-table .row-header {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.coverage-table .row-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
  display: block;
  margin-top: 2px;
}

.coverage-table .check {
  color: #22c55e;
  font-weight: bold;
  font-size: 18px;
}

.coverage-table .cross {
  color: var(--text-muted);
  font-size: 18px;
}

.coverage-table .plan-col-highlight {
  background: rgba(79, 81, 255, 0.03);
}

/* Who-is-it-for row */
.coverage-table .who-row td {
  padding: var(--space-5) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  vertical-align: top;
  border-bottom: 2px solid var(--border-light);
}


/* ── Product Features Grid ── */
.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.product-feature:hover {
  border-color: var(--color-2a);
  box-shadow: var(--shadow-md);
}

.product-feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  font-size: 20px;
  flex-shrink: 0;
}

.product-feature h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}

.product-feature p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .product-features {
    grid-template-columns: 1fr;
  }
}


/* ── Rider Types / Segment Cards ── */
.segment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.segment-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  transition: all var(--duration-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

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

.segment-card__image {
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.segment-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-2a);
  color: var(--brand-accent);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

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

.segment-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.segment-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.segment-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex: 1;
}

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

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


/* ── Trust Points ── */
.trust-points {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Trust Card (compact card variant used in motorbike/etc) ── */
.trust-card {
  flex: 1 1 220px;
  max-width: 340px;
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-2a);
  color: var(--brand-accent);
  flex-shrink: 0;
}

.trust-card__icon svg {
  width: 20px;
  height: 20px;
}

.trust-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: 0;
  color: var(--text-primary);
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.trust-point {
  text-align: center;
  max-width: 240px;
}

.trust-point__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  font-size: 24px;
  margin: 0 auto var(--space-3);
}

.trust-point h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}

.trust-point p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-inline: auto;
}


/* ── How It Works (Product Variant) ── */
.product-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

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

.product-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-accent), var(--color-1c));
  color: var(--text-inverse);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
}

.product-step h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.product-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-inline: auto;
  max-width: 220px;
}


/* ── Form Section ── */
.product-form-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 600px;
  margin-inline: auto;
}

.product-form-section h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  text-align: center;
}

.product-form-section > p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .product-form-section {
    padding: var(--space-6);
  }
}


/* ── App Download Banner ── */
.app-banner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  background: linear-gradient(135deg, var(--color-1e), var(--color-1));
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
}

.app-banner__content {
  flex: 1;
  z-index: 1;
}

.app-banner h3 {
  font-size: var(--text-2xl);
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
}

.app-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.app-banner__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.app-banner__features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.app-banner__features li::before {
  content: '✓';
  color: var(--color-4c);
  font-weight: bold;
}

.app-banner__buttons {
  display: flex;
  gap: var(--space-3);
}

.app-banner__phone {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 380px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .app-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-8) var(--space-6);
  }
  .app-banner__features { align-items: center; }
  .app-banner__buttons { justify-content: center; }
  .app-banner__phone { display: none; }
}


/* ── Support Numbers Grid ── */
.support-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.support-number {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  transition: all var(--duration-fast);
}

.support-number:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}

.support-number__logo {
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  min-width: 80px;
}

.support-number__phone {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--brand-accent);
}


/* ── Testimonials in Grid Context (product pages) ── */
.grid .card-testimonial {
  min-width: 0;
  max-width: none;
  width: 100%;
}

/* ── Product Page Mobile & Tablet Refinements ── */
@media (max-width: 1024px) {
  .product-stats {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-10);
  }

  .product-stats {
    gap: var(--space-6);
  }

  .trust-points {
    gap: var(--space-6);
  }

  .trust-point {
    max-width: 100%;
  }

  .app-banner__buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-form-section {
    margin-inline: 0;
  }
}

@media (max-width: 480px) {
  .product-hero h1 {
    font-size: var(--text-3xl);
  }

  .product-hero p {
    font-size: var(--text-base);
  }

  .product-hero__actions {
    flex-direction: column;
  }

  .product-hero__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .product-form-section {
    padding: var(--space-5);
  }

  .product-stat__number {
    font-size: var(--text-2xl);
  }

  .app-banner__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .app-banner__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .coverage-table-wrapper {
    margin-inline: calc(-1 * var(--space-3));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-accent), var(--color-1c), var(--brand-primary));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::before {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  top: -80px;
  left: -60px;
}

.cta-banner::after {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  bottom: -60px;
  right: -40px;
}

.cta-banner h2 {
  font-size: var(--text-4xl);
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.cta-banner .btn,
.cta-banner .flex {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
  }
  .cta-banner h2 { font-size: var(--text-3xl); }
  .cta-banner p  { font-size: var(--text-base); }
}

@media (max-width: 480px) {
  .cta-banner {
    padding: var(--space-8) var(--space-4);
  }
  .cta-banner h2 { font-size: var(--text-2xl); }
}
