/* The pricing page. Uses the colours and shapes from site.css. */
.pricing-head { max-width: 760px; }
.pricing-head h1 { font-size: clamp(32px, 4.6vw, 50px); }
.pricing .you { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
.pricing .you a { margin-left: 6px; }
.pricing .fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.pricing .fine.center { text-align: center; margin-top: 18px; }
.pricing section { margin-top: 72px; }
.pricing section > h2, .packs-text h2, .custom h2 { font-size: clamp(24px, 3vw, 32px); }
.pay-flash { position: sticky; top: 76px; z-index: 5; margin-top: 20px; }
.pay-flash li { box-shadow: var(--shadow); }

/* ---- 30 days or a year ---- */
.term-row { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.term-note { font-size: 14.5px; color: var(--muted); }
.term { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.term button { border: 0; border-radius: 999px; padding: 8px 18px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.term button.on { background: var(--grad); color: var(--on-primary); }
.term button span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.term button.on span { background: rgba(255, 255, 255, 0.2); color: #fff; }
[data-term][hidden] { display: none; }

/* ---- the three plans ---- */
.pricing .plans { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 20px 20px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); padding: 25px 19px 19px; }
.plan .tag { position: absolute; top: -13px; left: 22px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #2a1503; font-size: 12px; font-weight: 800; }
.plan h2 { font-size: 22px; letter-spacing: -0.01em; }
.plan .for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 15px; font-weight: 600; }
.plan .paid-as { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 22px; }
.plan .paid-as strong { color: var(--text); }
.plan .credits { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-alt); font-size: 15px; }
.plan.featured .credits { background: var(--primary-soft); color: var(--primary); }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15px; color: #24394a; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.plan .act { margin-top: auto; padding-top: 22px; }
.plan .act .btn { width: 100%; }
.btn.is-current { background: var(--surface-alt); border-color: var(--border); color: var(--muted); cursor: default; }
.btn.is-current:hover { background: var(--surface-alt); color: var(--muted); }

/* ---- what a credit buys ---- */
.trio { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio > div { border-top: 3px solid var(--primary); padding-top: 14px; }
.trio b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.trio p { margin-top: 6px; color: #33495a; font-size: 15px; }
.credit-how .fine { margin-top: 18px; max-width: 78ch; }

/* ---- credit packs ---- */
.packs { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; align-items: stretch; padding: 28px; border-radius: var(--r-lg); background: var(--surface-alt); }
.packs-text p { margin-top: 10px; color: #33495a; max-width: 46ch; }
.pack { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.pack h3 { font-size: 18px; letter-spacing: -0.01em; }
.pack .price { margin-top: 6px; }
.pack .price .amount { font-size: 32px; }
.pack .btn { margin-top: auto; width: 100%; }
.pack .price + .btn { margin-top: 16px; }

/* ---- custom price ---- */
.custom { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; padding: 32px; border-radius: var(--r-lg); background: var(--night); color: rgba(250, 248, 245, 0.82); }
.custom h2 { color: #faf8f5; }
.custom > div > p { margin-top: 12px; max-width: 44ch; }
.custom-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface); color: var(--text); border-radius: var(--r-md); padding: 20px; }
.custom-form .wide, .custom-form .btn, .custom-form .fine { grid-column: 1 / -1; }
.custom-form .fine { margin-top: 0; }
.custom-form textarea { resize: vertical; }
.custom-form.signin { grid-template-columns: 1fr; text-align: center; }

/* ---- questions ---- */
.faq { max-width: 760px; margin-top: 20px; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; color: #33495a; max-width: 64ch; }

@media (max-width: 1060px) { .pricing .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .trio { grid-template-columns: 1fr; }
  .plan .for { min-height: 0; }
  .packs { grid-template-columns: 1fr 1fr; padding: 22px; }
  .packs-text { grid-column: 1 / -1; }
  .custom { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 620px) { .pricing .plans { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .packs, .custom-form { grid-template-columns: 1fr; }
  .pricing section { margin-top: 56px; }
}
