/* Pricing page: builds on main.css tokens */
.pricing-page { --accent: #6B56F0; --card: #FFFFFF; --soft: #F4F4F5; }
.nav__links a[aria-current="page"] { color: var(--black); }

.pricing { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 72px; }

/* Hero */
.p-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.p-hero__title { margin: 0; max-width: 16ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.6vw, 56px); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.p-hero__sub { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: #6B6B6B; text-wrap: balance; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; width: 100%; margin: 0 auto; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.plan__name { margin: 0; font-size: 17px; font-weight: 600; }
.plan__badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.plan__price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 2px; }
.plan__amount { font-family: var(--font-display); font-weight: 500; font-size: 42px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { font-size: 15px; color: #6B6B6B; }
.plan__note { margin: 4px 0 0; min-height: 42px; font-size: 14px; line-height: 1.5; color: #6B6B6B; }
.plan__tickets { margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 15px; }
.plan__tickets > b { font-family: var(--font-display); font-weight: 500; font-size: 24px; font-variant-numeric: tabular-nums; }
.plan__tl { color: #6B6B6B; }
.plan__rows { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan__rows li { display: flex; justify-content: space-between; gap: 12px; }
.plan__rows span { color: #6B6B6B; }
.plan__rows b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan__cta { margin-top: auto; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: var(--surface); color: var(--black); font-size: 15px; font-weight: 600; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.plan__rows + .plan__cta { margin-top: 28px; }
.plan__cta:hover { background: #E6E6E6; transform: scale(.98); }
.plan__cta:focus-visible, .tip__btn:focus-visible, .pfaq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Highlighted plan */
.plan--hl { background: var(--black); border-color: var(--black); color: #fff; }
.plan--hl .plan__per, .plan--hl .plan__note, .plan--hl .plan__tl, .plan--hl .plan__rows span { color: rgba(255, 255, 255, .62); }
.plan--hl .plan__tickets { border-color: rgba(255, 255, 255, .16); }
.plan--hl .plan__cta { background: #fff; color: var(--black); }
.plan--hl .plan__cta:hover { background: #EDEDED; }
.plan--hl .tip__btn { color: rgba(255, 255, 255, .7); }

/* Free trial */
.plan--trial { background: var(--soft); border-style: dashed; }
.plan--trial .plan__cta { background: var(--black); color: #fff; }
.plan--trial .plan__cta:hover { background: #222; }

/* Ticket info tooltip */
.plan__tickets { position: relative; }
.tip { position: static; display: inline-flex; align-items: center; gap: 4px; }
.tip__btn { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -4px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8A8A8A; cursor: help; }
.tip__btn:hover { color: var(--black); }
.plan--hl .tip__btn:hover { color: #fff; }
.tip__box { position: absolute; left: -6px; right: -6px; bottom: calc(100% - 4px); z-index: 5; width: auto; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.tip__box::after { content: ""; position: absolute; left: var(--ax, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.plan--hl .tip__box { background: #fff; color: var(--black); }
.plan--hl .tip__box::after { border-top-color: #fff; }
.tip:hover .tip__box, .tip:focus-within .tip__box, .tip.is-open .tip__box { opacity: 1; visibility: visible; transform: none; }

/* Included + FAQ */
.incl, .p-faq { display: flex; flex-direction: column; gap: 20px; max-width: 860px; width: 100%; margin: 0 auto; }
.incl__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; text-align: center; }
.incl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.incl__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.incl__list svg { flex: none; margin-top: 3px; color: var(--accent); }
.pfaq { border-bottom: 1px solid var(--line); }
.pfaq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: #8A8A8A; transition: transform .2s ease; }
.pfaq[open] summary::after { transform: rotate(45deg); }
.pfaq p { margin: 0 0 18px; max-width: 65ch; font-size: 15px; line-height: 1.6; color: #555; }

@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 720px) {
  .pricing { padding-top: 48px; padding-bottom: 64px; gap: 56px; }
  .plans { grid-template-columns: 1fr; }
  .plan__note { min-height: 0; }
  .incl__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tip__box, .plan__cta, .pfaq summary::after { transition: none; } }

.plan__rows .plan__trial b { color: var(--accent); }
.plan--hl .plan__rows .plan__trial b { color: #B3A8FF; }

/* v2: monthly / yearly switch, plain cards, highlighted recommended plan */
.bill { align-self: center; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: -32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.bill__opt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #6B6B6B; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.bill__opt.is-on { background: #fff; color: var(--black); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.bill__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bill__save { padding: 3px 8px; border-radius: 999px; background: #EEEBFF; color: var(--accent); font-size: 12px; font-weight: 600; }

.plans { align-items: end; padding-top: 30px; }
.plan { background: transparent; }
.plan__was { display: none; margin-left: 8px; font-size: 18px; color: #A3A3A3; }
.plan__price.is-yearly .plan__was { display: inline; }
.plan__bill { margin: 2px 0 0; font-size: 13px; color: #8A8A8A; font-variant-numeric: tabular-nums; }
.plan__note { min-height: 0; margin-top: 10px; }

/* Recommended: white card, accent border and a flag on top */
.plan--hl { background: #fff; color: var(--black); border: 2px solid var(--accent); border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 24px 48px -24px rgba(107, 86, 240, .35); }
.plan__flag { position: absolute; left: -2px; right: -2px; bottom: 100%; padding: 7px 0; border-radius: 20px 20px 0 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.plan--hl .plan__per, .plan--hl .plan__note, .plan--hl .plan__tl, .plan--hl .plan__rows span { color: #6B6B6B; }
.plan--hl .plan__tickets { border-color: var(--line); }
.plan--hl .plan__cta { background: var(--black); color: #fff; }
.plan--hl .plan__cta:hover { background: #222; }
.plan--hl .tip__btn { color: #8A8A8A; }
.plan--hl .tip__btn:hover { color: var(--black); }
.plan--hl .tip__box { background: var(--ink); color: #fff; }
.plan--hl .tip__box::after { border-top-color: var(--ink); }
.plan--hl .plan__rows .plan__trial b { color: var(--accent); }
@media (max-width: 960px) { .plans { gap: 48px 16px; } .bill { margin-bottom: -24px; } }
@media (max-width: 420px) { .bill__opt { padding: 0 14px; } }

/* v3: white cards; recommended card keeps rounded corners and sits on the accent flag */
.plans { isolation: isolate; }
.plan { background: #fff; }
.plan--hl { border-radius: 20px; }
.plan__flag { z-index: -1; bottom: calc(100% - 22px); padding: 7px 0 29px; border-radius: 22px 22px 0 0; }

/* v4: grey cards, recommended card white with a badge (no outline, no flag) */
.plans { padding-top: 0; align-items: stretch; }
.plan { background: #F1F1F1; border: 0; }
.plan__cta { background: #fff; }
.plan__cta:hover { background: #FAFAFA; }
.plan--hl { background: #fff; border: 0; border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .25); }
.plan--hl .plan__cta { background: var(--black); color: #fff; }
.plan--hl .plan__cta:hover { background: #222; }
.plan__tickets { border-color: #E0E0E0; }
.plan--hl .plan__tickets { border-color: var(--line); }

/* v5: all cards #F1F1F1 with a 1px #E5E5E5 border */
.plan, .plan--hl { background: #F1F1F1; border: 1px solid #E5E5E5; box-shadow: none; }

/* v6: calmer cards (more space, fewer details), homepage-style table and FAQ */
.pricing { gap: 96px; }
.plans { gap: 20px; }
.plan { gap: 0; padding: 32px 28px 28px; }
.plan__top { min-height: 28px; }
.plan__name { font-size: 20px; font-weight: 600; }
.plan__note { margin: 8px 0 0; font-size: 15px; color: #6B6B6B; }
.plan__pricebox { margin: 32px 0 0; }
.plan__price { margin: 0; }
.plan__amount { font-size: 48px; }
.plan__bill { margin-top: 8px; }
.plan__tickets { margin: 28px 0 0; padding: 0; border: 0; font-size: 16px; }
.plan__cta { margin-top: 32px; }
.plan__trialnote { margin: 12px 0 0; font-size: 13px; color: #8A8A8A; text-align: center; }

.cmp, .p-faq { display: flex; flex-direction: column; gap: 40px; }
.cmp__title { align-self: center; color: var(--ink); }
.ctable--plans thead th { vertical-align: bottom; }
.ctable--plans .cmp-price { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: #6B6B6B; }
.ctable--plans th.rowh { font-weight: 400; text-align: left; }
.ctable--plans th.rowh > div { padding: 22px 0; border-bottom: 1.5px dotted #D4D4D4; color: var(--text); line-height: 1.4; }
.ctable--plans td > div { padding: 22px 0; }
.ctable--plans tbody tr:last-child th > div { border-bottom-color: transparent; }
.ctable--plans .ok { justify-content: flex-end; }
.faq-list { width: 100%; max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) { .plan { padding: 28px 22px 24px; } .pricing { gap: 72px; } }
.plan__note { min-height: 3.1em; } @media (max-width: 960px) { .plan__note { min-height: 0; } }
/* v7: key plan details back in the cards */
.plan .plan__rows { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid #E0E0E0; gap: 12px; font-size: 14px; }
.plan .plan__rows + .plan__cta { margin-top: 32px; }
.plan .plan__rows b { font-weight: 400; color: var(--black); }
/* v8: info tooltips on comparison table rows */
.tip--row .tip__box { position: fixed; left: 0; right: auto; bottom: auto; width: 300px; }
.ctable--plans th.rowh .tip { flex-wrap: nowrap; }
/* v9: homepage-style dividers between sections */
.pricing { padding: 0; gap: 0; display: block; }
.pricing__part { display: flex; flex-direction: column; gap: 72px; padding-top: 96px; padding-bottom: 96px; }
.pricing__part:first-child { padding-top: 72px; }
@media (max-width: 720px) { .pricing__part { gap: 56px; padding-top: 64px; padding-bottom: 64px; } .pricing__part:first-child { padding-top: 48px; } }
.p-hero__sub { max-width: none; }
.pricing__part--table { padding-bottom: 0; }
/* v10: richer ticket tooltip with examples */
.tip__box .tip__h { display: block; font-weight: 600; margin-bottom: 4px; }
.tip__box .tip__p { display: block; color: rgba(255, 255, 255, .78); }
.tip__box .tip__ex { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.tip__box .tip__ex span { color: rgba(255, 255, 255, .78); }
.tip__box .tip__ex b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tip__box .tip__ex::before { content: "Examples"; grid-column: 1 / -1; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.tip--row .tip__box { width: 320px; }

/* v12: development add-on box under the cards */
.devbox { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 28px; border: 1px solid #E5E5E5; border-radius: 20px; background: #F1F1F1; transition: background-color .2s ease, border-color .2s ease; }
.dev-on .devbox { background: #fff; border-color: var(--accent); }
.devbox__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--black); }
.devbox__price { padding: 3px 10px; border-radius: 999px; background: #EEEBFF; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.devbox__title .tip__btn { color: #8A8A8A; }
.devbox__desc { margin: 8px 0 0; max-width: 640px; font-size: 15px; line-height: 1.5; color: #6B6B6B; }
.dev__label { flex: none; display: inline-flex; cursor: pointer; }
.dev__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dev__switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #D4D4D4; transition: background-color .2s ease; }
.dev__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.dev__input:checked + .dev__switch { background: var(--accent); }
.dev__input:checked + .dev__switch::after { transform: translateX(22px); }
.dev__input:focus-visible + .dev__switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan__dev b.is-inc, .cmp-dev td div.is-inc { color: var(--accent); }
@media (max-width: 640px) { .devbox { padding: 22px; align-items: flex-start; } .devbox__title { font-size: 18px; } }
.devbox { box-sizing: border-box; max-width: 1080px; width: 100%; margin: -52px auto 0; }
@media (max-width: 960px) { .devbox { max-width: 460px; margin-top: -24px; } }
@media (max-width: 720px) { .devbox { margin-top: -36px; } }
