/**
 * TopLine product pages — shared layout system (scoped).
 * Use wrapper class .tl-product on HTML widget roots in Elementor.
 * Aligns with existing reference pages: #0C2333, #5AA9AC, #D52330, Plus Jakarta / Inter.
 */

:root {
  --tl-ink: #0c2333;
  --tl-ink-muted: #525252;
  --tl-body: #404040;
  --tl-caption: #737373;
  --tl-surface: #ffffff;
  --tl-surface-soft: #f9fafb;
  --tl-surface-cta: #f5f5f5;
  --tl-line: #e5e5e5;
  --tl-accent: #5aa9ac;
  --tl-accent-soft: #e8f5f5;
  --tl-cta: #d52330;
  --tl-cta-hover: #b91c28;
  --tl-hero-start: #0c2333;
  --tl-hero-end: #1a3a52;
  --tl-radius-lg: 20px;
  --tl-radius-xl: 24px;
  --tl-shadow-card: 0 4px 24px rgba(12, 35, 51, 0.08);
  --tl-shadow-soft: 0 2px 12px rgba(12, 35, 51, 0.06);
  --tl-space-section: clamp(3.5rem, 6vw, 5.5rem);
  --tl-space-inner: clamp(1.5rem, 4vw, 2.5rem);
  --tl-max-read: 42rem;
}

.tl-product {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--tl-body);
  font-size: 17px;
  line-height: 1.65;
}

.tl-product * {
  box-sizing: border-box;
}

.tl-product a {
  color: var(--tl-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tl-product a:hover {
  color: #3d8f92;
}

.tl-product__section {
  padding: var(--tl-space-section) var(--tl-space-inner);
}

.tl-product__section--tint {
  background: linear-gradient(180deg, var(--tl-surface-soft) 0%, var(--tl-surface) 100%);
}

.tl-product__section--surface {
  background: var(--tl-surface);
}

.tl-product__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tl-accent);
  margin: 0 0 0.75rem;
}

.tl-product__h2 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--tl-ink);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.tl-product__lead {
  max-width: var(--tl-max-read);
  margin: 0 0 1.5rem;
  color: var(--tl-ink-muted);
}

.tl-product__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tl-product__card {
  background: var(--tl-surface);
  border-radius: var(--tl-radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--tl-shadow-soft);
  border: 1px solid rgba(12, 35, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tl-product__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tl-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tl-product__card-icon svg {
  stroke: var(--tl-accent);
}

.tl-product__card h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tl-ink);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.tl-product__card p {
  margin: 0;
  font-size: 15px;
  color: var(--tl-caption);
  line-height: 1.6;
}

.tl-product__callout {
  margin-top: 2.5rem;
  padding: 2rem 1.75rem;
  border-radius: var(--tl-radius-xl);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-card);
  border: 1px solid var(--tl-line);
}

.tl-product__callout h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tl-ink);
  margin: 0 0 1rem;
}

.tl-product__footnote {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tl-line);
  font-size: 14px;
  color: var(--tl-caption);
  line-height: 1.6;
}

.tl-product__footnote strong {
  color: var(--tl-ink);
}

.tl-product__insurance {
  margin-top: var(--tl-space-section);
  padding: var(--tl-space-section) var(--tl-space-inner);
  background: var(--tl-surface-soft);
  border-radius: var(--tl-radius-xl);
}

.tl-product__insurance p {
  margin: 0 0 1rem;
  max-width: 52rem;
}

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

.tl-product__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tl-product__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.tl-product__btn:hover {
  transform: translateY(-1px);
}

.tl-product__btn--primary {
  background: var(--tl-cta);
  color: #fff !important;
  border: 2px solid var(--tl-cta);
}

.tl-product__btn--primary:hover {
  background: var(--tl-cta-hover);
  border-color: var(--tl-cta-hover);
  color: #fff !important;
}

.tl-product__btn--ghost {
  background: transparent;
  color: var(--tl-ink) !important;
  border: 2px solid var(--tl-line);
}

.tl-product__btn--ghost:hover {
  border-color: var(--tl-ink);
  color: var(--tl-ink) !important;
}

.tl-product__btn--on-dark {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.tl-product__btn--on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tl-product__legal {
  margin-top: 2.5rem;
  font-size: 13px;
  color: var(--tl-caption);
  line-height: 1.55;
}

.tl-product__divider {
  height: 48px;
  margin: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(90, 169, 172, 0.12), transparent 70%);
  border: 0;
}

@media (max-width: 767px) {
  .tl-product__btn-row .tl-product__btn {
    width: 100%;
  }
}
