/* Pricing page. Light foundation (#fcfcfb), three tiers, in the Station 720 style. */
.pricing-page {
  --bg: #f3f2ee; --panel: #fcfcfb; --panel-2: #f3f2ee; --line: #e4e3dd; --text: #14151f; --muted: #5d6175;
  color-scheme: light; background: #f3f2ee; color: #14151f;
}
.pricing { max-width: 1120px; margin: 0 auto; padding: 56px max(16px, 4vw) 80px; text-align: center; }
.pricing h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; color: #14151f; }
.pricing-sub { color: #5d6175; font-size: 17px; margin: 0 auto 28px; max-width: 520px; }

.billing { display: inline-flex; gap: 4px; padding: 4px; background: #fcfcfb; border: 1px solid #e4e3dd; border-radius: 999px; margin-bottom: 34px; }
.bill-btn { font: inherit; font-weight: 600; font-size: 14px; color: #5d6175; background: none; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bill-btn[aria-pressed="true"] { background: #14151f; color: #fff; }
.save-pill { font-size: 11.5px; font-weight: 700; color: #0a1a00; background: #9bf00b; border-radius: 99px; padding: 2px 8px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; text-align: left; }
.plan { background: #fcfcfb; border: 1px solid #e4e3dd; border-radius: 22px; padding: 26px 24px 24px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20, 21, 31, 0.05), 0 18px 40px -28px rgba(20, 21, 31, 0.3); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px rgba(16, 124, 16, 0.55); }
.plan.ultra { background: linear-gradient(180deg, #f2f9f1 0%, #fcfcfb 38%); }

.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; color: #14151f; }
.plan-tag { flex-basis: 100%; margin: 2px 0 0; color: #5d6175; font-size: 14.5px; }
.badge-off, .badge-pop, .badge-best { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 3px 8px; letter-spacing: 0.01em; }
.badge-off { color: #fff; background: #e63e6d; }
.badge-pop { color: #0a1a00; background: #9bf00b; }
.badge-best { color: #fff; background: #0b6a0b; }

.credits { margin-top: 18px; padding: 16px; background: #f3f2ee; border: 1px solid #e4e3dd; border-radius: 16px; }
.credits-main { font-size: 20px; font-weight: 700; color: #14151f; display: flex; align-items: center; gap: 8px; }
.spark { color: #0b6a0b; }
.credits-sub { margin: 6px 0 12px; color: #5d6175; font-size: 14px; }
.fixed { background: #fcfcfb; border: 1px solid #e4e3dd; border-radius: 10px; padding: 9px 12px; text-align: center; font-size: 14px; color: #5d6175; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 14px; }
.price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: #14151f; line-height: 1; }
.price-old { font-size: 26px; font-weight: 700; color: #e63e6d; text-decoration: line-through; text-decoration-thickness: 2px; }
.price-per { font-size: 14px; color: #5d6175; }

.plan-cta { display: block; text-align: center; font-weight: 700; font-size: 16px; padding: 14px 16px; border-radius: 14px; transition: transform 0.1s, filter 0.15s; }
.plan-cta:hover { filter: brightness(1.05); }
.plan-cta:active { transform: translateY(1px); }
.cta-ink { background: #14151f; color: #fff; }
.cta-green-solid { background: #107c10; color: #fff; }
.cta-gradient { background: linear-gradient(135deg, #107c10, #2e9e2e); color: #fff; }
.save-line { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: #5d6175; min-height: 1.3em; }

.feat { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e4e3dd; }
.feat h3, .every h3 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5d6175; }
.feat ul { list-style: none; padding: 0; margin: 0; }
.feat li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #efeee9; font-size: 14.5px; color: #14151f; }
.feat li:first-child { border-top: 0; }
.feat li::before { content: "✓"; width: 18px; flex: none; color: #0e7a0e; font-weight: 700; }
.feat li.no { color: #a3a6b4; }
.feat li.no::before { content: "✕"; color: #c4c6d2; }
.feat li span { flex: 1; min-width: 0; }
.feat li i { font-style: normal; font-size: 12px; font-weight: 600; color: #5d6175; background: #f3f2ee; border: 1px solid #e4e3dd; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.feat li.no i { color: #a3a6b4; }

.every { margin: 28px auto 0; max-width: 760px; background: #fcfcfb; border: 1px solid #e4e3dd; border-radius: 18px; padding: 22px 24px; text-align: left; }
.every ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.every li { font-size: 14.5px; color: #14151f; display: flex; gap: 10px; }
.every li::before { content: "✓"; color: #0e7a0e; font-weight: 700; }
.fine { margin: 22px 0 0; font-size: 13px; color: #8b8fa1; }

@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .every ul { grid-template-columns: 1fr; } }

.credits .fixed, .credits 
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.meter i { width: 6px; border-radius: 2px; background: #d9d8d1; }
.meter i:nth-child(1) { height: 7px; } .meter i:nth-child(2) { height: 12px; } .meter i:nth-child(3) { height: 18px; }
.meter i.on { background: #0b6a0b; }
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-height: 5.8em; }
.can li { position: relative; padding-left: 20px; font-size: 14px; color: #14151f; }
.can li::before { content: "✓"; position: absolute; left: 0; color: #0e7a0e; font-weight: 700; }
.feat .feat-gap { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e4e3dd; }

/* credits on each plan, and the "How credits work" table */
.credit-allow { margin-top: 14px; padding: 10px 12px; background: #fcfcfb; border: 1px solid #cfe6cf; border-radius: 10px; display: grid; gap: 2px; }
.credit-allow b { font-size: 18px; color: #0b6a0b; letter-spacing: -0.01em; }
.credit-allow span { font-size: 13px; color: #5d6175; line-height: 1.35; }
.credit-guide { margin: 28px auto 0; max-width: 760px; background: #fcfcfb; border: 1px solid #e4e3dd; border-radius: 18px; padding: 22px 24px; text-align: left; }
.credit-guide h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5d6175; }
.credit-guide p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #14151f; }
.credit-table-wrap { overflow-x: auto; }
.credit-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.credit-table th { text-align: left; font-size: 12px; font-weight: 700; color: #5d6175; padding: 8px 10px; border-bottom: 1px solid #e4e3dd; }
.credit-table th:not(:first-child), .credit-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.credit-table td { padding: 10px; border-top: 1px solid #efeee9; color: #14151f; }
.credit-table tbody tr:first-child td { border-top: 0; }
.credit-guide .credit-note { margin: 12px 0 0; font-size: 13px; color: #8b8fa1; }

/* Line the cards up row by row: each card shares the same rows (heading, features box, price, button, note, models),
   so prices and buttons sit at the same height however much text the box above holds. */
@media (min-width: 981px) {
  .plans { gap: 0 18px; grid-template-rows: repeat(6, auto); }
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .plan .credits { margin-bottom: 0; }
  .plan .feat { align-self: start; }
}
@media (max-width: 980px) { .plan { margin-bottom: 18px; } }

/* pin the credit allowance to the bottom of each box so the three line up */
.plan .credits { display: flex; flex-direction: column; }
.plan .credits .credit-allow { margin-top: auto; }
.plan .credits .can { margin-bottom: 14px; }

/* click-to-open sections */
.drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary h3 { margin: 0; }
.drop > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #5d6175; border-bottom: 2px solid #5d6175; transform: rotate(45deg); margin-top: -4px; transition: transform 0.15s; }
.drop[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.drop[open] > summary { margin-bottom: 14px; }
.drop > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.plans-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: #5d6175; }

/* the plan an upgrade prompt recommended (/pricing?plan=plus) */
.plan { position: relative; }
.plan.recommended { outline: 3px solid #9bf00b; outline-offset: 4px; box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -28px rgba(16, 124, 16, 0.65); }
.rec-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; background: #9bf00b; color: #0a1a00; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5); }

/* buying (Stripe): status line under the plans, "Your plan" badge, plain links in the fine print */
.billing-note { margin: 22px auto 0; max-width: 520px; padding: 10px 16px; border-radius: 12px; background: #fcfcfb; border: 1px solid #cfe6cf; color: #14151f; font-size: 14.5px; }
.billing-note a { color: #0b6a0b; font-weight: 700; }
/* The "Your plan" tag sits on the card's top edge instead of being one more item inside it: the cards share six grid rows on wide
   screens, so an extra item pushed everything in that card down a row and left big gaps. */
.cur-badge { position: absolute; top: -11px; right: 22px; z-index: 2; margin: 0; font-size: 11.5px; font-weight: 700; color: #fff; background: #0b6a0b; border-radius: 99px; padding: 4px 12px; box-shadow: 0 4px 10px -4px rgba(11, 106, 11, 0.55); }
.plan-cta[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.fine a { color: inherit; text-decoration: underline; }

.preview-banner { margin: 14px auto 0; max-width: 560px; padding: 8px 14px; border-radius: 10px; background: #fff7e0; border: 1px solid #f0dca0; color: #6b5200; font-size: 13.5px; text-align: center; }
@keyframes bannerFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 160, 0, 0); } 30% { box-shadow: 0 0 0 5px rgba(224, 160, 0, 0.35); } }
.preview-banner.flash { animation: bannerFlash 0.9s ease-out; }
