/* ============================================================
   /planos — camada visual editorial
   Herda tokens de design-system.css + tipografia falx.css.
   Sem hex crus, sem system-ui, sem cards genéricos.
   ============================================================ */

.planos-shell {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, oklch(0.22 0.024 44 / 55%), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, oklch(0.19 0.028 60 / 45%), transparent 55%),
    linear-gradient(180deg, oklch(0.12 0.010 44) 0%, oklch(0.09 0.008 40) 100%);
  color: oklch(0.96 0.008 70);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  padding: 40px 20px 80px;
  position: relative;
  overflow-x: hidden;
}
.planos-shell.falx-grain::after { z-index: 1; }

.planos-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --- Nav superior --- */
.planos-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.planos-back {
  appearance: none;
  background: transparent;
  border: none;
  color: oklch(0.72 0.010 70);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.planos-back:hover { color: oklch(0.98 0.010 70); }
.planos-brand {
  color: oklch(0.60 0.010 70);
  text-decoration: none;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.planos-brand:hover { color: oklch(0.92 0.010 70); }

/* --- Header editorial --- */
.planos-header {
  max-width: 720px;
  margin: 0 0 56px;
}
.planos-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: oklch(0.78 0.032 68);
  margin-bottom: 20px;
}
.planos-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: oklch(0.82 0.14 65);
  box-shadow: 0 0 12px oklch(0.82 0.14 65 / 60%);
}
.planos-title {
  margin: 0 0 18px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(42px, 6vw, 68px);
  color: oklch(0.98 0.008 70);
}
.planos-title-em,
.planos-title em {
  font-family: "Instrument Serif", "Playfair Display", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: oklch(0.90 0.032 68);
}
.planos-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: oklch(0.75 0.010 70);
  max-width: 520px;
}

/* --- Erro --- */
.planos-error {
  border: 1px solid oklch(0.68 0.16 25 / 45%);
  background: oklch(0.30 0.08 25 / 35%);
  color: oklch(0.94 0.030 40);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 28px;
}

/* --- Grid de planos --- */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}

.planos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 28px 28px;
  border-radius: 20px 20px 20px 6px;
  background:
    linear-gradient(180deg, oklch(0.20 0.020 48 / 88%) 0%, oklch(0.14 0.014 44 / 92%) 100%);
  border: 1px solid oklch(0.82 0.032 55 / 18%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 4%),
    0 20px 48px -24px oklch(0 0 0 / 55%);
  transition: transform 0.24s var(--ds-ease), border-color 0.24s var(--ds-ease);
}
.planos-card:hover {
  transform: translateY(-2px);
  border-color: oklch(0.82 0.032 55 / 28%);
}
.planos-card.is-featured {
  background:
    linear-gradient(180deg, oklch(0.26 0.028 60 / 92%) 0%, oklch(0.17 0.020 48 / 95%) 100%);
  border-color: oklch(0.82 0.032 55 / 42%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 8%),
    0 32px 64px -28px oklch(0 0 0 / 65%);
}
.planos-card.is-current { opacity: 0.85; }

.planos-eyebrow {
  position: absolute;
  top: -12px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(180deg, oklch(0.96 0.028 78) 0%, oklch(0.90 0.032 72) 100%);
  color: oklch(0.20 0.028 44);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  box-shadow: 0 8px 20px -8px oklch(0 0 0 / 50%);
}
.planos-eyebrow .planos-eyebrow-dot {
  background: oklch(0.20 0.028 44);
  box-shadow: none;
}

.planos-card-head { display: flex; flex-direction: column; gap: 14px; }
.planos-card-name {
  margin: 0;
  font-family: "Instrument Serif", "Playfair Display", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: oklch(0.96 0.010 70);
}
.planos-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.planos-price-val {
  font-family: "Instrument Serif", "Playfair Display", ui-serif, Georgia, serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: oklch(0.98 0.010 70);
}
.planos-price-free {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 32px;
  color: oklch(0.85 0.010 70);
  letter-spacing: -0.02em;
}
.planos-price-cad {
  font-size: 13px;
  color: oklch(0.62 0.010 70);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.planos-feats {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid oklch(0.82 0.032 55 / 12%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: oklch(0.80 0.008 70);
  line-height: 1.4;
}
.planos-feats li { display: flex; gap: 8px; align-items: baseline; }
.planos-feats li::before {
  content: "→";
  color: oklch(0.78 0.032 68);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}
.planos-feats em {
  font-style: normal;
  color: oklch(0.96 0.010 70);
  font-weight: 500;
}

.planos-card .ds-btn { margin-top: auto; width: 100%; }

/* --- Seção de créditos avulsos --- */
.planos-section { margin-top: 8px; }
.planos-section-head { margin-bottom: 24px; }
.planos-section-title {
  margin: 0 0 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 3.4vw, 34px);
  color: oklch(0.96 0.008 70);
}
.planos-section-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.88 0.032 68);
}
.planos-section-lede {
  margin: 0;
  font-size: 14px;
  color: oklch(0.68 0.010 70);
}

.planos-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.planos-pack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 16px;
  border-radius: 16px 16px 16px 4px;
  background: oklch(0.16 0.014 44 / 65%);
  border: 1px solid oklch(0.82 0.032 55 / 14%);
  transition: border-color 0.2s var(--ds-ease), transform 0.2s var(--ds-ease);
}
.planos-pack:hover {
  border-color: oklch(0.82 0.032 55 / 30%);
  transform: translateY(-1px);
}
.planos-pack-name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: oklch(0.68 0.020 68);
}
.planos-pack-price {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: oklch(0.98 0.010 70);
}
.planos-pack-credits {
  font-size: 13px;
  color: oklch(0.72 0.010 70);
  margin-bottom: 6px;
}
.planos-pack-credits em {
  font-style: normal;
  color: oklch(0.94 0.010 70);
  font-weight: 500;
}
.planos-pack .ds-btn { align-self: flex-start; }

.planos-footnote {
  margin-top: 56px;
  text-align: center;
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: oklch(0.50 0.010 70);
}

.planos-checkout-shell .planos-inner { max-width: 720px; }

@media (max-width: 640px) {
  .planos-shell { padding: 24px 16px 60px; }
  .planos-header { margin-bottom: 40px; }
  .planos-card { padding: 28px 22px 22px; }
}
