body.pricing-page {
  --pricing-sans: var(--sans);
  font-family: var(--pricing-sans);
}

/* --------------------------------------------------------------------------
   Page hero. Built on the shared .ms-head (marketing-sections.css loads last),
   so overrides are scoped with body.pricing-page to win on specificity.
   The headline is long, so it sits a step below the shared .ms-head h1 scale.
   -------------------------------------------------------------------------- */
body.pricing-page .pricing-hero {
  padding-bottom: clamp(40px, 4.5vw, 64px);
}

body.pricing-page .pricing-hero__head {
  max-width: 880px;
}

body.pricing-page .pricing-hero h1 {
  max-width: 15em;
  font-size: var(--text-title);
  line-height: var(--text-title-leading);
  letter-spacing: -.026em;
}

body.pricing-page .pricing-hero__aside {
  display: block;
  margin-top: .06em;
  color: var(--ms-eyebrow-color, #68713F);
}

body.pricing-page .pricing-hero .pricing-hero__setup {
  margin-top: 26px;
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--ink);
  font-weight: 500;
}

body.pricing-page .pricing-hero .ms-actions {
  margin-top: 30px;
}

.price-section {
  padding: 0;
}

.price-board {
  max-width: 1140px;
  margin: 0 auto;
}

.price-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 74px;
  margin-bottom: 10px;
}

.billing-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
  padding-top: 20px;
}

.billing-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.billing-period {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 620;
  line-height: 1;
  transition: color 160ms ease;
}

.billing-control:not(.is-annual) .billing-period--monthly,
.billing-control.is-annual .billing-period--annual {
  color: var(--ink);
}

.billing-saving {
  position: absolute;
  left: -7px;
  bottom: calc(100% + 7px);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-olive, #737C47);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.billing-saving svg {
  width: 19px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(2px) rotate(-8deg) scaleX(-1);
  transform-origin: center;
}

.billing-yearly {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.billing-switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.billing-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.billing-switch-track {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 20, 18, .14);
  border-radius: 999px;
  background: rgba(20, 20, 18, .08);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.billing-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 18, .20);
  transition: transform 160ms ease;
}

.billing-switch input:checked + .billing-switch-track {
  border-color: rgba(115, 124, 71, .48);
  background: var(--accent-olive, #737C47);
}

.billing-switch input:checked + .billing-switch-track .billing-switch-thumb {
  transform: translateX(16px);
}

/* Solid olive ring (--ms-eyebrow-color: #68713F light, #A6AF78 dark) so focus
   clears 3:1 against the page in both themes. */
.billing-switch input:focus-visible + .billing-switch-track,
.plan-cta:focus-visible,
.price-note a:focus-visible {
  outline: 2px solid var(--ms-eyebrow-color, #68713F);
  outline-offset: 3px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: column;
  padding: 30px 27px;
  border: 1px solid rgba(20, 20, 18, .07);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px -36px rgba(20, 20, 18, .22);
}

.plan-card--premium {
  border-color: rgba(20, 20, 18, .07);
  background: #ffffff;
}

.plan-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 29px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-align: center;
}

body.pricing-page .plan-card,
body.pricing-page .plan-intro,
body.pricing-page .plan-features,
body.pricing-page .price-note {
  font-family: var(--pricing-sans);
}

body.pricing-page .plan-card h2 {
  font-family: var(--font-serif);
  font-weight: 600;
}

.plan-intro {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.48;
  text-align: center;
}

.price-content {
  transition: opacity 140ms ease, transform 140ms ease;
}

.plan-card.is-switching .price-content {
  opacity: .15;
  transform: translateY(5px);
}

.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 11px;
  justify-content: center;
  margin-top: 27px;
}

.plan-card .num {
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 54px);
  font-weight: 540;
  line-height: .95;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-card .num .cents {
  margin-left: 1px;
  font-size: .42em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: -.02em;
}

.plan-card .num--word {
  font-size: clamp(40px, 4.3vw, 52px);
  letter-spacing: -.04em;
}

.plan-card .sub {
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
}

.effective {
  min-height: 18px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.plan-cta {
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
  margin-top: auto;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

.plan-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  margin: 26px auto 30px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-olive, #737C47);
  font-weight: 800;
}

/* Ultra's "Best value" badge, as on the app's paywall (yearly Ultra costs a
   month what Premium monthly does). It sits in the corner so the card
   headings stay aligned across the row. */
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-olive, #737C47);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.price-ultra-note {
  max-width: 46em;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.price-ultra-note::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--accent-olive, #737C47);
}

.plan-features .feature-new {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features .feature-new span {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--clay-deep);
  font-size: 8.5px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-note + .price-note {
  margin-top: 6px;
}

/* Compare pricing with ChatGPT, Claude or Perplexity: a Liquid Glass pill
   that floats at the foot of the screen while the page scrolls, and steps
   aside over the footer. The glass is a thin, saturated blur of what's
   behind it with a lit rim (brightest along the top) and a soft sheen; the
   buttons are smaller glass capsules inside it. On a phone the label sits
   on its own line above the buttons. */
.ai-compare {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(242, 242, 245, .42);
  -webkit-backdrop-filter: blur(14px) saturate(1.9) brightness(1.04);
  backdrop-filter: blur(14px) saturate(1.9) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 1px rgba(255, 255, 255, .3),
    inset 0 0 0 .5px rgba(255, 255, 255, .35),
    0 10px 30px -12px rgba(20, 20, 18, .3),
    0 2px 6px rgba(20, 20, 18, .06);
  font-family: var(--pricing-sans);
  transform: translateX(-50%);
  transition: opacity .25s, transform .25s;
  /* As wide as what it holds, not the half of the screen right of left: 50%
     (on an iPad Safari squeezed the label under the ChatGPT button). */
  width: max-content;
  max-width: calc(100vw - 24px);
}
.ai-compare > * { flex-shrink: 0; }
.ai-compare::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(120% 140% at 18% -20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.ai-compare.is-away { opacity: 0; transform: translate(-50%, 18px); pointer-events: none; }
.ai-compare__label { margin-right: 4px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ai-compare__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 .5px rgba(20, 20, 18, .1),
    0 3px 10px -3px rgba(20, 20, 18, .18);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background-color .2s;
}
.ai-compare__btn:hover { background: rgba(255, 255, 255, .9); transform: translateY(-1px); }
.ai-compare__icon { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
.ai-compare__icon--claude { fill: #D97757; }
.ai-compare__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html[data-theme="dark"] .ai-compare {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(44, 44, 46, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 0 .5px rgba(255, 255, 255, .08),
    0 10px 30px -12px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .ai-compare::before {
  background: radial-gradient(120% 140% at 18% -20%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%);
}
html[data-theme="dark"] .ai-compare__btn {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #F2F2F2;
}
html[data-theme="dark"] .ai-compare__btn:hover { background: rgba(255, 255, 255, .18); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ai-compare { background: rgba(255, 255, 255, .92); }
  html[data-theme="dark"] .ai-compare { background: rgba(28, 28, 30, .94); }
}
@media (max-width: 560px) {
  .ai-compare { flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px); padding: 8px; border-radius: 24px; }
  .ai-compare__label { flex-basis: 100%; margin: 2px 0 0; font-size: 12.5px; text-align: center; }
  .ai-compare__btn { gap: 5px; min-height: 36px; padding: 0 10px; font-size: 12.5px; }
  .ai-compare__icon { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ai-compare, .ai-compare__btn { transition: none; } }
@media (prefers-reduced-transparency: reduce) {
  .ai-compare { background: rgba(255, 255, 255, .96); }
  html[data-theme="dark"] .ai-compare { background: rgba(28, 28, 30, .97); }
}

/* Premium for Life under the plan board: the one-time price, and the
   year-end offer with its countdown beside it */
.lifetime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  max-width: 880px;
  margin: 32px auto 0;
  padding: 28px;
  border: 1px solid rgba(20, 20, 18, .07);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px -36px rgba(20, 20, 18, .22);
  font-family: var(--pricing-sans);
}
.lifetime.is-plain { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
@media (min-width: 761px) { .lifetime { display: none; } }
.lifetime__eyebrow { margin: 0; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.lifetime__title { margin: 6px 0 0; font-family: var(--pricing-sans); font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.lifetime__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; color: var(--ink); }
.lifetime__price .num { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.lifetime__price .cents { font-size: .45em; letter-spacing: 0; vertical-align: super; }
.lifetime__price .sub { color: var(--ink-3); font-size: 14px; }
.lifetime__list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.lifetime__list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.lifetime__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-olive, #737C47); font-weight: 700; }
.lifetime__buy { margin: 16px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.lifetime__buy[hidden], .lifetime__offer[hidden] { display: none; }
.lifetime__offer { display: flex; flex-direction: column; padding: 20px; border: 1px solid rgba(189, 96, 56, .32); border-radius: 10px; background: rgba(189, 96, 56, .045); }
.lifetime__offer-body { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.lifetime__timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.lifetime__timer span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border: 1px solid rgba(20, 20, 18, .08); border-radius: 8px; background: #ffffff;
  color: var(--ink-3); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lifetime__timer b { color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; text-transform: none; }
.lifetime__timer span:last-child b { color: var(--accent-terracotta, #BD6038); }
.lifetime__cta { align-self: stretch; min-height: 48px; margin-top: 16px; border-radius: 8px; }
.lifetime__fine { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; }
html[data-theme="dark"] .lifetime { border-color: var(--site-card-border); background: var(--paper); }
html[data-theme="dark"] .lifetime__timer span { border-color: var(--site-card-border); background: var(--paper); }
html[data-theme="dark"] .lifetime__offer { background: rgba(189, 96, 56, .08); }
@media (max-width: 760px) {
  .lifetime { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}

.price-note {
  max-width: 52em;
  margin: 20px auto 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: center;
}

.price-note a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 20, 18, .22);
}

/* --------------------------------------------------------------------------
   Sections after the price board (shared ms- components, page-scoped tweaks).
   -------------------------------------------------------------------------- */
/* Privacy promise: the copywriter's line and the original side-hustle note,
   merged into one centred block above the closing band. */
body.pricing-page .pricing-promise__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--ms-rule, rgba(11, 11, 11, .14));
  text-align: center;
}

body.pricing-page .pricing-promise__inner h2 {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.06;
}

body.pricing-page .pricing-promise__lede {
  max-width: 34em;
  margin: 22px auto 0;
  color: var(--ink);
  font-size: var(--text-lede);
  line-height: var(--text-lede-leading);
}

body.pricing-page .pricing-promise__sass {
  max-width: 40em;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-family: var(--pricing-sans);
  font-size: 15.5px;
  line-height: 1.7;
}

body.pricing-page .pricing-promise__sass strong {
  color: var(--ink);
  font-weight: 650;
}

body.pricing-page .pricing-promise__link {
  display: inline-block;
  margin-top: 22px;
  color: #A8532F;
  font-family: var(--pricing-sans);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 160ms ease;
}

body.pricing-page .pricing-promise__link:hover {
  color: var(--ink);
}

html[data-theme="dark"] body.pricing-page .pricing-promise__link {
  color: #D9774F;
}

@media (max-width: 520px) {
  body.pricing-page .pricing-promise__inner {
    text-align: left;
  }
  body.pricing-page .pricing-promise__inner h2,
  body.pricing-page .pricing-promise__lede,
  body.pricing-page .pricing-promise__sass {
    margin-left: 0;
  }
}

body.pricing-page .pricing-worldwide__note {
  margin: 28px auto 0;
  text-align: center;
}

/* Nine reviews in two columns (641–980px) leave one card alone on the last
   row; centre it at single-column width instead of hanging it left. */
@media (min-width: 641px) and (max-width: 980px) {
  body.pricing-page .pricing-worldwide .ms-reviews > .ms-review:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
  }
}

/* "Got a question?" — an h3 under the worldwide h2, centred below the wall. */
body.pricing-page .pricing-help {
  max-width: 760px;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: clamp(56px, 6vw, 80px);
  border-top: 1px solid var(--ms-rule, rgba(11, 11, 11, .14));
}

body.pricing-page .pricing-help .ms-faq__head h3 {
  margin: 0 auto;
}

body.pricing-page .pricing-help .ms-faq__head > p {
  margin-top: 16px;
}

/* One visible focus style for every button and inline link on the page.
   The CTA band keeps its own light ring from marketing-sections.css. */
body.pricing-page main .btn:focus-visible,
body.pricing-page .pricing-promise a:focus-visible {
  outline: 2px solid var(--ms-eyebrow-color, #68713F);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="dark"] .plan-card {
  border-color: var(--site-card-border);
  background-color: var(--paper);
}

html[data-theme="dark"] .plan-card--premium {
  border-color: var(--site-card-border);
  background: var(--paper);
}

html[data-theme="dark"] .billing-switch-track {
  border-color: rgba(255, 255, 255, .24);
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .billing-switch-thumb {
  background: #F2F2F2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .billing-switch input:checked + .billing-switch-track {
  border-color: var(--accent-olive);
  background: var(--accent-olive);
}

/* Dark theme: editorial-type.css gives every .btn-ghost a translucent paper
   fill that reads as a low-contrast grey pill on ink. Keep the Free plan CTA
   outlined, matching ghost buttons inside the ms- components. */
html[data-theme="dark"] .plan-badge {
  color: #A6AF78;
}

html[data-theme="dark"] body.pricing-page .plan-card--free .plan-cta {
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
  color: #F2F2F2;
  box-shadow: none;
}

html[data-theme="dark"] body.pricing-page .plan-card--free .plan-cta:hover {
  border-color: #F2F2F2;
  background: #F2F2F2;
  color: #111111;
}

html[data-theme="dark"] .price-note a {
  border-bottom-color: rgba(255, 255, 255, .3);
}

@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

}

@media (max-width: 760px) {
  .price-toolbar {
    width: 100%;
  }

  .plan-card {
    padding: 30px;
  }

}

@media (max-width: 520px) {
  .plan-card {
    padding: 25px;
    border-radius: 10px;
  }

  .plan-card .num {
    white-space: normal;
  }

  .price-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body.pricing-page .pricing-hero .pricing-hero__setup {
    margin-top: 22px;
    font-size: 19px;
  }

  body.pricing-page .pricing-help .ms-faq__more {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .billing-period,
  .billing-switch-track,
  .billing-switch-thumb,
  .price-content,
  body.pricing-page .pricing-promise__link {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Plan table: the plans and every feature in one table, so price and value
   read together. Row 1 of the head (name and price) sticks to the top while
   the features scroll (the nav floats transparent, so its padding clears the
   logo, theme switch and menu button); row 2 (intro, yearly line, button) scrolls
   away, and on phones it hides behind the single button under the table.
   Tiers follow the app's feature_access.dart.
   -------------------------------------------------------------------------- */
.plan-table {
  --plan-table-top: 0px;
  border: 1px solid rgba(20, 20, 18, .07);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px -36px rgba(20, 20, 18, .22);
}

.plan-table__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--pricing-sans);
}

.plan-table__grid col:not(.plan-table__feature-col) {
  width: 17%;
}

.plan-table__grid .plan-table__ultra-col {
  background: rgba(115, 124, 71, .055);
}

/* Each head starts its name at the same height, whether or not its price
   has a line under it (Free has none, and on a tablet "/ month" wraps under
   the others), with a slot above the name for a badge, low enough to clear
   the nav's theme switch and menu button when the row is stuck. */
.plan-table__heads th {
  position: sticky;
  top: var(--plan-table-top);
  z-index: 2;
  padding: 94px 12px 16px;
  background: #ffffff;
  box-shadow: inset 0 -1px 0 var(--hair, rgba(11, 11, 11, .08));
  text-align: center;
  vertical-align: top;
}

.plan-table__heads th:first-child {
  border-top-left-radius: 10px;
}

.plan-table__heads th:last-child {
  border-top-right-radius: 10px;
}

.plan-table__heads .plan-card--ultra {
  background: linear-gradient(rgba(115, 124, 71, .055), rgba(115, 124, 71, .055)), #ffffff;
}

.plan-head__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
}

.plan-table .plan-badge {
  top: 64px;
  right: auto;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan-head .price-content {
  display: block;
}

.plan-head.is-switching .price-content {
  opacity: .15;
  transform: translateY(5px);
}

.plan-head .price-line {
  gap: 2px 7px;
  margin-top: 10px;
}

.plan-head .num {
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 540;
  line-height: .95;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-head .num .cents {
  margin-left: 1px;
  font-size: .42em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: -.02em;
}

.plan-head .sub {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.plan-table__details td {
  padding: 2px 18px 0;
  text-align: center;
  vertical-align: top;
}

.plan-table__details .plan-intro {
  margin-top: 12px;
  font-size: 14px;
}

.plan-table__actions td {
  padding: 14px 18px 26px;
  vertical-align: bottom;
}

/* Premium for Life's column, before Ultra: its one-time price, and the
   year-end offer's countdown where the others have their notes. On a phone
   the column goes and the card under the table takes its place. */
.plan-table .plan-badge--offer { color: var(--accent-terracotta, #BD6038); }
.plan-card--life .price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; }
.plan-head .was { color: var(--ink-3); font-size: 14px; font-weight: 400; white-space: nowrap; }
.lifetime__badge { display: inline-block; margin-left: 8px; padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent-terracotta, #BD6038);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; vertical-align: middle; }
.lifetime__badge[hidden], .lifetime__was[hidden] { display: none; }
.lifetime__was { color: var(--ink-3); font-size: 17px; }
.lifetime__note { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; }
.life-offer {
  max-width: 210px;
  margin: 12px auto 0;
  padding: 10px 8px 8px;
  border: 1px solid rgba(189, 96, 56, .32);
  border-radius: 10px;
  background: rgba(189, 96, 56, .045);
}
.life-offer .lifetime__timer { gap: 4px; margin-top: 0; }
.life-offer .lifetime__timer span { padding: 6px 1px 5px; font-size: 8.5px; letter-spacing: .05em; }
.life-offer .lifetime__timer b { font-size: 16px; }
.life-buy { margin-top: 10px; }
.plan-table [data-offer][hidden], .plan-table [data-offer-off][hidden], .plan-table [data-life-buy][hidden] { display: none !important; }
html[data-theme="dark"] .life-offer { background: rgba(189, 96, 56, .08); }
@media (min-width: 761px) and (max-width: 1100px) {
  .plan-table td.plan-life { padding-left: 8px; padding-right: 8px; }
  .plan-table__heads th.plan-life { padding-left: 4px; padding-right: 4px; }
  .plan-table .plan-badge--offer { padding: 3px 6px; font-size: 8.5px; letter-spacing: .02em; white-space: nowrap; }
  .life-offer .lifetime__timer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-life .plan-cta { padding-left: 10px; padding-right: 10px; }
}
/* On a phone the column folds to nothing. Its cells stay in the rows
   (display: none would slide Ultra's cells into the empty column) but take
   no width and show nothing. */
@media (max-width: 760px) {
  .plan-table .plan-table__grid col.plan-table__life-col { width: 0; }
  .plan-table .plan-table__grid .plan-life { width: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; }
}

.plan-table__details .plan-table__trial {
  padding-left: 26px;
  padding-bottom: 26px;
  text-align: left;
}

.plan-table__trial p {
  max-width: 15em;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-family: var(--font-serif, var(--serif));
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
}

.plan-table__grid tbody th,
.plan-table__grid tbody td {
  padding: 11px 12px;
  border-top: 1px solid var(--hair, rgba(11, 11, 11, .08));
  vertical-align: middle;
}

.plan-table__grid tbody th[scope="row"] {
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.plan-table__grid tbody td {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.3;
  text-align: center;
}

.plan-table__grid tbody:last-child tr:last-child > * {
  padding-bottom: 16px;
}

.plan-table__grid .plan-table__group th {
  padding: 28px 12px 8px 26px;
  border-top: 0;
  color: var(--ms-eyebrow-color, #68713F);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.pc-yes {
  color: var(--accent-olive, #737C47);
  font-weight: 800;
}

.pc-no {
  color: var(--ink-4, #B8B0A4);
}

.pc-text {
  font-weight: 600;
}

.plan-table__note {
  max-width: 46em;
  margin: 16px auto 0;
  color: var(--ink-3);
  font-family: var(--pricing-sans);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: center;
}

.plan-table__cta {
  margin: 22px 0 0;
  text-align: center;
}

.plan-table__cta .btn {
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 8px;
}

html[data-theme="dark"] .plan-table {
  border-color: var(--site-card-border);
  background: var(--paper);
}

html[data-theme="dark"] .plan-table__heads th {
  background: var(--paper);
}

html[data-theme="dark"] .plan-table__heads .plan-card--ultra {
  background: linear-gradient(rgba(166, 175, 120, .07), rgba(166, 175, 120, .07)), var(--paper);
}

html[data-theme="dark"] .plan-table__grid .plan-table__ultra-col {
  background: rgba(166, 175, 120, .07);
}

html[data-theme="dark"] .pc-yes {
  color: #A6AF78;
}

@media (max-width: 760px) {
  .plan-table__grid col:not(.plan-table__feature-col) {
    width: 70px;
  }

  .plan-table__details,
  .plan-table__actions,
  .plan-table .plan-badge {
    display: none;
  }

  .plan-table__heads th {
    padding: 54px 4px 11px;
    vertical-align: top;
  }

  .plan-table__heads th:first-child {
    padding-left: 14px;
  }

  /* Tighter, so "Premium" fits its column. */
  .plan-head__name {
    font-size: 17px;
    letter-spacing: 0;
  }

  .plan-head .price-line {
    margin-top: 6px;
  }

  .plan-head .num {
    font-size: 19px;
    letter-spacing: -.03em;
  }

  .plan-head .sub {
    font-size: 10.5px;
  }

  .plan-table__grid tbody th,
  .plan-table__grid tbody td {
    padding: 10px 4px;
  }

  .plan-table__grid tbody th[scope="row"],
  .plan-table__grid .plan-table__group th {
    padding-left: 14px;
  }

  .plan-table__grid tbody th[scope="row"] {
    font-size: 13.5px;
  }

  .plan-table__grid tbody td {
    font-size: 12px;
  }

  .plan-table__grid .plan-table__group th {
    padding-top: 22px;
    font-size: 10.5px;
    letter-spacing: .05em;
  }

  .pc-text {
    font-size: 11px;
  }
}
