/* The pricing page: billing switch, three plans, founding-price card,
   comparison table, FAQ. Motion reads the site's shared tokens. */
.pricing-main { max-width: 1100px; padding: 92px 0 96px; }
.pricing-intro { margin-bottom: 36px; }
.pricing-intro h1 { font-size: clamp(42px, 5.6vw, 72px); }
.pricing-intro h1 br { display: block; }
.pricing-intro h1 em { display: inline; }
.pricing-intro > p:last-child { max-width: 560px; }
/* Intro lines rise in; the switch and plans follow a beat later. */
.pricing-main .t-stagger-line { display: block; opacity: 0; transform: translateY(var(--stagger-distance, 12px)); filter: blur(var(--stagger-blur, 3px)); transition: opacity var(--stagger-dur, 500ms) var(--stagger-ease, ease-in-out), transform var(--stagger-dur, 500ms) var(--stagger-ease, ease-in-out), filter var(--stagger-dur, 500ms) var(--stagger-ease, ease-in-out); }
.pricing-main .t-stagger-line--2 { transition-delay: var(--stagger-stagger, 80ms); }
.pricing-main .t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger, 80ms) * 2); }
.pricing-main .t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger, 80ms) * 3); }
.pricing-main.is-ready .t-stagger-line { opacity: 1; transform: none; filter: blur(0); }
.pricing-intro .eyebrow.t-stagger-line { display: flex; }
/* The billing switch rises with them but keeps its centered grid. */
.pricing-main .plan-billing.t-stagger-line { display: grid; }

/* Billing switch (transitions.dev tabs sliding). */
.plan-billing { display: grid; justify-items: center; gap: 12px; margin: 0 auto 34px; }
.t-tabs.plan-terms { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 4px; border-radius: 999px; background: #e9eff8; box-shadow: inset 0 0 0 1px #dbe4f1; }
.plan-terms .t-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #5c6c85; font: 600 13px var(--font-body, system-ui); cursor: pointer; transition: color var(--tabs-dur, 250ms) var(--tabs-ease, cubic-bezier(.22,1,.36,1)); -webkit-tap-highlight-color: transparent; }
.plan-terms .t-tab:hover, .plan-terms .t-tab[aria-checked="true"] { color: #1c304d; }
.plan-terms .t-tab:focus-visible { outline: 2px solid #075cff; outline-offset: 2px; }
.plan-terms .t-tabs-pill { position: absolute; z-index: 0; top: 4px; left: 0; width: 0; height: 38px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px #1734541f, 0 6px 16px -10px #17345466; transform: translateX(0); transition: transform var(--tabs-dur, 250ms) var(--tabs-ease, cubic-bezier(.22,1,.36,1)), width var(--tabs-dur, 250ms) var(--tabs-ease, cubic-bezier(.22,1,.36,1)); will-change: transform, width; pointer-events: none; }
.term-save { padding: 3px 7px; border-radius: 999px; background: #e7f6ef; color: #1d7a62; font-size: 12px; font-weight: 700; letter-spacing: .2px; transition: background var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out); }
.plan-terms .t-tab[aria-checked="true"] .term-save { background: #1d7a62; color: #fff; }
.plan-billing-hint { margin: 0; min-height: 1.6em; color: #61728a; font-size: 12.5px; text-align: center; }

/* Plans. */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border: 1px solid #dfe6f0; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px #1734540a; transition: transform var(--duration-medium) var(--ease-smooth-out), box-shadow var(--duration-medium) var(--ease-smooth-out); }
.plan--featured { border-color: #075cff; background: linear-gradient(170deg, #f3f7ff, #fff 42%); box-shadow: 0 0 0 1px #075cff, 0 30px 60px -36px #075cff99; }
/* Cards lift only for a real pointer; a tap on a phone leaves them still. */
@media (hover: hover) and (pointer: fine) {
  .plan:hover { transform: translateY(-3px); box-shadow: 0 1px 2px #1734540a, 0 24px 48px -32px #0c2450; }
  .plan--featured:hover { box-shadow: 0 0 0 1px #075cff, 0 36px 64px -34px #075cffaa; }
}
.plan-badge { position: absolute; top: -13px; left: 28px; padding: 6px 12px; border-radius: 999px; background: #075cff; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; box-shadow: 0 6px 16px -8px #075cff; }
.plan .eyebrow { margin: 0; font-size: 11px; }
.plan h2 { margin: 18px 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -.6px; color: #1c304d; }
.plan-tagline { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; min-height: 3.4em; }
.plan-price { display: flex; align-items: baseline; gap: 2px; color: #1c304d; }
.plan-currency { font-size: 22px; font-weight: 600; letter-spacing: -.5px; align-self: flex-start; margin-top: 10px; }
.plan-amount { display: inline-block; min-width: 1.2em; font-size: 54px; font-weight: 600; letter-spacing: -2.4px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { margin-left: 8px; color: #61728a; font-size: 13px; font-weight: 500; }
/* Only a price that swaps between yearly and monthly reserves room for two digits; $0 sits beside its label. */
.plan-amount:not(.t-text-swap) { min-width: 0; }
/* The Planned tag sits inside the label without making it taller, so every card's title and price share a row. */
.plan .eyebrow .plan-tag { margin-block: -4px; }
.plan-billed { margin: 10px 0 0; min-height: 1.6em; color: #61728a; font-size: 12px; }
.plan-plus { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e6ecf4; color: #1c304d; font-size: 12px; font-weight: 650; }
.plan-features { display: grid; gap: 11px; margin: 14px 0 26px; padding: 0; list-style: none; color: #4f6481; font-size: 13px; line-height: 1.5; }
.plan[data-plan="free"] .plan-features { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6ecf4; }
.plan-features li { position: relative; padding-left: 24px; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #e7f6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d7a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.4 2.4 2.3L9.5 3.6'/%3E%3C/svg%3E") center/8px no-repeat; }
.plan--featured .plan-features li::before { background-color: #dfeaff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23075cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.4 2.4 2.3L9.5 3.6'/%3E%3C/svg%3E"); }
.plan-features b { color: #1c304d; font-weight: 650; }
.plan-cta { margin-top: auto; justify-content: center; width: 100%; }
.plan-foot { margin: 12px 0 0; color: #61728a; font-size: 12px; line-height: 1.5; text-align: center; }
.plan-foot i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: #20a582; box-shadow: 0 0 0 3px #20a5821f; }
.plan-enterprise { margin: 26px auto 0; color: #61728a; font-size: 13px; text-align: center; }
.plan-enterprise a, .plan-foot a { color: #075cff; font-weight: 600; text-decoration: none; }
.plan-enterprise a:hover, .plan-foot a:hover { text-decoration: underline; }
.plan-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px auto 0; padding: 0; list-style: none; color: #61728a; font-size: 12px; }
.plan-trust li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: #20a582; }

/* Founding price. */
.founding { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; margin: 72px auto 0; padding: 34px 38px; border-radius: 28px; background: #0a1630; color: #e6edfb; overflow: hidden; }
.founding-cast { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.founding-cast span { display: block; width: 58px; color: var(--character-ink, #075cff); animation: founding-bob 5.2s ease-in-out infinite; }
.founding-cast span:nth-child(2) { width: 70px; animation-delay: -1.7s; }
.founding-cast span:nth-child(3) { animation-delay: -3.4s; }
.founding-cast svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes founding-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) rotate(-2deg); } }
.founding .eyebrow { margin: 0; color: #8fa6cf; }
.founding h2 { margin: 14px 0 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.8px; color: #fff; }
.founding-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; color: #a9badb; font-size: 13.5px; line-height: 1.6; }
.founding-steps li { position: relative; padding-left: 36px; counter-increment: step; }
.founding-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff26; color: #fff; font-size: 11px; font-weight: 700; }
.founding-steps b { color: #fff; font-weight: 650; }
.founding-price { color: #b9d0ff; }

/* Comparison table. */
.compare { margin: 72px auto 0; }
.compare h2, .pricing-answers h2 { margin: 0 0 22px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.8px; color: #1c304d; text-align: center; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #dfe6f0; border-radius: 20px; background: #fff; }
/* Keyboard users scroll the table with the arrow keys once it has focus. */
.compare-scroll:focus-visible { outline: 2px solid #075cff; outline-offset: 3px; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; color: #4f6481; }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: center; border-top: 1px solid #edf1f7; }
.compare-table thead th { position: sticky; top: 0; z-index: 1; padding: 16px 18px; border-top: 0; background: #fff; color: #1c304d; font-size: 13px; font-weight: 650; }
.compare-table thead th.is-featured { color: #075cff; }
.compare-table tbody th { width: 46%; text-align: left; color: #243955; font-weight: 500; }
.compare-table .compare-group th { padding: 18px 18px 8px; background: #f6f8fc; color: #61728a; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; text-align: left; }
.compare-table td.is-featured { background: #f3f7ff; }
.compare-table i.yes, .compare-table i.no { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; }
.compare-table i.yes { background: #e7f6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d7a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.4 2.4 2.3L9.5 3.6'/%3E%3C/svg%3E") center/10px no-repeat; }
.compare-table td.is-featured i.yes { background-color: #dfeaff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23075cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.4 2.4 2.3L9.5 3.6'/%3E%3C/svg%3E"); }
.compare-table i.no { position: relative; background: #f1f4f9; }
.compare-table i.no::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; border-radius: 2px; background: #c3cedd; }
.compare-note { margin: 14px 0 0; color: #8a96a7; font-size: 12px; text-align: center; }
.compare-swipe { display: none; margin: -10px 0 14px; color: #8a96a7; font-size: 12px; text-align: center; }

/* FAQ (transitions.dev accordion). */
.pricing-answers { max-width: 760px; margin: 72px auto 0; }
.pricing-answers h3 { margin: 0; font-size: inherit; }
.pricing-answers .t-acc { border-bottom: 1px solid #e6ecf4; }
.pricing-answers .t-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 2px; border: 0; background: none; color: #1c304d; font: 600 15px var(--font-body, system-ui); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pricing-answers .t-acc-head:focus-visible { outline: 2px solid #075cff; outline-offset: 3px; border-radius: 8px; }
.pricing-answers .t-acc-chevron { display: inline-flex; flex: none; width: 18px; height: 18px; transform: scaleY(1); transform-origin: center; transition: transform var(--acc-chevron, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)); }
.pricing-answers .t-acc-chevron svg { width: 100%; height: 100%; fill: none; stroke: #6c7f99; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pricing-answers .t-acc-chevron path { vector-effect: non-scaling-stroke; }
.pricing-answers .t-acc[data-open="true"] .t-acc-chevron { transform: scaleY(-1); }
.pricing-answers .t-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--acc-collapse, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)); }
.pricing-answers .t-acc[data-open="true"] .t-acc-panel { grid-template-rows: 1fr; transition: grid-template-rows var(--acc-expand, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)); }
/* A folded answer is hidden once it has faded, so its link leaves the Tab order and screen readers skip it. */
.pricing-answers .t-acc-panel-inner { overflow: hidden; opacity: 0; filter: blur(2px); visibility: hidden; transition: opacity var(--acc-collapse, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)), filter var(--acc-collapse, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)), visibility 0s linear var(--acc-collapse, 250ms); }
.pricing-answers .t-acc[data-open="true"] .t-acc-panel-inner { opacity: 1; filter: blur(0); visibility: visible; transition: opacity var(--acc-expand, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)), filter var(--acc-expand, 250ms) var(--acc-ease, cubic-bezier(.22,1,.36,1)), visibility 0s; }
.pricing-answers .t-acc-panel-inner p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pricing-answers .t-acc-panel-inner a { color: #075cff; }
.pricing-note { margin-top: 40px; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: 0; }
  .founding { grid-template-columns: 1fr; gap: 20px; padding: 28px; text-align: center; }
  .founding .eyebrow { justify-content: center; }
  .founding-steps { text-align: left; }
}
@media (max-width: 620px) {
  .pricing-main { padding: 64px 0 72px; }
  .pricing-intro { margin-bottom: 26px; }
  .plan-billing { margin-bottom: 24px; }
  .plan-terms .t-tab { height: 40px; padding: 0 12px; font-size: 12.5px; }
  .plan-terms .t-tabs-pill { height: 40px; }
  .term-save { padding: 2px 6px; font-size: 12px; }
  .plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 26px 22px 22px; }
  .plan-amount { font-size: 48px; }
  .plan-tagline { min-height: 0; }
  .founding { margin-top: 56px; padding: 26px 20px; border-radius: 22px; }
  .founding-cast span { width: 48px; }
  .founding-cast span:nth-child(2) { width: 58px; }
  .compare { margin-top: 56px; }
  /* On a phone the table scrolls sideways: the feature names stay put while the plan columns move, and a line under the heading says so. */
  .compare-swipe { display: block; }
  .compare-table thead th:first-child, .compare-table tbody th { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 #edf1f7; }
  .compare-table thead th:first-child { z-index: 3; }
  /* A group row spans the table, so its label is what sticks. */
  .compare-table .compare-group th { position: static; box-shadow: none; }
  .compare-table .compare-group th span { position: sticky; left: 14px; display: inline-block; }
  .compare-table { min-width: 660px; font-size: 12px; }
  .compare-table th, .compare-table td { padding: 11px 10px; }
  .compare-table tbody th { width: auto; padding-left: 14px; }
  .compare-table thead th { padding: 14px 10px; font-size: 12px; }
  .compare-table .compare-group th { padding-left: 14px; }
  .pricing-answers { margin-top: 56px; }
  .pricing-answers .t-acc-head { font-size: 14px; }
}
@media (max-width: 400px) {
  /* The switch spans the width; the two terms share it evenly. */
  .t-tabs.plan-terms { display: flex; width: 100%; }
  .plan-terms .t-tab { flex: 1; justify-content: center; gap: 6px; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .term-save { padding: 2px 6px; font-size: 12px; }
  .compare-table { table-layout: fixed; }
  .compare-table thead th:first-child, .compare-table tbody th { width: 40%; }
  .compare-table th, .compare-table td { padding: 10px 6px; word-break: normal; overflow-wrap: anywhere; }
  /* Status pills wrap inside their narrow cell instead of being clipped; words never split. */
  .compare-table td { overflow-wrap: normal; hyphens: none; }
  .compare-table .cell-tag { max-width: 100%; padding: 3px 6px; border-radius: 8px; font-size: 11px; line-height: 1.25; white-space: normal; text-align: center; }
}
/* Plan names stay whole: the header cells take the same narrow padding and never split a word. */
@media (max-width: 360px) { .compare-table td { padding-inline: 4px; font-size: 11px; } .compare-table thead th { padding-inline: 4px; overflow-wrap: normal; } }
@media (prefers-reduced-motion: reduce) {
  .pricing-main .t-stagger-line { opacity: 1; transform: none; filter: none; transition: none; }
  .plan, .plan:hover { transform: none; transition: none; }
  .plan-terms .t-tabs-pill, .plan-terms .t-tab, .term-save { transition: none !important; }
  .founding-cast span { animation: none; }
  .pricing-answers .t-acc-panel, .pricing-answers .t-acc-panel-inner, .pricing-answers .t-acc-chevron { transition: none !important; }
}

/* Availability tags: what is in the beta now versus previewed or planned. */
.plan-tag, .cell-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #fff5e4; color: #8a5a0e; font-size: 11px; font-style: normal; font-weight: 650; letter-spacing: .2px; vertical-align: 1px; white-space: nowrap; }
.cell-tag { margin-left: 0; }
.eyebrow .plan-tag { margin-left: 8px; }
.plan-founding { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #edf3ff; color: #1c304d; font-size: 12px; }
.plan-founding b { font-weight: 700; }
.plan-founding i { width: 6px; height: 6px; border-radius: 50%; background: #075cff; flex: none; }

/* Pause motion (WCAG 2.2.2): the footer switch holds the founding cast still. */
html.is-motion-paused .founding-cast span { animation-play-state: paused !important; }
