/* ==========================================================================
   Pricing page - page-template/pricing.php only
   Enqueued conditionally by inc/pricing-page.php, after main-css.

   None of the frozen artefacts are touched. This sheet adds only what the theme
   genuinely does not have: an on-page contents nav, and table styling. Every
   table selector in app.min.css is scoped to .calculate_info-popup and the
   bundled normalize has no table rule at all, so a <table> here would otherwise
   inherit browser defaults with all padding zeroed by the global * reset.

   Written to the theme's own system: 1920px design canvas, vw in the bare rule,
   fixed px from 1440 down, phone step at 768. 1vw = 19.2px at 1920.

   Colour is taken from the palette already in app.min.css - #edeae6, #f9fbfa,
   #080d0f, #071f2a, #00374f, rgba(8,13,15,.08). Measured contrast is noted
   against each pairing; the lowest on the page is 9.71:1.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

/* .hero-main__content lays rgba(0,0,0,.6) over the hero media. With no video or
   image assigned that gradient sits on the page background and reads as a grey
   slab, so the flat modifier puts the brand ground underneath it instead.
   Composite is #030c11: hero title #edeae6 on it = 16.46:1, body text
   rgba(252,255,255,.8) on it = 12.44:1. */
.pricing-page .pricing-hero--flat .hero-main {
  background-color: #071f2a;
}

/* --------------------------------------------------------------------------
   2. Content shell
   -------------------------------------------------------------------------- */

/* The section also carries .policies-content, which supplies heading and body
   typography from the frozen bundle. Only the gaps are set here. */
.pricing-page .pricing-prose > *:first-child {
  padding-top: 0;
}

/* Fixed header, and nothing in the theme offsets for it. Without this every
   contents-nav jump lands with the heading hidden behind the header. */
.pricing-page .pricing-anchor {
  scroll-margin-top: 6.7708333333vw;
}

.pricing-page .pricing-prose h3,
.pricing-page .pricing-prose h4 {
  scroll-margin-top: 6.7708333333vw;
}

/* .policies-content sets h2 and h3 to the same size (36/32/26px), which is fine on
   a short policy page but not on a disclosure this long: "Commission Rates" is a
   subsection of "Pre-Legal Debt Recovery" and rendered identically to it. The h2
   divider rule above is the only cue otherwise. Stepping h3 down restores a real
   hierarchy for someone scanning for a figure, and lands between the theme's own
   h2 and h4 sizes rather than inventing a new step. */
.pricing-page .pricing-prose h3 {
  font-size: 1.5625vw;
  line-height: 1.9791666667vw;
}

/* List text.
   .policies-content styles h2-h5, p and a - it does not style li, and .li-content
   supplies only the chevron bullet and the indent. So an <li> matched no font rule
   at all and fell back to the UA serif (Times New Roman, 16px, #000) beside
   RoobertRegular body copy. It had never shown up because no existing
   .policies-content page has a list - /privacy-policy/ has none, and this is the
   first page to put one there. Restated here to match .policies-content p exactly.
   rgba(8,13,15,.8) on #fff = 10.98:1. */
.pricing-page .pricing-prose li {
  color: rgba(8, 13, 15, 0.8);
  font-family: RoobertRegular;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  line-height: 1.4583333333vw;
}

/* .policies-content a hard-sets its own font-size, so a link inside a list item or
   inside the highlight panel rendered smaller than the text around it - 13.5px
   inside 20px in the highlight. Inheriting keeps a link the size of its sentence.
   The underline from .policies-content a is retained, so colour is not the only
   cue distinguishing a link. */
.pricing-page .pricing-prose li a,
.pricing-page .pricing-prose .pricing-highlight a {
  font-size: inherit;
  line-height: inherit;
  padding-block: 0;
}

/* #00374f on #edeae6 = 10.55:1. */
.pricing-page .pricing-prose .pricing-highlight a {
  color: #00374f;
}

/* A section heading needs to read as a divider on a page this long. */
.pricing-page .pricing-prose h2 {
  border-top: 1px solid rgba(8, 13, 15, 0.08);
  margin-top: 2.0833333333vw;
  padding-top: 2.0833333333vw;
}

.pricing-page .pricing-prose > h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Standfirst - the line directly under the h1. Deliberately a <p>, not an <h2>:
   it is a tagline, and as a heading it would both enter the contents nav as a
   phantom section and sit at the same level as the real disclosures.
   #071f2a on #fff = 16.96:1. Beats .policies-content p on specificity. */
.pricing-page .pricing-prose .pricing-standfirst {
  border-bottom: 1px solid rgba(8, 13, 15, 0.08);
  color: #071f2a;
  font-family: RoobertRegular;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 1.25vw;
  line-height: 1.6666666667vw;
  margin-bottom: 1.6666666667vw;
  padding-block: 0 1.6666666667vw;
}

/* The one commercial fact most visitors are looking for. Warm panel so it reads
   as an answer rather than as prose. #071f2a on #edeae6 = 14.14:1. */
.pricing-page .pricing-prose .pricing-highlight {
  background-color: #edeae6;
  border-radius: .8333333333vw;
  color: #071f2a;
  font-family: RoobertMedium;
  font-size: 1.0416666667vw;
  line-height: 1.5625vw;
  margin: 1.0416666667vw 0 2.0833333333vw;
  padding: 1.25vw 1.6666666667vw;
}

/* Footnotes under a table - legislative caveats and the VAT line.
   rgba(8,13,15,.7) composites to #525657 on #fff = 7.43:1. */
.pricing-page .pricing-prose .pricing-footnote {
  color: rgba(8, 13, 15, 0.7);
  font-size: .8333333333vw;
  line-height: 1.25vw;
  margin-top: -1.5625vw;
  padding-block: 0 .8333333333vw;
}

/* Editors reach for a blockquote when a figure needs to stand out.
   rgba(8,13,15,.8) inherited from .policies-content on #edeae6 = 9.71:1. */
.pricing-page .pricing-prose blockquote {
  background-color: #edeae6;
  border-radius: .8333333333vw;
  margin: 1.6666666667vw 0;
  padding: 1.6666666667vw 2.0833333333vw;
}

.pricing-page .pricing-prose blockquote > *:first-child {
  padding-top: 0;
}

.pricing-page .pricing-prose blockquote > *:last-child {
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Contents nav
   -------------------------------------------------------------------------- */

.pricing-page .pricing-toc {
  background-color: #edeae6;
  border-radius: .8333333333vw;
  margin-bottom: 2.6041666667vw;
  padding: 2.0833333333vw;
}

/* #071f2a on #edeae6 = 14.14:1. Beats .policies-content h2 on specificity
   (two classes), and resets the padding that rule adds. */
.pricing-page .pricing-toc__title {
  color: #071f2a;
  font-family: BigCaslon;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 1.25vw;
  font-weight: 500;
  line-height: 1.5625vw;
  margin: 0 0 1.25vw;
  padding-block: 0;
}

.pricing-page .pricing-toc__list {
  display: grid;
  gap: .625vw 2.0833333333vw;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-page .pricing-toc__item {
  margin: 0;
  padding: 0;
}

/* #071f2a on #edeae6 = 14.14:1. */
.pricing-page .pricing-toc a {
  color: #071f2a;
  display: inline-block;
  font-family: RoobertRegular;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  line-height: 1.4583333333vw;
  padding-block: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pricing-page .pricing-toc a:hover {
  color: #00374f;
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   4. Tables
   -------------------------------------------------------------------------- */

/* The wrapper is the scroll container, so a wide table scrolls inside its own
   box and the page never scrolls sideways. It is focusable and named, which is
   what makes the scroll reachable from the keyboard.
   Stacked-card layouts were rejected: display:block on table parts strips the
   table semantics screen readers rely on, and this page has just been through
   an axe pass. Contained scrolling keeps the markup a real table at every
   width. */
.pricing-page .pricing-table {
  background-color: #fff;
  border: 1px solid rgba(8, 13, 15, 0.08);
  border-radius: .5208333333vw;
  margin-block: 1.0416666667vw 2.6041666667vw;
  max-width: 100%;
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.pricing-page .pricing-table table {
  border-collapse: collapse;
  margin: 0;
  min-width: 34.375vw;
  width: 100%;
}

/* Author-written captions stay visible and label the table on screen.
   #071f2a on #fff = 16.96:1. */
.pricing-page .pricing-table caption {
  background-color: #fff;
  caption-side: top;
  color: #071f2a;
  font-family: RoobertMedium;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  line-height: 1.4583333333vw;
  padding: 1.0416666667vw 1.0416666667vw .5208333333vw;
  text-align: left;
}

/* Captions this template generates from the preceding heading are a duplicate
   on screen but the table's only programmatic name. Hidden, never removed.
   position:relative on .pricing-table keeps it from escaping the wrapper. */
.pricing-page .pricing-vh {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

/* #080d0f on #edeae6 = 16.29:1. */
.pricing-page .pricing-table thead th {
  background-color: #edeae6;
  border-bottom: 1px solid rgba(8, 13, 15, 0.08);
  color: #080d0f;
  font-family: BigCaslon;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  font-weight: 500;
  line-height: 1.25vw;
  padding: 1.0416666667vw;
  text-align: left;
  vertical-align: bottom;
}

/* #080d0f on #fff = 19.54:1. */
.pricing-page .pricing-table td {
  border-top: 1px solid rgba(8, 13, 15, 0.08);
  color: #080d0f;
  font-family: RoobertRegular;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  line-height: 1.4583333333vw;
  padding: 1.0416666667vw;
  text-align: left;
  vertical-align: top;
}

/* Row headers. #071f2a on #fff = 16.96:1, on the #f9fbfa band = 16.32:1. */
.pricing-page .pricing-table tbody th,
.pricing-page .pricing-table tfoot th {
  background-color: transparent;
  border-top: 1px solid rgba(8, 13, 15, 0.08);
  color: #071f2a;
  font-family: RoobertMedium;
  font-feature-settings: "liga" off, "clig" off;
  font-size: .9375vw;
  font-weight: 400;
  line-height: 1.4583333333vw;
  padding: 1.0416666667vw;
  text-align: left;
  vertical-align: top;
}

/* Banding is what makes a row scannable across three columns.
   #080d0f on #f9fbfa = 18.80:1. */
.pricing-page .pricing-table tbody tr:nth-child(2n) {
  background-color: #f9fbfa;
}

/* #080d0f on #edeae6 = 16.29:1, #071f2a on #edeae6 = 14.14:1. */
@media (hover: hover) {
  .pricing-page .pricing-table tbody tr:hover {
    background-color: #edeae6;
  }
}

/* Columns that hold nothing but figures. Right-aligned so the digits stack,
   tabular figures so they line up, and never wrapped - a fee broken across two
   lines is the one thing this page cannot afford. */
.pricing-page .pricing-table .is-figure {
  font-feature-settings: "liga" off, "clig" off, "tnum" on;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* Opt-in for a column of ranges. A band written "£1,000.01 - £1,500" broken over
   two lines puts a bare hyphen at the start of the second line, which reads as a
   different figure. The wrapper already scrolls, so holding the range on one line
   costs nothing the table was not already paying. Applied per-cell in the content
   rather than to :first-child, because the first column of the hourly-rates and
   timescales tables is prose and must stay free to wrap. */
.pricing-page .pricing-table .is-nowrap {
  white-space: nowrap;
}

/* #00374f on #fff = 12.66:1, on #f9fbfa = 12.17:1, on #edeae6 = 10.55:1. */
.pricing-page .pricing-table a {
  color: #00374f;
  font-size: inherit;
  line-height: inherit;
  padding-block: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* .policies-content p adds vertical padding that would double every row height. */
.pricing-page .pricing-table td p,
.pricing-page .pricing-table th p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding-block: 0;
}

.pricing-page .pricing-table ul,
.pricing-page .pricing-table ol {
  margin: 0;
  padding-left: 1.0416666667vw;
}

.pricing-page .pricing-table li {
  margin-bottom: 0;
  padding-left: 0;
}

.pricing-page .pricing-table li:before {
  content: none;
}

/* --------------------------------------------------------------------------
   5. Focus
   -------------------------------------------------------------------------- */

/* #071f2a against #fff (16.96:1) and #edeae6 (14.14:1) - well past the 3:1
   non-text minimum. */
.pricing-page a:focus-visible,
.pricing-page .pricing-table:focus-visible {
  outline: 2px solid #071f2a;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   6. CTA band

   Local mitigation, not a redesign. inc/cta.php emits class="btn
   two-columns__button" and neither class has a rule anywhere in app.min.css -
   there is no bare .btn{} - so the CTA link renders as unstyled inline text on
   every page that uses the band. The real fix is to add btn--primary in
   inc/cta.php, which is shared markup and out of scope here. These rules are
   scoped to .pricing-cta so they cannot reach another page, and reproduce
   .btn--primary exactly as compiled.
   #abf9ff on #071f2a = 14.31:1; hover inverts to 14.31:1.
   -------------------------------------------------------------------------- */

.pricing-cta .btn:not([class*="btn--"]) {
  align-items: center;
  background-color: #071f2a;
  border: 1px solid #071f2a;
  border-radius: 6px;
  color: #abf9ff;
  display: inline-flex;
  font-family: RoobertRegular;
  font-size: 20px;
  gap: 10px;
  line-height: 24px;
  padding: 14px 24px 14px 20px;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
}

.pricing-cta .btn:not([class*="btn--"]):hover {
  background-color: #abf9ff;
  border-color: #abf9ff;
  color: #071f2a;
}

.pricing-cta .btn .btn__icon {
  flex-shrink: 0;
  height: 16px;
  overflow: hidden;
  position: relative;
  width: 16px;
}

.pricing-cta .btn .btn__icon-inner,
.pricing-cta .btn .btn__icon:before {
  background-color: #abf9ff;
  content: "";
  inset: 0;
  -webkit-mask: url(../../images/button-icon.svg) no-repeat center/contain;
  mask: url(../../images/button-icon.svg) no-repeat center/contain;
  position: absolute;
  transition: transform .45s ease, background-color .45s ease;
}

.pricing-cta .btn .btn__icon:before {
  background-color: #071f2a;
  transform: translateX(-110%);
}

.pricing-cta .btn .btn__text {
  display: block;
  overflow: hidden;
  position: relative;
}

.pricing-cta .btn .btn__text-inner {
  display: block;
  transform: translateY(0);
  transition: transform .45s ease;
  white-space: nowrap;
}

.pricing-cta .btn .btn__text:before {
  content: attr(data-text);
  left: 0;
  position: absolute;
  top: 0;
  transform: translateY(-110%);
  transition: transform .45s ease;
  white-space: nowrap;
}

.pricing-cta .btn:hover .btn__icon-inner {
  background-color: #071f2a;
  transform: translateX(110%);
}

.pricing-cta .btn:hover .btn__icon:before {
  transform: translateX(0);
}

.pricing-cta .btn:hover .btn__text-inner {
  transform: translateY(110%);
}

.pricing-cta .btn:hover .btn__text:before {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-cta .btn .btn__icon-inner,
  .pricing-cta .btn .btn__icon:before,
  .pricing-cta .btn .btn__text-inner,
  .pricing-cta .btn .btn__text:before {
    transition: none;
  }
}

/* ==========================================================================
   Fixed-pixel tier - 1440px and below, matching the theme's pivot
   ========================================================================== */

@media (max-width: 1440px) {
  .pricing-page .pricing-anchor,
  .pricing-page .pricing-prose h3,
  .pricing-page .pricing-prose h4 {
    scroll-margin-top: 120px;
  }

  .pricing-page .pricing-prose h2 {
    margin-top: 40px;
    padding-top: 40px;
  }

  .pricing-page .pricing-prose h3 {
    font-size: 26px;
    line-height: 34px;
  }

  .pricing-page .pricing-prose li {
    font-size: 18px;
    line-height: 28px;
  }

  .pricing-page .pricing-prose .pricing-standfirst {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .pricing-page .pricing-prose .pricing-highlight {
    border-radius: 16px;
    font-size: 20px;
    line-height: 30px;
    margin: 20px 0 40px;
    padding: 24px 32px;
  }

  .pricing-page .pricing-prose .pricing-footnote {
    font-size: 16px;
    line-height: 24px;
    margin-top: -30px;
    padding-bottom: 16px;
  }

  .pricing-page .pricing-prose blockquote {
    border-radius: 16px;
    margin: 32px 0;
    padding: 32px 40px;
  }

  .pricing-page .pricing-toc {
    border-radius: 16px;
    margin-bottom: 50px;
    padding: 40px;
  }

  .pricing-page .pricing-toc__title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 24px;
  }

  .pricing-page .pricing-toc__list {
    gap: 12px 40px;
  }

  .pricing-page .pricing-toc a {
    font-size: 18px;
    line-height: 28px;
  }

  .pricing-page .pricing-table {
    border-radius: 10px;
    margin-block: 20px 50px;
  }

  .pricing-page .pricing-table table {
    min-width: 660px;
  }

  .pricing-page .pricing-table caption {
    font-size: 18px;
    line-height: 24px;
    padding: 20px 20px 10px;
  }

  .pricing-page .pricing-table thead th {
    font-size: 18px;
    line-height: 24px;
    padding: 18px 20px;
  }

  .pricing-page .pricing-table td,
  .pricing-page .pricing-table tbody th,
  .pricing-page .pricing-table tfoot th {
    font-size: 18px;
    line-height: 28px;
    padding: 18px 20px;
  }

  .pricing-page .pricing-table ul,
  .pricing-page .pricing-table ol {
    padding-left: 20px;
  }
}

/* ==========================================================================
   Tablet - 768px and below
   ========================================================================== */

@media (max-width: 768px) {
  .pricing-page .pricing-anchor,
  .pricing-page .pricing-prose h3,
  .pricing-page .pricing-prose h4 {
    scroll-margin-top: 96px;
  }

  .pricing-page .pricing-prose h2 {
    margin-top: 30px;
    padding-top: 30px;
  }

  .pricing-page .pricing-prose h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .pricing-page .pricing-prose li {
    font-size: 16px;
    line-height: 24px;
  }

  .pricing-page .pricing-prose .pricing-standfirst {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .pricing-page .pricing-prose .pricing-highlight {
    font-size: 17px;
    line-height: 26px;
    margin: 16px 0 30px;
    padding: 18px 20px;
  }

  .pricing-page .pricing-prose .pricing-footnote {
    font-size: 15px;
    line-height: 22px;
    margin-top: -20px;
    padding-bottom: 12px;
  }

  .pricing-page .pricing-prose blockquote {
    margin: 24px 0;
    padding: 20px 24px;
  }

  .pricing-page .pricing-toc {
    margin-bottom: 30px;
    padding: 24px 20px;
  }

  .pricing-page .pricing-toc__title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 16px;
  }

  .pricing-page .pricing-toc__list {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .pricing-page .pricing-toc a {
    font-size: 16px;
    line-height: 22px;
  }

  .pricing-page .pricing-table {
    margin-block: 16px 30px;
  }

  /* The min-width comes off so a two-column table simply fits a 375px screen.
     Anything wider than the wrapper scrolls inside it; .is-figure never wraps,
     so a fee stays on one line whichever way the table resolves. */
  .pricing-page .pricing-table table {
    min-width: 0;
  }

  .pricing-page .pricing-table caption {
    font-size: 16px;
    line-height: 22px;
    padding: 14px 12px 8px;
  }

  .pricing-page .pricing-table thead th {
    font-size: 16px;
    line-height: 22px;
    padding: 12px;
  }

  .pricing-page .pricing-table td,
  .pricing-page .pricing-table tbody th,
  .pricing-page .pricing-table tfoot th {
    font-size: 16px;
    line-height: 24px;
    padding: 12px;
  }

  .pricing-cta .btn:not([class*="btn--"]) {
    font-size: 18px;
    padding: 12px 20px;
  }
}

/* ==========================================================================
   Phone - 480px and below
   ========================================================================== */

@media (max-width: 480px) {
  .pricing-page .pricing-table td,
  .pricing-page .pricing-table tbody th,
  .pricing-page .pricing-table tfoot th,
  .pricing-page .pricing-table thead th {
    padding: 10px;
  }
}

/* ==========================================================================
   Fluid tier - above 1440px, matching the theme's vw canvas
   ========================================================================== */

@media (min-width: 1440px) {
  .pricing-cta .btn:not([class*="btn--"]) {
    font-size: 1.0416666667vw;
    gap: .5208333333vw;
    line-height: 1.4583333333vw;
    padding: .8854166667vw 1.40625vw .8854166667vw 1.0416666667vw;
  }

  .pricing-cta .btn .btn__icon {
    height: .8333333333vw;
    width: .8333333333vw;
  }
}
