/* 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(1120px, 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); }

/* the cards side by side read as one table (Ale, 10 Nov: «non va per niente bene»): name, line, price, button and
   list on the same rows in every card (subgrid), the price always over its unit, the button on one line */
.pl-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: 16px; row-gap: 0; align-items: stretch; }
.pl-tiers.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* three plans side by side only when each card gets room (about 280px); narrower, one under the other */
@media (max-width: 1120px) { .pl-tiers { grid-template-columns: minmax(0, 1fr); row-gap: 16px; } .pl-tier { grid-row: auto; grid-template-rows: none; } }
/* Creator, made to measure: a band under the three plans, the list in two columns, the button on the right */
.pl-creator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 24px 32px; align-items: center; margin-top: 16px; padding: 28px 30px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.pl-creator h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.pl-creator .pl-feats.is-two { margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1400px) { .pl-creator .pl-feats.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; } }
.pl-creator-go { display: grid; justify-items: start; gap: 4px; min-width: 200px; }
.pl-creator-go b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.pl-creator-go span { font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
@media (max-width: 1120px) {
  .pl-creator { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 26px; }
  .pl-creator .pl-feats.is-two { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pl-creator-go { min-width: 0; }
}
@media (max-width: 560px) { .pl-creator .pl-feats.is-two { grid-template-columns: minmax(0, 1fr); } .pl-creator { padding: 24px 20px 22px; border-radius: 24px; } }
.pl-tier { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 28px 24px 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: 34px; }
.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-line { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.45; }
.pl-price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 22px 0 20px; }
.pl-price b { font-size: 40px; font-weight: 650; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.pl-price span { font-size: 13.5px; color: var(--ink-3); }
.pl-cta { align-self: start; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pl-cta[disabled] { opacity: 1; color: var(--ink-3); pointer-events: none; }
.pl-feats { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.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: 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; }

/* Create: what the plan still lets you make, under the box (PLAN.budgetHome) */
.cz-budget { max-width: 620px; margin: 14px auto 0; text-align: center; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.cz-budget a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
