/* pricing.css - only the /pricing page (added after legal.css). Same Midnight & Gold tokens, mobile-first. */

main.wide { max-width: 1040px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- hero ---------- */
.hero { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(30px, 8vw, 46px); }
.hero .lead { margin-left: auto; margin-right: auto; }

/* monthly / yearly toggle (only with JS: without it both prices show on every card) */
html:not(.js) .seg-wrap { display: none; }
.seg-wrap { display: flex; justify-content: center; margin: 0 0 26px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); max-width: 100%; }
.seg button { font: 800 14.5px/1.2 var(--font); min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 var(--accent-deep); }
.seg .save { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.seg button[aria-pressed="true"] .save { background: rgba(26, 20, 6, .14); color: var(--accent-ink); }

/* ---------- plan cards ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan.hl { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 42%), var(--surface); }
.plan.p-master { order: 0; } .plan.p-free { order: 1; } .plan.p-gm { order: 2; }   /* phone: Plus first */
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 0 var(--accent-deep); }
.plan h2 { margin: 0 0 4px; font-size: 22px; }
.plan .for { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); min-height: 0; }
.price { margin: 0 0 14px; min-height: 0; }
.price .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.price .amt { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 15px; font-weight: 700; color: var(--text-3); }
.price .sub { margin: 2px 0 0; font-size: 13.5px; color: var(--text-3); }
.price .sub b { color: var(--accent-text); }
.price .pm, .price .py { display: block; }
.price .py { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.price .py .amt { font-size: 26px; }
.price .py .per { font-size: 14px; }
/* with JS only the chosen period shows, at full size */
html.js .plans[data-iv="month"] .py { display: none; }
html.js .plans[data-iv="year"] .pm { display: none; }
html.js .plans .py { margin-top: 0; padding-top: 0; border-top: 0; }
html.js .plans .py .amt { font-size: 38px; }
html.js .plans .py .per { font-size: 15px; }
.plan .btn { width: 100%; white-space: normal; text-align: center; }
.plan .btn-lg { min-height: 50px; font-size: 16px; }
.plan .fine { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.ticks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.ticks li { position: relative; margin: 0; padding-left: 27px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 1px; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 3px); width: 4px; height: 8px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks li b { color: var(--text); }
.ticks li.lead-in { padding-left: 0; font-weight: 800; color: var(--text); }
.ticks li.lead-in::before, .ticks li.lead-in::after { display: none; }
.ticks li.off { color: var(--text-3); }
.ticks li.off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.ticks li.off::after { display: none; }

/* trust line */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); list-style: none; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.trust svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent-text); }
.cur { text-align: center; font-size: 13px; color: var(--text-3); margin: 0 0 6px; }

/* ---------- why Plus ---------- */
.why { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 22px; }
.why div { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c, var(--accent)); }
.why b { display: block; margin-bottom: 4px; font-size: 16px; }
.why span { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- comparison table ---------- */
.cmp-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.cmp { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; font-size: 13.5px; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 8px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--text-2); line-height: 1.4; overflow-wrap: break-word; }
.cmp thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 800; padding: 12px 6px; z-index: 1; }
.cmp thead th:first-child, .cmp tbody th[scope="row"] { text-align: left; width: 36%; padding-left: 12px; }
.cmp tbody th[scope="row"] { color: var(--text); font-weight: 700; background: transparent; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .grp th { text-align: left; padding: 14px 12px 8px; background: var(--surface-2); color: var(--accent-text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.cmp .hl { background: var(--accent-soft); }
.cmp thead th.hl { background: color-mix(in srgb, var(--accent) 24%, var(--surface-2)); }
.cmp .yes { color: var(--good); font-weight: 800; font-size: 16px; }
.cmp .no { color: var(--text-3); }
.cmp td b { color: var(--text); }
.cmp .px { font-weight: 800; color: var(--text); }
.cmp small { display: block; font-weight: 600; color: var(--text-3); font-size: 12px; }

/* ---------- final call ---------- */
.cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.cta .btn { margin: 6px 4px 4px; }

@media (min-width: 560px) {
  .why { grid-template-columns: repeat(3, 1fr); }
  .cmp { font-size: 14.5px; }
  .cmp th, .cmp td { padding: 12px 12px; }
  .cmp thead th { font-size: 15px; }
  .cmp thead th:first-child, .cmp tbody th[scope="row"] { width: 34%; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1.08fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
  .plan.p-free { order: 0; } .plan.p-master { order: 1; } .plan.p-gm { order: 2; }
  .plan.hl { padding-top: 26px; padding-bottom: 24px; box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
  .plan { height: 100%; }
}
@media (max-width: 380px) {
  .seg button { padding: 8px 12px; font-size: 14px; }
  .seg .save { display: none; }
  .cmp thead th:first-child, .cmp tbody th[scope="row"] { width: 34%; padding-left: 8px; }
  .cmp { font-size: 12.5px; }
  .cmp th, .cmp td { padding: 9px 4px; }
  .cmp .grp th { padding-left: 8px; }
}
@media print { .seg-wrap { display: none; } .plan { break-inside: avoid; } }
