/* Pricing pages (tarifas.php, upgrade.php): the cards of the account workspace in the colours of the
   public site (assets/public-theme.css). Gold marks the main action and the featured option; every
   other surface is neutral. Everything is scoped to .ld-pricing. */

.ld-pricing {
  --lp-ink: #1c1a17; --lp-muted: #6b6258; --lp-line: #e7e1d7; --lp-soft: #f5f1e7;
  --lp-accent: #8a6412; --lp-gold: #c89b2e; --lp-on-gold: #1a1408;
  color: var(--lp-ink); line-height: 1.5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ld-pricing :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.ld-pricing [hidden] { display: none !important; }

/* Heading of the public page */
.ld-pricing .lp-heading {
  margin: 6px 0 22px; padding: 26px 28px; border: 1px solid #eadebe; border-radius: 20px;
  background: radial-gradient(circle at 6% 0, #c89b2e29, transparent 46%), linear-gradient(120deg, #fffaf0, #fff 72%);
}
.ld-pricing .lp-heading > p { max-width: 640px; }
.ld-pricing .lp-heading .lp-eyebrow { color: #7f5c10; }
.ld-pricing .lp-eyebrow {
  display: block; margin-bottom: 10px; color: #7a6a4d; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.ld-pricing .lp-heading h1 { font: 700 34px/1.12 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.035em; color: var(--lp-ink); }
.ld-pricing .lp-heading p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--lp-muted); }
.ld-pricing .lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Buttons: the main action is gold with dark text, as on the public pages */
.ld-pricing .lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  padding: 10px 18px; border: 1px solid var(--lp-line); border-radius: 9px; background: #fff;
  color: var(--lp-ink); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center;
  text-decoration: none; text-shadow: none; cursor: pointer; box-shadow: none; transform: none;
}
.ld-pricing .lp-btn:hover { background: #f5f1ea; color: var(--lp-ink); }
.ld-pricing .lp-btn.lp-primary { background: var(--lp-gold); border-color: var(--lp-gold); color: var(--lp-on-gold); }
.ld-pricing .lp-btn.lp-primary:hover { background: #dbb44d; border-color: #dbb44d; color: var(--lp-on-gold); }
.ld-pricing .lp-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }

/* Notices above the options */
.ld-pricing .lp-notice {
  display: flex; gap: 10px 12px; align-items: baseline; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px;
  border: 1px solid #e5d5ad; border-radius: 14px; background: linear-gradient(120deg, #fffaf0, #fff);
  font-size: 14px; line-height: 1.55; color: #4e4638;
}
.ld-pricing .lp-notice strong {
  flex: none; padding: 3px 9px; border-radius: 999px; background: var(--lp-gold); color: var(--lp-on-gold);
  font-size: 11px; font-weight: 700;
}
.ld-pricing .lp-notice span { flex: 1 1 260px; min-width: 0; }
.ld-pricing .lp-notice.is-plain { border-color: var(--lp-line); background: #fff; }
.ld-pricing .lp-notice.is-plain strong { background: var(--lp-soft); color: var(--lp-accent); }

/* Options: three in a row; a last row of two or one fills the width */
.ld-pricing .lp-plans { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ld-pricing .lp-plan {
  grid-column: span 2; display: flex; flex-direction: column; min-width: 0; padding: 24px;
  border: 1px solid var(--lp-line); border-radius: 18px; background: #fff;
}
.ld-pricing .lp-plan:nth-last-child(2):nth-child(3n + 1), .ld-pricing .lp-plan:last-child:nth-child(3n + 2) { grid-column: span 3; }
.ld-pricing .lp-plan:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.ld-pricing .lp-plan.is-featured { border-color: #e5d5ad; background: linear-gradient(160deg, #fffaf0, #fff 62%); }
.ld-pricing .lp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ld-pricing .lp-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--lp-soft); color: var(--lp-accent); }
.ld-pricing .lp-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld-pricing .lp-plan.is-featured .lp-icon { background: #f8ecc9; }
.ld-pricing .lp-flag { padding: 5px 10px; border-radius: 999px; background: var(--lp-gold); color: var(--lp-on-gold); font-size: 11px; font-weight: 700; line-height: 1.3; }
.ld-pricing .lp-plan h2 { font: 700 21px/1.25 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; color: var(--lp-ink); }
.ld-pricing .lp-plan-sub { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--lp-accent); }
.ld-pricing .lp-plan > p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--lp-muted); }

/* Prices of one option */
.ld-pricing .lp-prices { list-style: none; margin: 18px 0 0; border-top: 1px solid var(--lp-line); }
.ld-pricing .lp-prices > li { padding: 12px 0; border-bottom: 1px solid var(--lp-line); }
.ld-pricing .lp-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.ld-pricing .lp-price-name { min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ld-pricing .lp-price-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--lp-muted); }
.ld-pricing .lp-price { flex: none; font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--lp-ink); }
.ld-pricing .lp-price s { margin-right: 6px; font-size: 13px; font-weight: 400; color: #787063; }
.ld-pricing .lp-price-side { flex: none; text-align: right; }
.ld-pricing .lp-price-side small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--lp-muted); }
.ld-pricing .lp-plan > .lp-btn { margin-top: auto; }
.ld-pricing .lp-plan > .lp-prices + .lp-btn { margin-top: 18px; }
.ld-pricing .lp-plan-foot { margin-top: auto; padding-top: 18px; }
.ld-pricing .lp-plan-foot .lp-btn { width: 100%; }

/* Choosing a product for one ad (upgrade.php): each price has its own button */
.ld-pricing .lp-plans.lp-plans-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-pricing .lp-plans.lp-plans-two .lp-plan { grid-column: auto; }
.ld-pricing .lp-plans.lp-plans-two .lp-plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ld-pricing .lp-buy { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ld-pricing .lp-buy input[name="coupon_code"] {
  flex: 1 1 150px; min-width: 0; width: auto; min-height: 44px; padding: 9px 12px; border: 1px solid #d6cfc2;
  border-radius: 9px; background: #fff; color: var(--lp-ink); font: inherit; font-size: 14px; box-shadow: none;
}
.ld-pricing .lp-buy input[name="coupon_code"]:focus { outline: none; border-color: var(--lp-accent); box-shadow: 0 0 0 3px #c89b2e47; }
.ld-pricing .lp-buy .lp-btn { flex: 0 0 auto; }
.ld-pricing .lp-plans-two .lp-prices > li:last-child { padding-bottom: 0; border-bottom: 0; }

/* How it works */
.ld-pricing .lp-how { margin-top: 32px; padding: 26px; border: 1px solid var(--lp-line); border-radius: 18px; background: #fff; }
.ld-pricing .lp-how h2 { font: 700 21px/1.25 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; color: var(--lp-ink); }
.ld-pricing .lp-how > p { margin-top: 8px; max-width: 640px; font-size: 14px; line-height: 1.6; color: var(--lp-muted); }
.ld-pricing .lp-steps { list-style: none; counter-reset: lp-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.ld-pricing .lp-steps li { counter-increment: lp-step; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ld-pricing .lp-steps li::before {
  content: counter(lp-step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px;
  border-radius: 50%; background: var(--lp-soft); color: var(--lp-accent); font-size: 13px; font-weight: 600;
}

/* Closing note */
.ld-pricing .lp-legal { display: flex; gap: 10px; align-items: baseline; margin-top: 22px; font-size: 12px; line-height: 1.6; color: var(--lp-muted); }
.ld-pricing .lp-legal b { flex: none; padding: 2px 8px; border: 1px solid var(--lp-line); border-radius: 999px; background: #fff; color: var(--lp-ink); font-size: 11px; font-weight: 700; }

@media (max-width: 980px) {
  .ld-pricing .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-pricing .lp-plan, .ld-pricing .lp-plan:nth-last-child(2):nth-child(3n + 1), .ld-pricing .lp-plan:last-child:nth-child(3n + 2) { grid-column: auto; }
  .ld-pricing .lp-plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ld-pricing .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ld-pricing .lp-heading { margin: 2px 0 18px; padding: 20px 18px; border-radius: 16px; }
  .ld-pricing .lp-heading h1 { font-size: 27px; }
  .ld-pricing .lp-actions .lp-btn { flex: 1 1 0; }
  .ld-pricing .lp-plans, .ld-pricing .lp-plans.lp-plans-two { grid-template-columns: 1fr; gap: 14px; }
  .ld-pricing .lp-plan, .ld-pricing .lp-plans .lp-plan:last-child { grid-column: auto; padding: 20px 18px; border-radius: 14px; }
  .ld-pricing .lp-how { padding: 20px 18px; border-radius: 14px; }
  .ld-pricing .lp-buy input[name="coupon_code"] { flex: 1 1 100%; }
  .ld-pricing .lp-buy .lp-btn { flex: 1 1 auto; }
}
