/* Pricing cards: the home page (#pricing) and My account > See plans (/account/buy) use these same cards (0.1.1 phase 1).
   The markup lives once, in index.html; the See plans page loads it from there. pricing.js runs the switch and what is on sale. */
.pricing { background: var(--navy); color: #fff; padding-block: var(--sec); }
.price-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(40px, 4vw, 64px); }
.price-head p { font-size: 1rem; font-weight: 600; color: var(--on-navy); }
.plan { position: relative; background: var(--surface); color: var(--ink); border: var(--line); border-radius: 20px; padding: clamp(20px, 2vw, 28px); display: grid; gap: 14px; align-content: start; box-shadow: 10px 10px 0 #000; transition: transform .3s var(--spring); }
.plan:hover { transform: translateY(-4px); }
.plan h3 { font-size: clamp(1.35rem, 1.15rem + .5vw, 1.7rem); letter-spacing: -.035em; }
.plan-price { font: 900 clamp(2.1rem, 1.6rem + 1.1vw, 2.8rem)/1 var(--text); letter-spacing: -.05em; }
.plan-price small { display: block; margin-top: 6px; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .22em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 2px solid var(--black); }
.plan-tag { justify-self: start; background: var(--black); color: #fff; font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.plan-btn { display: block; text-align: center; padding: 12px 16px; border: var(--line); border-radius: 999px; background: var(--orange); color: var(--black); font: 900 1rem/1 var(--text); text-decoration: none; box-shadow: var(--hard-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; margin-top: auto; }
.plan-btn:hover { background: var(--orange-hi); }
.plan-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }
.plan-btn-off, .plan-btn-off:hover { background: var(--tint); color: var(--ink-2); box-shadow: none; cursor: default; }
.plan-small { font-size: .86rem; font-weight: 700; color: var(--ink-2); text-align: center; }
.plan-early { background: var(--orange); grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); align-items: center; gap: 20px clamp(24px, 4vw, 64px); margin-bottom: clamp(28px, 3vw, 44px); padding: clamp(28px, 3vw, 48px); }
.early-main { display: grid; gap: 12px; }
.plan-early h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem); }
.plan-early .plan-price { font-size: clamp(2.4rem, 1.8rem + 1.5vw, 3.4rem); }
.plan-early li::before { background: var(--surface); }
.plan-early ul { font-size: 1rem; font-weight: 700; }
.early-buy { display: grid; gap: 10px; }
.plan-early .plan-btn { background: var(--black); color: #fff; box-shadow: 4px 4px 0 var(--surface); }
.plan-early .plan-btn:hover { background: var(--navy); }
.plan-early .plan-small { color: var(--black); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); align-items: stretch; }
.plans .plan { display: flex; flex-direction: column; }
.plans .plan ul { flex: 1; align-content: start; margin-bottom: 8px; }
.plans .plan-tag { align-self: flex-start; margin-bottom: -4px; }
.plans .plan-hi { background: var(--blue); color: #fff; box-shadow: 10px 10px 0 var(--orange); transform: translateY(-10px); }
.plans .plan-hi:hover { transform: translateY(-14px); }
.plan-hi .plan-tag { background: var(--orange); color: var(--black); }
.plan-hi .plan-small { color: var(--on-navy); }
.plan-hi li::before { background: var(--surface); }
.plan-free { background: var(--ground); }
.price-foot { margin-top: clamp(40px, 4vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-weight: 700; color: var(--on-navy); }
.price-foot a { color: #fff; font-weight: 800; }
/* Monthly or yearly (founder, 25 Nov): a chunky two-way switch, shown only with JavaScript (without it the monthly prices stay). */
.bill-switch { display: none; }
.js .bill-switch { display: inline-flex; gap: 4px; padding: 5px; background: var(--navy-2); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--orange); }
.bill-switch button { font: 900 .94rem/1 var(--text); color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s; }
.bill-switch button b { font-weight: 800; font-size: .85rem; margin-left: 6px; padding: 4px 8px; border-radius: 999px; background: var(--orange); color: var(--black); }
.bill-switch button[aria-checked="true"] { background: var(--surface); color: var(--black); }
.bill-switch button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.plan-year { font-weight: 800; color: var(--blue); margin-top: -6px; }
.plan-hi .plan-year { color: #fff; }
.price-head { align-items: center; }
.seats { display: inline-block; justify-self: start; background: var(--orange); color: var(--black); border: 2px solid var(--black); border-radius: 999px; padding: 4px 10px; font: 900 .82rem/1.1 var(--text); white-space: nowrap; }
.seats-big { font-size: 1rem; padding: 7px 14px; background: var(--surface); box-shadow: 3px 3px 0 var(--black); }
.offer-ribbon { justify-self: start; background: var(--black); color: #fff; font: 900 .8rem/1 var(--text); letter-spacing: .02em; padding: 7px 12px; border-radius: 6px; transform: rotate(-2deg); }
.plan-early { box-shadow: 10px 10px 0 #000, 0 0 0 4px var(--orange-hi); }
.bill-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; margin-bottom: 22px; }
.bill-note { font-weight: 700; color: var(--on-navy); font-size: .95rem; }
@media (max-width: 600px) { .bill-row { justify-content: flex-start; } }
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan-hi { transform: none; }
  .plan-early { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .early-buy { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .plans, .plan-early { grid-template-columns: minmax(0, 1fr); }
}
