/* Pricing: interval toggle, plan sheet (a rate card), comparison table. */

.f-toggle-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--f-s-3) var(--f-s-5); margin-bottom: var(--f-s-6); }
.f-toggle-note { font-size: 15px; color: var(--f-text-2); }
.f-segmented.has-thumb { overflow: hidden; }
.f-segmented.has-thumb input:checked + span { background: transparent; color: var(--f-ivory); }
.f-segmented__thumb { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 1px; background: var(--f-ink); transform-origin: left; transform: translateX(var(--x, 0px)) scaleX(var(--w, 100)); transition: transform var(--f-dur-ui) var(--f-ease-out); pointer-events: none; }
.f-segmented:not(.has-thumb) .f-segmented__thumb { display: none; }

/* Plan sheet */
.f-plansheet { display: grid; padding: 0; }
.f-plan { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; padding: var(--f-s-7) var(--f-s-5) var(--f-s-6); border-top: 1px solid var(--f-rule); }
.f-plan:first-child { border-top: 0; }
@media (min-width: 834px) {
  .f-plansheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-plan { border-top: 0; border-left: 1px solid var(--f-rule); padding: calc(var(--f-s-7) + 6px) var(--f-s-5) var(--f-s-7); }
  .f-plan:first-child { border-left: 0; }
}
@media (min-width: 1024px) { .f-plan { padding-inline: var(--f-s-6); } }
/* Every plan head is the same box, so prices and limit rows share baselines; the recommended plan only tints it. */
.f-plan__head { margin: calc(-1 * var(--f-s-5)) calc(-1 * var(--f-s-5)) 0; padding: var(--f-s-5); }
@media (min-width: 1024px) { .f-plan__head { margin-inline: calc(-1 * var(--f-s-6)); padding-inline: var(--f-s-6); } }
.f-plan.is-highlight .f-plan__head { background: var(--f-blue-wash); }
.f-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 32px; font-size: var(--f-step-3); line-height: 1; }
.f-plan__pick { padding: 4px 8px; border: 1px solid var(--f-accent); border-radius: 4px; font: 600 12px/1 var(--f-font-ui); letter-spacing: 0; color: var(--f-accent-ink); }
.f-plan__tag { margin-top: 6px; font-size: 16px; line-height: 1.5; max-width: 28ch; min-height: 3em; }
@media (max-width: 833px) { .f-plan__tag { min-height: 0; } }
.f-plan__price { padding: var(--f-s-5) 0 var(--f-s-4); }
.f-price { display: flex; align-items: flex-start; font-family: var(--f-font-display); font-weight: 740; letter-spacing: -.04em; line-height: .92; font-size: clamp(44px, 1.6rem + 2.6vw, 64px); font-variant-numeric: tabular-nums lining-nums; color: var(--f-ink); }
.f-price__cur { font-size: .36em; letter-spacing: 0; margin: .22em .12em 0 0; color: var(--f-ink-2); font-weight: 700; }
.f-price__num { position: relative; display: inline-flex; overflow: hidden; padding-block: .06em; }
.f-price__num.is-rolling > .f-price__real { visibility: hidden; }
.f-price__digits { position: absolute; inset: 0; display: flex; padding-block: .06em; pointer-events: none; }
.f-price__d { position: relative; display: block; overflow: hidden; height: 1em; line-height: 1; }
.f-price__d > span { display: block; line-height: 1; height: 1em; will-change: transform; }
.f-price__d > .new { position: absolute; left: 0; top: 0; transform: translateY(100%); }
.f-price__unit { margin-top: 10px; }
.f-price__note { margin-top: 4px; font-size: 13px; color: var(--f-ink-2); }
.f-plan__limits { display: grid; margin: 0 0 var(--f-s-5); border-top: 1px solid var(--f-rule); align-self: start; }
.f-plan__limits > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--f-rule); font: 400 14px/1.4 var(--f-font-ui); font-variant-numeric: tabular-nums; }
.f-plan__limits dt { color: var(--f-text-2); }
.f-plan__limits dd { color: var(--f-text); text-align: right; font-weight: 600; }
.f-plan__cta { display: grid; gap: 12px; justify-items: stretch; align-self: end; }
.f-plan__cta .btn { min-height: 48px; }
.f-plan__sub { text-align: center; font-size: 14px; color: var(--f-ink-2); min-height: 32px; display: flex; align-items: center; justify-content: center; text-underline-offset: 4px; }
.f-plan__sub:hover { color: var(--f-blue); }
.f-plans__note { margin-top: var(--f-s-5); }

/* Comparison table */
.f-compare__hint { display: none; }
.f-compare-wrap { position: relative; }
@media (max-width: 599px) { .f-compare__hint { display: block; margin-top: var(--f-s-3); font-size: 14px; color: var(--f-text-3); } .f-compare__hint + .f-compare-wrap { margin-top: var(--f-s-4); } .f-compare-wrap { overflow-x: auto; margin-inline: calc(-1 * var(--f-s-4)); padding-inline: var(--f-s-4); } .f-compare { min-width: 540px; } .f-compare tbody th[scope="row"] { min-width: 132px; width: 132px; box-shadow: 1px 0 0 var(--f-line); } .f-compare tbody th[scope="row"], .f-compare thead th:first-child { position: sticky; left: 0; background: var(--f-ivory); z-index: 2; } }
.f-compare thead th { position: sticky; top: var(--f-header-h-compact); z-index: 3; background: var(--f-ivory); vertical-align: bottom; padding-block: 16px; box-shadow: 0 1px 0 var(--f-line-strong); border-bottom: 0; }
@media (max-width: 599px) { .f-compare thead th { top: 0; position: static; } .f-compare thead th:first-child { position: sticky; } }
.f-compare thead th.is-highlight { background: var(--f-blue-wash); }
.f-compare__name { display: block; font: 700 20px/1 var(--f-font-display); letter-spacing: -.025em; text-transform: none; color: var(--f-ink); margin-bottom: 8px; }
.f-compare__cta { display: inline-flex; align-items: center; min-height: 28px; font: 600 13px var(--f-font-ui); letter-spacing: 0; text-transform: none; color: var(--f-blue); white-space: nowrap; }
@media (pointer: coarse) { .f-compare__cta { min-height: 44px; } }
.f-compare tbody td { font-size: 15px; font-variant-numeric: tabular-nums; }
.f-compare tbody td, .f-compare thead th:not(:first-child) { padding-left: 16px; }
.f-compare tbody th[scope="row"] { font-weight: 500; width: 34%; min-width: 150px; }
.f-compare__group th { background: var(--f-band); font: var(--f-label) !important; color: var(--f-text); padding: 10px 12px !important; border-bottom: 0; }
.f-compare .sq { width: 10px; height: 10px; }
@media (max-width: 599px) { .f-compare__group th { position: sticky; left: 0; } }

/* Notes */
.f-notes { margin-top: var(--f-s-7); border-top: 1px solid var(--f-rule); }
.f-notes > div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--f-rule); }
@media (min-width: 834px) { .f-notes > div { grid-template-columns: 220px 1fr; } }
.f-notes dt { font: var(--f-label); font-size: 15px; color: var(--f-text); }
.f-notes dd { font-size: 16px; color: var(--f-text-2); }

/* Phones: a narrow sticky first column so two plans and the edge of the third are in view; the hint says there is more. */
@media (max-width: 599px) {
  .f-compare__hint { display: block; }
  .f-compare { min-width: 500px; }
  .f-compare tbody th[scope="row"], .f-compare thead th:first-child { width: 124px; min-width: 124px; }
  .f-compare tbody td, .f-compare thead th:not(:first-child) { padding-left: 12px; }
}
