/* /compare/: FingerTrackID next to Fingerprint, SEON and SHIELD. Builds on pricing.css (hero, tables,
   closing call); this file adds the yearly saving, the three reasons and the two-by-two phone layout. */

/* ---------- section rhythm ---------- */
/* landing.css gives every section up to 144px above and below, so two neighbours sat up to 288px
   apart: right for the home page's long scroll, too loose for a page of four short sections
   (owner, 8 Nov 2026). Here each section keeps about half of that. */
.secao {
  padding-block: clamp(40px, 2.5vw + 24px, 72px);
}

/* ---------- hero: the two prices and what stays in the budget ---------- */
.cmp-hero__volume {
  display: block;
  margin-bottom: 0.15em;
  font-size: 0.45em;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.cmp-hero__not {
  color: var(--ink-3);
}
/* The yearly saving, set like a price tag: a small raised dollar sign, the dollars large, the cents
   small, and under them a meter that fills as the count runs (scripts/compare.js). */
.cmp-keep {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
  margin-top: var(--sp-5, var(--sp-4));
}
.cmp-keep__label {
  font-family: var(--font-mono);
  font-size: var(--fs-small, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.cmp-keep__figure {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
}
.cmp-keep__big {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
}
.cmp-keep__cur {
  align-self: flex-start;
  margin-top: 0.12em;
  margin-right: 0.04em;
  font-size: 0.5em;
  font-weight: 600;
}
.cmp-keep__cents {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cmp-keep__per {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--ink-2);
}
.cmp-keep__meter {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--indigo) 35%, transparent),
    var(--indigo)
  );
  transform-origin: left center;
}
.cmp-keep__text {
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

/* The 500,000 bars: the dearest published price ($2,500) is the full track, every other bar is its
   share of it, and the part cut off ours carries the discount. tools/test/landing-compare.test.ts
   recomputes every width. */
.cmp-bars {
  display: grid;
  gap: var(--sp-2);
  max-width: 46rem;
  margin: var(--sp-5, var(--sp-4)) 0 0;
}
.cmp-bars__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-3);
}
.cmp-bars__name {
  font-weight: 600;
  color: var(--ink-2);
}
.cmp-bars__track {
  display: flex;
  min-height: 2.5rem;
}
.cmp-bars__bar {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  border-radius: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cmp-bars__bar.is-them {
  background: color-mix(in srgb, var(--ink-3) 28%, transparent);
  color: var(--ink-1);
}
.cmp-bars__bar.is-castle {
  width: 100.0%;
}
.cmp-bars__bar.is-maxmind {
  width: 100.0%;
}
.cmp-bars__bar.is-rupt {
  width: 100.0%;
}
.cmp-bars__bar.is-stytch {
  width: 98.0%;
}
.cmp-bars__bar.is-fingerprint {
  width: 80.8%;
}
.cmp-bars__bar.is-us {
  width: 59.6%;
  background: var(--indigo);
  color: var(--ink-on-indigo);
  border-radius: 10px 0 0 10px;
}
.cmp-bars__gap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

/* While scripts/compare.js waits for the bars to come into view, they stay clipped and the −40%
   stays out; the script runs only without reduced motion, so otherwise they are simply there. */
.cmp-bars.is-animating .cmp-bars__bar {
  clip-path: inset(0 100% 0 0 round 10px);
}
/* The dashed outline is its own layer, so the script can draw it out without clipping the −40%. */
.cmp-bars__line {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--indigo);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}
.cmp-bars__pct {
  position: relative;
}
.cmp-bars.is-animating .cmp-bars__gap {
  opacity: 0;
}

/* ---------- which one to choose: three reasons ---------- */
.cmp-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}
.cmp-verdict__item {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
}
.cmp-verdict__num {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--indigo);
}

/* ---------- tables ---------- */
.cmp-table td,
.cmp-table th {
  font-variant-numeric: tabular-nums;
}
.cmp-table td.is-pro {
  color: var(--ink-1);
}
.cmp-table--prices tr.is-destaque th,
.cmp-table--prices tr.is-destaque td {
  font-weight: 600;
  color: var(--ink-1);
}
.cmp-more {
  color: var(--ink-1);
  font-weight: 600;
}
.cmp-keep-cell {
  color: var(--indigo);
  font-weight: 650;
}
.cmp-yes {
  color: var(--indigo);
  font-weight: 600;
}
.cmp-note {
  max-width: 72ch;
  margin-top: var(--sp-3);
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .cmp-verdict {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Seven columns: the table keeps a readable width and scrolls sideways inside its panel, with the
   feature names and our column held in place while the seven others pass under them. */
/* The panel that scrolls the seven columns is their containing block: without it, the table's
   absolutely positioned screen-reader labels escaped its clipping and widened the whole page by
   the table's overflow (169px at 1024px), which also shifted right-to-left pages sideways. */
.pricing-compare:has(> .cmp-table--all) {
  position: relative;
}
@media (min-width: 640px) {
  .cmp-table--all {
    min-width: 76rem;
    table-layout: fixed;
  }
  .cmp-table--all th[scope="row"],
  .cmp-table--all thead th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    width: 13rem;
    background: var(--panel);
  }
  .cmp-table--all .is-pro {
    position: sticky;
    inset-inline-start: 13rem;
    z-index: 1;
    width: 10rem;
    box-shadow: 6px 0 10px -8px color-mix(in srgb, var(--ink-1) 35%, transparent);
  }
  .cmp-table--all thead th.is-pro {
    box-shadow:
      inset 0 3px 0 var(--indigo),
      6px 0 10px -8px color-mix(in srgb, var(--ink-1) 35%, transparent);
  }
  .cmp-table--all tr.grupo th {
    position: static;
  }
  .cmp-table--all tr.grupo th > span {
    position: sticky;
    inset-inline-start: 14px;
  }
  .cmp-table--all thead th,
  .cmp-table--all tbody td,
  .cmp-table--all tbody th[scope="row"] {
    vertical-align: top;
  }
}

/* Phone: pricing.css lays each row out in three columns, for its three plans. The tables here have
   four and seven values per row, laid out two by two. */
@media (max-width: 639.98px) {
  .cmp-bars__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-1, 4px);
  }
  .cmp-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Each vendor's own logo over its column, straight on the table's own background. The blur is in the
   image itself (site/assets/compare/*.png, rendered blurred), so saving the image never gives back
   the sharp logo: the name says who it is, the logo only gives the column a face (owner, 8 Nov 2026).
   The logos are dark ink; on the dark theme they turn white, so they read on either. */
.cmp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  margin: 0 auto var(--sp-2);
}
.cmp-logo img {
  display: block;
  height: 38px;
  width: auto;
  opacity: 0.9;
}
:root[data-theme="dark"] .cmp-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
/* Ours, the one sharp face on the row, in its own colors on both themes. */
.cmp-logo.is-us img,
:root[data-theme="dark"] .cmp-logo.is-us img {
  height: 22px;
  filter: none;
  opacity: 1;
}
/* Under our name: the plans differ only in volume, every feature is in each of them. */
.pricing-compare__table thead th small.cmp-allin {
  color: var(--indigo);
  font-weight: 600;
}

/* Right-to-left pages: the figures keep their own order, so "−40%" and "$12,117.84" read as they
   do everywhere instead of the bidi algorithm moving the sign and the currency to the far end. */
[dir="rtl"] .cmp-bars__pct,
[dir="rtl"] .cmp-keep__big {
  direction: ltr;
  unicode-bidi: isolate;
}
/* Right-to-left: our pinned column casts its shadow toward the columns passing under it. */
@media (min-width: 640px) {
  [dir="rtl"] .cmp-table--all .is-pro {
    box-shadow: -6px 0 10px -8px color-mix(in srgb, var(--ink-1) 35%, transparent);
  }
  [dir="rtl"] .cmp-table--all thead th.is-pro {
    box-shadow:
      inset 0 3px 0 var(--indigo),
      -6px 0 10px -8px color-mix(in srgb, var(--ink-1) 35%, transparent);
  }
}
