/* Pricing page. Plan columns after ClickUp's joined layout; compare table and secure-payment band in BlueMind style. */

:root {
  --pr-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 12px 32px -12px rgba(16, 24, 40, 0.16);
}

/* Region / billing variants: only the matching [data-v] shows */
.pr [data-v] { display: none; }
.pr[data-region="ca"][data-bill="m"] [data-v="ca-m"],
.pr[data-region="ca"][data-bill="y"] [data-v="ca-y"],
.pr[data-region="us"][data-bill="m"] [data-v="us-m"],
.pr[data-region="us"][data-bill="y"] [data-v="us-y"] { display: inline; }

/* 01 · Hero */
.pr-hero { padding-top: 140px; background: radial-gradient(70% 50% at 50% 0%, var(--blue-10, #f2f8ff), transparent 70%); }
.pr-hero__head { max-width: 920px; margin: 0 auto; text-align: center; }
.pr-hero__head .eyebrow { justify-content: center; }
.pr-hero__title { margin-top: 14px; font-size: clamp(34px, 3.8vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.pr-hero__title span { color: var(--ink-soft, #8c8c8c); }
.pr-hero__head .lead { max-width: 640px; margin: 20px auto 0; text-align: center; }

.pr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 80px 0 28px; }
/* While the toggles are hidden, the cards take the bar's place below the heading */
.pr-hero__head + .pr-plans { margin-top: 64px; }
.pr-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--slate-50); }
.pr-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: var(--radius-full); background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pr-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
.pr-seg em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--accent-ink); }

/* Plan columns: one joined row, the pick in ink */
.pr-plans { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(8, auto) 1fr; list-style: none; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
/* Subgrid: name, tag, price, unit, AI credits, button, list head, list and link line up across all four plans */
.pr-plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; align-content: start; padding: 32px 24px; }
.pr-plan + .pr-plan { border-left: 1px solid var(--line); }
.pr-plan--pick { position: relative; z-index: 1; margin: 4px 0; padding-block: 28px; border-radius: 24px; border-left: 0 !important; background: var(--ink); color: #fff; }
.pr-plan--pick + .pr-plan { border-left: 0; }
.pr-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; font-weight: 500; }
.pr-plan__badge { padding: 4px 10px; border-radius: var(--radius-full); background: var(--accent-ink); font-size: 13px; font-weight: 500; color: #fff; }
.pr-plan__tag { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pr-plan--pick .pr-plan__tag, .pr-plan--pick .pr-plan__unit, .pr-plan--pick .pr-plan__price s { color: rgba(255, 255, 255, 0.6); }
.pr-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 24px; }
.pr-plan__price b { font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pr-plan__price s { flex-basis: 100%; font-size: 18px; line-height: 1.2; color: var(--muted); }
.pr-plan__unit { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pr-plan__extra { align-self: end; margin-top: 24px; font-size: 14px; line-height: 1.45; }
.pr-plan__extra p { margin: 0; color: var(--ink); }
.pr-plan__extra p + p { color: var(--muted); }
.pr-plan__extra .pr-plan__more { margin-top: 12px; }
.pr-bar__note { margin: 0; font-size: 13px; color: var(--muted); }
/* AI credits per plan, a pill under the price */
.pr-plan__credits { display: inline-flex; align-items: center; justify-self: start; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--blue-10, #f2f8ff); font-size: 14px; color: var(--ink); }
.pr-plan__credits .icon { font-size: 15px; color: var(--accent-ink); }
.pr-plan__credits b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-plan--pick .pr-plan__credits { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pr-plan--pick .pr-plan__credits .icon { color: var(--blue-300, #66b3ff); }
.pr-plan__cta { width: 100%; margin-top: 20px; }
.pr-plan--pick .pr-plan__cta { --btn-bg: #fff; --btn-fg: var(--ink); }
.pr-plan__plus { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.pr-plan--pick .pr-plan__plus { border-color: rgba(255, 255, 255, 0.14); }
.pr-plan__list { display: grid; align-content: start; gap: 10px; margin-top: 14px; list-style: none; font-size: 15px; line-height: 1.4; }
.pr-plan__list li { display: flex; align-items: flex-start; gap: 10px; }
.pr-plan__list .icon { flex: none; margin-top: 0; font-size: 17px; color: var(--blue-500); }
.pr-plan--pick .pr-plan__list .icon { color: var(--blue-300, #66b3ff); }
.pr-plan__more { display: inline-flex; align-items: center; align-self: end; justify-self: start; gap: 6px; margin-top: 24px; padding: 8px 14px 8px 16px; border-radius: var(--radius-full); background: var(--blue-10, #f2f8ff); font-size: 14px; font-weight: 500; color: var(--accent-ink); text-decoration: none !important; transition: background 0.2s ease; }
.pr-plan__more .icon { font-size: 15px; text-decoration: none; transition: transform 0.2s ease; }
.pr-plan__more:hover { background: var(--blue-50, #e5f2ff); }
.pr-plan__more:hover .icon { transform: translateX(3px); }
.pr-soon { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--slate-50); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr-plan--pick .pr-soon { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }

/* One grid for the whole page: every section starts and ends on the container edges (1240px, 12 columns).
   Section heads (savings): eyebrow + title on the left 6 columns, the lead on the right 5. */
.pr .section { padding: 112px 0; }
.pr .sv__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 14px; align-items: end; max-width: none; margin: 0 0 56px; text-align: left; }
.pr .sv__head > .eyebrow { grid-column: 1 / 7; justify-content: flex-start; }
.pr .sv__head > .h2 { grid-column: 1 / 7; grid-row: 2; }
.pr .sv__head > .lead { grid-column: 8 / 13; grid-row: 2; margin: 0; }
.pr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Bands: plans on a soft tint, compare and FAQ on white, savings on grey, secure payment dark */
.pr-band { background: var(--slate-10, #f8f8f8); }

/* 03 · Compare plans, after ElevenLabs: one ruled grid, groups stacked, right-aligned values */
.pr-cmp__top { margin-bottom: 32px; }
.pr-cmp { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pr-cmp__head, .pr-cmp__row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); }
.pr-cmp__head > span, .pr-cmp__row > span { display: flex; align-items: center; justify-content: flex-end; min-height: 56px; padding: 12px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.pr-cmp__head > span { min-height: 64px; font-size: 16px; font-weight: 500; }
.pr-cmp__row > span:first-child, .pr-cmp__head > span:first-child { justify-content: flex-start; gap: 8px; text-align: left; color: var(--ink-2, #474747); }
.pr-cmp__label { padding: 10px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--slate-10, #f8f8f8); font-size: 16px; font-weight: 500; color: var(--ink); }
.pr-cmp__label span { display: inline-flex; align-items: center; gap: 10px; }
.pr-cmp__label .icon { font-size: 22px; color: var(--ink); }
.pr-cmp__info { flex: none; font-size: 15px; color: var(--slate-400, #8c8c8c); cursor: help; }
.pr-yes { font-size: 16px; color: var(--ink); }
.pr-no { font-size: 15px; color: var(--slate-300, #c2c2c2); }

/* Savings calculator on the grey band: no inner panel, receipt stays white */
.pr .sv__fine { max-width: none; margin-top: 24px; text-align: left; }

/* 04 · FAQ: title in the left 4 columns, questions in the right 7 */
.pr.pr #faq > .container { max-width: var(--container-max, 1240px); }
.pr #faq .container { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.pr .faq2__title { grid-column: 1 / 5; position: sticky; top: 112px; margin: 0; font-size: var(--text-2xl, 40px); line-height: 1.15; text-align: left; text-wrap: balance; }
.pr #faq .acc { grid-column: 6 / 13; }

/* 05 · Secure payment: the Enterprise security bento; head is title left, lead and button right */
.pr-secure .pr-secure__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; max-width: none; margin-bottom: 48px; }
.pr-secure__head > div:first-child { grid-column: 1 / 7; }
.pr-secure__head > div:last-child { grid-column: 8 / 13; padding-top: 34px; } /* lines the lead up with the title, not the eyebrow */
.pr-secure__head .lead { margin: 0; }
.pr-secure__cta { margin-top: 24px; --btn-bg: #fff; --btn-fg: var(--ink); }
.pr-secure .bento__card p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .pr-plans { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 0; }
  .pr-plan:nth-child(3) { border-left: 0; }
  .pr-plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pr-plan--pick { margin: 0; padding-block: 32px; }
}
@media (max-width: 1000px) {
  .pr .sv__head { grid-template-columns: 1fr; }
  .pr .sv__head > * { grid-column: 1 !important; grid-row: auto !important; }
  .pr #faq .container, .pr-secure .pr-secure__head { grid-template-columns: 1fr; row-gap: 24px; }
  .pr .faq2__title, .pr #faq .acc, .pr-secure__head > div { grid-column: 1 !important; }
  .pr-secure__head > div:last-child { padding-top: 0; }
  .pr .faq2__title { position: static; }
}
@media (max-width: 700px) {
  .pr-hero { padding-top: 112px; }
  .pr-bar { flex-wrap: wrap; margin-top: 48px; }
  .pr-hero__head + .pr-plans { margin-top: 40px; }
  .pr-seg button { gap: 4px; padding: 8px 8px; font-size: 13px; }
  .pr-bar { gap: 8px; }
  .pr-seg em { font-size: 11px; }
  .pr-plan__more { gap: 4px; padding: 7px 10px 7px 12px; font-size: 13px; }
  /* Plans: a side-scrolling row of cards that snap into place */
  .pr-plans { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-rows: repeat(8, auto) 1fr; gap: 0 12px; margin-inline: -16px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; border: 0; border-radius: 0; background: none; }
  .pr-plans::-webkit-scrollbar { display: none; }
  .pr-plan { scroll-snap-align: start; border: 1px solid var(--line) !important; border-radius: 24px; background: var(--surface); }
  .pr-plan--pick { margin: 0; padding-block: 32px; border-color: var(--ink) !important; background: var(--ink); }
  .pr .section { padding: 80px 0; }
  /* Compare: each feature on its own line, the three plan values in a row under it */
  .pr-cmp__head, .pr-cmp__row { grid-template-columns: repeat(3, 1fr); }
  .pr-cmp__head > span:first-child { display: none; }
  .pr-cmp__head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
  .pr-cmp__head > span { min-height: 52px; justify-content: center; font-size: 15px; }
  .pr-cmp__row > span:first-child { grid-column: 1 / -1; min-height: 0; padding: 14px 14px 6px; border-bottom: 0; font-size: 15px; color: var(--ink); }
  .pr-cmp__row > span:not(:first-child) { justify-content: center; min-height: 44px; padding: 6px 8px 14px; font-size: 14px; text-align: center; }
  .pr-cmp__label { padding: 12px 14px; }
}
