/* Pricing page only. Loaded via front matter "styles: /assets/css/pages/pricing.css".
   Page classes are prefixed .pr-; shared components are only refined inside .page-pricing. */

/* Hero ---------------------------------------------------------------------- */
.pr-hero { padding-top: calc(var(--header-h) + clamp(44px, 7vw, 96px)); padding-bottom: clamp(28px, 4vw, 44px); }
.pr-hero .page-hero__title { max-width: 980px; }
.pr-hero .page-hero__lede { max-width: 600px; }
.pr-hero .fx-grid { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, #000 0%, transparent 75%); }

.pr-billing { margin-top: clamp(28px, 4vw, 40px); display: grid; justify-items: center; gap: 14px; }
.pr-billing__toggle {
  padding: 8px 10px 8px 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px var(--hairline-strong), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 44px -22px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(108, 77, 255, 0.04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.pr-billing__toggle .billing-toggle__label { min-height: 32px; }
@media (max-width: 399px) {
  .pr-billing__toggle { flex-wrap: nowrap; gap: 10px; padding: 6px 8px 6px 14px; }
  .pr-billing__toggle .billing-toggle__label { gap: 6px; font-size: 0.875rem; }
  .pr-billing__toggle .badge { height: 20px; padding: 0 7px; font-size: 0.625rem; }
}
/* The note sits in a shared .billing-slot (reserved height, no layout shift). */
.pr-billing__slot { justify-items: center; }
.pr-billing__note { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); text-align: left; }
.pr-billing__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--violet-300); }

/* Entrance (first screen only: reveal-on-scroll never touches it). Uses the
   individual `translate` property so the featured card keeps its transform lift. */
@media (prefers-reduced-motion: no-preference) {
  .pr-hero .page-hero__inner > * { animation: pr-rise 900ms var(--ease-out) both; }
  .pr-hero .page-hero__inner > :nth-child(2) { animation-delay: 60ms; }
  .pr-hero .page-hero__inner > :nth-child(3) { animation-delay: 120ms; }
  .pr-hero .page-hero__inner > :nth-child(4) { animation-delay: 180ms; }
  .pr-grid > .pr-plan { animation: pr-rise 1000ms var(--ease-out) both; animation-delay: 220ms; }
  .pr-grid > .pr-plan:nth-child(2) { animation-delay: 300ms; }
  .pr-grid > .pr-plan:nth-child(3) { animation-delay: 380ms; }
  .pr-billing__note { animation: pr-fade 420ms var(--ease-out) both; }
}
@keyframes pr-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes pr-fade { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: none; } }

/* Price swap when the billing mode changes (class added by pricing.js). */
.page-pricing .pr-th__amount { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .pr-swap { animation: pr-swap 480ms var(--ease-out) both; }
}
@keyframes pr-swap { from { opacity: 0; translate: 0 -0.32em; } to { opacity: 1; translate: none; } }

/* Plan cards ------------------------------------------------------------------ */
.pr-plans__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 42% at 50% 24%, rgba(108, 77, 255, 0.2), rgba(108, 77, 255, 0) 70%),
    radial-gradient(16% 20% at 58% 18%, rgba(70, 232, 212, 0.06), rgba(70, 232, 212, 0) 70%);
}
.pr-plans { padding-top: 14px; }
@media (min-width: 1024px) { .pr-plans { padding-top: 6px; } } /* + the shared .pricing-grid 8px */
.pr-grid { position: relative; }
@media (max-width: 1023px) { .pr-grid { max-width: 580px; margin-inline: auto; } }
/* Three columns: subgrid rows line up price, meta, button and list across the cards. */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .pr-grid { row-gap: 0; }
    .pr-grid > .pr-plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .pr-plan > .price-card__head { grid-row: 1; }
    .pr-plan > .price-card__desc { grid-row: 2; }
    .pr-plan > .price-card__price { grid-row: 3; }
    .pr-plan > .price-card__note { grid-row: 4; }
    .pr-plan > .pr-nojs { grid-row: 5; }
    .pr-plan > .price-card__meta { grid-row: 6; align-content: center; }
    .pr-plan > .price-card__cta { grid-row: 7; align-self: start; }
    .pr-plan > .price-card__list-title { grid-row: 8; }
    .pr-plan > .check-list { grid-row: 9; align-content: start; }
  }
}
.page-pricing .pr-meta--stack > div { flex-direction: column; gap: 6px; }
.page-pricing .pr-meta--stack dd { max-width: none; text-align: left; line-height: 1.5; }
/* Narrow three-column cards: stack label over value so values don't break mid-phrase. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .page-pricing .pr-plan .price-card__meta { gap: 12px; }
  .page-pricing .pr-plan .price-card__meta > div { flex-direction: column; gap: 4px; }
  .page-pricing .pr-plan .price-card__meta dd { max-width: none; text-align: left; }
}
.page-pricing .pr-plan .price-card__head { min-height: 30px; }
.page-pricing .pr-plan .price-card__meta dd { max-width: 74%; }
.page-pricing .pr-plan .check-list > li { font-size: 0.90625rem; }
.page-pricing .pr-plan .price-card__amount { font-feature-settings: "tnum" 1; }
.page-pricing .pr-plan--featured .price-card__unit { color: var(--text-1); }
.page-pricing .pr-plan--featured .price-card__note { color: var(--text-2); }

/* Featured card: a slow light sweeping round its gradient border. The ring is a
   static mask; only the inner square rotates (transform), so it stays on the compositor. */
.page-pricing .pr-beam {
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1.5px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pr-beam__sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 1200px;
  margin: -600px 0 0 -600px;
  background: conic-gradient(from 0deg, rgba(169, 166, 255, 0) 0deg, rgba(169, 166, 255, 0) 292deg, rgba(169, 166, 255, 0.9) 336deg, rgba(125, 240, 226, 1) 354deg, rgba(125, 240, 226, 0) 360deg);
}
@media (prefers-reduced-motion: no-preference) {
  .pr-beam__sweep { animation: pr-sweep 8s linear infinite; will-change: transform; }
}
@keyframes pr-sweep { to { transform: rotate(360deg); } }

.pr-plans__foot { margin-top: clamp(40px, 5vw, 60px); display: grid; justify-items: center; gap: 28px; text-align: center; }
.pr-fineprint { max-width: 720px; font-size: 0.8125rem; line-height: 1.6; color: var(--text-3); }
.pr-channels { display: grid; justify-items: center; gap: 14px; }
.pr-channels__label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pr-channels__label::before, .pr-channels__label::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, rgba(169, 166, 255, 0), rgba(169, 166, 255, 0.6)); }
.pr-channels__label::after { transform: scaleX(-1); }
.pr-channels__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pr-plans__more { margin-top: -4px; }

/* What counts as an AI conversation ------------------------------------------ */
.pr-explain .section-head__lede { max-width: 600px; }
.pr-meter { margin: 0; }
.pr-meter__window {
  max-width: 1080px;
  margin-inline: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 120px -40px rgba(108, 77, 255, 0.45);
}
.pr-meter__window .app-window__title .icon { color: var(--text-1); }
.pr-meter__body { display: grid; gap: 16px; padding: clamp(16px, 3vw, 30px); }

.pr-wins { display: grid; gap: 0; }
.pr-win {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px clamp(16px, 2vw, 22px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px var(--border);
}
.pr-win--one {
  background: radial-gradient(90% 70% at 0% 0%, rgba(108, 77, 255, 0.16), rgba(108, 77, 255, 0) 70%), rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -34px rgba(108, 77, 255, 0.8);
}

/* The time band: the 24-hour window, drawn as a glowing bar with event nodes. */
.pr-band { position: relative; height: 6px; margin: 4px 6px 0; border-radius: 3px; background: rgba(255, 255, 255, 0.06); }
.pr-band__fill { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--violet-500), var(--violet-300) 72%, var(--aqua-300)); box-shadow: 0 0 18px -2px rgba(108, 77, 255, 0.85); transform-origin: left center; }
.pr-win--two .pr-band__fill { right: 46%; background: linear-gradient(90deg, var(--violet-500), var(--violet-300)); }
.pr-band__scan { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 62%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pr-band__scan { animation: pr-scan 4.2s var(--ease-in-out) 1.6s infinite; }
}
@keyframes pr-scan { 0% { transform: translateX(-62%); opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 82%, 100% { transform: translateX(62%); opacity: 0; } }
.pr-band__node { position: absolute; top: 50%; left: var(--at); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text-1); box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.55), 0 0 14px rgba(169, 166, 255, 0.9); }
.pr-band__end { position: absolute; right: -1px; top: -6px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--aqua-300); box-shadow: 0 0 10px rgba(70, 232, 212, 0.9); }

.pr-win__label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-200); }
.pr-win__label .icon { width: 14px; height: 14px; flex: none; }
.pr-win--two .pr-win__label { color: var(--text-2); }

.pr-win__events { display: grid; gap: 12px; }
.pr-ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.pr-win--two .pr-ev { grid-template-columns: minmax(0, 1fr); }
.pr-ev__time { padding-top: 7px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); white-space: nowrap; }
.pr-ev__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pr-ev__in, .pr-ev__ai, .pr-ev__team { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--text-1); }
.pr-ev__in { border-radius: var(--r-bubble-in); background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.pr-ev__ai, .pr-ev__team { align-self: flex-end; border-radius: var(--r-bubble-out); }
.pr-ev__ai { background: linear-gradient(160deg, rgba(123, 92, 255, 0.34), rgba(86, 52, 236, 0.22)); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.34), 0 8px 22px -12px rgba(108, 77, 255, 0.8); }
.pr-ev__team { background: linear-gradient(160deg, rgba(61, 220, 151, 0.14), rgba(61, 220, 151, 0.06)); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); }
.pr-ev__ai .icon, .pr-ev__team .icon { width: 14px; height: 14px; flex: none; }
.pr-ev__ai .icon { color: var(--aqua-300); }
.pr-ev__team .icon { color: var(--success); }

.pr-win__count { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed rgba(138, 110, 255, 0.28); }
.pr-win--two .pr-win__count { border-top-color: var(--border); }
.pr-win__count-label { font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; color: var(--text-1); }
.pr-count {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-brand);
  background: var(--grad-button);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(169, 166, 255, 0.4), 0 8px 20px -8px rgba(108, 77, 255, 0.95);
}
.pr-count--zero { color: var(--text-2); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* "Two days later": a dashed break between the two windows. */
.pr-gap { display: flex; align-items: center; gap: 12px; padding: 14px 6px; }
.pr-gap__line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 4px, transparent 4px 9px); }
.pr-gap__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

@media (min-width: 860px) {
  .pr-wins { grid-template-columns: minmax(0, 1.6fr) 112px minmax(0, 1fr); align-items: stretch; }
  .pr-gap { position: relative; display: block; padding: 0; }
  .pr-gap__line { position: absolute; left: 6px; right: 6px; top: 23px; }
  .pr-gap__line + .pr-gap__label + .pr-gap__line { display: none; }
  .pr-gap__label { position: absolute; left: 0; right: 0; top: 38px; text-align: center; white-space: normal; line-height: 1.5; }
  .pr-gap::before, .pr-gap::after { content: ""; position: absolute; top: 17px; width: 1px; height: 13px; background: var(--border-strong); transform: skewX(-20deg); }
  .pr-gap::before { left: calc(50% - 5px); }
  .pr-gap::after { left: calc(50% + 3px); }
}

/* Team-only lane: never counted. */
.pr-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
  padding: 14px clamp(16px, 2vw, 22px);
  border-radius: var(--r-lg);
  outline: 1px dashed var(--border-strong);
  outline-offset: -1px;
}
.pr-team__icon { width: 34px; height: 34px; color: var(--success); }
.pr-team__icon .icon { width: 16px; height: 16px; }
.pr-team__text { font-size: 0.875rem; line-height: 1.45; color: var(--text-1); }
.pr-team__count { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
@media (min-width: 640px) {
  .pr-team { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pr-team__count { grid-column: auto; }
}

.pr-meter__caption { max-width: 780px; margin: clamp(24px, 3vw, 32px) auto 0; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--text-1); text-wrap: balance; position: relative; z-index: 2; }
.pr-meter__caption .ai-dot { display: inline-block; margin-right: 10px; vertical-align: middle; }

/* The meter plays when revealed (only armed when JS runs and motion is allowed). */
.reveal-armed .pr-band__fill { transform: scaleX(0); transition: transform 1100ms var(--ease-out) 250ms; }
.reveal-armed .pr-win--two .pr-band__fill { transition-delay: 1150ms; transition-duration: 700ms; }
.reveal-armed .pr-band__node, .reveal-armed .pr-band__end, .reveal-armed .pr-count, .reveal-armed .pr-ev, .reveal-armed .pr-win__count-label {
  opacity: 0;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}
.reveal-armed .pr-band__node, .reveal-armed .pr-count { transform: scale(0.4); }
.reveal-armed .pr-ev { transform: translate3d(0, 8px, 0); }
.reveal-armed .pr-band__node, .reveal-armed .pr-ev { transition-delay: var(--d, 300ms); }
.reveal-armed .pr-win--one .pr-band__end { transition-delay: 1000ms; }
.reveal-armed .pr-win--one .pr-count, .reveal-armed .pr-win--one .pr-win__count-label { transition-delay: 1050ms; }
.reveal-armed .pr-win--two .pr-count, .reveal-armed .pr-win--two .pr-win__count-label { transition-delay: 1600ms; }
.reveal-armed .pr-team .pr-count { transition-delay: 1850ms; }
.reveal-armed.is-revealed .pr-band__fill, .reveal-armed.is-revealed .pr-band__node, .reveal-armed.is-revealed .pr-band__end,
.reveal-armed.is-revealed .pr-count, .reveal-armed.is-revealed .pr-ev, .reveal-armed.is-revealed .pr-win__count-label { opacity: 1; transform: none; }

/* Compare plans ----------------------------------------------------------------- */
.pr-compare-section .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.pr-th { display: grid; justify-items: center; gap: 6px; }
.pr-th__name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.012em; color: var(--text-1); }
.pr-th__price { display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 6px; font-family: var(--font-body); font-weight: 400; }
.pr-th__amount { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text-1); font-feature-settings: "tnum" 1; }
.pr-th__unit { font-size: 0.75rem; color: var(--text-3); }
.pr-compare .is-featured .pr-th__unit { color: var(--text-2); } /* text-3 is under 4.5:1 on the violet tint */
.pr-th__badge { margin-top: 2px; }
.pr-cell-text { font-size: 0.875rem; line-height: 1.4; color: var(--text-1); }
/* Icon plus a note ("with export"): the icon sits exactly where every other icon in its
   column sits, and the note hangs off it (to its right on desktop, below it when stacked). */
.pr-cell-combo { position: relative; display: inline-grid; vertical-align: middle; font-size: 0.875rem; color: var(--text-1); }
.pr-cell-combo__note { position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 0.8125rem; color: var(--text-2); }
@media (min-width: 860px) and (max-width: 1099px) { .pr-cell-combo__note { left: calc(100% + 6px); font-size: 0.75rem; } }
.pr-group { display: inline-flex; align-items: center; gap: 10px; }
.pr-group .icon { width: 16px; height: 16px; color: var(--violet-300); }
.pr-group--ai .icon { color: var(--aqua-300); }

/* The table uses the shared .compare--sticky (from 860px: plan header sticks under the
   site header) and .compare--stack (under 860px: stacked rows under a sticky plan bar). */
@media (min-width: 860px) {
  .pr-compare .compare__table thead th { vertical-align: bottom; padding-block: 18px; }
  .pr-compare .compare__table thead th:first-child { padding-bottom: 22px; }
}
@media (max-width: 859px) {
  .pr-th { gap: 2px; }
  .pr-th__name { font-size: 0.9375rem; }
  .pr-th__amount { font-size: 0.9375rem; }
  .pr-th__unit, .pr-th__badge { display: none; }
  .pr-cell-text, .pr-cell-combo { font-size: 0.8125rem; }
  /* Stacked rows: value cells align to the top, so a combo cell's icon shares the row's
     baseline and its note simply follows underneath. */
  .pr-compare .compare__table td { align-items: flex-start; }
  .pr-cell-combo { justify-items: center; gap: 4px; }
  .pr-cell-combo__note { position: static; translate: none; font-size: 0.75rem; }
}

/* FAQ --------------------------------------------------------------------------- */
.pr-faq__grid { display: grid; gap: 0; }
.pr-faq__link { margin-top: 26px !important; }
@media (min-width: 960px) {
  .pr-faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .pr-faq__head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}
.pr-faq__list .accordion__item[open] .accordion__trigger { color: var(--violet-100); }

/* CTA band: it follows a subtle band here, so it brings its own top space. */
.pr-cta { padding-top: var(--section-y); }

/* Without JS the shared rules hide the billing switch and note slot and show the
   static .billing-nojs annual line on each card (.pr-nojs places it in the subgrid). */
