/*
 * TruxCRM inner pages, second design.
 *
 * The first version of these pages was assembled from one kit: a centred pill,
 * a centred headline, then rows of identical white boxes. Every page looked
 * like every other page, and like every other SaaS site. This layer gives them
 * a language of their own, taken from the brand rather than from a template:
 *
 *   - The road. The TruxCRM mark is an X drawn as a highway with lane markings,
 *     so lane dashes are the divider, steps sit on a route, and the X itself
 *     glows, blurred, behind each hero.
 *   - Left-aligned, editorial headings with a mono index, instead of centred
 *     pills.
 *   - Each page opens with an artefact built from its own content (a rate card,
 *     a terminal, a column mapping), not a generic illustration.
 *
 * Everything is scoped to `.tx2`, which the renderer adds to the pages that
 * have been moved over, so a page opts in and nothing else changes under it.
 * The text and headings are untouched: this is presentation only.
 */

.tx2 {
  --tx-ink: #0b1220;
  --tx-ink-2: #2b313b;
  --tx-body: #4a515c;
  --tx-mute: #727985;
  --tx-line: rgba(11, 18, 32, 0.09);
  --tx-line-2: rgba(11, 18, 32, 0.16);
  --tx-paper: #ffffff;
  --tx-cream: #f6f4f0;
  --tx-navy: #061634;
  --tx-navy-2: #0d2a5f;
  --tx-blue: #2f63df;
  --tx-blue-2: #5b8cff;
  --tx-sky: #edf2ff;
  --tx-warm: #ff6a3d;
  --tx-green: #12a150;
  --tx-mono: var(--fonts--badge, "Roboto Mono", ui-monospace, monospace);
  --tx-radius: 18px;
  --tx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tx-x: url("/truxcrm/brand/truxcrm-x-mask.png");

  counter-reset: txsec;
  background: var(--tx-paper);
  color: var(--tx-ink);
}

.tx2 p,
.tx2 li {
  color: var(--tx-body);
}

.tx2 strong {
  color: var(--tx-ink);
}

/* ------------------------------------------------------------------ hero */

.tx2 .page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  text-align: left;
  background:
    radial-gradient(48rem 26rem at 88% 8%, rgba(47, 99, 223, 0.13), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(255, 106, 61, 0.07), transparent 70%),
    var(--tx-paper);
}

/* A faint engineering grid, faded out towards the edges. */
.tx2 .page-head::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--tx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tx-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
  content: "";
}

/*
 * The brand X, blurred into a glow behind the hero. Pre-rendered: a CSS blur
 * on a masked element blurs before the mask cuts, so the edges stay sharp.
 */
.tx2 .page-head::after {
  position: absolute;
  top: -4%;
  right: -8%;
  z-index: -1;
  width: min(52rem, 75vw);
  aspect-ratio: 1180 / 879;
  background: url("/truxcrm/brand/truxcrm-x-glow.webp") center / contain no-repeat;
  opacity: 0.42;
  content: "";
  animation: tx-drift 18s ease-in-out infinite alternate;
}

@keyframes tx-drift {
  to {
    transform: translate3d(-4%, 6%, 0) rotate(-4deg) scale(1.06);
  }
}

.tx2 .page-head .wrap,
.tx2 .page-head.center .wrap {
  max-width: 75rem;
}

/* The first design centred every hero; these outrank its rules. */
.tx2 .page-head.center,
.tx2 .page-head.center .wrap {
  text-align: left;
}

.tx2 .page-head.center h1 {
  margin-inline: 0;
}

.tx2 .tx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.tx2 .tx-hero-copy {
  min-width: 0;
}

.tx2 .page-head h1 {
  max-width: 15ch;
  margin: 1.1rem 0 0;
  margin-inline: 0;
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.tx2 .page-head .lead,
.tx2 .page-head.center .lead {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  margin-inline: 0;
  color: var(--tx-body);
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.6;
}

.tx2 .page-head .tx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

/* The lane: a dashed road line along the bottom of the hero, slowly moving. */
.tx2 .tx-lane {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(11, 18, 32, 0.22) 0 26px, transparent 26px 50px);
  animation: tx-road 2.6s linear infinite;
}

@keyframes tx-road {
  to {
    background-position: -50px 0;
  }
}

/* --------------------------------------------------------------- eyebrow */

.tx2 .eyebrow,
.tx2 .eyebrow.center {
  display: inline-flex;
  gap: 0.6rem;
  width: auto;
  min-height: 0;
  align-items: center;
  margin-inline: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--tx-blue);
  font-family: var(--tx-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx2 .eyebrow::before {
  width: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
  content: "";
}

/* ------------------------------------------------------------ sections */

.tx2 .section,
.tx2 .section-tight {
  position: relative;
}

.tx2 .section.soft {
  border: 0;
  background: var(--tx-cream);
}

/* Sections are separated by a lane rather than a hard rule. */
.tx2 > section + section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(75rem, 100% - 3rem);
  height: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--tx-line-2) 0 14px, transparent 14px 26px);
  content: "";
}

.tx2 > section.soft::before,
.tx2 > section.soft + section::before,
.tx2 > section.tx-dark::before,
.tx2 > section.tx-dark + section::before {
  display: none;
}

.tx2 h2,
.tx2 h2.center,
.tx2 .prose h2 {
  max-width: 22ch;
  margin: 0 0 0.9rem;
  margin-inline: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: left;
  text-wrap: balance;
}

/* A mono index above every section heading that has no label of its own. */
.tx2 > section:not(.page-head) > .wrap > h2:not(.eyebrow + h2)::before,
.tx2 > section:not(.page-head) > .wrap.prose > h2:first-child::before {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--tx-blue);
  font-family: var(--tx-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  counter-increment: txsec;
  content: counter(txsec, decimal-leading-zero) " \2014 ";
}

.tx2 .eyebrow + h2 {
  margin-top: 0.85rem;
}

.tx2 .section .lead,
.tx2 .section-tight .lead,
.tx2 p.lead[style] {
  max-width: 40rem;
  margin: 0 0 0.5rem;
  margin-inline: 0 !important;
  color: var(--tx-body);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left !important;
}

/*
 * Running text shares the page's one left edge with every other section,
 * instead of sitting in a narrower centred column. The reading measure is
 * kept by limiting the text blocks, while tables and figures may run wider.
 */
.tx2 .wrap.prose {
  width: min(100% - 3rem, 75rem);
  max-width: none;
  margin-inline: auto;
}

.tx2 .wrap.prose > :is(p, ul, ol, h2, h3, h4, .note, .lead) {
  max-width: 46rem;
}

.tx2 .wrap.prose > :is(.truxcrm-table-wrap, .truxcrm-figure, .truxcrm-providers, .truxcrm-record-table, .truxcrm-code, pre) {
  max-width: 60rem;
  margin-inline: 0;
}

/* Anything the first design centred by class. */
.tx2 p.center,
.tx2 .center:not(.page-head) {
  text-align: left;
}

.tx2 .truxcrm-providers:not(.truxcrm-faq),
.tx2 .note:not(.truxcrm-callout),
.tx2 .truxcrm-record-table {
  margin-inline: 0;
}

.tx2 .prose p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.tx2 .prose > h2:not(:first-child) {
  margin-top: 3.2rem;
}

.tx2 .prose h2 + p,
.tx2 .prose h3 + p {
  margin-top: 0;
}

.tx2 .prose h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------- cards */

/* The generic white-box grid becomes an open, ruled grid. */
.tx2 .cards {
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.25rem;
}

.tx2 .card {
  position: relative;
  padding: 1.4rem 0 1.6rem;
  border: 0;
  border-top: 1px solid var(--tx-line-2);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: border-color 300ms var(--tx-ease);
}

.tx2 .card::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tx-blue);
  transition: width 500ms var(--tx-ease);
  content: "";
}

.tx2 .card:hover::after {
  width: 100%;
}

.tx2 .card h3 {
  margin: 0 0 0.5rem;
  color: var(--tx-ink);
  font-size: 1.08rem;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.tx2 .card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
}

.tx2 .card .icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  margin: 0 0 1.1rem;
  border: 0;
  border-radius: 12px;
  background: var(--tx-sky);
  color: var(--tx-blue);
}

.tx2 .card .icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Two-up cards are a pair to compare: give them weight. */
.tx2 .cards.two {
  gap: 1rem;
}

.tx2 .cards.two .card {
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid var(--tx-line);
  border-radius: var(--tx-radius);
  background:
    radial-gradient(22rem 10rem at 100% 0%, rgba(47, 99, 223, 0.07), transparent 70%),
    #fff;
  transition: transform 400ms var(--tx-ease), box-shadow 400ms var(--tx-ease);
}

.tx2 .soft .cards.two .card {
  background:
    radial-gradient(22rem 10rem at 100% 0%, rgba(47, 99, 223, 0.08), transparent 70%),
    #fff;
}

.tx2 .cards.two .card::after {
  display: none;
}

.tx2 .cards.two .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(6, 22, 52, 0.35);
}

/* ------------------------------------------------------- the route (steps) */

/*
 * "Three steps" cards sit on a road: a dashed line runs through numbered
 * stops, and a small light travels along it. Vertical on a phone.
 */
.tx2 .cards.tx-route {
  position: relative;
  counter-reset: txstop;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.75rem;
  padding-top: 2.6rem;
}

.tx2 .cards.tx-route::before {
  position: absolute;
  top: 1.05rem;
  right: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--tx-line-2) 0 12px, transparent 12px 22px);
  content: "";
}

.tx2 .cards.tx-route::after {
  position: absolute;
  top: calc(1.05rem - 3px);
  left: 0;
  width: 60px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--tx-blue));
  box-shadow: 0 0 18px var(--tx-blue);
  animation: tx-travel 5.5s var(--tx-ease) infinite;
  content: "";
}

@keyframes tx-travel {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 60px);
    opacity: 0;
  }
}

.tx2 .cards.tx-route .card {
  padding-top: 0;
  border-top: 0;
}

.tx2 .cards.tx-route .card::after {
  display: none;
}

.tx2 .cards.tx-route .card::before {
  position: absolute;
  top: -2.6rem;
  left: 0;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 2px solid var(--tx-ink);
  border-radius: 50%;
  background: radial-gradient(circle, var(--tx-ink) 0 4px, #fff 5px);
  content: "";
}

/* The last stop is the destination. */
.tx2 .cards.tx-route .card:last-child::before {
  border-color: var(--tx-blue);
  background: radial-gradient(circle, #fff 0 4px, var(--tx-blue) 5px);
  box-shadow: 0 0 0 6px rgba(47, 99, 223, 0.15);
}

.tx2 .cards.tx-route .card .icon {
  display: none;
}

/* ---------------------------------------------------------- callouts */

/* "The problem" callout: an editorial pull-out with a lane stripe. */
.tx2 .note.truxcrm-callout {
  position: relative;
  max-width: 52rem;
  margin: 0 0 0;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem) clamp(1.8rem, 4vw, 3rem);
  border: 0;
  border-radius: var(--tx-radius);
  background: var(--tx-navy);
  color: #c9d3e6;
  overflow: hidden;
}

.tx2 .note.truxcrm-callout::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(0.8rem, 2vw, 1.3rem);
  width: 3px;
  background: repeating-linear-gradient(180deg, #f5c84b 0 16px, transparent 16px 28px);
  animation: tx-road-v 2.4s linear infinite;
  content: "";
}

@keyframes tx-road-v {
  to {
    background-position: 0 28px;
  }
}

.tx2 .note.truxcrm-callout::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 22rem;
  aspect-ratio: 1180 / 879;
  background: url("/truxcrm/brand/truxcrm-x-glow.webp") center / contain no-repeat;
  opacity: 0.55;
  content: "";
}

.tx2 .note.truxcrm-callout h3,
.tx2 .note.truxcrm-callout strong:first-child {
  position: relative;
  display: block;
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tx2 .note.truxcrm-callout p {
  position: relative;
  max-width: 44rem;
  color: #c9d3e6;
  font-size: 1rem;
  line-height: 1.7;
}

.tx2 .note.truxcrm-callout code {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* A plain note keeps a light, quiet treatment. */
.tx2 .note:not(.truxcrm-callout) {
  border: 1px solid var(--tx-line);
  border-left: 3px solid var(--tx-blue);
  border-radius: 12px;
  background: var(--tx-sky);
  color: var(--tx-ink-2);
}

/* -------------------------------------------------------------- figures */

.tx2 .truxcrm-figure {
  position: relative;
  margin-top: 2.5rem;
  padding: clamp(0.75rem, 2.5vw, 2rem) clamp(0.5rem, 2vw, 2rem) 0;
  border-radius: 28px;
  background:
    radial-gradient(40rem 18rem at 50% 0%, rgba(47, 99, 223, 0.12), transparent 70%),
    linear-gradient(180deg, var(--tx-cream), #fff);
}

.tx2 .soft .truxcrm-figure {
  background:
    radial-gradient(40rem 18rem at 50% 0%, rgba(47, 99, 223, 0.12), transparent 70%),
    linear-gradient(180deg, #fff, var(--tx-cream));
}

.tx2 .truxcrm-figure figcaption {
  max-width: 44rem;
  margin: 0.6rem auto 0;
  padding: 0 1rem 1.4rem;
  color: var(--tx-mute);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

/* --------------------------------------------------------------- tables */

.tx2 .truxcrm-table-wrap {
  border: 1px solid var(--tx-line);
  border-radius: var(--tx-radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.03), 0 24px 48px -36px rgba(6, 22, 52, 0.3);
}

.tx2 .truxcrm-table thead th {
  color: var(--tx-mute);
  font-family: var(--tx-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx2 .truxcrm-table tbody tr {
  transition: background 200ms ease;
}

.tx2 .truxcrm-table tbody tr:hover {
  background: #f8faff;
}

.tx2 .truxcrm-table caption {
  color: var(--tx-mute);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ faq */

/*
 * The question list sits beside its heading on a wide screen, the heading
 * staying in view while the list scrolls, rather than one more centred block.
 */
@media (min-width: 62rem) {
  .tx2 .wrap:has(> .truxcrm-faq) {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0 clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .tx2 .wrap:has(> .truxcrm-faq) > :not(.truxcrm-faq) {
    grid-column: 1;
  }

  .tx2 .wrap:has(> .truxcrm-faq) > h2 {
    position: sticky;
    top: 7rem;
  }

  .tx2 .wrap:has(> .truxcrm-faq) > .truxcrm-faq {
    grid-row: 1 / span 6;
    grid-column: 2;
  }
}

.tx2 .truxcrm-faq {
  max-width: none;
  margin: 1.5rem 0 0;
}

.tx2 .truxcrm-faq .truxcrm-provider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--tx-line-2);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.tx2 .truxcrm-faq .truxcrm-provider:last-child {
  border-bottom: 1px solid var(--tx-line-2);
}

.tx2 .truxcrm-faq .truxcrm-provider:hover {
  background: none;
}

.tx2 .truxcrm-faq .truxcrm-provider summary {
  padding: 1.15rem 2.5rem 1.15rem 0;
}

.tx2 .truxcrm-faq .truxcrm-provider-name {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* A plus that turns into a minus, instead of the chevron. */
.tx2 .truxcrm-faq .truxcrm-provider summary::after {
  right: 0.2rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--tx-line-2);
  border-radius: 50%;
  background:
    linear-gradient(var(--tx-ink), var(--tx-ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--tx-ink), var(--tx-ink)) center / 1.5px 10px no-repeat;
  transform: translateY(-50%);
  transition: transform 300ms var(--tx-ease), background-color 300ms ease;
  content: "";
}

.tx2 .truxcrm-faq .truxcrm-provider[open] summary::after {
  border-color: var(--tx-ink);
  background:
    linear-gradient(#fff, #fff) center / 10px 1.5px no-repeat,
    var(--tx-ink);
  transform: translateY(-50%) rotate(180deg);
}

.tx2 .truxcrm-faq .truxcrm-provider-body {
  padding: 0 2.5rem 1.3rem 0;
}

.tx2 .truxcrm-faq .truxcrm-provider-body p {
  font-size: 0.97rem;
  line-height: 1.68;
}

/* The CTA buttons and notes a FAQ section ends with. */
.tx2 .wrap:has(> .truxcrm-faq) > p {
  margin-top: 1.2rem !important;
  font-size: 0.92rem;
  text-align: left !important;
}

/* -------------------------------------------------------------- buttons */

.tx2 .btn {
  border-radius: 999px;
  transition: transform 250ms var(--tx-ease), box-shadow 250ms var(--tx-ease), background-color 250ms ease;
}

.tx2 .btn-dark {
  background: var(--tx-ink);
  box-shadow: 0 10px 24px -12px rgba(47, 99, 223, 0.7);
}

.tx2 .btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(47, 99, 223, 0.85);
}

.tx2 .btn-light {
  border: 1px solid var(--tx-line-2);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ------------------------------------------------------------------ CTA */

.tx2 .cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(91, 140, 255, 0.35), transparent 70%),
    radial-gradient(30rem 18rem at 0% 100%, rgba(255, 106, 61, 0.22), transparent 70%),
    var(--tx-navy);
  color: #fff;
  text-align: left;
}

.tx2 .cta::before {
  position: absolute;
  top: 50%;
  right: -4rem;
  z-index: -1;
  width: min(34rem, 70%);
  aspect-ratio: 475 / 316;
  background: linear-gradient(120deg, #fff, var(--tx-blue-2));
  -webkit-mask: var(--tx-x) center / contain no-repeat;
  mask: var(--tx-x) center / contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%);
  content: "";
}

.tx2 .cta::after {
  position: absolute;
  right: 0;
  bottom: 1.4rem;
  left: 0;
  z-index: -1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 26px, transparent 26px 50px);
  animation: tx-road 2.6s linear infinite;
  content: "";
}

.tx2 .cta h2 {
  max-width: 18ch;
  color: #fff;
}

.tx2 .cta h2::before {
  display: none !important;
}

.tx2 .cta p {
  max-width: 34rem;
  margin-inline: 0;
  color: #c9d3e6;
}

.tx2 .cta .cta-actions {
  justify-content: flex-start;
}

.tx2 .cta .btn-light {
  border: 0;
  background: #fff;
  color: var(--tx-ink);
}

.tx2 .cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ---------------------------------------------------------- artefacts */

/* A floating panel that hero artefacts are built in. */
.tx2 .tx-art {
  position: relative;
  min-width: 0;
}

.tx2 .tx-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 60px -30px rgba(6, 22, 52, 0.45),
    0 0 0 1px rgba(11, 18, 32, 0.06);
}

.tx2 .tx-panel-dark {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(26rem 14rem at 100% 0%, rgba(91, 140, 255, 0.28), transparent 70%),
    var(--tx-navy);
  color: #dce4f4;
}

.tx2 .tx-k {
  color: var(--tx-mute);
  font-family: var(--tx-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx2 .tx-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--tx-sky);
  color: var(--tx-blue);
  font-family: var(--tx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tx2 .tx-chip.is-green {
  background: #e7f7ee;
  color: var(--tx-green);
}

.tx2 .tx-chip.is-warm {
  background: #fff0ea;
  color: #d4471a;
}

.tx2 .tx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: tx-ping 1.8s ease-out infinite;
}

@keyframes tx-ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent);
  }

  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}

/* Pricing: the rate card. ------------------------------------------- */

.tx2 .tx-rate {
  max-width: 25rem;
  margin-left: auto;
  padding: 1.6rem 1.6rem 1.3rem;
  transform: rotate(1.2deg);
  transition: transform 600ms var(--tx-ease);
}

.tx2 .tx-rate:hover {
  transform: rotate(0deg) translateY(-4px);
}

.tx2 .tx-rate-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.tx2 .tx-rate-price {
  display: flex;
  gap: 0.2rem;
  align-items: flex-start;
  margin: 1.4rem 0 0.2rem;
  color: var(--tx-ink);
  font-size: clamp(4rem, 8vw, 5.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.tx2 .tx-rate-price sup {
  margin-top: 0.5rem;
  font-size: 0.36em;
  letter-spacing: 0;
}

.tx2 .tx-rate-price small {
  align-self: flex-end;
  margin: 0 0 0.45rem 0.3rem;
  color: var(--tx-mute);
  font-size: 0.2em;
  letter-spacing: 0;
}

.tx2 .tx-rate-sub {
  margin: 0;
  color: var(--tx-ink-2);
  font-size: 0.95rem;
}

.tx2 .tx-rate-lines {
  margin: 1.3rem 0 0;
  padding: 0;
}

.tx2 .tx-rate-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px dashed var(--tx-line-2);
  font-size: 0.9rem;
}

.tx2 .tx-rate-lines dt {
  color: var(--tx-body);
}

.tx2 .tx-rate-lines dd {
  margin: 0;
  color: var(--tx-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The tear-off line, with a notch cut into each side. */
.tx2 .tx-rate-perf {
  position: relative;
  margin: 0.9rem -1.6rem 0.9rem;
  border-top: 2px dashed var(--tx-line-2);
}

.tx2 .tx-rate-perf::before,
.tx2 .tx-rate-perf::after {
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f4fb;
  content: "";
}

.tx2 .tx-rate-perf::before {
  left: -10px;
}

.tx2 .tx-rate-perf::after {
  right: -10px;
}

.tx2 .tx-rate-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  color: var(--tx-mute);
  font-family: var(--tx-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tx2 .tx-rate-foot strong {
  color: var(--tx-ink);
  font-family: var(--fonts--heading, inherit);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Pricing: the plan, as one wide sheet rather than a narrow card. */
.tx2 .tx-plan {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--tx-line), 0 40px 80px -50px rgba(6, 22, 52, 0.5);
}

.tx2 .tx-plan-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgba(91, 140, 255, 0.35), transparent 70%),
    radial-gradient(24rem 16rem at 100% 100%, rgba(255, 106, 61, 0.22), transparent 70%),
    var(--tx-navy);
  color: #fff;
}

.tx2 .tx-plan-side::after {
  position: absolute;
  right: -3rem;
  bottom: -2rem;
  z-index: -1;
  width: 22rem;
  aspect-ratio: 475 / 316;
  background: #fff;
  -webkit-mask: var(--tx-x) center / contain no-repeat;
  mask: var(--tx-x) center / contain no-repeat;
  opacity: 0.07;
  content: "";
}

.tx2 .tx-plan-side h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.tx2 .tx-plan-side h2::before {
  display: none !important;
}

.tx2 .tx-plan-side p {
  color: #c9d3e6;
}

.tx2 .tx-plan-side p strong {
  display: block;
  margin: 1.2rem 0 0.2rem;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tx2 .tx-plan-side .btn-dark {
  margin-top: 1.4rem;
  background: #fff;
  color: var(--tx-ink);
}

.tx2 .tx-plan-list {
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.tx2 .tx-plan-list .checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 1.6rem;
  margin: 0;
}

.tx2 .tx-plan-list .checklist li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--tx-line);
  color: var(--tx-ink-2);
  font-size: 0.92rem;
}

.tx2 .tx-plan-list .checklist svg {
  color: var(--tx-blue);
}

/* Central Dispatch: order to board. ----------------------------------- */

.tx2 .tx-cd {
  display: grid;
  gap: 0;
  max-width: 27rem;
  margin-left: auto;
}

.tx2 .tx-cd-card {
  padding: 1.15rem 1.25rem;
}

.tx2 .tx-cd-card strong {
  display: block;
  margin: 0.45rem 0 0.15rem;
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.tx2 .tx-cd-card .tx-sub {
  color: var(--tx-mute);
  font-size: 0.85rem;
}

.tx2 .tx-cd-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.tx2 .tx-cd-price {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--tx-line-2);
  font-size: 0.85rem;
}

/* The wire between the two: a road the listing travels down. */
.tx2 .tx-cd-wire {
  position: relative;
  height: 4.2rem;
  margin-left: 2.2rem;
}

.tx2 .tx-cd-wire::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--tx-ink) 0 8px, transparent 8px 15px);
  opacity: 0.3;
  content: "";
}

.tx2 .tx-cd-wire::after {
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 18px;
  border-radius: 99px;
  background: var(--tx-blue);
  box-shadow: 0 0 16px var(--tx-blue);
  animation: tx-down 2.2s var(--tx-ease) infinite;
  content: "";
}

@keyframes tx-down {
  0% {
    top: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 18px);
    opacity: 0;
  }
}

.tx2 .tx-cd-wire span {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
}

.tx2 .tx-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

/* Each status lights up in turn, as the carrier moves the load. */
.tx2 .tx-steps li {
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #93a3c2;
  font-family: var(--tx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: tx-status 8s infinite;
}

.tx2 .tx-steps li:nth-child(2) {
  animation-delay: 2s;
}

.tx2 .tx-steps li:nth-child(3) {
  animation-delay: 4s;
}

.tx2 .tx-steps li:nth-child(4) {
  animation-delay: 6s;
}

@keyframes tx-status {
  0%,
  22% {
    border-color: #5b8cff;
    background: rgba(91, 140, 255, 0.22);
    color: #fff;
  }

  30%,
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #93a3c2;
  }
}

.tx2 .tx-panel-dark .tx-k {
  color: #8796b3;
}

.tx2 .tx-panel-dark strong {
  color: #fff;
}

.tx2 .tx-panel-dark .tx-sub {
  color: #9fb0cf;
}

/* The partner film, given room of its own. */
.tx2 .tx-film {
  max-width: 54rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--tx-line), 0 40px 80px -50px rgba(6, 22, 52, 0.45);
}

.tx2 .tx-film iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Lead capture: leads arriving. ------------------------------------------ */

.tx2 .tx-feed {
  position: relative;
  display: grid;
  gap: 0.7rem;
  max-width: 26rem;
  margin-left: auto;
}

.tx2 .tx-feed-item {
  padding: 1rem 1.1rem;
  animation: tx-arrive 9s var(--tx-ease) infinite both;
}

.tx2 .tx-feed-item:nth-child(2) {
  animation-delay: 0.35s;
}

.tx2 .tx-feed-item:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes tx-arrive {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }

  8%,
  88% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.tx2 .tx-feed-item:nth-child(2) {
  margin-left: 1.5rem;
}

.tx2 .tx-feed-item:nth-child(3) {
  margin-left: 0.6rem;
  opacity: 0.85;
}

.tx2 .tx-feed-item strong {
  display: block;
  margin: 0.4rem 0 0.1rem;
  font-size: 0.98rem;
  font-weight: 560;
}

.tx2 .tx-feed-item .tx-sub {
  color: var(--tx-mute);
  font-size: 0.84rem;
}

/* Lead provider API: the terminal. --------------------------------------- */

.tx2 .tx-term {
  max-width: 30rem;
  margin-left: auto;
  font-family: var(--tx-mono);
  font-size: 0.78rem;
  line-height: 1.75;
}

.tx2 .tx-term-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tx2 .tx-term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.tx2 .tx-term-bar span {
  margin-left: auto;
  color: #8796b3;
  font-size: 0.68rem;
}

.tx2 .tx-term pre {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  overflow: hidden;
  background: none;
  color: #c9d3e6;
  font: inherit;
  white-space: pre-wrap;
}

.tx2 .tx-term .c-key {
  color: #8fb3ff;
}

.tx2 .tx-term .c-str {
  color: #ffd38a;
}

.tx2 .tx-term .c-ok {
  color: #5fe3a1;
}

.tx2 .tx-term .c-mute {
  color: #6c7b99;
}

.tx2 .tx-term .tx-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  background: #8fb3ff;
  vertical-align: -0.15em;
  animation: tx-blink 1s steps(1) infinite;
}

@keyframes tx-blink {
  50% {
    opacity: 0;
  }
}

/* Lead import: columns finding their fields. ----------------------------- */

.tx2 .tx-map {
  max-width: 28rem;
  margin-left: auto;
  padding: 1.2rem;
}

.tx2 .tx-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr);
  align-items: center;
  padding: 0.5rem 0;
}

.tx2 .tx-map-row + .tx-map-row {
  border-top: 1px dashed var(--tx-line);
}

.tx2 .tx-map-row code {
  overflow: hidden;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  background: #fff;
  color: var(--tx-ink-2);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx2 .tx-map-row b {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  overflow: hidden;
  color: var(--tx-ink);
  font-size: 0.84rem;
  font-weight: 560;
  white-space: nowrap;
}

.tx2 .tx-map-row b::before {
  display: grid;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  border-radius: 50%;
  background: var(--tx-green);
  color: #fff;
  font-size: 0.6rem;
  content: "\2713";
}

/* The arrow is a short road, dashes moving towards the field. */
.tx2 .tx-map-row i {
  height: 2px;
  margin: 0 0.35rem;
  background: repeating-linear-gradient(90deg, var(--tx-blue) 0 5px, transparent 5px 9px);
  animation: tx-road-short 1.2s linear infinite;
}

@keyframes tx-road-short {
  from {
    background-position: -9px 0;
  }

  to {
    background-position: 0 0;
  }
}

.tx2 .tx-map-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--tx-line);
}

.tx2 .tx-map-foot strong {
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

/* Email setup: the inbox check. ------------------------------------------ */

.tx2 .tx-inbox {
  max-width: 27rem;
  margin-left: auto;
  padding: 1.2rem 1.25rem;
}

.tx2 .tx-inbox-mail {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--tx-line);
}

.tx2 .tx-inbox-mail > span:first-child {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--tx-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.tx2 .tx-inbox-mail strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx2 .tx-inbox-mail .tx-sub {
  display: block;
  overflow: hidden;
  color: var(--tx-mute);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The quote before the setup: greyed out, filed under Spam. */
.tx2 .tx-inbox-mail.is-spam {
  opacity: 0.62;
  filter: grayscale(0.6);
}

.tx2 .tx-inbox-mail.is-spam strong {
  text-decoration: line-through;
  text-decoration-color: rgba(212, 71, 26, 0.5);
}

.tx2 .tx-inbox-arrow {
  position: relative;
  height: 3rem;
  margin-left: 1.15rem;
}

.tx2 .tx-inbox-arrow::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--tx-blue) 0 6px, transparent 6px 11px);
  animation: tx-road-v 1.6s linear infinite reverse;
  content: "";
}

.tx2 .tx-inbox-arrow span {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.tx2 .tx-checks {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tx2 .tx-checks li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--tx-ink-2);
  font-size: 0.85rem;
  animation: tx-pass 6s var(--tx-ease) infinite both;
}

.tx2 .tx-checks li:nth-child(2) {
  animation-delay: 0.4s;
}

.tx2 .tx-checks li:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes tx-pass {
  0% {
    opacity: 0.35;
  }

  12%,
  100% {
    opacity: 1;
  }
}

/* About: the one record. -------------------------------------------------- */

.tx2 .tx-record {
  max-width: 24rem;
  margin-left: auto;
  padding: 1.4rem 1.4rem 1.2rem;
}

.tx2 .tx-record ol {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tx2 .tx-record ol::before {
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0.55rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 7px, transparent 7px 13px);
  content: "";
}

.tx2 .tx-record li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0 0.55rem 2rem;
  color: #c9d3e6;
  font-size: 0.92rem;
}

.tx2 .tx-record li::before {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #5b8cff;
  border-radius: 50%;
  background: var(--tx-navy);
  transform: translateY(-50%);
  content: "";
}

.tx2 .tx-record li:last-child::before {
  background: #5fe3a1;
  border-color: #5fe3a1;
}

.tx2 .tx-record li span {
  color: #6c7b99;
  font-family: var(--tx-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------------------------------- page-by-page */

/* About: the company card as an ID card. */
.tx2 .truxcrm-company-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgba(91, 140, 255, 0.3), transparent 70%),
    var(--tx-navy);
  color: #dce4f4;
}

.tx2 .truxcrm-company-card::after {
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  z-index: -1;
  width: 20rem;
  aspect-ratio: 475 / 316;
  background: #fff;
  -webkit-mask: var(--tx-x) center / contain no-repeat;
  mask: var(--tx-x) center / contain no-repeat;
  opacity: 0.07;
  content: "";
}

.tx2 .truxcrm-company-card h3,
.tx2 .truxcrm-company-card strong {
  color: #fff;
}

.tx2 .truxcrm-company-card p {
  color: #c9d3e6;
}

.tx2 .truxcrm-company-card a {
  color: #8fb3ff;
}

.tx2 .truxcrm-company-card .eyebrow {
  color: #8fb3ff;
}

/* Demo and contact: the form on a dark stage. */
.tx2 .truxcrm-demo-grid {
  align-items: stretch;
}

.tx2 .truxcrm-demo-brand {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 24px;
  background:
    radial-gradient(26rem 14rem at 0% 0%, rgba(91, 140, 255, 0.32), transparent 70%),
    radial-gradient(22rem 14rem at 100% 100%, rgba(255, 106, 61, 0.2), transparent 70%),
    var(--tx-navy);
  color: #dce4f4;
}

.tx2 .truxcrm-demo-brand p,
.tx2 .truxcrm-demo-brand li {
  color: #c9d3e6;
}

.tx2 .truxcrm-demo-brand a {
  color: #8fb3ff;
}

.tx2 .truxcrm-demo-brand .checklist svg {
  color: #5fe3a1;
}

.tx2 .truxcrm-demo-brand .truxcrm-orbit {
  filter: drop-shadow(0 0 28px rgba(91, 140, 255, 0.45));
}

/* The navy wordmark would vanish on the navy panel. */
.tx2 .truxcrm-demo-brand .truxcrm-orbit-logo.is-wordmark {
  filter: brightness(0) invert(1);
}

.tx2 .truxcrm-demo-brand .truxcrm-orbit-text {
  fill: #8fb3ff;
}

.tx2 .truxcrm-demo-brand .truxcrm-orbit-line {
  stroke: rgba(143, 179, 255, 0.35);
}

@media (max-width: 60rem) {
  .tx2 .truxcrm-demo-grid {
    gap: 1.25rem;
  }
}

.tx2 .form-card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--tx-line), 0 40px 80px -50px rgba(6, 22, 52, 0.45);
}

.tx2 .field input,
.tx2 .field select,
.tx2 .field textarea {
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.tx2 .field input:focus,
.tx2 .field select:focus,
.tx2 .field textarea:focus {
  border-color: var(--tx-blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 223, 0.14);
}

/* Legal: a document with its contents beside it. */
@media (min-width: 64rem) {
  .tx2 .legal {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 0 4rem;
    max-width: 68rem;
  }

  .tx2 .legal > * {
    grid-column: 2;
  }

  .tx2 .legal > .toc {
    position: sticky;
    top: 7rem;
    grid-row: 1 / span 400;
    grid-column: 1;
    align-self: start;
    max-height: calc(100vh - 9rem);
    overflow: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .tx2 .legal > .toc ol {
    display: block;
    padding: 0;
    list-style: none;
    counter-reset: toc;
  }

  .tx2 .legal > .toc li {
    padding: 0.32rem 0 0.32rem 0.9rem;
    border-left: 1px solid var(--tx-line-2);
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .tx2 .legal > .toc li:hover {
    border-left-color: var(--tx-blue);
  }
}

.tx2 .legal h2 {
  max-width: none;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--tx-line-2);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  scroll-margin-top: 7rem;
}

.tx2 .legal h2::before {
  display: none !important;
}

.tx2 .legal p,
.tx2 .legal li {
  font-size: 0.98rem;
  line-height: 1.72;
}

.tx2 .legal .toc a {
  color: var(--tx-body);
  text-decoration: none;
}

.tx2 .legal .toc a:hover {
  color: var(--tx-blue);
}

/* ------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
  .tx2 .tx-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--tx-ease), transform 800ms var(--tx-ease);
  }

  .tx2 .tx-in.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx2 *,
  .tx2 *::before,
  .tx2 *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------- tablet */

@media (max-width: 61.99rem) {
  .tx2 .tx-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tx2 .tx-art {
    max-width: 30rem;
  }

  .tx2 .tx-rate,
  .tx2 .tx-cd,
  .tx2 .tx-feed,
  .tx2 .tx-term,
  .tx2 .tx-map,
  .tx2 .tx-inbox,
  .tx2 .tx-record {
    margin-left: 0;
  }

  .tx2 .tx-plan {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- phone */

/*
 * Sized for reading on a phone, not shrunk from the desktop: smaller
 * headings, body copy at 15-16px, and tighter rhythm between sections.
 */
@media (max-width: 47.99rem) {
  .tx2 .page-head {
    padding: 2.2rem 0 2.6rem;
  }

  .tx2 .page-head::after {
    top: auto;
    right: -30%;
    bottom: 4%;
    width: 120vw;
    opacity: 0.2;
  }

  .tx2 .page-head h1 {
    max-width: none;
    margin-top: 0.85rem;
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .tx2 .page-head .lead,
  .tx2 .page-head.center .lead {
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .tx2 .page-head .tx-hero-actions {
    margin-top: 1.3rem;
  }

  .tx2 .tx-hero {
    gap: 2rem;
  }

  .tx2 .section {
    padding: 3rem 0;
  }

  .tx2 .section-tight {
    padding: 2.2rem 0;
  }

  .tx2 h2,
  .tx2 h2.center,
  .tx2 .prose h2 {
    max-width: none;
    font-size: clamp(1.45rem, 6.4vw, 1.75rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .tx2 > section:not(.page-head) > .wrap > h2:not(.eyebrow + h2)::before,
  .tx2 > section:not(.page-head) > .wrap.prose > h2:first-child::before {
    margin-bottom: 0.6rem;
    font-size: 0.64rem;
  }

  .tx2 .section .lead,
  .tx2 .section-tight .lead,
  .tx2 p.lead[style] {
    font-size: 0.96rem;
  }

  .tx2 p,
  .tx2 li,
  .tx2 .prose p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .tx2 .card {
    padding: 1.1rem 0 1.25rem;
  }

  .tx2 .card h3 {
    font-size: 1rem;
  }

  .tx2 .card p {
    font-size: 0.92rem;
  }

  .tx2 .cards {
    margin-top: 1.5rem;
  }

  .tx2 .cards.two .card {
    padding: 1.25rem;
  }

  /* The route turns vertical: stops down the left, text beside them. */
  .tx2 .cards.tx-route {
    padding-top: 0;
    padding-left: 3rem;
    gap: 1.6rem;
  }

  .tx2 .cards.tx-route::before {
    top: 0.4rem;
    bottom: 0.4rem;
    left: 1.02rem;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--tx-line-2) 0 10px, transparent 10px 18px);
  }

  .tx2 .cards.tx-route::after {
    display: none;
  }

  .tx2 .cards.tx-route .card::before {
    top: 0;
    left: -3rem;
  }

  .tx2 .note.truxcrm-callout {
    padding: 1.3rem 1.2rem 1.3rem 2.1rem;
    border-radius: 16px;
  }

  .tx2 .note.truxcrm-callout::before {
    left: 0.85rem;
  }

  .tx2 .note.truxcrm-callout h3,
  .tx2 .note.truxcrm-callout strong:first-child {
    font-size: 1.15rem;
  }

  .tx2 .note.truxcrm-callout p {
    font-size: 0.93rem;
  }

  .tx2 .truxcrm-figure {
    margin-top: 1.6rem;
    border-radius: 18px;
  }

  .tx2 .truxcrm-faq .truxcrm-provider summary {
    padding: 1rem 2.4rem 1rem 0;
  }

  .tx2 .truxcrm-faq .truxcrm-provider-name {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .tx2 .truxcrm-faq .truxcrm-provider-body {
    padding-right: 0;
  }

  .tx2 .cta {
    border-radius: 20px;
  }

  .tx2 .cta h2 {
    font-size: 1.55rem;
  }

  /* Artefacts: full width, a little smaller, no tilt. */
  .tx2 .tx-art {
    max-width: none;
  }

  .tx2 .tx-rate {
    max-width: none;
    padding: 1.3rem 1.3rem 1.1rem;
    transform: none;
  }

  .tx2 .tx-rate-perf {
    margin-inline: -1.3rem;
  }

  .tx2 .tx-rate-price {
    font-size: 3.6rem;
  }

  .tx2 .tx-feed-item:nth-child(2),
  .tx2 .tx-feed-item:nth-child(3) {
    margin-left: 0;
  }

  .tx2 .tx-term {
    font-size: 0.7rem;
  }

  .tx2 .tx-plan-list .checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .tx2 .tx-plan-list .checklist li {
    font-size: 0.9rem;
  }
}

@media (max-width: 47.99rem) {
  /* The phone gutter the rest of the site uses. */
  .tx2 .wrap.prose {
    width: min(100% - 2rem, 75rem);
  }
}

/* About: the four principles, as numbered statements rather than a list of
   paragraphs. */
.tx2 .wrap.prose > .tx-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 60rem;
  margin-top: 1.8rem;
  counter-reset: principle;
}

.tx2 .tx-principles p {
  position: relative;
  margin: 0;
  padding: 3.4rem 1.5rem 1.5rem;
  border: 1px solid var(--tx-line);
  border-radius: var(--tx-radius);
  background:
    radial-gradient(20rem 9rem at 100% 0%, rgba(47, 99, 223, 0.08), transparent 70%),
    #fff;
  font-size: 0.95rem;
  line-height: 1.65;
}

.tx2 .tx-principles p::before {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  color: var(--tx-blue);
  font-family: var(--tx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
}

.tx2 .tx-principles p strong:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.tx2 .truxcrm-company-card + p {
  margin-top: 1.2rem;
}

@media (max-width: 47.99rem) {
  .tx2 .wrap.prose > .tx-principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .tx2 .tx-principles p {
    padding: 3rem 1.2rem 1.25rem;
  }
}

.tx2 .tx-principles p + p {
  margin-top: 0;
}
