/* ==========================================================================
   Cenematic home-c — pricing table, ported from home-b (styles/pricing.css)

   Copied verbatim below the compatibility block. home-b defines these tokens
   and .container in base.css, which home-c does not load.
   ========================================================================== */

.pricing {
  --color-primary: #ff8a00; /* home-c warm accent instead of home-b blue */
  --color-text: #1a1a1a;
  --color-white: #fff;
  --pricing-bg: #f6fbff;
}

.pricing .container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.pricing {
  padding: 80px 0 96px;
  background:
    radial-gradient(42% 48% at 12% 4%, rgba(59, 130, 246, 0.10), transparent 72%),
    radial-gradient(38% 45% at 88% 12%, rgba(20, 184, 166, 0.11), transparent 72%),
    radial-gradient(42% 48% at 86% 100%, rgba(14, 165, 233, 0.06), transparent 72%),
    var(--pricing-bg);
  color: var(--color-text);
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* Header */
.pricing__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-inline-size: 800px;
}

.pricing__heading {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.pricing__subtitle {
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.25rem);
  line-height: 1.2;
  color: var(--color-white);
  opacity: 0.6;
}

/* Cards grid */
.pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
}

/* Card */
.pricing__card {
  background: var(--color-white);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.pricing__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 1;
}

/* Card image */
.pricing__card-image {
  padding: 48px 48px 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.pricing__card-image img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* Card body */
.pricing__card-body {
  padding: 32px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing__card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing__card-title {
  font-size: clamp(1.5rem, 1rem + 1.65vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

.pricing__card-license {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.6;
}

/* Price */
.pricing__card-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing__price-current {
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.pricing__price-original {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--color-text);
  opacity: 0.4;
  text-decoration: line-through;
}

.pricing__price-frequency {
  font-size: 1.125rem;
  color: var(--color-text);
  opacity: 0.5;
  width: 100%;
}

/* Divider */
.pricing__card-divider {
  height: 1px;
  background: rgba(26, 26, 26, 0.08);
  margin: 32px 48px 0;
}

/* Benefits */
.pricing__card-benefits {
  padding: 32px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pricing__benefits-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.pricing__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing__benefits-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-text);
}

.pricing__benefits-list li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Footer */
.pricing__card-footer {
  padding: 32px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.pricing__footer-label {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.6;
  text-align: center;
}

/* Scaled-down version of the gold .cta-button so all CTAs read as one action */
.pricing__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(90deg, #ffd54d, #f5b820);
  color: #141414;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 0 #d99a16;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pricing__cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 #d99a16;
}

.pricing__cta-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d99a16;
}

.pricing__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #141414;
  color: #fff;
}

/* Essential plan: dark version of the same button; gold stays on the
   featured PRO plan */
.pricing__card:not(.pricing__card--featured) .pricing__cta-button {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 6px 0 #000;
}

.pricing__card:not(.pricing__card--featured) .pricing__cta-button:hover {
  box-shadow: 0 7px 0 #000;
}

.pricing__card:not(.pricing__card--featured) .pricing__cta-button:active {
  box-shadow: 0 2px 0 #000;
}

.pricing__card:not(.pricing__card--featured) .pricing__cta-arrow {
  background: linear-gradient(90deg, #ffd54d, #f5b820);
  color: #141414;
}

.pricing__footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing__footer-badges img {
  height: 36px;
  width: auto;
}

.pricing__guarantee-badge {
  height: 48px !important;
}

/* Home-c pricing redesign: Essential stays calm; Professional gets the visual weight. */
.pricing__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 26px;
}

.pricing__card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(20, 184, 166, 0.16)) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow:
    0 28px 80px -48px rgba(26, 26, 26, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
  isolation: isolate;
}

.pricing__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.62), rgba(20, 184, 166, 0.58));
  opacity: 0.55;
  z-index: -1;
}

.pricing__card:not(.pricing__card--featured)::before {
  content: none;
}

.pricing__card:not(.pricing__card--featured) {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(147, 197, 253, 0.45);
  overflow: hidden;
}

.pricing__card--featured {
  transform: translateY(-22px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%) padding-box,
    linear-gradient(135deg, #2563eb, #0ea5e9 48%, #14b8a6 100%) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 42px 110px -52px rgba(37, 99, 235, 0.36),
    0 28px 78px -54px rgba(20, 184, 166, 0.30),
    0 20px 52px -42px rgba(26, 26, 26, 0.72),
    0 0 0 8px rgba(20, 184, 166, 0.06);
  z-index: 2;
}

.pricing__card--featured::before {
  height: 12px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #14b8a6);
  opacity: 1;
}

.pricing__card--featured::after {
  content: "";
  position: absolute;
  inset: -26px -24px auto;
  height: 220px;
  border-radius: 32px;
  background:
    radial-gradient(45% 70% at 24% 10%, rgba(37, 99, 235, 0.22), transparent 72%),
    radial-gradient(45% 70% at 78% 18%, rgba(20, 184, 166, 0.20), transparent 72%),
    radial-gradient(32% 58% at 58% 8%, rgba(14, 165, 233, 0.12), transparent 72%);
  filter: blur(24px);
  z-index: -2;
  pointer-events: none;
}

.pricing__badge {
  top: -24px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(100deg, #2563eb, #0ea5e9, #14b8a6);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.56);
  z-index: 3;
}

.pricing__card-image {
  background:
    radial-gradient(60% 70% at 50% 22%, rgba(59, 130, 246, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(255, 255, 255, 0));
}

.pricing__card--featured .pricing__card-image {
  padding-top: 56px;
  background:
    radial-gradient(62% 72% at 52% 18%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(44% 52% at 88% 36%, rgba(20, 184, 166, 0.15), transparent 72%),
    linear-gradient(180deg, rgba(14, 165, 233, 0.06), rgba(255, 255, 255, 0));
}

.pricing__card--featured .pricing__card-image img {
  height: 286px;
  transform: scale(1.04);
  transform-origin: center bottom;
}

.pricing__card-title {
  font-weight: 800;
}

.pricing__card--featured .pricing__card-title {
  font-size: clamp(1.7rem, 1rem + 1.35vw, 2.15rem);
  background: linear-gradient(105deg, #141414, #2563eb 46%, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing__price-current {
  font-weight: 900;
}

.pricing__card--featured .pricing__price-current {
  font-size: clamp(3rem, 2.2rem + 4vw, 5rem);
  background: linear-gradient(105deg, #fe7f00, #fe7300 58%, #ca9a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing__card--featured .pricing__benefits-list li strong {
  color: #fe7300;
}

.pricing__card--featured .pricing__benefits-list li:has(strong) img {
  display: none;
}

.pricing__card--featured .pricing__benefits-list li:has(strong)::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23fe7300' stroke-width='1.5'/%3E%3Cpath d='M8.5 12.5L10.5 14.5L15.5 9.5' stroke='%23fe7300' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pricing__card:not(.pricing__card--featured) .pricing__cta-button {
  background: #252525;
}

@media (max-width: 768px) {
  .pricing__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing__card {
    min-width: 0;
  }

  /* Featured-card glow bleeds -24px sideways; near full-width on mobile that
     overhangs the viewport and causes horizontal scroll. Drop the side bleed. */
  .pricing__card--featured::after {
    inset: -26px 0 auto;
  }

  .pricing__card-image,
  .pricing__card-body,
  .pricing__card-benefits,
  .pricing__card-footer {
    padding-inline: 24px;
  }

  .pricing__card-title {
    white-space: normal;
  }

  .pricing__card-image {
    padding-top: 24px;
  }

  .pricing__card-footer {
    padding-bottom: 24px;
  }

  .pricing__card-divider {
    margin-inline: 24px;
  }
}
