/* ==========================================================================
   TIOO marketing — pricing page (v3 page kit, 2026-10). Loads after tokens /
   base / components / mocks / pages.css, only on payments/pricing.html.
   The hero and the four plan columns sit on the apricot "money" band
   (.band-price from base.css, .price-grid from components.css); here:
   the controls (monthly / yearly, currency), the plan columns as a swipe
   row on phones, the comparison table with a sticky header and folding
   groups on phones, the add-on rows and the final call to action button.
   ========================================================================== */

/* ---- hero on the apricot band ----------------------------------------- */
.pr-hero { padding-bottom: 56px; }
@media (min-width: 900px) { .pr-hero { padding-bottom: 80px; } }
.pr-hero .crumbs { margin-bottom: 22px; }
.pr-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
@media (min-width: 900px) { .pr-hero .spread > h1 { grid-column: 1 / 7; } }
.pr-hero .spread > p { color: var(--ink-2); }
html.js-anim .pr-hero .spread > h1 { opacity: 0; transform: translateY(10px); animation: hero-up .6s var(--ease-out) .08s forwards; }
html.js-anim .pr-hero .spread > p { opacity: 0; transform: translateY(10px); animation: hero-up .6s var(--ease-out) .2s forwards; }
html.js-anim .pr-hero .pr-controls, html.js-anim .pr-hero .pr-plans { opacity: 0; transform: translateY(12px); animation: hero-up .7s var(--ease-out) .3s forwards; }

.pr-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 36px 0 20px; }
@media (min-width: 900px) { .pr-controls { margin: 48px 0 24px; } }
/* monthly / yearly: a two-button segmented control, the on button in ink */
.pr-cycle { display: inline-flex; padding: 3px; border: 1px solid var(--band-price-line); border-radius: var(--radius); background: #fff; }
.pr-cycle__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--radius-s); background: none; font-size: 15px; font-weight: 500; color: var(--ink-3); cursor: pointer; transition: background var(--dur-1), color var(--dur-1); }
.pr-cycle__btn.is-on { background: var(--ink); color: #fff; }
.pr-cycle__btn:focus-visible { outline-offset: -2px; }
.pr-cycle__save { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--radius-s); background: var(--ok-soft); color: var(--ok-ink); }
.pr-cycle__btn.is-on .pr-cycle__save { background: rgba(255,255,255,.16); color: #fff; }
.pr-currency { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-currency__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--band-price-line); border-radius: var(--radius); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr-currency__btn:hover { border-color: var(--ink); color: var(--ink); }
.pr-currency__btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the four plan columns (components.css .price-grid); on this page the
   amount carries the currency symbol as plain text */
.pr-plans { border-color: var(--band-price-line); }
.pr-plans > .price { border-color: var(--band-price-line); padding: 32px 28px 28px; }
.pr-plans .amt { flex-wrap: wrap; row-gap: 4px; }
.pr-plans .amt .price-amount { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pr-plans .amt > span:not(.price-amount) { font-family: var(--font-text); font-size: 13.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; align-self: flex-end; margin-bottom: 6px; }
.pr-plans .desc { min-height: 0; color: var(--ink-2); font-weight: 500; }
.pr-plans .pr-inherit { color: var(--ink); font-weight: 600; }
.pr-plans .btn { width: 100%; }
@media (min-width: 1024px) and (max-width: 1279px) { .pr-plans > .price { padding: 26px 20px 22px; } .pr-plans .amt .price-amount { font-size: 40px; } }

.pr-notes { margin-top: 20px; display: grid; gap: 10px; }
.pr-notes .note-row { margin: 0; color: var(--ink-2); }
.pr-enterprise { font-size: var(--fs-s); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pr-enterprise b { color: var(--ink); }
.pr-enterprise .text-link { color: var(--ink); }

/* ---- comparison table: sticky header, hairlines, folding groups ------ */
.pr-compare-wrap { margin-top: 40px; }
/* The header row sticks under the site header only when the table is not
   inside a sideways-scroll box (a scroll box makes "sticky" stick inside the
   box, which left a blank row and hid the first group). Phones scroll the
   table sideways, so there the header simply scrolls with it. */
@media (min-width: 768px) { .pr-compare-wrap { overflow: visible; } }
@media (min-width: 900px) { .pr-compare-wrap { margin-top: 56px; } }
.pr-compare { min-width: 640px; font-size: var(--fs-s); }
.pr-compare thead th { position: sticky; top: var(--header-h); z-index: 3; background: var(--bg-2); border-bottom: 1px solid var(--line-2); text-align: center; font-size: 13px; letter-spacing: .06em; }
.pr-compare thead th:first-child { text-align: left; z-index: 4; }
.pr-compare th.compare-highlight { color: var(--ink); background: var(--accent-soft); }
.pr-compare td { text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; padding: 13px 14px; }
.pr-compare td:first-child { text-align: left; color: var(--ink); font-weight: 500; min-width: 200px; }
.pr-compare td:nth-child(4) { background: rgba(43, 92, 255, .04); }
.pr-compare td.yes { color: var(--ok-ink); font-weight: 600; font-size: 15px; }
.pr-compare td.no { color: var(--ink-4); }
.pr-compare .pr-group th { position: sticky; left: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--line); text-align: left; }
.pr-compare .pr-group button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; background: var(--band-warm); font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-align: left; cursor: default; }
.pr-compare .pr-group button svg { width: 16px; height: 16px; display: none; transition: transform var(--dur-2) var(--ease); }
.pr-compare tbody:last-child tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .pr-compare { min-width: 560px; }
  .pr-compare thead th { top: auto; }
  .pr-compare td:first-child { min-width: 150px; }
  .pr-compare .pr-group button { cursor: pointer; }
  .pr-compare .pr-group button svg { display: block; }
  .pr-compare .pr-group button[aria-expanded="false"] svg { transform: rotate(-90deg); }
  .pr-compare tbody.is-closed tr:not(.pr-group) { display: none; }
  .pr-compare .pr-group th { position: static; }
}

/* ---- add-ons: hairline rows, price on the right ------------------------ */
.pr-addons { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.pr-addons li { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.pr-addons .ic { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.pr-addons .ic svg { width: 17px; height: 17px; }
.pr-addons b { display: block; font-weight: 600; color: var(--ink); font-size: var(--fs-l); margin-bottom: 4px; letter-spacing: -0.01em; }
.pr-addons p { color: var(--ink-3); font-size: var(--fs-m); line-height: 1.5; max-width: 60ch; }
.pr-addons p a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); }
.pr-addons__price { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.pr-addons__price small { display: block; font-family: var(--font-text); font-size: 12.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
@media (max-width: 599px) {
  .pr-addons li { grid-template-columns: 32px 1fr; }
  .pr-addons .ic { width: 32px; height: 32px; }
  .pr-addons__price { grid-column: 2; text-align: left; margin-top: 6px; }
  .pr-addons__price small { display: inline; margin-left: 4px; }
}

/* ---- the final button (keeps its pcta-btn classes; drawn as a v3 button) */
.pcta-btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 24px; border-radius: var(--radius); font-weight: 500; font-size: 17px; white-space: nowrap; border: 1px solid transparent; transition: background var(--dur-1), border-color var(--dur-1); }
.pcta-btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.pcta-btn--primary:hover { background: #26282f; border-color: #26282f; }
@media (max-width: 539px) { .actions > .pcta-btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; --h: 52px; } }

/* ---- phones: the plans as a swipe row with "Swipe · 1 / 4" ------------- */
.swipe-hint { display: none; }
@media (max-width: 639px) {
  .pr-plans[data-swipe] { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; border: 0; border-radius: 0; background: transparent; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .pr-plans[data-swipe]::-webkit-scrollbar { display: none; }
  .pr-plans[data-swipe] > .price { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; scroll-snap-stop: always; border: 1px solid var(--band-price-line) !important; border-radius: var(--radius-l); padding: 22px 18px 18px; gap: 10px; }
  .pr-plans[data-swipe] > .price.hi { border-color: var(--ink) !important; }
  .pr-plans[data-swipe] > :last-child { margin-right: var(--gutter); }
  .pr-plans .amt .price-amount { font-size: 38px; }
  .pr-plans .desc { font-size: 14px; }
  .pr-plans li { padding: 8px 0; font-size: 13.5px; }
  .pr-plans .tagp { top: 20px; right: 18px; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
  .swipe-hint svg { width: 14px; height: 14px; }
  .swipe-hint .swipe-count:not(:empty)::before { content: "·"; margin: 0 4px 0 2px; }
  .swipe-hint .swipe-count:empty { display: none; }
  .pr-controls { flex-direction: column; align-items: stretch; }
  .pr-cycle { width: 100%; }
  .pr-cycle__btn { flex: 1 1 0; justify-content: center; }
  .pr-notes .note-row { flex-direction: column; gap: 4px; }
  .pr-notes .note-row span + span::before { display: none; }
}
