/* landing_pricing.css — Pricing section for the Kivo public landing page.
 * "Digital Surgeon" dark theme. Color tokens defined in landing_hero.css / :root.
 * Compiled/served file. Edit in sync with landing_pricing.scss (documentation).
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── KEYFRAMES ──────────────────────────────────────────────────────────── */

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0, 245, 212, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(0, 245, 212, 0);   }
}

/* ── SECTION WRAPPER ────────────────────────────────────────────────────── */

.lp-pricing {
  background: var(--lp-bg, #0a0f13);
  padding: 112px 0;
}

/* ── SECTION HEADER ─────────────────────────────────────────────────────── */

.lp-eyebrow--teal {
  color: var(--lp-primary, #00F5D4);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.20);
  border-radius: 999px;
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  text-transform: uppercase;
}

/* ── PRICING GRID ───────────────────────────────────────────────────────── */

.lp-pricing__grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

/* ── PLAN CARD BASE ─────────────────────────────────────────────────────── */

.lp-plan-card {
  background: var(--lp-surface-high, #1b2026);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.lp-plan-card:hover {
  border-color: rgba(0, 245, 212, 0.20);
  box-shadow: 0 12px 48px rgba(0, 245, 212, 0.10);
  transform: translateY(-8px);
}

/* ── FEATURED CARD ──────────────────────────────────────────────────────── */

.lp-plan-card--featured {
  border: 1.5px solid var(--lp-primary, #00F5D4);
  box-shadow: 0 0 60px rgba(0, 245, 212, 0.12);
  padding-top: 56px;
}

.lp-plan-card--featured:hover {
  box-shadow: 0 0 80px rgba(0, 245, 212, 0.22);
  transform: translateY(-10px);
}

/* Top gradient beam */
.lp-plan-card--featured::before {
  border-radius: 20px 20px 0 0;
  content: "";
  height: 4px;
  background: linear-gradient(90deg, #00F5D4 0%, #38BDF8 100%);
  left: -1.5px;
  position: absolute;
  right: -1.5px;
  top: -1.5px;
}

/* ── POPULAR BADGE ──────────────────────────────────────────────────────── */

.lp-plan-badge {
  animation: badge-pulse 2.4s ease-in-out infinite;
  background: var(--lp-primary, #00F5D4);
  border-radius: 999px;
  color: #0a0f13;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 800;
  left: 50%;
  letter-spacing: 0.10em;
  padding: 5px 14px;
  position: absolute;
  text-transform: uppercase;
  top: -15px;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ── CARD NAME ──────────────────────────────────────────────────────────── */

.lp-plan-card__name {
  color: var(--lp-text-muted, #a8abb1);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.lp-plan-card--featured .lp-plan-card__name {
  color: var(--lp-primary, #00F5D4);
}

/* ── PRICE BLOCK ────────────────────────────────────────────────────────── */

.lp-plan-price {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.lp-plan-amount {
  color: var(--lp-text, #f1f4fa);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Gradient text on featured plan amount */
.lp-plan-card--featured .lp-plan-amount {
  background: linear-gradient(135deg, #00F5D4 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-plan-period {
  color: var(--lp-text-muted, #a8abb1);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.lp-plan-install {
  color: var(--lp-text-muted, #a8abb1);
  font-size: 12px;
  margin: 0 0 20px;
}

/* ── DIVIDER ────────────────────────────────────────────────────────────── */

.lp-plan-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 20px;
}

/* ── FEATURE LIST ───────────────────────────────────────────────────────── */

.lp-plan-features {
  flex: 1;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.lp-plan-features li {
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--lp-text-muted, #a8abb1);
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.5;
  padding: 9px 0;
}

.lp-plan-features li:first-child {
  border-top: none;
}

.lp-plan-check {
  color: var(--lp-primary, #00F5D4);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */

/* Ghost teal outline — Básico */
.lp-btn--plan {
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--lp-primary, #00F5D4);
  border-radius: 999px;
  color: var(--lp-primary, #00F5D4);
  cursor: pointer;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.lp-btn--plan:hover {
  background: rgba(0, 245, 212, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.18);
  transform: translateY(-2px);
}

.lp-btn--plan:focus-visible {
  outline: 3px solid var(--lp-primary, #00F5D4);
  outline-offset: 3px;
}

/* Solid teal — Pro (featured) */
.lp-btn--plan-featured {
  align-items: center;
  background: var(--lp-primary, #00F5D4);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 245, 212, 0.30);
  color: #0a0f13;
  cursor: pointer;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
  width: 100%;
}

.lp-btn--plan-featured:hover {
  box-shadow: 0 8px 36px rgba(0, 245, 212, 0.45);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.lp-btn--plan-featured:focus-visible {
  outline: 3px solid #38BDF8;
  outline-offset: 3px;
}

/* Ghost sky/tertiary — Ultra */
.lp-btn--plan-ultra {
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--lp-tertiary, #38BDF8);
  border-radius: 999px;
  color: var(--lp-tertiary, #38BDF8);
  cursor: pointer;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.lp-btn--plan-ultra:hover {
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  transform: translateY(-2px);
}

.lp-btn--plan-ultra:focus-visible {
  outline: 3px solid var(--lp-tertiary, #38BDF8);
  outline-offset: 3px;
}

/* ── NO-CC NOTE ─────────────────────────────────────────────────────────── */

.lp-plan-note {
  color: var(--lp-text-muted, #a8abb1);
  font-size: 12px;
  margin: 10px 0 0;
  text-align: center;
}

/* ── INLINE FAQ ROW ─────────────────────────────────────────────────────── */

.lp-pricing-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  padding-top: 48px;
}

.lp-faq-item dt {
  color: var(--lp-text, #f1f4fa);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.lp-faq-item dd {
  color: var(--lp-text-muted, #a8abb1);
  font-size: 14px;
  margin: 0;
}

/* ── LIGHT MODE ─────────────────────────────────────────────────────────── */

[data-theme="light"] .lp-pricing {
  background: #f0fdfa;
}

[data-theme="light"] .lp-plan-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lp-plan-card:hover {
  border-color: rgba(0, 245, 212, 0.40);
  box-shadow: 0 8px 36px rgba(0, 245, 212, 0.14);
}

[data-theme="light"] .lp-plan-card--featured {
  border-color: var(--lp-primary, #00F5D4);
  box-shadow: 0 0 48px rgba(0, 245, 212, 0.16);
}

[data-theme="light"] .lp-plan-amount {
  color: #0f172a;
}

[data-theme="light"] .lp-plan-card--featured .lp-plan-amount {
  /* gradient text — keep as-is, visible on white bg */
  background: linear-gradient(135deg, #00b89a 0%, #0080c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .lp-plan-divider {
  border-top-color: rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .lp-plan-features li {
  border-top-color: rgba(0, 0, 0, 0.07);
  color: #374151;
}

[data-theme="light"] .lp-plan-card__name {
  color: #6b7280;
}

[data-theme="light"] .lp-plan-card--featured .lp-plan-card__name {
  color: #00917a;
}

[data-theme="light"] .lp-plan-period,
[data-theme="light"] .lp-plan-install {
  color: #6b7280;
}

[data-theme="light"] .lp-plan-badge {
  /* stays teal on light — sufficient contrast against #0a0f13 text */
  background: var(--lp-primary, #00F5D4);
  color: #0a0f13;
}

[data-theme="light"] .lp-pricing-faq {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lp-faq-item dt {
  color: #0f172a;
}

[data-theme="light"] .lp-faq-item dd {
  color: #4b5563;
}

[data-theme="light"] .lp-plan-note {
  color: #6b7280;
}

[data-theme="light"] .lp-eyebrow--teal {
  background: rgba(0, 180, 150, 0.10);
  border-color: rgba(0, 180, 150, 0.25);
  color: #00806a;
}

[data-theme="light"] .lp-btn--plan {
  border-color: #00917a;
  color: #00917a;
}

[data-theme="light"] .lp-btn--plan:hover {
  background: rgba(0, 145, 122, 0.07);
}

[data-theme="light"] .lp-btn--plan-ultra {
  border-color: #0074b8;
  color: #0074b8;
}

[data-theme="light"] .lp-btn--plan-ultra:hover {
  background: rgba(0, 116, 184, 0.07);
}

/* ── RESPONSIVE: 900px — stack to single column ─────────────────────────── */

@media (max-width: 900px) {
  .lp-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .lp-pricing-faq {
    grid-template-columns: 1fr;
  }
}

/* ── RESPONSIVE: 640px — FAQ single column (already handled above);
   tighten section padding ─────────────────────────────────────────────── */

@media (max-width: 640px) {
  .lp-pricing {
    padding: 72px 0;
  }

  .lp-pricing-faq {
    grid-template-columns: 1fr;
    margin-top: 48px;
    padding-top: 36px;
  }
}

/* ── RESPONSIVE: 375px — no horizontal scroll ───────────────────────────── */

@media (max-width: 420px) {
  .lp-plan-card {
    padding: 36px 24px 28px;
  }

  .lp-plan-card--featured {
    padding-top: 52px;
  }

  .lp-plan-amount {
    font-size: 2.2rem;
  }

  .lp-pricing {
    padding: 56px 0;
  }
}
