/* SaaS-style pricing layout for the order page. Loads on top of style.css and
   reuses its color tokens. Three display modes: tier columns, separate sections,
   and order-bump checkboxes inside the checkout drawer. */

.pricing-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 20px 40px; }

.pricing-head { text-align: center; margin: 8px auto 26px; max-width: 720px; }
.pricing-head h1 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 12px; }
.pricing-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* billing period toggle */
.billing-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--co-raise, #121214); border: 1px solid var(--co-border, rgba(255,255,255,0.08)); margin: 0 auto 30px; }
.billing-toggle button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.billing-toggle button.active { background: linear-gradient(135deg, var(--co-gold, #d9b26a), var(--co-gold-2, #b8923f)); color: #0d1015; }
.billing-toggle .save-badge { margin-left: 6px; font-size: .7rem; opacity: .85; }

/* the tier columns */
.tier-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .tier-columns.cols-3 { grid-template-columns: repeat(3, 1fr); } .tier-columns.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--co-raise, #121214); border: 1px solid var(--co-border, rgba(255,255,255,0.08));
  border-radius: 18px; padding: 28px 24px; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(217,178,106,.4); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.plan.featured { border-color: rgba(217,178,106,.6); box-shadow: 0 0 0 1px rgba(217,178,106,.35), 0 20px 60px rgba(217,178,106,.12); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--co-gold, #d9b26a), var(--co-gold-2, #b8923f)); color: #0d1015; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }

.plan-name { font-family: "DM Serif Display", Georgia, serif; font-size: 1.5rem; margin: 4px 0 4px; }
.plan-blurb { color: var(--muted); font-size: .88rem; min-height: 38px; margin: 0 0 16px; line-height: 1.45; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-accts { color: var(--co-gold, #d9b26a); font-weight: 600; font-size: .9rem; margin-bottom: 18px; }

.plan-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--text); }
.plan-features li .tick { color: var(--co-gold, #d9b26a); flex-shrink: 0; margin-top: 1px; }

.plan-cta { display: block; text-align: center; text-decoration: none; padding: 13px 18px; border-radius: 12px; font-weight: 700; font-size: .98rem; cursor: pointer; border: 1px solid var(--co-border, rgba(255,255,255,0.14)); background: transparent; color: var(--text); transition: all .15s; width: 100%; }
.plan-cta:hover { border-color: rgba(217,178,106,.5); color: var(--co-gold, #d9b26a); }
.plan.featured .plan-cta { background: linear-gradient(135deg, var(--co-gold, #d9b26a), var(--co-gold-2, #b8923f)); color: #0d1015; border-color: transparent; }
.plan.featured .plan-cta:hover { filter: brightness(1.06); color: #0d1015; }

/* separate product sections (add-ons / standalone products) */
.product-section { max-width: 1180px; margin: 40px auto 0; padding: 0 20px; }
.product-section h2 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.7rem; text-align: center; margin: 0 0 6px; }
.product-section .sec-sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.section-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sec-card { display: flex; flex-direction: column; background: var(--co-raise, #121214); border: 1px solid var(--co-border, rgba(255,255,255,0.08)); border-radius: 16px; padding: 24px; }
.sec-card .sec-name { font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.sec-card .sec-blurb { color: var(--muted); font-size: .9rem; margin-bottom: 14px; flex: 1; }
.sec-card .sec-price { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.sec-card .sec-price .per { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* single-column checkout page (pricing lives on the marketing site now) */
.co-page { max-width: 620px; margin: 0 auto; padding: 48px 20px 60px; }
.co-page-head { text-align: center; margin-bottom: 26px; }
.co-page-head h1 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; }
.co-page-head p { max-width: 460px; margin: 0 auto; }

/* checkout card */
.checkout-drawer { max-width: 620px; margin: 0 auto; padding: 0; }
.checkout-drawer.hidden { display: none; }
.co-card { background: var(--co-raise, #121214); border: 1px solid rgba(217,178,106,.3); border-radius: 18px; padding: 28px 26px; }
.co-picked { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--co-border, rgba(255,255,255,0.08)); }
.co-picked .co-plan { font-weight: 700; font-size: 1.15rem; }
.co-picked .co-amount { font-size: 1.5rem; font-weight: 800; }
.co-change { background: transparent; border: 0; color: var(--co-gold, #d9b26a); cursor: pointer; font-size: .82rem; font-weight: 600; padding: 2px 0; }

/* plan + period switcher (revealed by Change plan) */
.co-plans { margin: 16px 0 4px; }
.co-plans.hidden { display: none; }
.co-plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.co-plan-chip { text-align: left; background: var(--co-float, #1a1a1e); border: 1px solid var(--co-border, rgba(255,255,255,0.12)); border-radius: 10px; padding: 12px; cursor: pointer; transition: all .14s; display: flex; flex-direction: column; gap: 3px; }
.co-plan-chip:hover { border-color: rgba(217,178,106,.5); }
.co-plan-chip.active { border-color: var(--co-gold, #d9b26a); background: rgba(217,178,106,.08); }
.co-plan-chip .cp-name { font-weight: 700; font-size: .92rem; }
.co-plan-chip .cp-price { font-family: "JetBrains Mono", monospace; color: var(--co-gold, #d9b26a); font-size: .9rem; }
.co-plan-chip .cp-acc { color: var(--muted); font-size: .74rem; }
.co-period-label { font-size: .8rem; color: var(--muted); margin: 14px 0 7px; font-weight: 600; }
.co-period-row { display: flex; gap: 8px; flex-wrap: wrap; }
.co-period-chip { flex: 1; min-width: 110px; background: var(--co-float, #1a1a1e); border: 1px solid var(--co-border, rgba(255,255,255,0.12)); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: all .14s; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.co-period-chip:hover { border-color: rgba(217,178,106,.5); }
.co-period-chip.active { border-color: var(--co-gold, #d9b26a); background: rgba(217,178,106,.08); }
.co-period-chip .pp-name { font-weight: 600; font-size: .86rem; }
.co-period-chip .pp-price { font-family: "JetBrains Mono", monospace; color: var(--co-gold, #d9b26a); font-size: .84rem; }

/* extras (order bumps) under benefit-led heading */
.co-bumps-wrap { margin: 20px 0 4px; padding-top: 18px; border-top: 1px solid var(--co-border, rgba(255,255,255,0.08)); }
.co-bumps-wrap.hidden { display: none; }
.co-bumps-head { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.co-bumps-sub { margin: 0 0 12px; }

/* order bumps */
.bumps { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.bump { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px dashed rgba(217,178,106,.4); border-radius: 12px; background: rgba(217,178,106,.05); cursor: pointer; }
.bump input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--co-gold, #d9b26a); }
.bump .bump-body b { display: block; }
.bump .bump-body span { color: var(--muted); font-size: .86rem; }
.bump .bump-price { margin-left: auto; font-weight: 800; white-space: nowrap; }

.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 18px; font-size: 1.05rem; }
.co-total b { font-size: 1.5rem; }

/* deal display: struck-through original + "% off" badge next to the total */
.co-total-vals { display: inline-flex; align-items: baseline; gap: 10px; }
.co-was { color: var(--muted); text-decoration: line-through; font-size: 1rem; font-weight: 600; }
.co-save { display: inline-block; background: var(--co-gold, #c9a227); color: #0d1015; font-size: .7rem; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; }
.co-was.hidden, .co-save.hidden { display: none; }

.co-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.co-field label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.co-field input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--co-border, rgba(255,255,255,0.14)); background: var(--co-float, #1a1a1e); color: var(--text); font-size: .95rem; }
.co-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.co-pay button { flex: 1; min-width: 120px; padding: 11px; border-radius: 10px; border: 1px solid var(--co-border, rgba(255,255,255,0.14)); background: transparent; color: var(--text); cursor: pointer; font-weight: 600; }
.co-pay button.active { border-color: var(--co-gold, #d9b26a); color: var(--co-gold, #d9b26a); background: rgba(217,178,106,.08); }
.co-pay-instructions { font-size: .88rem; color: var(--muted); background: var(--co-float,#1a1a1e); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.co-pay-instructions.hidden { display: none; }
.co-submit { width: 100%; padding: 15px; border-radius: 12px; border: 0; font-weight: 800; font-size: 1rem; cursor: pointer; background: linear-gradient(135deg, var(--co-gold,#d9b26a), var(--co-gold-2,#b8923f)); color: #0d1015; }
.co-submit:disabled { opacity: .5; cursor: not-allowed; }
.co-pay-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.co-result { margin-top: 14px; }
.co-result.hidden { display: none; }

/* ---- HOME-THEME MATCH: Inter headings (no serif), sky accent on period chips.
   Colors inherit from the updated --co-* tokens in style.css. Appended = wins. */
.pricing-head h1,
.plan-name,
.product-section h2,
.co-page-head h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
