/* ═══════════════════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.p-hero { padding: 88px 0 56px; background: var(--surface); }

/* Monthly / yearly */
.cycle { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.cycle button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-xs); font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.cycle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--btn-shadow), 0 0 0 1px var(--rule); }
.cycle .save { padding: 1px 6px; border-radius: var(--r-xs); background: var(--pos-bg); color: var(--pos); font-size: 12px; }
.pricing [data-show] { display: none; }
.pricing[data-cycle="month"] [data-show="month"], .pricing[data-cycle="year"] [data-show="year"] { display: inline; }

/* Plan cards */
.p-plans { padding: 16px 0 96px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); }
.plan--hot { box-shadow: 0 0 0 1.5px var(--brand); }
.plan__badge { position: absolute; top: -11px; left: 24px; padding: 2px 10px; border-radius: var(--r-xs); background: var(--brand); color: #fff; font-size: 12px; font-weight: 500; }
.plan__name { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.plan__tag { min-height: 44px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan__price { display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; }
.plan__price s { margin-bottom: 6px; font-size: 18px; color: var(--muted); }
.plan__amount { font-size: 44px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); font-family: var(--mono); }
.plan__per { margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.plan__billed { margin: 8px 0 20px; }
.plan .btn--block { width: 100%; }
.plan__groups { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule-faint); }
.plan__label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.plan__group ul { display: flex; flex-direction: column; gap: 9px; }
.plan__group li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--body); }
.plan__group li::before { content: '✓'; flex: none; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-top: 1px; color: var(--brand); font-size: 12px; font-weight: 600; }
.plan__group li.off { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.plan__group li.off::before { content: '–'; background: var(--surface-2); color: var(--muted); }
.plan__group li > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.pricing .logo-stack { display: inline-flex; align-items: center; }
.pricing .logo-stack .logo-ai { width: 18px; height: 18px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.pricing .logo-stack .logo-ai + .logo-ai { margin-left: -5px; }

.enterprise { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px 32px; border-radius: var(--r-xl); background: var(--night); color: #B3C7F2; }
.enterprise .btn { flex: none; }

/* Compare table */
.p-compare { padding: 0 0 96px; }
.p-compare__table { margin-top: 96px; }
/* The monthly/yearly switch above the plan cards on the homepage, Solutions and platform pages. */
.sol-pricing__cycle { display: flex; justify-content: center; margin: 28px 0 40px; }
.compare { margin-top: 32px; overflow-x: auto; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; width: 34%; color: var(--body); }
.compare td:first-child .logo-stack { margin-left: 8px; vertical-align: middle; }
.compare thead th { border-bottom: 1px solid var(--rule); }
.compare__name { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.compare__price { font-size: 13px; color: var(--muted); font-weight: 400; }
.compare tbody tr + tr td { border-top: 1px solid var(--rule-faint); }
.compare tr.group td { display: table-cell; padding: 10px 16px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.compare .hot { background: rgba(238, 243, 255, .7); }
.compare .yes { color: var(--brand); }
/* Solutions pages also load the homepage CSS, where .yes and .no are icon boxes. Keep these as table cells. */
.compare td.yes, .compare td.no { display: table-cell; width: auto; height: auto; background-image: none; vertical-align: middle; }
.compare .no { color: var(--faint); }
.compare .num { color: var(--ink); }

/* FAQ */
.p-faq { padding: 0 0 96px; }
.faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 32px 20px 0; color: var(--body); }

/* Closing call to action */
.p-cta { padding: 0 0 80px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 24px; border-radius: var(--r-xl); text-align: center; }
.cta .logo-stack .logo-ai { width: 30px; height: 30px; border-radius: 8px; }
.cta .logo-stack .logo-ai + .logo-ai { margin-left: -8px; }

@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Starter: pick one toolset, with a line between the two */
.pick { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.pick button { padding: 8px 6px; border-radius: var(--r-xs); font-size: 13px; color: var(--muted); }
.pick button + button { border-left: 1px solid var(--rule); }
.pick button[aria-checked="true"] { background: #fff; color: var(--brand); font-weight: 600; border-left-color: transparent; border-radius: var(--r-xs); box-shadow: var(--btn-shadow), 0 0 0 1px var(--rule); }
.plan[data-track="visibility"] [data-for="seo"], .plan[data-track="seo"] [data-for="visibility"] { display: none; }
.plan__tip { display: block; font-size: 12px; line-height: 1.45; color: var(--muted); text-decoration: none; }
.plan__tag-pill { font-style: normal; padding: 1px 8px; border-radius: var(--r-xs); background: var(--brand-pale); color: var(--brand); font-size: 11px; font-weight: 500; text-decoration: none; display: inline-block; }
.compare .pickone { color: var(--brand); font-size: 13px; }
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .enterprise { flex-direction: column; align-items: flex-start; }
}
