/* ============================================================
   The free plan (Nov 2026): /transform is the homepage's design
   with one ask, and /transform/plan is the app's set-up on the
   web: its questions on its own screens (white rows on a cool
   grey page, the chosen answer in the blue gradient, wheels for
   numbers), then the plan. Phones get the app's single column;
   from 960px the question sits on the left and its answers on
   the right. Both pages load the homepage's styles first, for
   the tokens, the squircle helper ([data-sq] + --r) and the
   cookie banner.
   ============================================================ */

/* ---------- /transform: the two things the homepage hero doesn't have ---------- */
body.home--v3 .tf-hero__cta { margin-top: 30px; }
body.home--v3 .tf-hero__note { margin: 16px 0 0; color: var(--muted); font: 500 14px/1.4 var(--font-body); }
body.home--v3.tf .hero__vsl { margin-top: 56px; }

/* ---------- /transform/plan: the page ---------- */
body.tfq {
  --tq-page: #F1F3F8; --tq-ink: #0E1424; --tq-muted: #5B6480; --tq-blue: #3070FF; --tq-wash: #EEF3FF;
  --tq-faint: #9AA3B8; --tq-rule: #EBEEF4; --tq-on-blue: #DCE6FF;
  --tq-sel: linear-gradient(135deg, #1F4FD8 0%, #3070FF 60%, #4F82FF 100%);
  --tq-body: "Geist", Arial, sans-serif;
  --tq-wide: var(--tq-body);
  --tq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Press feedback, kept light: a big row or button gives 1.2%, a small control 3%, and both
     settle in about a tenth of a second. A tick grows from 85%, not from half its size. */
  --tq-press: 0.988; --tq-press-small: 0.97; --tq-tap: 130ms cubic-bezier(0.25, 0.6, 0.3, 1);
  --tq-pad: 20px;
  min-height: 100vh; min-height: 100dvh; background: var(--tq-page); color: var(--tq-ink);
  font-family: var(--tq-body); -webkit-tap-highlight-color: transparent;
}
/* clipped sideways: a question sliding in must never widen the page on a phone */
body.tfq .tfq__main { overflow-x: clip; }
body.tfq .tfq__sprite { position: absolute; }
body.tfq svg:has(> use) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.tfq :is(.tfq__flow, .tfl)[hidden] { display: none; }

/* ---------- the questions: a single column on a phone ---------- */
body.tfq .tfq__flow { display: flex; flex-direction: column; width: min(100%, 480px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; }
body.tfq .tfq__form { display: contents; }
body.tfq .tfq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.tfq .tfq__step { display: none; }
body.tfq .tfq__step.is-on { display: contents; }

/* the bar: back (or the mark on the first screen), how far through, the segments */
body.tfq .tfq__bar { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 14px; padding: 14px var(--tq-pad) 0; }
body.tfq .tfq__lead { display: flex; align-items: center; gap: 14px; min-height: 44px; }
/* the app's back button (the native header's, as set-up shows it): a 44pt white circle that
   floats on a wide, soft shadow, with a rounded chevron. It sits 4pt outside the gutter, as the
   app's does, so the chevron's circle lines up with nothing but itself. */
body.tfq .tfq__back {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: -4px; padding: 0; border: 0; border-radius: 50%; corner-shape: round; background: #fff; color: #111318; cursor: pointer;
  box-shadow: 0 0 0 0.5px rgba(14, 20, 36, 0.04), 0 2px 6px rgba(14, 20, 36, 0.04), 0 10px 32px rgba(14, 20, 36, 0.1);
  transition: scale var(--tq-tap);
}
body.tfq .tfq__back[hidden] { display: none; }
body.tfq .tfq__back svg { width: 22px; height: 22px; margin-right: 2px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
body.tfq .tfq__back:active { scale: var(--tq-press-small); }
body.tfq .tfq__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--tq-ink); font: 900 17px/1 var(--tq-wide); letter-spacing: -0.03em; text-decoration: none; }
body.tfq .tfq__brand img { width: 26px; height: auto; }
body.tfq .tfq__back:not([hidden]) + .tfq__brand { display: none; }
body.tfq .tfq__count { margin: 0; color: var(--tq-muted); font: 700 12px/1 var(--tq-wide); letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
body.tfq .tfq__count { grid-row: 1; grid-column: 2; }
/* the app's progress bar (components/onboarding/kit/onboarding-shell.tsx): one slim line that fills */
body.tfq .tfq__line { grid-row: 2; grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 2px; background: #E6E9F0; }
body.tfq .tfq__line i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--tq-blue); transition: width 420ms var(--tq-ease); }
body.tfq :is(.tfq__count, .tfq__line)[hidden] { display: none; }

/* a question: the words, then its answers */
body.tfq .tfq__head { padding: 32px var(--tq-pad) 0; }
body.tfq .tfq__q { margin: 0; color: var(--tq-ink); font: 900 32px/0.98 var(--tq-wide); letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; outline: none; }
body.tfq .tfq__hint { margin: 12px 0 0; max-width: 44ch; color: var(--tq-muted); font: 400 16px/1.5 var(--tq-body); }
body.tfq .tfq__body { flex: 1; min-width: 0; padding: 26px var(--tq-pad) 28px; }
body.tfq .tfq__flow[data-kind="info"] .tfq__head, body.tfq .tfq__flow[data-kind="save"] .tfq__head, body.tfq .tfq__flow[data-kind="lead"] .tfq__head { padding-top: 22px; }
body.tfq .tfq__flow[data-kind="info"] .tfq__body { padding-top: 20px; }
body.tfq .tfq__note { margin: 16px 4px 0; color: var(--tq-muted); font: 400 15px/1.5 var(--tq-body); }
/* a note under the answers: one muted line with a small icon before it. Not a card, so it is
   never taken for another answer. */
body.tfq .tfq__aside { display: flex; align-items: center; gap: 8px; margin: 18px 4px 0; color: var(--tq-muted); font: 400 15px/1.4 var(--tq-body); }
body.tfq .tfq__aside svg { flex: none; width: 18px; height: 18px; color: var(--tq-blue); stroke-width: 2.2; }
/* "@gmail.com" under the email field, as the app and the checkout offer it: the row opens when
   there is something to offer and a tap finishes the address without closing the keyboard */
body.tfq .tfq__suggest { display: grid; grid-template-rows: 0fr; margin: -8px calc(var(--tq-pad) * -1) 0; opacity: 0; transition: grid-template-rows 320ms var(--tq-ease), opacity 180ms linear; }
body.tfq .tfq__suggest.is-open { grid-template-rows: 1fr; opacity: 1; }
/* the number under the email: the closed suggestions take no room, so the gap is the same as between the other fields */
body.tfq .tfq__suggest + .tfq__field { transition: margin-top 320ms var(--tq-ease); }
body.tfq .tfq__suggest:not(.is-open) + .tfq__field { margin-top: -16px; }
body.tfq .tfq__suggest > div { min-height: 0; overflow: hidden; }
body.tfq .tfq__suggest-row { display: flex; gap: 8px; padding: 2px var(--tq-pad) 2px; overflow-x: auto; scrollbar-width: none; }
body.tfq .tfq__suggest-row::-webkit-scrollbar { display: none; }
body.tfq .tfq__suggest-chip { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: var(--tq-ink); font: 600 15px/1 var(--tq-body); cursor: pointer; transition: scale var(--tq-tap); }
body.tfq .tfq__suggest-chip:active { scale: var(--tq-press-small); }
body.tfq .tfq__error { margin: 14px 2px 0; color: #B42318; font: 600 14px/1.45 var(--tq-body); }
body.tfq .tfq__error[hidden] { display: none; }

/* each arrives from the side you are heading to, the answers a beat after the words */
body.tfq .tfq__flow { --from: 24px; }
body.tfq .tfq__flow[data-dir="back"] { --from: -24px; }
body.tfq .tfq__step.is-on > .tfq__head, body.tfq .tfq__step.is-on > .tfq__body { animation: tfq-in 420ms var(--tq-ease) both; }
body.tfq .tfq__step.is-on > .tfq__body { animation-delay: 50ms; }
@keyframes tfq-in { from { opacity: 0; translate: var(--from) 0; } }
@keyframes tfq-fade { from { opacity: 0; } }

/* answer rows */
body.tfq .tfq__opts { display: flex; flex-direction: column; gap: 10px; }
body.tfq .tfq__opt {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; padding: 18px 16px; --r: 20px; overflow: clip;
  background: #fff; box-shadow: 0 1px 2px rgba(14, 20, 36, 0.05); color: var(--tq-ink); cursor: pointer; user-select: none;
  transition: scale var(--tq-tap), translate 160ms var(--tq-ease), box-shadow 160ms var(--tq-ease), color 120ms linear;
}
body.tfq .tfq__opt::before, body.tfq .tfq__chk::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tq-sel); opacity: 0; transition: opacity 180ms linear; }
body.tfq :is(.tfq__opt, .tfq__chk, .tfq__bf) input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
body.tfq .tfq__opt[hidden] { display: none; }
/* six short answers on a phone: two columns of tiles, so none sits under Continue. The icon, then the words; no second line. */
@media (max-width: 959px) {
  body.tfq .tfq__opts--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.tfq .tfq__opts--grid .tfq__opt { position: relative; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; padding: 14px; }
  body.tfq .tfq__opts--grid .tfq__ico { width: 40px; height: 40px; border-radius: 12px; }
  body.tfq .tfq__opts--grid .tfq__txt { flex: none; }
  body.tfq .tfq__opts--grid .tfq__txt b { font-size: 16px; line-height: 1.2; text-wrap: balance; }
  body.tfq .tfq__opts--grid .tfq__txt small { display: none; }
  body.tfq .tfq__opts--grid .tfq__tick { position: absolute; top: 14px; right: 14px; }
}
body.tfq .tfq__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tq-wash); color: var(--tq-blue); font-style: normal; transition: background-color 160ms linear, color 160ms linear; }
body.tfq .tfq__ico svg { width: 22px; height: 22px; }
body.tfq .tfq__ico--num { width: 52px; height: 52px; border-radius: 15px; font: 900 26px/1 var(--tq-wide); letter-spacing: -0.03em; }
body.tfq .tfq__lvl { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 13px; }
body.tfq .tfq__lvl i { width: 6px; border-radius: 2px; background: #C9D6F5; transition: background-color 160ms linear; }
body.tfq .tfq__lvl i:nth-child(1) { height: 8px; } body.tfq .tfq__lvl i:nth-child(2) { height: 14px; } body.tfq .tfq__lvl i:nth-child(3) { height: 20px; }
body.tfq .tfq__lvl i.on { background: var(--tq-blue); }
body.tfq .tfq__txt { flex: 1; min-width: 0; }
body.tfq .tfq__txt b { display: block; font: 800 18px/1.2 var(--tq-body); }
body.tfq .tfq__txt small { display: block; margin-top: 3px; color: var(--tq-muted); font: 400 14px/1.4 var(--tq-body); transition: color 160ms linear; }
body.tfq .tfq__tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; corner-shape: round; background: #fff; color: var(--tq-blue); opacity: 0; scale: 0.85; transition: opacity 120ms linear, scale 160ms var(--tq-ease); }
body.tfq .tfq__tick svg { width: 13px; height: 13px; stroke-width: 3.6; }
body.tfq .tfq__chev { flex: none; width: 20px; height: 20px; color: var(--tq-faint); stroke-width: 2.3; transition: color 160ms linear; }
body.tfq .tfq__opt:active { scale: var(--tq-press); }
body.tfq :is(.tfq__opt, .tfq__chk):has(input:checked) { color: #fff; box-shadow: 0 14px 30px rgba(48, 112, 255, 0.3); }
body.tfq :is(.tfq__opt, .tfq__chk):has(input:checked)::before { opacity: 1; }
body.tfq .tfq__opt:has(input:checked) .tfq__ico { background: rgba(255, 255, 255, 0.18); color: #fff; }
body.tfq .tfq__opt:has(input:checked) .tfq__txt small { color: var(--tq-on-blue); }
body.tfq .tfq__opt:has(input:checked) .tfq__tick { opacity: 1; scale: 1; }
body.tfq .tfq__opt:has(input:checked) .tfq__chev { color: #fff; }
body.tfq .tfq__opt:has(input:checked) .tfq__lvl i { background: rgba(255, 255, 255, 0.35); }
body.tfq .tfq__opt:has(input:checked) .tfq__lvl i.on { background: #fff; }
body.tfq :is(.tfq__opt, .tfq__chk, .tfq__bf, .tfq__seg label):has(input:focus-visible), body.tfq :is(.tfq__back, .tfq__next, .tfq__row, .tfq__unsure, .tfx__store, .tfe__other, .tfx__people, .tfw__col, .tfq__track, .tfq__suggest-chip):focus-visible { outline: 3px solid var(--tq-blue); outline-offset: 3px; }

/* "choose any" rows */
body.tfq .tfq__chks { display: flex; flex-direction: column; gap: 8px; }
body.tfq .tfq__chk {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px; --r: 18px; overflow: clip;
  background: #fff; box-shadow: 0 1px 2px rgba(14, 20, 36, 0.05); font: 700 16px/1.3 var(--tq-body); cursor: pointer; user-select: none;
  transition: scale var(--tq-tap), translate 160ms var(--tq-ease), box-shadow 160ms var(--tq-ease), color 120ms linear;
}
body.tfq .tfq__chk:active { scale: var(--tq-press); }
body.tfq .tfq__chk:has(input:checked) { box-shadow: 0 10px 24px rgba(48, 112, 255, 0.25); }
body.tfq .tfq__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px #CDD3E0; color: var(--tq-blue); transition: background-color 160ms linear, box-shadow 160ms linear; }
body.tfq .tfq__box svg { width: 14px; height: 14px; stroke-width: 3.4; opacity: 0; scale: 0.85; transition: opacity 120ms linear, scale 160ms var(--tq-ease); }
body.tfq .tfq__chk:has(input:checked) .tfq__box { background: #fff; box-shadow: none; }
body.tfq .tfq__chk:has(input:checked) .tfq__box svg { opacity: 1; scale: 1; }

/* units: the app's switch (components/onboarding/kit/unit-switch.tsx), a grey track with a
   white thumb that slides under the chosen unit */
body.tfq .tfq__seg { --n: 2; --i: 0; position: relative; display: flex; box-sizing: border-box; height: 48px; padding: 4px; border-radius: 16px; background: #E4E8F0; }
body.tfq .tfq__seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: calc(4px + var(--i) * (100% - 8px) / var(--n)); width: calc((100% - 8px) / var(--n)); border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(20, 30, 60, 0.08); transition: left 300ms var(--tq-ease); }
body.tfq .tfq__seg label { position: relative; flex: 1; min-width: 0; border-radius: 12px; cursor: pointer; }
body.tfq .tfq__seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
body.tfq .tfq__seg span { display: grid; place-items: center; height: 100%; padding: 0 8px; color: var(--tq-muted); font: 500 15px/20px var(--tq-body); white-space: nowrap; transition: color 160ms linear; }
body.tfq .tfq__seg input:checked + span { color: var(--tq-ink); font-weight: 700; }

/* the wheels: the app's wheel picker (components/ui/wheel-picker.tsx). 44pt rows, five showing,
   the chosen row on a pale blue band; transform-quiz.js fades and shrinks each row by how far
   it is from the band, and shows the unit only beside the row on it */
body.tfq .tfw__heads { display: flex; padding: 0 8px; color: var(--tq-muted); font: 500 13px/1 var(--tq-body); text-align: center; }
body.tfq .tfw__heads span { flex: 1; }
body.tfq .tfw__heads--dob { margin: -2px 0 8px; }
body.tfq .tfw { --rows: 5; position: relative; --r: 24px; padding: 4px 8px; overflow: hidden; background: #fff; }
body.tfq .tfq__seg + .tfw { margin-top: 16px; }
body.tfq .tfw__band { position: absolute; left: 8px; right: 8px; top: calc(4px + (var(--rows) - 1) / 2 * 44px); height: 44px; border-radius: 14px; background: #EBF1FF; }
body.tfq .tfw__cols { position: relative; display: flex; align-items: center; justify-content: center; }
body.tfq .tfw__col { box-sizing: border-box; height: calc(var(--rows) * 44px); padding: calc((var(--rows) - 1) / 2 * 44px) 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 14px; outline-offset: -3px !important; cursor: grab; touch-action: pan-y; }
body.tfq .tfw__col::-webkit-scrollbar { display: none; }
body.tfq .tfw__col.is-drag { scroll-snap-type: none; cursor: grabbing; }
body.tfq .tfw__row { display: flex; align-items: center; justify-content: center; height: 44px; scroll-snap-align: center; color: #121212; font: 500 22px/1 var(--tq-body); font-variant-numeric: tabular-nums; opacity: 0.25; user-select: none; }
body.tfq .tfw__pair { display: inline-flex; align-items: baseline; }
body.tfq .tfw__n { display: inline-block; scale: 0.85; }
body.tfq .tfw__row small { color: #404040; font: 500 15px/1 var(--tq-body); white-space: pre; opacity: 0; }
body.tfq .tfw__col--end .tfw__row { justify-content: flex-end; padding-right: 4px; }
body.tfq .tfw__col--start .tfw__row { justify-content: flex-start; padding-left: 4px; }
body.tfq .tfw__sep { display: grid; place-items: center; height: 44px; padding: 0 2px; color: #121212; font: 500 22px/1 var(--tq-body); pointer-events: none; }

/* a short screen shows three rows of a wheel, not five, so Continue never covers the answer */
@media (max-height: 700px) and (max-width: 959px) {
  body.tfq .tfw { --rows: 3; }
  body.tfq .tfq__head { padding-top: 22px; }
  body.tfq .tfq__body { padding-top: 20px; }
}

/* a line of proof under a question */
body.tfq .tfq__proof { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; --r: 18px; background: #fff; color: var(--tq-muted); font: 400 14px/1.4 var(--tq-body); }
body.tfq .tfq__proof b { color: var(--tq-ink); font-weight: 700; }
body.tfq .tfq__faces { display: flex; flex: none; }
body.tfq .tfq__faces img { width: 36px; height: 36px; border-radius: 50%; corner-shape: round; object-fit: cover; object-position: 75% 10%; box-shadow: 0 0 0 2px #fff; }
body.tfq .tfq__faces img + img { margin-left: -10px; }

/* body fat: the app's pictures */
body.tfq .tfq__bodies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.tfq .tfq__flow:has(.tfq__step[data-step="bodyfat"].is-on) .tfq__body { padding-top: 18px; }
body.tfq :is(.tfq__bf, .tfq__unsure) { position: relative; display: block; aspect-ratio: 111 / 136; --r: 16px; background: #fff; cursor: pointer; transition: scale var(--tq-tap), box-shadow 200ms var(--tq-ease); }
body.tfq .tfq__bf img { display: block; width: 100%; height: 100%; border-radius: inherit; corner-shape: inherit; object-fit: cover; }
body.tfq .tfq__bf b { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 4px 7px; border-radius: 0 0 16px 16px; background: linear-gradient(rgba(14, 20, 36, 0), rgba(14, 20, 36, 0.62)); color: #fff; font: 700 15px/1 var(--tq-body); text-align: center; }
body.tfq .tfq__bf i { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; corner-shape: round; background: var(--tq-blue); color: #fff; box-shadow: 0 0 0 2px #fff; opacity: 0; scale: 0.85; transition: opacity 120ms linear, scale 160ms var(--tq-ease); }
body.tfq .tfq__bf i svg { width: 11px; height: 11px; stroke-width: 3.6; }
body.tfq .tfq__bf:active, body.tfq .tfq__unsure:active { scale: 0.98; }
/* once one is chosen the rest step back, as in the app */
body.tfq :is(.tfq__bf, .tfq__unsure) { transition: scale var(--tq-tap), box-shadow 200ms var(--tq-ease), opacity 220ms linear; }
body.tfq .tfq__bodies:has(input:checked) :is(.tfq__bf:not(:has(input:checked)), .tfq__unsure) { opacity: 0.4; }
body.tfq .tfq__bf:has(input:checked) { box-shadow: 0 0 0 3px var(--tq-blue), 0 12px 24px rgba(48, 112, 255, 0.3); }
body.tfq .tfq__bf:has(input:checked) i { opacity: 1; scale: 1; }
body.tfq .tfq__unsure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0; border: 0; color: var(--tq-muted); font: 700 15px/1 var(--tq-body); }
body.tfq .tfq__unsure i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; corner-shape: round; background: var(--tq-wash); color: var(--tq-blue); font: 800 20px/1 var(--tq-body); font-style: normal; }

/* A bottom sheet, as close to the system's as the web gets: it rises from the bottom edge like
   a spring let go from rest (a gentle start, no overshoot) with the page dimming behind it, has
   a grabber, follows a finger that pulls it down, and leaves the way it came. transform-quiz.js
   moves it with the Web Animations API, in pixels, because a CSS transition on a sheet's first
   appearance was simply skipped by the browser (it popped in). On a wide screen it is a dialog
   in the middle instead. */
html:has(.tfs[open]) { overflow: hidden; }
body.tfq .tfs { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; overflow: clip; background: none; color: var(--tq-ink); }   /* clip, where it is known: unlike hidden, it cannot be scrolled by a focus */
body.tfq .tfs::backdrop { background: transparent; }
body.tfq .tfs__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
body.tfq .tfs__sheet { position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box; width: min(100%, 480px); max-height: calc(100dvh - 44px); margin: 0 auto; padding: 0 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-radius: 30px 30px 0 0; background: var(--tq-page); box-shadow: 0 -8px 40px rgba(10, 26, 79, 0.12); touch-action: none; will-change: translate; }
/* beyond the sheet's bottom edge, more of itself, so a pull upwards never shows the page under it */
body.tfq .tfs__sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: inherit; }
body.tfq .tfs__grab { display: grid; place-items: center; height: 26px; margin: 0 -20px 6px; cursor: grab; }
body.tfq .tfs__grab i { width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 67, 90, 0.3); }
body.tfq .tfs h2 { margin: 0; font: 900 26px/1 var(--tq-wide); letter-spacing: -0.04em; text-transform: uppercase; }
body.tfq .tfs__sheet > p { margin: 10px 0 0; color: var(--tq-muted); font: 400 16px/1.5 var(--tq-body); }
body.tfq .tfs ul { margin: 20px 0 24px; padding: 0; list-style: none; border-radius: 22px; background: #fff; }
body.tfq .tfs li { display: flex; align-items: center; gap: 14px; padding: 16px; }
body.tfq .tfs li + li { box-shadow: inset 0 1px 0 var(--tq-rule); }
body.tfq .tfs li i { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tq-wash); color: var(--tq-blue); }
body.tfq .tfs li svg { width: 22px; height: 22px; }
body.tfq .tfs li b { display: block; font: 800 17px/1.2 var(--tq-body); }
body.tfq .tfs li small { display: block; margin-top: 3px; color: var(--tq-muted); font: 400 14px/1.4 var(--tq-body); }

/* "You're in good company": the winners, swiped */
body.tfq .tfq__track { display: flex; gap: 12px; margin: 0 calc(var(--tq-pad) * -1); padding: 0 var(--tq-pad) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px; }
body.tfq .tfq__track::-webkit-scrollbar { display: none; }
body.tfq .tfq__track { cursor: grab; }
body.tfq .tfq__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
body.tfq .tfq__track.is-gliding { scroll-snap-type: none; }
body.tfq .tfq__win img { -webkit-user-drag: none; user-select: none; }
body.tfq .tfq__win { flex: none; width: min-content; margin: 0; scroll-snap-align: center; --r: 22px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(14, 20, 36, 0.08); }
/* every photo whole, in its own shape (Josh: never cut, keep the Drive's 4:5): the cards share a height and take their photo's width */
body.tfq .tfq__win img { display: block; height: clamp(200px, calc(100dvh - 600px), 320px); width: auto; max-width: none; }
body.tfq .tfq__track:has(.tfq__win) { align-items: flex-start; }
body.tfq .tfq__win figcaption { width: 0; min-width: 100%; box-sizing: border-box; flex-wrap: wrap; }
body.tfq .tfq__win[hidden] { display: none; }
body.tfq .tfq__win figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
body.tfq .tfq__win b { display: block; font: 800 17px/1.2 var(--tq-body); }
body.tfq .tfq__win small { display: block; margin-top: 2px; color: var(--tq-muted); font: 400 14px/1.35 var(--tq-body); }
body.tfq .tfq__win em { flex: none; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--lime, #D4FF3A); color: var(--lime-ink, #0A1A4F); font: 800 14px/30px var(--tq-body); font-style: normal; white-space: nowrap; }
body.tfq .tfq__dots { display: flex; justify-content: center; gap: 6px; }
body.tfq .tfq__dots i { cursor: pointer; width: 8px; height: 8px; border-radius: 4px; background: #CDD3E0; transition: width 240ms var(--tq-ease), background-color 200ms linear; }
body.tfq .tfq__dots i.on { width: 22px; background: var(--tq-ink); }
body.tfq .tfq__stats { display: flex; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
body.tfq .tfq__stats li { flex: 1; padding: 14px; --r: 18px; background: #fff; }
body.tfq .tfq__stats b { display: block; font: 800 24px/1.1 var(--tq-wide); letter-spacing: -0.03em; }
body.tfq .tfq__stats span { display: block; margin-top: 2px; color: var(--tq-muted); font: 400 13px/1.35 var(--tq-body); }

/* "Loved by members" */
body.tfq .tfq__flow:has(.tfq__step[data-step="reviews"].is-on) .tfq__body { padding-top: 18px; }
body.tfq .tfq__rate { display: flex; align-items: center; gap: 16px; margin: 0; padding: 18px; --r: 22px; background: var(--tq-sel); color: #fff; }
body.tfq .tfq__rate > b { font: 900 56px/1 var(--tq-wide); letter-spacing: -0.04em; }
body.tfq .tfq__stars { display: flex; gap: 3px; }
body.tfq .tfq__stars svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
body.tfq .tfq__rate small { display: block; margin-top: 6px; color: var(--tq-on-blue); font: 400 15px/1.3 var(--tq-body); }
body.tfq .tfq__rvs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
body.tfq .tfq__rv { margin: 0; padding: 16px; --r: 20px; background: #fff; }
body.tfq .tfq__rv blockquote { margin: 0; padding: 0; border: 0; color: var(--tq-ink); font: 400 16px/1.5 var(--tq-body); quotes: none; }
body.tfq .tfq__rv figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
body.tfq .tfq__rv figcaption :is(img, i) { flex: none; width: 36px; height: 36px; border-radius: 50%; corner-shape: round; object-fit: cover; }
body.tfq .tfq__rv figcaption i { display: grid; place-items: center; background: var(--tq-wash); color: var(--tq-blue); font: 800 14px/1 var(--tq-body); font-style: normal; }
body.tfq .tfq__rv b { display: block; font: 700 14px/1.2 var(--tq-body); }
body.tfq .tfq__rv small { display: block; margin-top: 2px; color: var(--tq-muted); font: 400 13px/1.3 var(--tq-body); }

/* "Save your plan" and the email step */
body.tfq .tfq__chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 6px 0 14px; padding: 0 10px; border-radius: 9px; background: var(--tq-wash); color: #1F4FD8; font: 800 13px/1 var(--tq-body); }
body.tfq .tfq__chip svg { width: 13px; height: 13px; stroke-width: 3.4; }
body.tfq .tfq__rows { --r: 22px; overflow: hidden; background: #fff; }
body.tfq .tfq__row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; background: none; color: var(--tq-ink); font: 700 17px/1.2 var(--tq-body); text-align: left; cursor: pointer; transition: background-color 160ms linear; }
body.tfq .tfq__row[hidden] { display: none; }
body.tfq .tfq__row > i { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; corner-shape: round; background: #F4F5F8; }
body.tfq .tfq__row > span { flex: 1; }
body.tfq .tfq__row + .tfq__row::before { content: ""; position: absolute; left: 78px; right: 0; top: 0; height: 1px; background: var(--tq-rule); }
body.tfq .tfq__row:active { background: #F6F7FA; }
body.tfq .tfq__row:focus-visible { outline-offset: -3px; border-radius: 22px; }
/* A sign-in on its way (Apple's window, the trip to Google): a spinner where the row ends, and
   the other ways to sign in held still until it settles */
body.tfq .tfq__row.is-busy { cursor: progress; }
body.tfq .tfq__row.is-busy .tfq__chev { display: none; }
body.tfq .tfq__row.is-busy::after { content: ""; flex: none; width: 20px; height: 20px; box-sizing: border-box; border: 2.5px solid #DCE4F7; border-top-color: var(--tq-blue); border-radius: 50%; corner-shape: round; animation: tfq-spin 700ms linear infinite; }
body.tfq .tfq__rows:has(.is-busy) .tfq__row:not(.is-busy) { opacity: 0.45; pointer-events: none; transition: opacity 160ms linear; }
@keyframes tfq-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { body.tfq .tfq__row.is-busy::after { animation-duration: 1.6s; } }
/* The headings the page moves focus to as each screen opens (so a screen reader reads them) are
   never something to click or type in, so they take no focus ring: the site's ring for anything
   with a tabindex (home.css) drew one after a sign-in in another window. */
body.tfq.home [tabindex="-1"]:is(:focus, :focus-visible) { outline: none; }
body.tfq .tfq__fields { display: grid; gap: 16px; }
body.tfq .tfq__names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.tfq .tfq__field > span { display: block; margin-bottom: 8px; font: 700 14px/1 var(--tq-body); }
body.tfq .tfq__field input { box-sizing: border-box; width: 100%; height: 60px; padding: 0 18px; border: 0; --r: 18px; background: #fff; color: var(--tq-ink); font: 600 17px/1.25 "Geist", sans-serif; outline: none; transition: box-shadow 160ms linear; }
body.tfq .tfq__field input:focus-visible { outline: none !important; box-shadow: inset 0 0 0 2px var(--tq-blue); }
/* the WhatsApp number: country code, then the number */
body.tfq .tfq__phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
body.tfq .tfq__dial select { box-sizing: border-box; height: 60px; padding: 0 34px 0 16px; border: 0; --r: 18px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--tq-ink); font: 600 17px/1.25 "Geist", sans-serif; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; transition: box-shadow 160ms linear; }
body.tfq .tfq__dial select:focus-visible { outline: none !important; box-shadow: inset 0 0 0 2px var(--tq-blue); }
body.tfq .tfq__field input::placeholder { color: #A9B1C4; font-weight: 500; }

/* the code step: one field for the 6 digits, as wide as the screen allows */
body.tfq .tfq__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.tfq .tfq__link { padding: 0; border: 0; background: none; color: var(--tq-blue); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.tfq .tfq__link[hidden] { display: none; }
body.tfq .tfq__hint b { color: var(--tq-ink); font-weight: 700; overflow-wrap: anywhere; }
body.tfq .tfq__flow[data-kind="code"] .tfq__head { padding-top: 22px; }
body.tfq .tfq__code { display: block; }
body.tfq .tfq__code input { box-sizing: border-box; width: 100%; height: 76px; padding: 0 8px 0 calc(8px + 0.3em); border: 0; --r: 18px; background: #fff; color: var(--tq-ink); font: 800 36px/1.25 var(--tq-body); letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; outline: none; transition: box-shadow 160ms linear; }
body.tfq .tfq__code input:focus-visible { outline: none !important; box-shadow: inset 0 0 0 2px var(--tq-blue); }
body.tfq .tfq__resend { margin: 18px 2px 0; }
body.tfq .tfq__next.is-busy { opacity: 0.55; pointer-events: none; }

/* Continue: held to the bottom of the screen on a phone */
body.tfq .tfq__foot { position: sticky; bottom: 0; z-index: 5; padding: 14px var(--tq-pad) max(28px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(241, 243, 248, 0), var(--tq-page) 22%); }
body.tfq .tfq__foot[hidden] { display: none; }
body.tfq .tfq__next { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 0 24px; border: 0; --r: 14px; background: var(--tq-ink); color: #fff; font: 700 17px/1 "Geist", sans-serif; cursor: pointer; transition: scale var(--tq-tap), opacity 160ms linear, background-color 160ms linear; }
body.tfq .tfq__next { gap: 10px; }
body.tfq .tfq__arrow { flex: none; width: 20px; height: 20px; stroke-width: 2.4; transition: translate 240ms var(--tq-ease); }
body.tfq .tfq__next:active { scale: var(--tq-press); }
body.tfq .tfq__next[aria-disabled="true"] { opacity: 0.32; }
body.tfq .tfq__legal { margin: 12px 0 0; color: var(--tq-muted); font: 400 13px/1.5 var(--tq-body); text-align: center; }
body.tfq .tfq__legal[hidden] { display: none; }
body.tfq .tfq__legal a { color: var(--tq-blue); }

/* ---------- creating your plan: the app's screen, measure for measure ----------
   (the app repo's components/onboarding/calculating-plan-step.tsx and components/goal/goal-icon.tsx,
   light mode: sizes in the app's points as px, its colours, its timings) */
body.tfq .tfl { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; background: #F4F5F8; }
body.tfq .tfl__content { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; padding: 0 24px 72px; animation: tfq-fade 400ms linear both; }
body.tfq .tfl i { font-style: normal; }
body.tfq .tfl__box { position: relative; flex: none; width: 284px; height: 284px; }
body.tfq .tfl__ring { position: absolute; inset: 0; fill: none; stroke: #E6E9F0; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; animation: tfl-turn 24s linear infinite; }
@keyframes tfl-turn { to { rotate: 360deg; } }
body.tfq .tfl__cluster { position: absolute; left: 54px; top: 77px; width: 176px; height: 130px; }
/* the 8WTC mark on a white tile, tilted the other way to the goal's */
body.tfq .tfl__mark { position: absolute; left: 0; top: 2px; z-index: 1; display: grid; place-items: center; box-sizing: border-box; width: 88px; height: 88px; border-bottom: 2px solid rgba(10, 26, 79, 0.06); border-radius: 26px; background: linear-gradient(161deg, #FFFFFF, #E9ECF2); box-shadow: 0 18px 40px rgba(10, 26, 79, 0.22); rotate: -12deg; }
body.tfq .tfl__mark img { width: 44px; height: 35px; object-fit: contain; }
/* the goal's hero icon, 96pt: its gradient at 145°, a shine top left, a coloured shadow */
body.tfq .tfl__goalwrap { position: absolute; right: 0; bottom: 0; z-index: 2; display: grid; place-items: center; width: 100px; height: 100px; }
body.tfq .tfl__goal {
  --g0: #FF9BD2; --g1: #E8389A; --glow: 240, 70, 160;
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 26.9px; rotate: -7deg;
  background: radial-gradient(ellipse 30% 17% at 38% 23%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)), linear-gradient(145deg, var(--g0), var(--g1));
  box-shadow: 0 14.9px 33.6px rgba(var(--glow), 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 13px rgba(0, 0, 0, 0.12);
}
body.tfq .tfl__goal[data-goal="maintain"] { --g0: #86ECFF; --g1: #1AA3F0; --glow: 40, 180, 255; }
body.tfq .tfl__goal[data-goal="build_muscle"] { --g0: #FFDB7A; --g1: #FF9F1C; --glow: 255, 170, 40; }
body.tfq .tfl__glyph { display: block; width: 61.4px; height: 61.4px; rotate: 7deg; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18)); }
body.tfq .tfl__glyph svg { display: block; width: 100%; height: 100%; }
/* a part of the plan: waiting it is faded, worked on it is full strength, done it is lime */
body.tfq .tfl__spot { position: absolute; width: 48px; height: 48px; animation: tfq-fade 300ms linear both; }
body.tfq .tfl__spot--0 { left: 118px; top: -2px; animation-delay: 120ms; } body.tfq .tfl__spot--1 { left: 238px; top: 118px; animation-delay: 180ms; }
body.tfq .tfl__spot--2 { left: 118px; top: 238px; animation-delay: 240ms; } body.tfq .tfl__spot--3 { left: -2px; top: 118px; animation-delay: 300ms; }
body.tfq .tfl__tile { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); color: #3070FF; opacity: 0.5; transition: opacity 400ms linear; }
body.tfq .tfl__tile::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: #D4FF3A; box-shadow: inset 0 0 0 0.5px rgba(10, 26, 79, 0.12); opacity: 0; transition: opacity 400ms linear; }
body.tfq .tfl__tile svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body.tfq .tfl__tile.is-active, body.tfq .tfl__tile.is-done { opacity: 1; }
body.tfq .tfl__tile.is-done { color: #0A1A4F; animation: tfl-settle 560ms var(--tq-ease) both; }
body.tfq .tfl__tile.is-done::before { opacity: 1; }
@keyframes tfl-settle { from { scale: 0.88; } }
body.tfq .tfl__text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
body.tfq .tfl__title { margin: 0; color: #111318; font: 800 32px/35px var(--tq-body); letter-spacing: -1px; text-align: center; text-transform: none; outline: none; }
body.tfq .tfl__sub { margin: 0; color: #5B6275; font: 500 16px/22px var(--tq-body); text-align: center; }
body.tfq .tfl__pill { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; corner-shape: round; background: #fff; box-shadow: 0 6px 20px rgba(10, 26, 79, 0.06); color: #111318; font: 700 15px/20px var(--tq-body); }
body.tfq .tfl__pill svg { flex: none; fill: none; }
body.tfq .tfl__spin { stroke: #3070FF; stroke-width: 3; stroke-linecap: round; animation: tfl-turn 800ms linear infinite; }
body.tfq .tfl__donemark { display: none; animation: tfq-fade 220ms linear both; }
body.tfq .tfl__donemark circle { fill: #3070FF; stroke: none; }
body.tfq .tfl__donemark path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.tfq .tfl.is-done .tfl__spin { display: none; }
body.tfq .tfl.is-done .tfl__donemark { display: block; }
body.tfq .tfl__pill span.is-new { animation: tfq-fade 220ms linear both; }

/* ---------- the ending: five screens on the dark page ----------
   What they could weigh, how the plan gets them there, the free trial under people like them,
   the card, and "you're in". The page turns navy with a blue glow from two corners, display
   type is Geist at its heaviest, as on the questions, written in sentence case and set in
   capitals here, and each screen plays its entrance once as it arrives. Every element's
   resting look is its own style; the keyframes only say where it comes from. */
body.tfq {
  --tx-navy: #0A1540; --tx-ink: #0A1A4F; --tx-sky: #8FB2FF; --tx-dim: rgba(255, 255, 255, 0.62); --tx-card: rgba(255, 255, 255, 0.07); --tx-line: rgba(255, 255, 255, 0.14);
  --tx-wide: var(--tq-body); --tx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --tx-glow: radial-gradient(110% 55% at 0% 100%, rgba(48, 112, 255, 0.75) 0%, rgba(48, 112, 255, 0) 72%), radial-gradient(90% 40% at 100% 0%, rgba(48, 112, 255, 0.45) 0%, rgba(48, 112, 255, 0) 75%), #0A1540;
}
/* the glow is a layer fixed to the screen, so it holds still while a long screen scrolls */
body.tfq::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--tx-glow); opacity: 0; pointer-events: none; transition: opacity 360ms linear; }
body.tfq.is-end::before { opacity: 1; }
body.tfq.is-end { background: none; color: #fff; }
html:has(body.tfq.is-end) { background: #0A1540; }
body.tfq.is-end :is(.tfq__back, .tfq__next, .tfx__store, .tfe__other, .tfx__people):focus-visible { outline-color: #fff; }

/* the bar: three segments on the first three screens, the back button on the card, nothing on "you're in" */
body.tfq .tfx__segs { display: flex; gap: 6px; grid-column: 1 / -1; }
body.tfq .tfx__segs[hidden] { display: none; }
body.tfq .tfx__segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); transition: background-color 320ms linear; }
body.tfq .tfx__segs i.on { background: #fff; }
body.tfq.is-end .tfq__bar { display: block; padding: 14px 20px 0; }
body.tfq.is-end .tfq__lead { min-height: 0; }
body.tfq.is-end :is(.tfq__brand, .tfq__count, .tfq__line) { display: none; }
/* the back button stays the app's own shape, the 44pt circle and chevron of the questions, in glass for the dark page */
body.tfq.is-end .tfq__back { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }

/* small shapes that are squircles too, as the cards are ([data-sq] in home.css) */
body.tfq :is(.tfx__ico, .tfx__goal em, .tfx__mk, .tfx__app, .tfx__badge, .tfx__photo span, .tfx__person em) { border-radius: var(--r); }
@supports (corner-shape: squircle) {
  body.tfq :is(.tfx__ico, .tfx__goal em, .tfx__mk, .tfx__app, .tfx__badge, .tfx__photo span, .tfx__person em) { corner-shape: squircle; border-radius: calc(var(--r) * 1.6); }
}

/* words */
body.tfq .tfx > .tfq__head { padding: clamp(22px, 5vh, 42px) 20px 0 24px; }
body.tfq .tfx > .tfq__body { padding: 20px 20px 24px 24px; }
body.tfq .tfx.is-on > :is(.tfq__head, .tfq__body) { animation: none; }
body.tfq .tfx__kick { margin: 0 0 10px; color: var(--tx-sky); font: 800 13px/1.2 var(--tx-wide); letter-spacing: 0.16em; text-transform: uppercase; }
body.tfq .tfx__kick--sm { margin: 2px 0 0; font-size: 12px; letter-spacing: 0.14em; }
body.tfq .tfx__h { margin: 0; color: #fff; font: 900 min(40px, 10.2vw)/1.02 var(--tx-wide); letter-spacing: -0.035em; text-transform: uppercase; outline: none; }
/* each line of a heading keeps to its own line; one too wide for the column brings the heading down a size (transform-quiz.js) */
body.tfq .tfx__l { display: block; width: max-content; }
body.tfq .tfx__l:nth-child(2) { --i: 1; } body.tfq .tfx__l:nth-child(3) { --i: 2; } body.tfq .tfx__l:nth-child(4) { --i: 3; }
body.tfq .tfx__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* entrances */
@keyframes tfx-blur { from { opacity: 0; transform: translateY(40%); filter: blur(10px); } }
@keyframes tfx-rise { from { opacity: 0; transform: translateY(30%); } }
@keyframes tfx-lift { from { opacity: 0; transform: translateY(18px); } }
@keyframes tfx-mark { from { transform: skewX(-8deg) scaleX(0); } }
body.tfq .tfx.is-on .tfx__kick { animation: tfx-rise 400ms var(--tx-ease) 100ms both; }
body.tfq .tfx.is-on .tfx__l { animation: tfx-blur 500ms var(--tx-ease) calc(180ms + var(--i, 0) * 120ms) both; }
body.tfq .tfx.is-on .tfx__mk { animation: tfx-mark 400ms cubic-bezier(0.7, 0, 0.2, 1) var(--t-mk, 900ms) both; }

/* the blue marker behind a number: a slanted block that wipes in from the left */
body.tfq .tfx__hl { position: relative; display: inline-block; font-style: normal; }
body.tfq .tfx__hl > :not(.tfx__mk) { position: relative; }
body.tfq .tfx__mk { --r: 8px; position: absolute; left: -10px; right: -8px; top: 14%; bottom: -6%; background: #3070FF; box-shadow: 0 12px 28px rgba(48, 112, 255, 0.5); transform: skewX(-8deg); transform-origin: 0 50%; }
body.tfq .tfx__hl b { display: inline-block; padding: 0 4px; font: 900 19px/1.2 var(--tx-wide); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
body.tfq .tfx__ico { --r: 14px; display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: rgba(48, 112, 255, 0.25); color: var(--tx-sky); font-style: normal; }
body.tfq .tfx__ico svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* 1: the weight now, struck through and set aside, and the weight the plan heads for */
body.tfq .tfx[data-step="target"] { --t-now: 1950ms; --t-mk: calc(var(--t-now) + 450ms); }
body.tfq .tfx[data-step="target"]:has([data-shape="hold"]) { --t-now: 700ms; }
body.tfq .tfx[data-step="target"] > .tfq__head { padding-top: clamp(36px, 10.2vh, 86px); }
body.tfq .tfx[data-step="target"] > .tfq__body { padding-top: 18px; }
body.tfq .tfx[data-step="target"].is-on .tfx__l { animation-delay: calc(100ms + var(--i, 0) * 130ms); }
body.tfq .tfx__weigh { --big: 128px; position: relative; height: 1.62em; font-size: var(--big); }
body.tfq .tfx__weigh p { position: absolute; left: 0; display: flex; align-items: baseline; gap: 0.1em; margin: 0; font: 900 1em/0.95 var(--tx-wide); letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap; }
body.tfq .tfx__weigh b { display: inline; padding: 0; font: inherit; }
body.tfq .tfx__unit { font-size: 0.3em; letter-spacing: -0.02em; }
body.tfq .tfx__was { top: 0; transform-origin: 0 0; opacity: 0.4; transform: scale(0.42); }
body.tfq .tfx__struck { position: relative; display: inline-flex; align-items: baseline; gap: 0.1em; }
body.tfq .tfx__strike { position: absolute; left: -0.06em; right: -0.06em; top: 47%; height: 0.09em; border-radius: 0.05em; background: #fff; transform-origin: 0 50%; }
body.tfq .tfx__now { top: 0.58em; }
body.tfq .tfx__now .tfx__hl, body.tfq .tfx__figs { display: inline-flex; align-items: baseline; gap: 0.1em; }
body.tfq .tfx__now .tfx__mk { --r: 0.1em; left: -0.12em; right: -0.08em; top: 18%; bottom: -4%; box-shadow: 0 0.16em 0.36em rgba(48, 112, 255, 0.5); }
body.tfq .tfx__weigh[data-shape="hold"] { height: 1.06em; }
body.tfq .tfx__weigh[data-shape="hold"] .tfx__was { display: none; }
body.tfq .tfx__weigh[data-shape="hold"] .tfx__now { top: 0; }
@keyframes tfx-was { 0% { opacity: 0; transform: translateY(16px) scale(1); } 25.8%, 74.2% { opacity: 1; transform: none; } }
@keyframes tfx-strike { from { transform: scaleX(0); } }
@keyframes tfx-now { from { opacity: 0; transform: translateY(46px); } }
body.tfq .tfx.is-on .tfx__was { animation: tfx-was 1550ms var(--tx-ease) 550ms both; }
body.tfq .tfx.is-on .tfx__strike { animation: tfx-strike 250ms cubic-bezier(0.6, 0, 0.2, 1) 1200ms both; }
body.tfq .tfx.is-on .tfx__now { animation: tfx-now 500ms var(--tx-ease) var(--t-now) both; }
body.tfq .tfx__goal { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; --r: 22px; background: var(--tx-card); box-shadow: inset 0 0 0 1px var(--tx-line); }
body.tfq .tfx.is-on .tfx__goal { animation: tfx-rise 450ms var(--tx-ease) calc(var(--t-now) + 850ms) both; }
body.tfq .tfx__goal[hidden] { display: none; }
/* build muscle and maintain: a member like them, day 1 and week 8, where the number would be */
/* the whole photo, chin to thighs, never cropped to a shape: as tall as the screen leaves room
   for (--yh), its width from the photo's own shape (--ar, set by the page), never wider than the column */
body.tfq .tfx__you { --yh: clamp(200px, calc(100dvh - 450px), 560px); display: flex; justify-content: center; margin-top: 20px; }
body.tfq .tfx__you[hidden] { display: none; }
body.tfq .tfx__you .tfx__person { flex: none; width: min(100%, calc(var(--yh) * var(--ar, 0.76))); max-width: none; }
body.tfq .tfx__you .tfx__photo { height: auto; aspect-ratio: var(--ar, 0.76); }
body.tfq .tfx__you .tfx__photo img { object-position: 50% 50%; }

body.tfq .tfx.is-on .tfx__you { animation: tfx-rise 500ms var(--tx-ease) 650ms both; }
@media (prefers-reduced-motion: reduce) { body.tfq .tfx.is-on .tfx__you { animation: none; } }
body.tfq .tfx__goal p { flex: 1; min-width: 0; margin: 0; }
body.tfq .tfx__goal p span { display: block; color: var(--tx-dim); font: 600 14px/1.2 var(--tq-body); }
body.tfq .tfx__goal p b { display: block; margin-top: 2px; font: 800 17px/1.25 var(--tq-body); }
body.tfq .tfx__goal em { --r: 11px; flex: none; height: 34px; padding: 0 12px; background: #3070FF; font: 800 15px/34px var(--tq-body); font-style: normal; white-space: nowrap; }

/* 2: the plan. Protein and the training week can be read; calories, carbs, fat and the sessions are behind the trial */
body.tfq .tfx__rows { margin: 0; padding: 0; list-style: none; --r: 22px; background: var(--tx-card); box-shadow: inset 0 0 0 1px var(--tx-line); }
body.tfq .tfx__rows li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
body.tfq .tfx__rows li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
body.tfq .tfx__rows li:nth-child(2) { --i: 1; } body.tfq .tfx__rows li:nth-child(3) { --i: 2; } body.tfq .tfx__rows li:nth-child(4) { --i: 3; }
body.tfq .tfx.is-on .tfx__rows li { animation: tfx-rise 400ms var(--tx-ease) calc(450ms + var(--i, 0) * 100ms) both; }
body.tfq .tfx[data-step="plan"] { --t-mk: 950ms; }
body.tfq .tfx__rows li:nth-child(4) .tfx__mk { animation-delay: 1100ms; }
body.tfq .tfx__rows .tfx__ico { --r: 13px; width: 40px; height: 40px; }
body.tfq .tfx__rows p { flex: 1; min-width: 0; margin: 0; }
body.tfq .tfx__rows p b { display: block; font: 700 16px/1.25 var(--tq-body); white-space: nowrap; }
body.tfq .tfx__rows p span { display: block; margin-top: 2px; overflow: hidden; color: var(--tx-dim); font: 600 13px/1.25 var(--tq-body); white-space: nowrap; text-overflow: ellipsis; }

/* 2: what they get when they join: six rows, each with a label over its line */
body.tfq .tfx__h--sm { font-size: min(30px, 7.7vw); }
body.tfq .tfx[data-step="plan"] > .tfq__head { padding-top: clamp(18px, 3.6vh, 34px); }
body.tfq .tfx[data-step="plan"] > .tfq__body { padding-top: 16px; }
body.tfq .tfx__feats li { padding: 9px 14px; }
body.tfq .tfx__feats li:nth-child(5) { --i: 4; } body.tfq .tfx__feats li:nth-child(6) { --i: 5; }
body.tfq .tfx.is-on .tfx__feats li { animation: tfx-rise 400ms var(--tx-ease) calc(380ms + var(--i, 0) * 70ms) both; }
body.tfq .tfx__feats .tfx__ico { --r: 12px; }
body.tfq .tfx__feats p small { display: block; color: var(--tx-sky); font: 800 11px/1.2 var(--tq-body); letter-spacing: 0.12em; text-transform: uppercase; }
body.tfq .tfx__feats p b { margin-top: 2px; font-weight: 800; }
body.tfq .tfx__feats p span { font-weight: 400; line-height: 1.35; }
body.tfq .tfx__close { margin: 14px 0 0; color: rgba(255, 255, 255, 0.78); font: 600 15px/1.4 var(--tq-body); }
body.tfq .tfx.is-on .tfx__close { animation: tfx-lift 450ms var(--tx-ease) 900ms both; }

/* 3: the free trial. Their goal and its date, then members like them, swiped */
body.tfq .tfx[data-step="trial"] { --t-mk: 700ms; }
body.tfq .tfx__by { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 12px 22px 12px 14px; --r: 18px; background: var(--tx-card); box-shadow: inset 0 0 0 1px var(--tx-line); font: 700 15px/1.3 var(--tq-body); }
body.tfq .tfx.is-on .tfx__by { animation: tfx-rise 400ms var(--tx-ease) 400ms both; }
body.tfq .tfx.is-on :is(.tfx__kick--sm, .tfx__people, .tfx__dots) { animation: tfx-lift 450ms var(--tx-ease) 600ms both; }
body.tfq .tfx__people { --ph: clamp(232px, calc(100dvh - 566px), 320px); display: flex; gap: 10px; margin: 10px -20px 0 -24px; padding: 0 20px 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
body.tfq .tfx__people::-webkit-scrollbar { display: none; }
body.tfq .tfx__people.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
body.tfq .tfx__people.is-gliding { scroll-snap-type: none; }
body.tfq .tfx__person { flex: 0 0 min(100% - 20px, 400px); margin: 0; overflow: hidden; scroll-snap-align: center; --r: 24px; background: var(--tx-card); box-shadow: inset 0 0 0 1px var(--tx-line); }
body.tfq .tfx__person[hidden] { display: none; }
/* "People like you": each photo whole at its own shape, the card as wide as its photo */
body.tfq .tfx__people .tfx__person { flex: none; width: min-content; }
body.tfq .tfx__people .tfx__photo img { width: auto; height: 100%; max-width: none; }
body.tfq .tfx__people .tfx__person figcaption { width: 0; min-width: 100%; box-sizing: border-box; flex-wrap: wrap; }
body.tfq .tfx__photo { position: relative; height: var(--ph); }
body.tfq .tfx__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; -webkit-user-drag: none; user-select: none; }
body.tfq .tfx__photo--wide img { object-position: 50% 25%; }
body.tfq .tfx__photo span { --r: 8px; position: absolute; left: 10px; bottom: 10px; height: 26px; padding: 0 9px; background: rgba(10, 21, 64, 0.75); font: 800 13px/26px var(--tq-body); }
body.tfq .tfx__photo span + span { left: auto; right: 10px; background: #3070FF; }
body.tfq .tfx__person figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 14px 16px; }
body.tfq .tfx__person p { margin: 0; min-width: 0; }
body.tfq .tfx__person p b { display: block; font: 900 30px/1 var(--tx-wide); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
body.tfq .tfx__person p span { display: block; margin-top: 5px; color: var(--tx-dim); font: 600 14px/1.25 var(--tq-body); }
body.tfq .tfx__person em { --r: 9px; flex: none; height: 30px; padding: 0 10px; background: var(--lime, #D4FF3A); color: var(--tx-ink); font: 800 14px/30px var(--tq-body); font-style: normal; white-space: nowrap; }
body.tfq .tfx__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
body.tfq .tfx__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 240ms var(--tq-ease), background-color 200ms linear; }
body.tfq .tfx__dots i.on { width: 20px; background: #fff; }
body.tfq .tfx__dots i[hidden] { display: none; }

/* 4: the card. What it is and what is due today, then Stripe's own buttons and fields */
body.tfq .tfx[data-step="pay"] > .tfq__head { padding-top: 20px; padding-right: 24px; }
body.tfq .tfx[data-step="pay"] > .tfq__body { padding-right: 24px; }
body.tfq .tfx[data-step="pay"] { --t-mk: 700ms; }
body.tfq .tfx__sum { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 22px 16px 16px; --r: 20px; background: var(--tx-card); box-shadow: inset 0 0 0 1px var(--tx-line); }
body.tfq .tfx.is-on .tfx__sum { animation: tfx-rise 400ms var(--tx-ease) 400ms both; }
body.tfq .tfx[data-step="pay"].is-on > .tfq__body { animation: tfq-fade 400ms linear 520ms both; }
body.tfq .tfx__app { --r: 14px; display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: #3070FF; }
body.tfq .tfx__app img, body.tfq .tfx__badge img { display: block; height: auto; filter: brightness(0) invert(1); }
body.tfq .tfx__app img { width: 26px; }
body.tfq .tfx__sum p { margin: 0; }
body.tfq .tfx__sum p:not(.tfx__today) { flex: 1; min-width: 0; }
body.tfq .tfx__sum p > b { display: block; font: 800 16px/1.25 var(--tq-body); }
body.tfq .tfx__sum p > span { display: block; margin-top: 2px; color: var(--tx-dim); font: 400 14px/1.3 var(--tq-body); }
body.tfq .tfx__today { text-align: right; }
body.tfq .tfx__today .tfx__hl b { padding: 0 3px; font-size: 24px; }
body.tfq .tfx__today .tfx__mk { left: -8px; right: -6px; top: 10%; bottom: -4%; }
body.tfq .tfx__today > span { margin-top: 4px; font-size: 13px; }
body.tfq .tfe__pay { position: relative; }
body.tfq .tfe__pay[hidden] { display: none; }
body.tfq .tfe__wallets { height: 0; overflow: hidden; }
body.tfq .tfe__wallets.is-on { height: auto; overflow: visible; }
body.tfq .tfe__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--tx-dim); font: 400 14px/1 var(--tq-body); }
body.tfq .tfe__or[hidden] { display: none; }
body.tfq .tfe__or::before, body.tfq .tfe__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); }
body.tfq .tfe__skel { display: none; grid-template-columns: 1fr 1fr; gap: 37px 10px; padding-top: 23px; }
body.tfq .tfe__skel i { height: 54px; border-radius: 14px; background: var(--tx-card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); animation: tfe-wait 1.4s ease-in-out infinite; }
body.tfq .tfe__skel i:first-child, body.tfq .tfe__skel i:last-child { grid-column: 1 / -1; }
@keyframes tfe-wait { 50% { opacity: 0.55; } }
body.tfq .tfe__pay.is-loading .tfe__skel { display: grid; }
/* Stripe's fields lay themselves out unseen, then take the placeholders' place */
body.tfq .tfe__pay.is-loading :is(.tfe__fields, .tfe__wallets, .tfe__or) { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }
body.tfq .tfe__other { display: flex; align-items: center; justify-content: center; height: 58px; margin-top: 16px; --r: 14px; background: #3070FF; color: #fff; font: 800 17px/1 var(--tq-body); text-decoration: none; box-shadow: 0 14px 34px rgba(48, 112, 255, 0.5); }
body.tfq .tfe__other[hidden] { display: none; }
body.tfq.is-end .tfq__error { color: #FFB8AD; }

/* 5: "you're in": a lime tick, their name, and the stores along the bottom */
body.tfq .tfx[data-step="done"] > .tfq__head { display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 13vh, 118px) 24px 0; text-align: center; }
body.tfq .tfx__orb { --u: min(1px, 100dvh / 760); position: relative; flex: none; width: calc(300 * var(--u)); height: calc(300 * var(--u)); }
body.tfq .tfx__orb i, body.tfq .tfx__orb span { position: absolute; }
body.tfq .tfx__halo { inset: 0; border-radius: 50%; corner-shape: round; background: radial-gradient(closest-side, rgba(48, 112, 255, 0.55), rgba(48, 112, 255, 0)); }
body.tfq .tfx__ring { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
body.tfq .tfx__ring--a { inset: calc(24 * var(--u)); border-radius: calc(80 * var(--u)); }
body.tfq .tfx__ring--b { inset: calc(52 * var(--u)); border-radius: calc(64 * var(--u)); }
body.tfq .tfx__ball {
  left: calc(66 * var(--u)); top: calc(66 * var(--u)); display: grid; place-items: center; width: calc(168 * var(--u)); height: calc(168 * var(--u)); border-radius: 50%; corner-shape: round;
  background: radial-gradient(60% 50% at 32% 22%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(150deg, #E6FF7A 0%, #D4FF3A 50%, #B5E61C 100%);
  box-shadow: 0 34px 60px rgba(3, 8, 30, 0.55), 0 0 60px rgba(212, 255, 58, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 0 rgba(10, 26, 79, 0.15);
}
body.tfq .tfx__ball svg { width: calc(90 * var(--u)); height: calc(90 * var(--u)); fill: none; stroke: var(--tx-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
body.tfq .tfx__ball path { stroke-dasharray: 1; }
body.tfq .tfx__badge { --r: 16px; left: calc(196 * var(--u)); top: calc(196 * var(--u)); display: grid; place-items: center; width: 54px; height: 54px; background: var(--tx-navy); box-shadow: 0 0 0 5px var(--tx-navy), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(0, 0, 0, 0.4); }
body.tfq .tfx__badge img { width: 30px; }
@keyframes tfx-pop { from { opacity: 0; transform: scale(0.84); } }
@keyframes tfx-draw { from { stroke-dashoffset: 1; } }
body.tfq .tfx.is-on :is(.tfx__halo, .tfx__ring) { animation: tfq-fade 600ms linear both; }
body.tfq .tfx.is-on .tfx__ball { animation: tfx-pop 520ms var(--tx-ease) 100ms both; }
body.tfq .tfx.is-on .tfx__ball path { animation: tfx-draw 380ms cubic-bezier(0.6, 0, 0.2, 1) 360ms both; }
body.tfq .tfx.is-on .tfx__badge { animation: tfx-pop 420ms var(--tx-ease) 560ms both; }
body.tfq .tfx__h--c { margin-top: calc(20 * min(1px, 100dvh / 760)); font-size: min(44px, 11.2vw); }
body.tfq .tfx__h--c .tfx__l { margin-inline: auto; }
body.tfq .tfx[data-step="done"].is-on .tfx__l { animation-delay: calc(520ms + var(--i, 0) * 120ms); }
body.tfq .tfx__sub { max-width: 342px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.78); font: 400 17px/1.45 var(--tq-body); text-wrap: balance; }
body.tfq .tfx__sub b { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
body.tfq .tfx.is-on .tfx__sub { animation: tfx-lift 450ms var(--tx-ease) 760ms both; }
body.tfq .tfx[data-step="done"] > .tfq__body { display: flex; align-items: flex-end; padding: 28px 20px max(30px, env(safe-area-inset-bottom)); }
body.tfq .tfx__stores { display: flex; gap: 10px; width: 100%; }
body.tfq .tfx.is-on .tfx__stores { animation: tfx-lift 450ms var(--tx-ease) 900ms both; }
body.tfq .tfx__store { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; --r: 14px; background: #fff; color: #000; font: 800 17px/1.1 var(--tq-body); text-align: left; text-decoration: none; transition: scale var(--tq-tap), background-color 160ms linear; }
body.tfq .tfx__store:active { scale: var(--tq-press); }
body.tfq .tfx__store svg { flex: none; }
body.tfq .tfx__store small { display: block; color: #5B6480; font: 600 11px/1.3 var(--tq-body); }

/* the button under the ending's screens: white, and blue with a glow where the trial starts.
   Held to the bottom of a phone as on the questions; what scrolls beneath it is hidden by the
   foot's own copy of the page's glow, fixed to the screen so the two line up. */
body.tfq.is-end .tfq__foot { padding: 20px 20px max(22px, env(safe-area-inset-bottom)); background: none; clip-path: inset(0); -webkit-mask-image: linear-gradient(transparent, #000 16px); mask-image: linear-gradient(transparent, #000 16px); }
body.tfq.is-end .tfq__foot::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--tx-glow); }
body.tfq.is-end .tfq__next { height: 58px; background: #fff; color: var(--tx-ink); font-weight: 800; }
body.tfq.is-end .tfq__next:active { background: #E9EEFB; }
body.tfq.is-end .tfq__arrow { display: none; }
body.tfq.is-end .tfq__next--go { background: #3070FF; color: #fff; box-shadow: 0 14px 34px rgba(48, 112, 255, 0.5); }
body.tfq.is-end .tfq__next--go:active { background: #1F4FD8; }
body.tfq.is-end .tfq__legal { margin-top: 10px; color: var(--tx-dim); }
body.tfq.is-end .tfq__legal a { color: var(--tx-sky); }
body.tfq.is-end .tfq__legal--left { margin-top: 14px; text-align: left; }
/* the card's button follows the fields instead of floating over them */
body.tfq.is-end .tfq__flow[data-kind="pay"] .tfq__foot { position: static; padding: 0 24px 40px; clip-path: none; -webkit-mask-image: none; mask-image: none; }
body.tfq.is-end .tfq__flow[data-kind="pay"] .tfq__foot::before { display: none; }
body.tfq.is-end .tfq__flow[data-kind="pay"] .tfq__body { flex: none; padding-bottom: 22px; }

/* /transform/cancel: a challenge trial's cancel link, on the ending's dark page */
body.tfc { min-height: 100vh; min-height: 100dvh; }
body.tfc .tfc__main { box-sizing: border-box; width: min(100%, 480px); margin: 0 auto; padding: 14px 24px max(32px, env(safe-area-inset-bottom)); }
body.tfc .tfc__bar { min-height: 44px; display: flex; align-items: center; }
body.tfc .tfc__bar .tfq__brand { display: inline-flex; color: #fff; }
body.tfc .tfc__bar .tfq__brand img { filter: brightness(0) invert(1); }
body.tfc .tfc__card { padding-top: clamp(32px, 9vh, 88px); }
body.tfc .tfc__h { margin: 0; color: #fff; font: 900 min(36px, 9.2vw)/1.04 var(--tq-body); letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; outline: none; }
body.tfc .tfc__sub { margin: 14px 0 0; color: rgba(255, 255, 255, 0.78); font: 400 17px/1.45 var(--tq-body); }
body.tfc .tfc__sum { margin: 24px 0 0; padding: 4px 18px; --r: 20px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
body.tfc .tfc__sum[hidden] { display: none; }
body.tfc .tfc__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; }
body.tfc .tfc__sum div + div { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
body.tfc .tfc__sum dt { color: rgba(255, 255, 255, 0.62); font: 500 15px/1.3 var(--tq-body); }
body.tfc .tfc__sum dd { margin: 0; color: #fff; font: 700 15px/1.3 var(--tq-body); text-align: right; }
body.tfc .tfc__h:is(:focus, :focus-visible) { outline: none; }
body.tfq.tfc .tfc__go { margin-top: 28px; height: 58px; background: #fff; color: var(--tx-ink); font-weight: 800; }
body.tfq.tfc .tfc__keep { margin-top: 10px; height: 58px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 700; text-decoration: none; }
body.tfc :is(.tfc__go, .tfc__keep)[hidden] { display: none; }
body.tfc .tfc__go.is-busy { opacity: 0.55; pointer-events: none; }
body.tfc .tfc__card[data-tfc-state="loading"] .tfc__h { opacity: 0.6; }
body.tfc .tfc__card { animation: tfq-fade 300ms linear both; }

/* pointers get a lift on hover */
@media (hover: hover) {
  body.tfq :is(.tfq__opt, .tfq__chk):hover { translate: 0 -1px; box-shadow: 0 8px 20px rgba(14, 20, 36, 0.09); }
  body.tfq :is(.tfq__opt, .tfq__chk):has(input:checked):hover { box-shadow: 0 16px 32px rgba(48, 112, 255, 0.34); }
  body.tfq .tfq__bf:not(:has(input:checked)):hover, body.tfq .tfq__unsure:hover { box-shadow: 0 8px 20px rgba(14, 20, 36, 0.12); }
  body.tfq .tfq__row:hover { background: #F8F9FB; }
  body.tfq .tfq__next:not([aria-disabled="true"]):hover { background: #1B2338; }
  body.tfq .tfq__next:not([aria-disabled="true"]):hover .tfq__arrow { translate: 3px 0; }
  body.tfq.is-end .tfq__next:not([aria-disabled="true"]):hover, body.tfq .tfx__store:hover { background: #EEF2FF; }
  body.tfq.is-end .tfq__back:hover { background: rgba(255, 255, 255, 0.16); }
  body.tfq.is-end .tfq__next--go:not([aria-disabled="true"]):hover, body.tfq .tfe__other:hover { background: #1F5BFF; }
}

/* ---------- from 960px: the question on the left, its answers on the right ---------- */
@media (min-width: 960px) {
  body.tfq { --tq-pad: 0px; }
  body.tfq .tfq__flow {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; column-gap: clamp(56px, 7vw, 112px);
    grid-template-areas: "bar bar" "head body" "head foot"; align-content: start; width: min(1120px, 100% - 96px);
  }
  body.tfq .tfq__bar { grid-area: bar; grid-template-columns: 1fr minmax(0, 440px) 1fr; column-gap: 32px; padding-top: 28px; }
  body.tfq .tfq__lead { flex-direction: row-reverse; justify-content: flex-end; }
  body.tfq .tfq__back:not([hidden]) + .tfq__brand { display: inline-flex; }
  body.tfq .tfq__back { margin-left: 0; }
  body.tfq .tfq__brand { font-size: 18px; } body.tfq .tfq__brand img { width: 30px; }
  body.tfq .tfq__line { grid-column: 2; grid-row: 1; }
  body.tfq .tfq__count { grid-column: 3; justify-self: end; }
  body.tfq { --tq-top: clamp(64px, 16vh, 168px); }
  body.tfq .tfq__flow .tfq__head, body.tfq .tfq__flow[data-kind] .tfq__head { grid-area: head; padding-top: var(--tq-top); }
  body.tfq .tfq__flow[data-kind="save"] .tfq__head { padding-top: calc(var(--tq-top) - 48px); }
  body.tfq .tfq__q { font-size: clamp(40px, 4vw, 54px); line-height: 0.96; }
  body.tfq .tfq__hint { margin-top: 18px; font-size: 18px; }
  body.tfq .tfq__body { grid-area: body; flex: none; padding-top: var(--tq-top); padding-bottom: 0; }
  body.tfq .tfq__flow:has(.tfq__step[data-step="bodyfat"].is-on) .tfq__body, body.tfq .tfq__flow:has(.tfq__step[data-step="reviews"].is-on) .tfq__body { padding-top: var(--tq-top); }
  body.tfq .tfq__foot { grid-area: foot; position: static; align-self: start; padding: 28px 0 64px; background: none; }
  body.tfq .tfq__opt { padding: 20px; }
  body.tfq .tfq__bodies { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  /* a dialog in the middle: it lifts a little and fades in, and has no grabber */
  body.tfq .tfs__sheet { inset: 0; height: fit-content; margin: auto; padding: 32px; border-radius: 30px; touch-action: auto; box-shadow: 0 24px 64px rgba(10, 26, 79, 0.2); }
  body.tfq .tfs__sheet::after { display: none; }
  body.tfq .tfs__grab { display: none; }

  /* the two proof screens take the whole width */
  body.tfq .tfq__flow[data-kind="info"] { grid-template-areas: "bar bar" "head head" "body body" "foot foot"; grid-template-rows: auto auto auto 1fr; }
  body.tfq .tfq__flow[data-kind="info"] .tfq__head { padding-top: clamp(40px, 9vh, 96px); text-align: center; }
  body.tfq .tfq__flow[data-kind="info"] .tfq__hint { margin-inline: auto; }
  body.tfq .tfq__flow[data-kind="info"] .tfq__body { padding-top: 36px !important; }
  body.tfq .tfq__flow[data-kind="info"] .tfq__foot { justify-self: center; width: 320px; padding-top: 36px; }
  body.tfq .tfq__swipe, body.tfq .tfq__dots { display: none; }
  body.tfq .tfq__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(100%, 980px); margin: 0 auto; padding: 0; overflow: visible; }
  body.tfq .tfq__win { box-shadow: 0 14px 30px rgba(14, 20, 36, 0.06); }
  body.tfq .tfq__track { cursor: default; }
  body.tfq .tfq__stats { justify-content: center; gap: 12px; margin-top: 24px; }
  body.tfq .tfq__stats li { flex: 0 0 220px; padding: 18px 20px; text-align: center; }
  body.tfq .tfq__stats b { font-size: 28px; }
  body.tfq .tfq__loved { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; width: min(100%, 1080px); margin: 0 auto; align-items: start; }
  body.tfq .tfq__rate { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px; }
  body.tfq .tfq__rate > b { font-size: 88px; }
  body.tfq .tfq__rvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 12px; }
  body.tfq .tfq__rv { padding: 22px 24px; } body.tfq .tfq__rv blockquote { font-size: 17px; }


  /* the ending: the words and the button on the left, what they point at on the right */
  body.tfq.is-end .tfq__flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "bar bar" "head body" "foot body"; }
  body.tfq.is-end .tfq__bar { display: grid; padding: 28px 0 0; }
  body.tfq.is-end .tfq__lead { min-height: 44px; }
  body.tfq.is-end .tfq__brand { display: inline-flex; color: #fff; }
  body.tfq.is-end .tfq__brand img { filter: brightness(0) invert(1); }
  body.tfq .tfx__segs { grid-column: 2; grid-row: 1; }
  body.tfq .tfx[data-step] > .tfq__head { padding: var(--tq-top) 0 0; }
  body.tfq .tfx[data-step] > .tfq__body { padding: var(--tq-top) 0 0; }
  body.tfq .tfx__h { font-size: clamp(46px, 4.8vw, 68px); line-height: 1; }
  body.tfq .tfx__kick { margin-bottom: 14px; font-size: 14px; }
  body.tfq .tfx__kick--sm { margin: 0; font-size: 13px; }
  body.tfq.is-end .tfq__foot, body.tfq.is-end .tfq__flow[data-kind="pay"] .tfq__foot { width: min(100%, 400px); padding: 36px 0 64px; clip-path: none; -webkit-mask-image: none; mask-image: none; }
  body.tfq.is-end .tfq__foot::before { display: none; }
  body.tfq.is-end .tfq__legal { text-align: left; }
  body.tfq .tfx__weigh { --big: clamp(128px, 11.5vw, 168px); }
  body.tfq .tfx[data-step="target"] > .tfq__body { padding-top: calc(var(--tq-top) - 8px); }
  body.tfq .tfx__goal { max-width: 440px; margin-top: 30px; }
  body.tfq .tfx__by { max-width: 400px; margin-top: 24px; }
  /* the row ends in a fade, not a cut, and its last card rests clear of it */
  body.tfq .tfx__people { --ph: clamp(260px, calc(100vh - 520px), 360px); margin: 14px 0 0; padding: 0 56px 0 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  body.tfq .tfx__person { flex-basis: min(78%, 380px); }
  body.tfq.is-end .tfq__flow[data-kind="pay"] { grid-template-areas: "bar bar" "head body" "head foot"; }
  body.tfq.is-end .tfq__flow[data-kind="pay"] .tfq__foot { width: 100%; padding-top: 22px; }
  body.tfq .tfx__sum { max-width: 440px; margin-top: 28px; }
  body.tfq.is-end .tfq__flow[data-kind="done"] { grid-template-areas: "bar bar" "head head" "body body"; grid-template-rows: auto auto auto; }
  body.tfq .tfx[data-step="done"] > .tfq__head { padding-top: clamp(24px, 8vh, 88px); }
  body.tfq .tfx[data-step="done"] > .tfq__body { justify-content: center; padding: 40px 0 64px; }
  body.tfq .tfx__stores { width: min(100%, 420px); }
  body.tfq .tfx__h--c { font-size: clamp(48px, 5vw, 72px); }
  body.tfq .tfx__sub { max-width: 480px; font-size: 18px; }
}

/* Reduce Motion: things change in place */
@media (prefers-reduced-motion: reduce) {
  body.tfq .tfq__step.is-on > :is(.tfq__head, .tfq__body) { animation: tfq-fade 160ms linear both; }
  /* the ending's screens show as they end up, each with one short fade */
  body.tfq .tfx.is-on * { animation: none !important; }
  body.tfq .tfx.is-on > :is(.tfq__head, .tfq__body) { animation: tfq-fade 160ms linear both !important; }
  body.tfq .tfl__ring, body.tfq .tfl__spin, body.tfq .tfl__tile.is-done, body.tfq .tfe__skel i { animation: none; }   /* as in the app: the ring and spinner hold still */
  body.tfq :is(.tfq__opt, .tfq__chk, .tfq__bf, .tfq__next, .tfq__back, .tfx__store, .tfw__row, .tfq__line i, .tfx__segs i, .tfx__dots i), body.tfq::before { transition-duration: 1ms; }
  body.tfq :is(.tfq__opt, .tfq__chk, .tfq__bf, .tfq__unsure, .tfq__next, .tfq__back, .tfx__store):active { scale: none; }
}

/* Circles and pills stay round under the site-wide squircle default (tokens.css). */
.tfq__line, .tfq__line > * { corner-shape: round; }
