/* Extracted page styles from pricing.php */

/* =========================================================
   PRICING PAGE - PHP DATA + TSX STYLE + SERVICES HERO
========================================================= */

.kt-price-page {
  --price-cyan: #06b6d4;
  --price-cyan-dark: #0891b2;
  --price-blue: #0e3f6c;
  --price-blue-2: #123f68;
  --price-text: var(--text, #0f172a);
  --price-muted: var(--text-muted, #64748b);
  --price-bg: var(--bg, #ffffff);
  --price-bg-2: var(--bg-2, rgba(241, 245, 249, 0.45));
  --price-card: var(--card-bg, #ffffff);
  --price-border: var(--border, rgba(148, 163, 184, 0.28));

  min-height: 100vh;
  padding-top: var(--nav-h, 80px);
  background: var(--price-bg);
  color: var(--price-text);
  overflow: hidden;
}

[data-theme="dark"] .kt-price-page {
  --price-text: #f8fafc;
  --price-muted: rgba(226, 232, 240, 0.78);
  --price-bg: #0e3f6c;
  --price-bg-2: #123f68;
  --price-card: rgba(255, 255, 255, 0.08);
  --price-border: rgba(255, 255, 255, 0.16);

  background:
    radial-gradient(circle at 12% 10%, rgba(6, 182, 212, 0.18), transparent 32%),
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.08), transparent 26%),
    #0e3f6c;
}

.kt-price-page * {
  box-sizing: border-box;
}

.kt-price-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Animated cyan separator */
.kt-price-line {
  position: relative;
  height: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.36), transparent);
}

.kt-price-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #06b6d4, #67e8f9, transparent);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.9);
  animation: ktPriceLineMove 3.8s linear infinite;
}

@keyframes ktPriceLineMove {
  0% { left: -35%; }
  100% { left: 100%; }
}

/* Shared */
.kt-price-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--price-cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kt-price-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--price-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.kt-price-section-title {
  margin: 0 0 14px;
  color: var(--price-text);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.kt-price-section-title span {
  color: var(--price-cyan);
}

.kt-price-section-lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--price-muted);
  line-height: 1.75;
  font-size: 1rem;
}

/* Buttons */
.kt-price-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
}

.kt-price-btn.primary {
  background: var(--price-cyan-dark);
  color: #fff !important;
  border: 1px solid var(--price-cyan-dark);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.18);
}

.kt-price-btn.primary:hover {
  transform: translateY(-2px);
  background: var(--price-cyan);
  border-color: var(--price-cyan);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.22);
}

.kt-price-btn.ghost {
  background: transparent;
  color: var(--price-text) !important;
  border: 1px solid var(--price-border);
}

.kt-price-btn.ghost:hover {
  transform: translateY(-2px);
  color: var(--price-cyan) !important;
  border-color: rgba(6, 182, 212, 0.55);
}

/* Hero - same style as Services page */
.kt-price-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 9vw, 132px) 0 clamp(78px, 8vw, 112px);
  text-align: left;
  border-bottom: 1px solid var(--price-border);
  background: var(--price-bg);
}

.kt-price-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kt-price-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.20;
  display: block;
}

.kt-price-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--price-bg) 0%,
    rgba(255, 255, 255, 0.92) 54%,
    rgba(255, 255, 255, 0.38) 100%
  );
}

[data-theme="dark"] .kt-price-hero-bg img {
  opacity: 0.32;
}

[data-theme="dark"] .kt-price-hero-bg::after {
  background: linear-gradient(
    90deg,
    #0e3f6c 0%,
    rgba(14, 63, 108, 0.92) 54%,
    rgba(14, 63, 108, 0.52) 100%
  );
}

.kt-price-hero .kt-price-container {
  position: relative;
  z-index: 1;
}

.kt-price-hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.kt-price-hero h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--price-text);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.kt-price-hero h1 span {
  color: var(--price-cyan);
}

.kt-price-hero p {
  max-width: 780px;
  margin: 0 0 34px;
  color: var(--price-muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.kt-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 34px;
}

.kt-price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.kt-price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--price-text);
  background: rgba(6, 182, 212, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.kt-price-pill:hover {
  background: rgba(6, 182, 212, 0.14);
  color: var(--price-cyan);
  transform: translateY(-2px);
}

[data-theme="dark"] .kt-price-pill {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

/* Packages */
.kt-packages-section {
  padding: clamp(76px, 9vw, 112px) 0;
  background: var(--price-bg);
}

.kt-packages-head {
  max-width: 740px;
  margin: 0 auto 58px;
  text-align: center;
}

.kt-packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.kt-pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border-radius: 22px;
  background: var(--price-card);
  border: 1px solid var(--price-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.kt-pkg-card:hover,
.kt-pkg-card.is-selected {
  transform: translateY(-7px);
  border-color: rgba(6, 182, 212, 0.62);
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.12);
}

.kt-pkg-card.featured {
  border-color: rgba(6, 182, 212, 0.62);
  box-shadow: 0 0 34px rgba(6, 182, 212, 0.16);
}

.kt-pkg-card.featured::before {
  content: "★ MOST POPULAR";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--price-cyan-dark);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.22);
}

.kt-pkg-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: var(--price-cyan);
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.20);
  font-size: 0.74rem;
  font-weight: 900;
}

.kt-pkg-tier {
  margin: 0 0 10px;
  color: var(--price-text);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 950;
}

.kt-pkg-short {
  min-height: 48px;
  margin: 0 0 22px;
  color: var(--price-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.kt-pkg-price {
  margin: 0 0 24px;
  color: var(--price-text);
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.kt-pkg-price .unit {
  color: var(--price-muted);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0;
}

.kt-pkg-features {
  display: grid;
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.kt-pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--price-text);
  font-size: 0.9rem;
  line-height: 1.48;
  font-weight: 750;
}

.kt-pkg-features li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.10);
  color: var(--price-cyan);
  font-size: 0.7rem;
  font-weight: 950;
  margin-top: 1px;
}

.kt-pkg-best {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--price-bg-2);
  color: var(--price-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid var(--price-border);
}

.kt-pkg-cta {
  width: 100%;
  margin-top: 16px;
}

/* Comparison */
.kt-comparison-section {
  padding: clamp(76px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(6, 182, 212, 0.08), transparent 30%),
    var(--price-bg-2);
}

.kt-table-wrap {
  overflow-x: auto;
  margin-top: 42px;
  border-radius: 20px;
  border: 1px solid var(--price-border);
  background: var(--price-card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.kt-price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.kt-price-table th,
.kt-price-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--price-border);
}

.kt-price-table th {
  color: var(--price-text);
  background: rgba(6, 182, 212, 0.08);
  font-size: 0.86rem;
  font-weight: 950;
}

.kt-price-table td {
  color: var(--price-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.kt-price-table td:first-child {
  color: var(--price-text);
  font-weight: 950;
}

.kt-price-table tr:last-child td {
  border-bottom: 0;
}

.kt-price-table tr {
  transition: background 0.25s ease;
}

.kt-price-table tr:hover td {
  background: rgba(6, 182, 212, 0.06);
}

/* FAQ accordion */
.kt-faq-section {
  padding: clamp(76px, 9vw, 112px) 0;
  background: var(--price-bg);
}

.kt-faq-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.kt-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.kt-faq-item {
  border-radius: 18px;
  border: 1px solid var(--price-border);
  background: var(--price-card);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.kt-faq-question {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--price-text);
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 950;
}

.kt-faq-question span {
  flex: 1;
}

.kt-faq-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--price-cyan);
  background: rgba(6, 182, 212, 0.10);
  transition: transform 0.25s ease;
}

.kt-faq-item.is-open .kt-faq-icon {
  transform: rotate(45deg);
}

.kt-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.kt-faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--price-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* CTA */
.kt-price-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 112px) 0;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.24), transparent 28%),
    #0e3f6c;
}

.kt-price-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.kt-price-cta .kt-price-container {
  position: relative;
  z-index: 1;
}

.kt-price-cta h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.kt-price-cta h2 span {
  color: var(--price-cyan);
}

.kt-price-cta p {
  max-width: 660px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.kt-price-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.kt-price-cta .kt-price-btn.ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.24);
}

.kt-price-cta .kt-price-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff !important;
}

/* Reveal */
.kt-price-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.kt-price-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .kt-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kt-pkg-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .kt-price-page {
    padding-top: var(--nav-h, 72px);
  }

  .kt-price-container {
    width: min(100% - 28px, 1180px);
  }

  .kt-price-hero {
    padding: 64px 0 70px;
  }

  .kt-price-hero-bg::after {
    background: linear-gradient(
      90deg,
      var(--price-bg) 0%,
      rgba(255, 255, 255, 0.96) 72%,
      rgba(255, 255, 255, 0.75) 100%
    );
  }

  [data-theme="dark"] .kt-price-hero-bg::after {
    background: linear-gradient(
      90deg,
      #0e3f6c 0%,
      rgba(14, 63, 108, 0.94) 72%,
      rgba(14, 63, 108, 0.78) 100%
    );
  }

  .kt-price-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .kt-price-actions,
  .kt-price-cta-actions {
    flex-direction: column;
  }

  .kt-price-btn {
    width: 100%;
  }

  .kt-packages-section,
  .kt-comparison-section,
  .kt-faq-section {
    padding: 58px 0;
  }

  .kt-packages-grid {
    grid-template-columns: 1fr;
  }

  .kt-pkg-card {
    padding: 26px;
  }

  .kt-pkg-card.featured::before {
    left: 26px;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kt-price-line::before,
  .kt-price-reveal,
  .kt-pkg-card,
  .kt-faq-answer,
  .kt-faq-icon {
    animation: none !important;
    transition: none !important;
  }

  .kt-price-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
