/* ─────────────────────────────────────────────────────────────────────────
   Pricing — hero, persona nav, heading band and tier table.

   Figma 2225:1030 / 2225:1265 / 2225:1333 / 2225:1394 (desktop, 1440
   canvas) and 2353:3443 (mobile, 360 canvas).

   One stylesheet for all four persona pages: the frames are structurally
   identical and differ only in the heading and the tiers shown.

   CANVAS NOTE: 1440, not the 1920 the homepage sections use. Every fluid
   value is px / 1440 * 100 = vw.

   Fluid model is the site standard: clamp(min, <intercept> + <slope>vw,
   max) interpolated between the 360 and 1440 anchors, so nothing steps at
   a breakpoint. Slope = (v1440 − v360) / 1080 * 100 vw.

   EXTRA-LARGE SCREENS: every section here is a centred column, so the
   content simply caps at its Figma width and centres — no canvas-offset
   term is needed (that is only for compositions anchored to the frame's
   left edge, like the Solutions call-out). Sizes stop growing past 1440
   and the page gains white gutters, which is the intended behaviour.

   CARDS ARE TOP-ALIGNED AND EACH IS AS TALL AS ITS OWN CONTENT. Figma's
   two Community cards are 1085 and 1349 — deliberately unequal, because
   Basic lists 15 features and Pro lists 21. The grid therefore aligns to
   `start`, NOT `stretch`: stretching forces both to the taller one, which
   leaves a block of empty cream under the shorter card and reads as a
   layout bug. Card width is fixed (540); card height never is.
   ───────────────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────────── */

.section-pricing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 0.72222rem + 1.2346vw, 1.875rem); /* 16 -> 30 */
  background: var(--color-white, #fff);
  padding-inline: clamp(1.25rem, -1.45833rem + 12.037vw, 9.375rem); /* 20 -> 150 */
  padding-block: clamp(2.5rem, 1.94444rem + 2.4691vw, 4.375rem); /* 40 -> 70 */
  color: var(--color-navy-dark, #001428);
}

.section-pricing-hero__title,
.section-pricing-hero__body {
  width: 100%;
  max-width: min(71.25rem, 100%); /* 1140 */
}

.section-pricing-hero__title {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.875rem + 2.7778vw, 4.375rem); /* 40 -> 70 */
  line-height: clamp(2.8125rem, 2.29167rem + 2.3148vw, 4.375rem); /* 45 -> 70 */
  letter-spacing: -0.024em;
}

.section-pricing-hero__body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.91667rem + 0.3704vw, 1.375rem); /* 16 -> 22 */
  line-height: clamp(1.5rem, 1.33333rem + 0.7407vw, 1.9375rem); /* 24 -> 31 */
  letter-spacing: -0.016em;
}

.section-pricing-hero__strong {
  font-weight: 600;
}

/* ── Persona nav ──────────────────────────────────────────────────────── */

/* Links, not buttons — each pill is a different URL. The row scrolls
   sideways rather than wrapping when it does not fit, so the single-row
   rhythm holds at every width. */
.section-pricing-nav {
  background: var(--color-white, #fff);
}

.section-pricing-nav__list {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10 */
  margin: 0;
  padding-inline: clamp(1.25rem, -1.45833rem + 12.037vw, 9.375rem); /* 20 -> 150 */
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-pricing-nav__list::-webkit-scrollbar {
  display: none;
}

@media (width >= 80rem) {
  .section-pricing-nav__list {
    justify-content: center;
  }
}

.section-pricing-nav__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1rem, 0.44444rem + 3.4568vw, 4.0625rem); /* 16 -> 65 */
  padding-block: clamp(0.625rem, 0.625rem + 0vw, 0.625rem); /* 10 */
  border: 1.5px solid #183a73;
  border-radius: var(--radius-button);
  background: transparent;
  color: #183a73;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(0.75rem, 0.625rem + 0.5556vw, 1.125rem); /* 12 -> 18 */
  line-height: clamp(0.975rem, 0.8125rem + 0.6852vw, 1.4375rem); /* 15.6 -> 23 */
  letter-spacing: -0.016em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.section-pricing-nav__pill:focus-visible {
  outline: 3px solid var(--color-yellow, #dbe64c);
  outline-offset: 3px;
}

/* aria-selected is the same pill used as a tab in the Choose a plan modal
   (shared/signup-modal.html); the pricing pages themselves only ever set
   aria-current. */
.section-pricing-nav__pill[aria-current="page"],
.section-pricing-nav__pill[aria-selected="true"] {
  background: #183a73;
  color: var(--color-white, #fff);
}

.section-pricing-nav__pill:hover:not([aria-current="page"], [aria-selected="true"]) {
  background: rgb(24 58 115 / 8%);
}

@media (width >= 64rem) {
  .section-pricing-nav__pill {
    height: min(4.375rem, 4.8611vw); /* 70 */
    padding-block: 0;
  }
}

/* ── Heading band ─────────────────────────────────────────────────────── */

.section-pricing-band {
  display: flex;
  justify-content: center;
  background: var(--color-white, #fff);
  padding-inline: clamp(1.25rem, -1.45833rem + 12.037vw, 9.375rem);
  padding-block: clamp(1.5rem, 0.83333rem + 2.963vw, 3.75rem); /* 24 -> 60 */
}

.section-pricing-band__heading {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.51852rem + 1.0288vw, 2.5rem); /* 28 -> 40 */
  line-height: clamp(2rem, 1.79167rem + 0.9259vw, 2.8125rem); /* 32 -> 45 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
  text-align: center;
}

/* ── Tier table ───────────────────────────────────────────────────────── */

.section-pricing-table {
  background: var(--color-white, #fff);
  padding-inline: clamp(1.25rem, -1.45833rem + 12.037vw, 9.375rem); /* 20 -> 150 */
  padding-bottom: clamp(3.75rem, 2.5rem + 5.5556vw, 9.375rem); /* 60 -> 150 */
}

/* auto-fit rather than a fixed column count: the community page has two
   tiers and the other three have one, and this lets the same rule serve
   both without a per-page override. The single-tier pages get one centred
   540 card, matching Figma's 1000-wide table with the card at x=230. */
.section-pricing-table__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 0.66667rem + 3.7037vw, 3.75rem); /* 24 -> 60 */
  align-items: start; /* unequal heights are intended — see the header note */
  width: 100%;
  max-width: min(71.25rem, 100%); /* 1140 */
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

@media (width >= 64rem) {
  .section-pricing-table__grid {
    grid-template-columns: repeat(auto-fit, minmax(0, min(33.75rem, 100%))); /* 540 */
    justify-content: center;
  }
}

.section-pricing-tier {
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 0.55556rem + 0.3086vw, 0.9375rem); /* 10 -> 15 */
  background: var(--color-cream, #f6f8ed);
  border-radius: clamp(1.25rem, 1.11111rem + 0.6173vw, 1.875rem); /* 20 -> 30 */
  padding: clamp(0.75rem, 0.61111rem + 0.6173vw, 1.25rem); /* 12 -> 20 */
  overflow: hidden;
}

/* The premium tier's card is a viridian->royal diagonal instead of cream.
   Figma: community Pro 2225:1140, managers Growth 2225:1284, service pros
   Pro Connect 2225:1352 — one treatment, three frames.

   Angle and stops are Figma's own values, read from 2225:1284, not inferred
   from the render. An earlier pass used `to top right`, which landed the two
   endpoint corners correctly but drifted through the middle of the card
   because the real gradient is 236.948deg with stops at 1.2% and 72.3% —
   not a corner-to-corner sweep.

   #183a73 (Royal) has no @theme token — the same gap already flagged for the
   persona pills above and on Solutions. It is a token candidate: this file
   now uses it four times. */
.section-pricing-tier--featured {
  background: linear-gradient(236.948deg, var(--color-green, #00804d) 1.2048%, #183a73 72.261%);
}

.section-pricing-tier__label {
  padding: 0.75rem; /* 12 */
  border-radius: 0.5rem;
}

.section-pricing-tier__name {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.23611rem + 0.6173vw, 1.875rem); /* 22 -> 30 */
  line-height: clamp(1.5rem, 1.35417rem + 0.6481vw, 2.0625rem); /* 24 -> 33 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
}

/* Declared after the base rule, not next to --featured's background, so the
   higher-specificity selector comes second (stylelint no-descending-specificity). */
.section-pricing-tier--featured .section-pricing-tier__name {
  color: var(--color-white, #fff);
}

.section-pricing-tier__panel,
.section-pricing-tier__features {
  background: var(--color-white, #fff);
  border-radius: clamp(1.25rem, 1.11111rem + 0.6173vw, 1.875rem); /* 20 -> 30 */
  padding: clamp(1rem, 0.77778rem + 0.9877vw, 1.5rem); /* 16 -> 24 */
}

.section-pricing-tier__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16 */
}

.section-pricing-tier__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12 */
}

.section-pricing-tier__price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-pricing-tier__price {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem; /* 4 */
  white-space: nowrap;
}

.section-pricing-tier__amount {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.66667rem + 0.9259vw, 2.5rem); /* 30 -> 40 */
  line-height: clamp(2.125rem, 1.91667rem + 0.9259vw, 2.8125rem); /* 34 -> 45 */
  letter-spacing: -0.016em;
  color: var(--color-black, #000);
}

.section-pricing-tier__period {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.91667rem + 0.3704vw, 1.375rem); /* 16 -> 22 */
  line-height: clamp(1.375rem, 1.25rem + 0.5556vw, 1.875rem); /* 22 -> 30 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
}

/* Figma's badge fill did not serialise on export; green is the brand's
   affirmative colour and the only one that reads on white beside the navy
   CTA. Worth confirming with the designer. */
.section-pricing-tier__badge {
  flex-shrink: 0;
  align-self: flex-start;
  padding-inline: 0.5rem; /* 8 */
  padding-block: 0.25rem; /* 4 */
  border-radius: 0.25rem; /* 4 */
  background: var(--color-green, #00804d);
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 500;
  font-size: 0.875rem; /* 14 — flat at both anchors */
  line-height: 1rem; /* 16 */
  letter-spacing: -0.0057em;
  color: var(--color-white, #fff);
  white-space: nowrap;
}

.section-pricing-tier__description {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.91667rem + 0.3704vw, 1.375rem); /* 16 -> 22 */
  line-height: clamp(1.375rem, 1.25rem + 0.5556vw, 1.875rem); /* 22 -> 30 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
}

.section-pricing-tier__cta-wrap {
  display: flex;
  flex-direction: column;
}

.section-pricing-tier__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.125rem; /* 50 — flat at both anchors */
  border-radius: var(--radius-button);
  background: var(--color-navy-dark, #001428);
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.04167rem + 0.3704vw, 1.375rem); /* 18 -> 22 */
  line-height: 1.5625rem; /* 25 */
  letter-spacing: -0.016em;
  color: var(--color-white, #fff);
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-pricing-tier__cta:hover {
  opacity: 0.9;
}

.section-pricing-tier__cta:focus-visible {
  outline: 3px solid var(--color-yellow, #dbe64c);
  outline-offset: 3px;
}

.section-pricing-tier__trial {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.8125rem; /* 13 — flat at both anchors */
  line-height: 1.9375rem; /* 31 */
  letter-spacing: -0.016em;
  color: var(--color-green, #00804d);
  text-align: center;
}

/* ── Features ─────────────────────────────────────────────────────────── */

.section-pricing-tier__features {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem; /* 5 */
  margin: 0;
  list-style: none;
}

.section-pricing-tier__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8 */
}

.section-pricing-tier__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem; /* 8 */
  border-radius: 0.5rem;
}

.section-pricing-tier__check img {
  display: block;
  width: 1rem;
  height: 1rem;
}

.section-pricing-tier__feature-text {
  flex: 1 0 0;
  min-width: 0;
  padding: 0.5rem; /* 8 */
  border-radius: 0.5rem;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.88889rem + 0.216vw, 1.125rem); /* 15 -> 18 */
  line-height: clamp(1.25rem, 1.18056rem + 0.3086vw, 1.4375rem); /* 20 -> 23 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
}

/* ── Page CTA ─────────────────────────────────────────────────────────── */

/* Figma's "CTA Fill" — lime with navy text, which is the opposite of the
   tier cards' navy button with white text. Sized by padding, not pinned:
   the four pages show 316/426/472/395 widths purely because their labels
   differ in length. */
.section-pricing-table__cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: clamp(2.5rem, 1.66667rem + 3.7037vw, 6.25rem); /* 40 -> 100 */
}

.section-pricing-table__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding-inline: clamp(1.5rem, 1.15741rem + 1.5231vw, 2.625rem); /* 24 -> 42 */
  padding-block: clamp(0.875rem, 0.75rem + 0.5556vw, 1.25rem); /* 14 -> 20 */
  border-radius: var(--radius-button);
  background: var(--color-yellow, #dbe64c);
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(1rem, 0.91667rem + 0.3704vw, 1.375rem); /* 16 -> 22 */
  line-height: clamp(1.375rem, 1.29167rem + 0.3704vw, 1.875rem); /* 22 -> 30 */
  letter-spacing: -0.016em;
  color: var(--color-navy, #001f3e);
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-pricing-table__cta:hover {
  opacity: 0.9;
}

.section-pricing-table__cta:focus-visible {
  outline: 3px solid var(--color-yellow, #dbe64c);
  outline-offset: 3px;
}
