/* Fig pricing page, home pricing section and legal pages. Built on the kit's tokens (system.css, ui/base.css) and marketing.css.
   Money and counts are set in the text face (never the mono face); one number format, en-US grouping. */

/* ---------------------------------------------------------------- hero */
.pr-hero h1 { hyphens: manual; -webkit-hyphens: manual; }
.pr-hero .hero__grid { align-items: center; }
.pr-hero .pr-hero__media { display: flex; overflow: visible; background: none; border-radius: 0; height: auto; align-self: center; }
.pr-hero__media > .pr-est { flex: 1 1 auto; min-width: 0; }
.pr-hero__facts { list-style: none; margin: var(--s-6) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.pr-hero__facts li { position: relative; padding-left: 22px; font: 500 16px/1.35 var(--font-text); }
.pr-hero__facts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border: solid var(--p-action);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- estimator window */
.pr-est { display: flex; flex-direction: column; border: 1px solid var(--u-border); border-radius: var(--u-r); background: var(--u-bg);
  box-shadow: var(--u-shadow); overflow: hidden; }
.pr-est__gst { font: 500 12px/1 var(--font-text); color: var(--u-muted); padding: 6px 8px; border: 1px solid var(--u-border); border-radius: 6px; }
.pr-est__body { display: grid; gap: var(--s-4); padding: clamp(20px, 2.4vw, 32px); }
.pr-est__label { font-size: 15px; color: var(--u-muted); }
.pr-est__vol { font: 500 clamp(40px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--u-ink); font-variant-numeric: tabular-nums; margin-top: -6px; }
.pr-est__range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.pr-est__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--p-action) var(--pct), color-mix(in oklab, var(--u-ink) 12%, transparent) var(--pct)); }
.pr-est__range::-moz-range-track { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--u-ink) 12%, transparent); }
.pr-est__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--p-action); }
.pr-est__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--u-bg); border: 2px solid var(--p-action); box-shadow: 0 2px 6px rgba(22, 22, 26, .18); transition: transform .15s ease; }
.pr-est__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--u-bg); border: 2px solid var(--p-action); }
.pr-est__range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.pr-est__range:focus { outline: none; }
.pr-est__range:focus-visible { outline: 2px solid var(--p-action); outline-offset: 4px; border-radius: 8px; }
.pr-est__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-chip { font: 500 14px/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-border);
  border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.pr-chip:hover { border-color: color-mix(in oklab, var(--p-action) 45%, transparent); }
.pr-chip:active { transform: scale(.97); }
.pr-chip:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.pr-chip.is-on { background: var(--p-action); border-color: var(--p-action); color: var(--p-action-ink); }
.pr-est__verdict { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border-radius: 10px;
  background: color-mix(in oklab, var(--p-action) 7%, var(--u-bg)); border: 1px solid color-mix(in oklab, var(--p-action) 22%, transparent); }
.pr-est__kicker { font: 600 13px/1.4 var(--font-text); color: var(--p-action); }
.pr-est__answer { font: 500 clamp(20px, 1.8vw, 24px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--u-ink); }
.pr-est__save { font-size: 14px; line-height: 1.45; color: var(--u-muted); }
.pr-bars { display: grid; gap: var(--s-3); margin: 0; }
.pr-bar { display: grid; gap: 6px; }
.pr-bar dt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--u-ink); }
.pr-bar dt small { font-weight: 400; color: var(--u-muted); font-size: 13px; text-align: right; }
.pr-bar dd { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.pr-bar__track { height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--u-ink) 7%, transparent); overflow: hidden; }
.pr-bar__fill { display: block; height: 100%; border-radius: 999px; background: color-mix(in oklab, var(--u-ink) 28%, transparent);
  transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.pr-bar.is-best .pr-bar__fill { background: var(--p-action); }
.pr-bar__num { font: 600 15px/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--u-ink); min-width: 8.5em; text-align: right; white-space: nowrap; }
.pr-bar__num small { color: var(--u-muted); font-size: 13px; font-weight: 400; }
.pr-bar.is-none .pr-bar__num { color: var(--u-muted); font-weight: 400; }
.pr-est__cta { justify-self: start; }

/* ---------------------------------------------------------------- shared section heads */
.pr-head.section-head--row, .pr-home-head.section-head--row { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6); align-items: end; }
.pr-head .t-lead { max-width: 46ch; }
.pr-home-head__side { display: grid; gap: var(--s-3); justify-items: start; }
.pr-home-head__side .t-lead { max-width: 40ch; }
@media (max-width: 1023px) { .pr-head.section-head--row, .pr-home-head.section-head--row { grid-template-columns: 1fr; gap: var(--s-4); } }

/* real marks in a fixed grid: one row, never a lone mark on a second line */
.pr-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 26px); gap: clamp(8px, 1.4vw, 14px); align-items: center; }
.pr-logos img { display: block; width: 26px; height: 26px; object-fit: contain; }
@media (max-width: 380px) { .pr-logos { grid-template-columns: repeat(9, 22px); gap: 9px; } .pr-logos img { width: 22px; height: 22px; } }

/* ---------------------------------------------------------------- pills: one shape for every tag */
.pr-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font: 500 12.5px/1 var(--font-text); background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pr-pill--good { background: color-mix(in oklab, #2e8b57 10%, var(--bg)); color: color-mix(in oklab, #2e8b57 80%, var(--ink));
  border-color: color-mix(in oklab, #2e8b57 22%, transparent); }
.pr-pill--accent { background: var(--p-action); color: var(--p-action-ink); border-color: var(--p-action); }

/* ---------------------------------------------------------------- packs and flat cards */
.pr-pack__top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.pr-pack__top h3 { margin: 0; white-space: nowrap; }
.pr-money { font: 500 clamp(30px, 2.6vw, 40px)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.pr-rate { color: var(--muted); font-size: 15px; }
.pr-rate b { color: var(--ink); font-weight: 600; }
.card--plan.pr-pack .price, .card--plan.pr-plan .price { display: flex; align-items: baseline; gap: 8px; }
.pr-pack .pr-rate { flex: 1 1 auto; }
.pr-btn--outline { border: 1.5px solid var(--ink) !important; background: var(--bg) !important; color: var(--ink) !important; }
.pr-btn--outline:hover { background: var(--ink) !important; color: var(--bg) !important; }
.pr-pack, .pr-plan { transition: transform .2s ease, box-shadow .2s ease; }
.pr-pack:hover, .pr-plan:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(22, 22, 26, .35); }
.pr-plan .plan__list { margin-top: var(--s-2); }
@media (min-width: 640px) and (max-width: 1279px) { .pr-packs > .pr-pack { grid-column: span 6 !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .pr-flats > .pr-plan { grid-column: span 12 !important; } }
@media (min-width: 1024px) and (max-width: 1279px) { .pr-flats > .pr-plan { grid-column: span 4 !important; } .pr-plan h3 { font-size: 17px; } }

/* ---------------------------------------------------------------- live result strip under the packs */
.pr-strip { margin-top: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.pr-strip__row { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1.5fr) auto minmax(0, 1fr); gap: var(--s-4); align-items: center;
  padding: 14px var(--s-5); font-size: 15px; }
.pr-strip__row + .pr-strip__row { border-top: 1px solid var(--line); }
.pr-strip__email { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-strip__step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.pr-strip__step i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pr-strip__credit { justify-self: end; font-weight: 600; white-space: nowrap; }
.pr-strip__credit.is-back { color: color-mix(in oklab, #2e8b57 80%, var(--ink)); }
/* each row runs MX, SMTP, verdict, credit in turn, rests, then repeats (3.2 s cycle, the second row half a cycle later) */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter-done .pr-strip__step i { animation: pr-dot 3.2s infinite; animation-delay: var(--d, 0s); }
  html.m-enter-done .pr-strip__step + .pr-strip__step i { animation-delay: calc(var(--d, 0s) + .4s); }
  html.m-enter-done .pr-strip__verdict, html.m-enter-done .pr-strip__credit { animation: pr-in 3.2s infinite; animation-delay: calc(var(--d, 0s) + .8s); }
}
@keyframes pr-dot { 0% { background: var(--line-strong); } 12%, 80% { background: var(--p-action); } 100% { background: var(--line-strong); } }
@keyframes pr-in { 0% { opacity: .25; } 10%, 82% { opacity: 1; } 100% { opacity: .25; } }
@media (max-width: 1023px) {
  .pr-strip__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .pr-strip__step { grid-column: auto; }
  .pr-strip__row > .pr-strip__email { grid-column: 1 / -1; }
  .pr-strip__credit { justify-self: end; }
}

/* ---------------------------------------------------------------- flat: a week of daily refills */
.pr-days { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-6); align-items: end; }
.pr-days__head { display: grid; gap: 6px; align-self: center; }
.pr-days__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-3); }
.pr-days__row li { display: grid; gap: 6px; justify-items: center; }
.pr-days__bar { position: relative; width: 100%; height: 72px; border-radius: 6px; background: color-mix(in oklab, var(--p-action) 10%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--p-action) 18%, transparent); overflow: hidden; display: flex; align-items: flex-end; }
.pr-days__bar i { display: block; width: 100%; background: var(--p-action); }
.pr-days__d { font-size: 13px; color: var(--muted); }
.pr-days__n { font: 600 13px/1 var(--font-text); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .pr-days { grid-template-columns: 1fr; padding: var(--s-5); } .pr-days__bar { height: 56px; } .pr-days__row { gap: 6px; } }

/* ---------------------------------------------------------------- included */
.pr-inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.pr-inc li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.pr-inc svg { color: var(--p-action); margin-top: 2px; }
.pr-inc b { display: block; font-weight: 600; font-size: 16px; }
.pr-inc span { color: var(--muted); font-size: 15px; }
@media (max-width: 639px) { .pr-inc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- compare */
.pr-cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-cmp th, .pr-cmp td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.pr-cmp thead th { font: 500 13px/1.3 var(--font-text); color: var(--muted); padding-top: 0; }
.pr-cmp tbody th { font-weight: 600; }
.pr-cmp__num { font: 600 16px/1 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-cmp__terms { color: var(--muted); }
.pr-cmp tr.is-us th, .pr-cmp tr.is-us td { background: color-mix(in oklab, var(--p-action) 7%, var(--bg)); }
.pr-cmp tr.is-us th { border-left: 3px solid var(--p-action); }
.pr-cmp tr.is-us .pr-cmp__num { color: var(--p-action); }
/* phone: each row becomes a card, so the terms stay readable */
@media (max-width: 639px) {
  .pr-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pr-cmp, .pr-cmp tbody { display: grid; gap: 10px; }
  .pr-cmp tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
  .pr-cmp tr.is-us { border-color: var(--p-action); background: color-mix(in oklab, var(--p-action) 7%, var(--bg)); }
  .pr-cmp tr.is-us th, .pr-cmp tr.is-us td { background: none; border-left: 0; }
  .pr-cmp th, .pr-cmp td { padding: 0; border: 0; }
  .pr-cmp tbody th { grid-column: 1 / -1; font-size: 16px; }
  .pr-cmp td.pr-cmp__num::before { content: attr(data-label); display: block; font: 400 12.5px/1.4 var(--font-text); color: var(--muted); margin-bottom: 4px; }
  .pr-cmp__terms { grid-column: 1 / -1; font-size: 14px; }
}

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1023px) {
  .pr-hero, .pr-hero > .wrap, .pr-hero .hero__grid { height: auto !important; min-height: 0 !important; }
  .pr-hero .hero__text, .pr-hero .pr-hero__media { grid-column: 1 / -1 !important; }
  .pr-hero .pr-hero__media { flex: none !important; height: auto !important; min-height: 0 !important; margin-top: var(--s-6); }
  #included .grid > *, #compare .grid > * { grid-column: 1 / -1 !important; }
  #included .grid, #compare .grid { row-gap: var(--s-6); }
}
@media (max-width: 639px) {
  .pr-hero__facts { grid-template-columns: 1fr; gap: var(--s-3); }
  .pr-bar dt { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pr-bar dt small { text-align: left; }
  .pr-bar__num { min-width: 0; }
  .pr-est__cta { justify-self: stretch; }
}

/* ---------------------------------------------------------------- closing call to action as one row (inner pages) */
.closing__cta--row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-6);
  padding: var(--s-6) var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.closing__cta--row .section-head { gap: var(--s-2); max-width: none; }
.closing__cta--row h2 { font-size: clamp(28px, 2.6vw, 36px); max-width: none; }
.closing__cta--row .section-head p { color: var(--muted); }
@media (max-width: 767px) { .closing__cta--row { grid-template-columns: 1fr; padding: var(--s-5); } .closing__cta--row .btn { width: 100%; } }

/* ---------------------------------------------------------------- home pricing rows */
.plan__list li.plan__row { display: flex; justify-content: flex-start; align-items: baseline; gap: var(--s-3); }
.plan__row > span:first-of-type { flex: 1 1 auto; text-align: left; }
.plan__row > span:last-of-type { white-space: nowrap; }
.plan__row small { font-size: 13px; }
@media (min-width: 1024px) and (max-width: 1279px) { #pricing .plans > .card--plan { grid-column: span 4 !important; } .plan__list li.plan__row { font-size: 15px; } }
@media (min-width: 640px) and (max-width: 1023px) { #pricing .plans > .card--plan:last-child { grid-column: span 12 !important; } }
@media (max-width: 1279px) { .plan__row small { display: none; } }

/* ---------------------------------------------------------------- legal pages */
.lg-sec { padding-top: clamp(120px, 12vw, 168px) !important; }
.lg-side { position: sticky; top: 104px; align-self: start; display: grid; gap: var(--s-6); max-height: calc(100vh - 128px); overflow: auto; }
.lg-side__group, .lg-toc { display: grid; gap: var(--s-3); }
.lg-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-side a { display: flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-radius: 8px; color: var(--muted); text-decoration: none;
  transition: background .15s ease, color .15s ease; }
.lg-side a:hover { background: var(--surface); color: var(--ink); }
.lg-side a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--p-action); }
.lg-toc a { min-height: 34px; font-size: 14.5px; border-radius: 0; box-shadow: inset 1px 0 0 var(--line); }
.lg-toc a[aria-current="location"] { color: var(--ink); box-shadow: inset 2px 0 0 var(--p-action); }
.lg-doc { display: grid; gap: var(--s-7); }
/* the header rule, the text and the tables share one measure */
.lg-doc > * { max-width: 760px; }
.lg-doc__head { display: grid; gap: var(--s-4); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.lg-doc__head h1 { font-size: clamp(40px, 5vw, 64px); }
.lg-prose { font-size: 17px; line-height: 1.65; }
.lg-prose > * + * { margin-top: var(--s-4); }
.lg-prose h2 { font: 600 20px/1.3 var(--font-text); letter-spacing: -0.01em; margin-top: var(--s-7); scroll-margin-top: 104px; }
.lg-prose h2:first-child { margin-top: 0; }
.lg-prose h3 { font: 600 16px/1.4 var(--font-text); margin-top: var(--s-5); }
.lg-prose h3 + p { margin-top: var(--s-1); }
.lg-prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.lg-prose li::marker { color: var(--p-action); }
.lg-prose a { color: var(--p-action); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-prose a:hover { text-decoration-thickness: 2px; }
.lg-prose .lg-foot { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.lg-dl { margin: 0; display: grid; }
.lg-dl > div { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.lg-dl > div:first-child { padding-top: 0; }
.lg-dl dt { color: var(--muted); font-size: 15px; }
.lg-dl dd { margin: 0; font-weight: 500; }
@media (max-width: 1023px) {
  .lg-side { position: static; grid-column: 1 / -1 !important; max-height: none; }
  .lg-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .lg-side a { border: 1px solid var(--line); }
  .lg-toc { display: none; }
  .lg-doc { grid-column: 1 / -1 !important; margin-top: var(--s-6); }
}
@media (max-width: 639px) { .lg-dl > div { grid-template-columns: 1fr; gap: 4px; } .lg-prose { font-size: 16px; } }

/* ---------------------------------------------------------------- currency switch (USD / INR) */
.ccy-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.ccy-switch button { font: 600 13px/1 var(--font-text); letter-spacing: .02em; color: var(--muted); background: none; border: 0; border-radius: 999px;
  min-height: 34px; min-width: 52px; padding: 0 12px; cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease; }
.ccy-switch button:hover { color: var(--ink); }
.ccy-switch button:active { transform: scale(.96); }
.ccy-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ccy-switch button:focus:not(:focus-visible) { outline: none; }
.ccy-switch--sm button { min-height: 30px; min-width: 46px; font-size: 12.5px; }
.pr-head__side { display: grid; gap: var(--s-4); justify-items: start; }
.pr-ccy { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.pr-home-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); width: 100%; flex-wrap: wrap; }
.pr-fine { margin-top: var(--s-4); font-size: 13px; color: var(--muted); }
.pr-cmp thead th { white-space: nowrap; }

/* ---------------------------------------------------------------- dark (html[data-dark], set by the theme script) */
html[data-dark] .pr-est__range::-webkit-slider-thumb { box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
html[data-dark] .pr-pack:hover, html[data-dark] .pr-plan:hover { box-shadow: 0 12px 30px -16px rgb(0 0 0 / .7); }
html[data-dark] .pr-pill--good { background: color-mix(in oklab, #4fae7a 14%, var(--bg)); color: #79d4a0; border-color: color-mix(in oklab, #4fae7a 30%, transparent); }
html[data-dark] .pr-strip__credit.is-back { color: #79d4a0; }
