/* Pricing page: builds on the spotlight tokens and components in home.css. */
.pricing-hero { padding-bottom: 96px; }
.pricing-hero h1 { font-size: clamp(46px, 6.4vw, 88px); }

.pricing-plans { max-width: 820px; margin: 56px auto 0; }

/* Billing period switch (CSS-only, keyboard-operable radio group). Yearly is the default. */
.pricing-period { display: inline-flex; gap: 4px; margin: 0 0 32px; padding: 4px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.pricing-period label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.pricing-period label:hover { color: var(--ink); }
.pricing-period input:checked + label { background: var(--ink); color: var(--paper); }
.pricing-period input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pricing-period input:checked + label .pricing-saving { background: var(--accent); color: var(--paper); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; text-align: left; }
.pricing-plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pricing-plan-pro { box-shadow: 0 0 0 2px var(--accent), var(--float-shadow); }
.pricing-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 12px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.pricing-saving { display: inline-block; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.spotlight-page .pricing-plan-name { max-width: none; margin: 0 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; text-align: left; }
.pricing-plan-pro .pricing-plan-name { color: var(--accent); }
.pricing-plan-summary { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.pricing-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.pricing-amount { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.pricing-unit { color: var(--muted); font-size: 15px; }
.pricing-billing { min-height: 1.5em; margin: 10px 0 0; color: var(--quiet); font-size: 13px; line-height: 1.5; }
.pricing-switch-hint { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pricing-plans:has(#period-monthly:checked) .pricing-price-annual,
.pricing-plans:has(#period-annual:checked) .pricing-price-monthly { display: none; }
.pricing-features { display: grid; gap: 12px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; line-height: 1.45; }
.pricing-features li { position: relative; padding-left: 28px; }
.pricing-features li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pricing-features strong { font-weight: 600; }

/* Comparison table */
.pricing-compare { padding-block: 112px; }
.pricing-compare h2 { margin-bottom: 48px; }
.pricing-table-frame { max-width: 880px; margin-inline: auto; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.pricing-table th, .pricing-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing-table th:first-child { padding-left: 0; }
.pricing-table td:last-child, .pricing-table th:last-child { padding-right: 0; }
.pricing-table thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.pricing-table thead th:last-child { color: var(--accent); }
.pricing-table tbody th { font-weight: 500; }
.pricing-table td { width: 30%; color: var(--muted); }
.pricing-table td.pricing-yes { position: relative; padding-left: 40px; color: var(--ink); }
.pricing-table td.pricing-yes::before { content: ""; position: absolute; left: 14px; top: calc(16px + .35em); width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pricing-table tfoot th, .pricing-table tfoot td { color: var(--ink); font-weight: 650; }
.pricing-table tfoot tr:last-child th, .pricing-table tfoot tr:last-child td { border-bottom: 0; }
.pricing-notes { max-width: 880px; margin: 32px auto 0; padding: 24px 0 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.pricing-notes li+li { margin-top: 6px; }

.spot-navigation-link[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
    .pricing-plans { max-width: 520px; }
    .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pricing-plan-pro { order: -1; }
}
@media (max-width: 640px) {
    .pricing-hero { padding-bottom: 72px; }
    .pricing-hero h1 { font-size: clamp(38px, 11.5vw, 52px); }
    .pricing-plans { margin-top: 36px; }
    .pricing-period { display: flex; }
    .pricing-period label { flex: 1; justify-content: center; padding: 0 10px; }
    .pricing-plan { padding: 28px 22px; border-radius: 24px; }
    .pricing-amount { font-size: 44px; }
    .pricing-compare { padding-block: 72px; }
    .pricing-compare h2 { margin-bottom: 28px; }
    .pricing-table { font-size: 14px; }
    .pricing-table th, .pricing-table td { padding: 14px 6px; }
    .pricing-table td { width: 28%; }
    .pricing-table td.pricing-yes { padding-left: 26px; }
    .pricing-table td.pricing-yes::before { left: 6px; top: calc(14px + .35em); }
}

/* ChatGPT and Claude marks next to the connections feature. */
.pricing-ai-logos { display: inline-flex; gap: 5px; margin-left: 6px; vertical-align: -3px; }
.pricing-ai-logos .ai-logo { width: 16px; height: 16px; }
