/* The plans page and the plan sheets (plans.js). Three plans side by side, the current one outlined, then the subscription. */
.pl-page { width: min(1040px, 100%); }
.pl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.pl-head .xtitle { margin: 6px 0 0; }
.pl-interval button small { font-size: 11.5px; font-weight: 650; color: var(--mint); }

.pl-reason { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 18px; border-radius: 20px; background: var(--blue-f); color: var(--ink); font-size: 14.5px; font-weight: 500; }
.pl-reason svg { color: var(--blue); }
.pl-reason span { flex: 1; min-width: 0; }
.pl-reason.is-bad { background: var(--coral-f); } .pl-reason.is-bad svg { color: var(--coral); }

.pl-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pl-tier { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px 26px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.pl-tier.is-mine { box-shadow: 0 0 0 2px var(--blue); }
.pl-tier header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.pl-tier h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.pl-flag { padding: 4px 10px; border-radius: 999px; background: var(--blue-f); color: var(--blue); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.pl-flag.is-mine { background: var(--fill); color: var(--ink-2); }
.pl-line { margin: 0; color: var(--ink-3); font-size: 14.5px; min-height: 44px; }
.pl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0 14px; }
.pl-price b { font-size: 40px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.pl-price span { font-size: 13.5px; color: var(--ink-3); }
.pl-cta { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.pl-cta[disabled] { opacity: 1; color: var(--ink-3); pointer-events: none; }
.pl-feats { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.pl-feats li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.pl-feats svg { margin-top: 2px; color: var(--mint); }
.pl-fine { margin: 18px 4px 0; max-width: 78ch; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

.pl-mine { margin-top: 44px; }
.pl-mine h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.pl-mine-card { display: grid; gap: 4px; padding: 10px 28px 24px; }
.pl-mine-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.pl-mine-top b { font-size: 18px; font-weight: 650; } .pl-mine-top b span { font-weight: 450; color: var(--ink-3); }
.pl-mine-top small { font-size: 13.5px; color: var(--ink-3); }
.pl-use { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pl-use span { color: var(--ink-2); } .pl-use b { font-weight: 600; text-align: right; }
.pl-use.is-bar { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; }
.pl-use.is-bar i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.pl-use.is-bar em { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.pl-use.is-bar small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.pl-acts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.btn.is-bad { color: var(--coral); }
.btn.danger { background: var(--coral); box-shadow: none; }

/* the sheets */
.sheet.pl-ask p { margin: 0; font-size: 15px; color: var(--ink-2); }
.sheet.pl-ask .pl-feats { margin-top: 4px; }
.sheet.pl-ask h2 { font-size: 32px; }
.pl-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 900px) {
  .pl-tiers { grid-template-columns: minmax(0, 1fr); }
  .pl-line { min-height: 0; }
}
@media (max-width: 560px) {
  .pl-tier { padding: 24px 20px 22px; border-radius: 24px; }
  .pl-mine-card { padding: 6px 20px 20px; }
  .pl-foot .btn { flex: 1 1 100%; }
}

/* «Recedi dal contratto»: the two fields of the sheet (name, the account's email) */
.pl-field { display: grid; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.pl-field .ss-input { width: 100%; }
.pl-field .ss-input[readonly] { opacity: .7; }
