/* Homepage pricing: one white card on the page ground. Left: how many accounts (a stepper, four tier cards with their
   discount, Solo 1, Growth 3 by default, Scale 10, Agency 25, over a slider), then what every account includes. Right, on a soft surface: the Monthly /
   Yearly switch, the price per account, the total, the blue Get started and the optional extras.
   Tokens from home.css. Behavior and motion briefs: docs/pricing.md. */
/* The card has a firmer edge and shadow than other cards (owner, 2026-11-18: it lacked contrast on the pale ground). */
.tt-pricing { color: var(--tt-ink); }
/* Zero specificity, so every class below sets its own spacing; it still beats the Webflow p margin by load order. */
:where(.tt-pricing) p { margin: 0; }
.tt-pricing .tt-section-head p { text-wrap: balance; }

/* The card: a light blue block, the quote a raised white card on its right (see below) (owner, 2026-11-19: the blue card
   made "everything too blue"). Blue only on the slider, the lit price and Get started. Three areas so phones can put
   the price before the checklist: pick, quote, includes. */
.tt-calc {
  --tt-accent-strong: #2f4fc4;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: 1fr auto; grid-template-areas: "pick quote" "includes quote";
  max-width: 1120px; margin: 0 auto; padding: 12px 0 12px 12px; box-sizing: border-box; /* no blue strip right of the price card (owner, 2026-11-19) */
  /* A clearly bluer block than the page (owner, 2026-11-19: the lighter one was too close to the ground); gray text on
     it is a shade darker (5.5:1). */
  --tt-muted: #4f5670;
  border-radius: 24px; background: #d9e3f6; /* a clean soft blue (hue 219), not periwinkle (owner, 2026-11-19: "there is still purple here") */
}
.tt-calc-pick { grid-area: pick; align-self: center; padding: 28px 36px 8px; } /* takes the spare height and sits centered in it */
/* What's included is supporting detail (owner, 2026-11-19: "all the attention goes to the checkmarks"): a hairline
   above, a small muted title, thin checks and muted text, so the slider and the price lead. */
.tt-calc-includes { grid-area: includes; margin: 28px 36px 0; padding: 22px 0 32px; border-top: 1px solid var(--tt-line); }
.tt-calc-quote { grid-area: quote; display: flex; flex-direction: column; padding: 32px; border-radius: 18px; }
/* The quote is a raised white card that rises 20px above and below the blue block, like the comparison's TikTornado
   column: a faint blue ring, a deep soft shadow, a bigger price (owner, 2026-11-19: make it stand out; a black,
   inverted panel was tried and rejected). Under 992px it sits in the flow. */
.tt-calc-quote { margin-block: -20px; background: #fff; box-shadow: 0 0 0 1px rgb(63 99 216 / .22), 0 40px 70px -30px rgb(40 70 160 / .4), 0 14px 28px -18px rgb(26 35 64 / .2); }
.tt-calc-title { font-size: 15px; font-weight: 500; line-height: 20px; color: var(--tt-ink); }
.tt-calc-title.is-quiet { font-size: 13px; color: var(--tt-muted); }

.tt-calc-label { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: var(--tt-ink); }

/* Stepper: minus, the count (typeable), plus, one pill. */
.tt-stepper { display: flex; flex: none; align-items: center; width: max-content; padding: 4px; border-radius: var(--tt-radius); background: rgb(255 255 255 / .7); }
.tt-stepper button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--tt-radius-sm); background: #fff; color: var(--tt-ink); box-shadow: 0 1px 2px rgb(26 35 64 / .08); cursor: pointer; transition: background-color .2s, color .2s; }
.tt-stepper button:hover { background: var(--tt-surface-2); }
.tt-stepper button:disabled { color: var(--tt-faint); box-shadow: none; background: transparent; cursor: default; }
.tt-stepper button:focus-visible, .tt-stepper input:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
.tt-stepper input { width: 80px; height: 44px; padding: 0; border: 0; border-radius: var(--tt-radius-sm); background: transparent; color: var(--tt-ink); font: 500 26px/1 var(--tt-font); letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.tt-stepper input::-webkit-inner-spin-button, .tt-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* The count: "How many accounts?" with the stepper on one row, then the slider and, under its four stops, a text label
   per tier: its first count and its discount (owner, 2026-11-19: keep the bundles, show the discount, but simple). The
   lit label is the tier the count is in (pricing.js sets .is-lit). Motion brief in docs/pricing.md. */
.tt-calc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tt-tiers { --tt-tier-gap: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tt-tier-gap); margin-top: 10px; }
.tt-tier { display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border: 0; border-radius: var(--tt-radius-sm); background: none; font: inherit; text-align: center; cursor: pointer; }
.tt-tier:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
.tt-tier-count { font-size: 13px; line-height: 18px; color: var(--tt-muted); transition: color .2s; }
/* Each tier shows its price per account in plain text (owner, 2026-11-19: prices, not percentages; then pills and struck
   prices were "too complicated"). The lit tier's price turns bold accent blue. */
.tt-tier-price { font-size: 15px; line-height: 20px; color: var(--tt-muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .2s; }
.tt-tier-price b { font-weight: 500; }
.tt-tier.is-lit .tt-tier-price { color: var(--tt-accent-strong); }
.tt-tier.is-lit .tt-tier-price b { font-weight: 600; }

/* Slider: the track and fill are drawn by .tt-range (not the input), so the stop dots can sit on the track under the
   thumb. The thumb is 24px, so the wrapper is inset to put its first and last thumb centers under the first and last
   card centers: inset = card center (the card's half width) minus the thumb's half. pricing.js sets --p (0 to 1). */
.tt-range { --thumb: 28px; position: relative; height: var(--thumb); margin: 32px calc((100% - 3 * var(--tt-tier-gap)) / 8 - var(--thumb) / 2) 0; }
.tt-range::before, .tt-range::after { content: ''; position: absolute; top: 50%; left: calc(var(--thumb) / 2); height: 6px; translate: 0 -50%; border-radius: 999px; }
.tt-range::before, .tt-range::after { height: 8px; }
.tt-range::before { right: calc(var(--thumb) / 2); background: #fff; }
.tt-range::after { width: calc(var(--p, 0) * (100% - var(--thumb))); background: var(--tt-cta-gradient); }
.tt-range-ticks { position: absolute; z-index: 1; inset: 0 calc(var(--thumb) / 2); pointer-events: none; }
.tt-range-ticks i { position: absolute; top: 50%; width: 10px; height: 10px; box-sizing: border-box; translate: -50% -50%; border: 2px solid var(--tt-line-strong); border-radius: 50%; background: #fff; }
.tt-range-ticks i:nth-child(1) { left: 0; }
.tt-range-ticks i:nth-child(2) { left: 33.333%; }
.tt-range-ticks i:nth-child(3) { left: 66.667%; }
.tt-range-ticks i:nth-child(4) { left: 100%; }
/* Stops at or below the count's tier are reached. */
.tt-range[data-tier="0"] .tt-range-ticks i:nth-child(-n+1),
.tt-range[data-tier="1"] .tt-range-ticks i:nth-child(-n+2),
.tt-range[data-tier="2"] .tt-range-ticks i:nth-child(-n+3),
.tt-range[data-tier="3"] .tt-range-ticks i { border-color: var(--tt-pop); }
.tt-range input { position: relative; z-index: 2; display: block; width: 100%; height: var(--thumb); margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tt-range input::-webkit-slider-runnable-track { height: var(--thumb); background: none; }
.tt-range input::-moz-range-track { height: var(--thumb); background: none; }
.tt-range input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); border: 2px solid var(--tt-pop); border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -4px rgb(26 35 64 / .4); transition: scale .2s var(--tt-ease); }
.tt-range input::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border: 2px solid var(--tt-pop); border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -4px rgb(26 35 64 / .4); transition: scale .2s var(--tt-ease); }
.tt-range input:active::-webkit-slider-thumb { scale: 1.12; }
.tt-range input:active::-moz-range-thumb { scale: 1.12; }
.tt-range input:focus { outline: none; }
.tt-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(56 83 255 / .25); }
.tt-range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(56 83 255 / .25); }

/* Every account includes: two columns of thin green checks (one under 540px). */
.tt-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 14px 0 0; padding: 0; list-style: none; }
.tt-checks li { display: flex; align-items: center; margin: 0; padding: 0; gap: 8px; font-size: 14px; line-height: 19px; color: var(--tt-muted); }
.tt-checks svg { flex: none; width: 16px; height: 16px; color: var(--tt-green); }

/* Billing switch: one white indicator slides between the two options on a tinted track (owner, 2026-11-19: no more ink
   filled controls). */
.tt-billing { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px;  border-radius: var(--tt-radius); background: var(--tt-surface-2); }
.tt-billing::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--tt-radius-sm); background: #fff; box-shadow: 0 1px 2px rgb(26 35 64 / .1), 0 4px 10px -4px rgb(26 35 64 / .18); transition: translate .3s var(--tt-ease); }
.tt-billing:has(input[value="year"]:checked)::before { translate: 100% 0; }
.tt-billing label { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 9px 10px; border-radius: var(--tt-radius-sm); font-size: 14px; font-weight: 500; line-height: 20px; color: var(--tt-muted); white-space: nowrap; cursor: pointer; transition: color .3s var(--tt-ease); }
.tt-billing label:hover { color: var(--tt-ink); }
.tt-billing label:has(:checked) { color: var(--tt-ink); }
.tt-billing label:has(:focus-visible) { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
.tt-billing input { position: absolute; opacity: 0; pointer-events: none; }
/* "2 months free": a solid red chip (owner, 2026-11-19; it was green) inside the Yearly option, readable on both the white track and the black indicator. */
.tt-billing label span { padding: 2px 8px; border-radius: var(--tt-radius-sm); background: var(--tt-red); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.4; }

/* The price per account is the big number, its unit beside it. The struck monthly price sits in front in yearly only. */
.tt-calc-price { margin: 24px 0 20px; }
.tt-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; font-variant-numeric: tabular-nums; }
.tt-price strong { font-size: 56px; line-height: 1.05; font-weight: 500; letter-spacing: -.04em; color: var(--tt-ink); }
/* Yearly: the monthly rate struck through with a red line, then the yearly rate in red (owner, 2026-11-18). */
.tt-price s { font-size: 28px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; color: var(--tt-muted); text-decoration: line-through 2.5px var(--tt-red); }
.tt-price:has(s:not(:empty)) strong { color: var(--tt-red); }
.tt-price s:empty { display: none; }
.tt-price span { font-size: 14px; color: var(--tt-muted); }
.tt-price-meta { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--tt-text); font-variant-numeric: tabular-nums; }
.tt-calc-quote .tt-cta-button { width: 100%; margin-bottom: 24px; }
.tt-calc-quote > .tt-calc-title { padding-top: 20px; border-top: 1px solid var(--tt-line); }

/* Optional extras: under their own title, with an outline plus instead of the green check, so nobody reads them
   as included. A small name over one short gray line, no price (owner, 2026-11-19). */
.tt-extras { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.tt-extras li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 0; }
.tt-extras p { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--tt-muted); } /* beats Webflow's p color and weight */
.tt-extras svg { grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 1px; color: var(--tt-muted); }
.tt-extras li > strong { justify-self: start; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--tt-ink); }

@keyframes tt-swap { from { opacity: 0; filter: blur(2px); translate: 0 4px; } }
.is-swapping { animation: tt-swap .22s var(--tt-ease); }

/* Below 992px: one column, price right after the bundles, the checklist last. */
@media (max-width: 991px) {
  .tt-calc { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "pick" "quote" "includes"; max-width: 560px; }
  .tt-calc { padding: 12px; }
  .tt-calc-quote { margin: 8px 0 0; }
}
@media (max-width: 539px) {
  .tt-calc-pick { padding: 28px 20px 24px; }
  /* Question on its own full-width line, the stepper under it on the left (owner, 2026-11-20). */
  .tt-calc-top { flex-direction: column; align-items: flex-start; }
  .tt-calc-quote { padding: 24px 20px; }
  .tt-calc-includes { margin: 20px 20px 0; padding: 20px 0 24px; }
  .tt-checks { grid-template-columns: minmax(0, 1fr); }
  .tt-stepper button { width: 36px; height: 36px; }
  .tt-stepper input { width: 44px; height: 36px; font-size: 22px; }
  .tt-tiers { --tt-tier-gap: 6px; }
  .tt-tier-count { font-size: 12.5px; line-height: 17px; }
  .tt-tier-price { font-size: 13px; }
  .tt-tier-each { display: none; }
  .tt-price strong { font-size: 44px; }
  /* Each half of the switch is under 150px here, too narrow for "Yearly" and its chip side by side: stack them. */
  .tt-billing label { flex-direction: column; gap: 2px; padding: 7px 4px; line-height: 18px; }
  .tt-billing label span { padding: 1px 7px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-billing::before, .tt-billing label, .tt-tier-count, .tt-tier-price, .tt-stepper button { transition: none; }
  .tt-range input::-webkit-slider-thumb { transition: none; }
  .tt-range input::-moz-range-thumb { transition: none; }
  .is-swapping { animation: none; }
}
