.truxcrm-inner-main {
  --inner-ink: #111418;
  --inner-muted: #696f76;
  --inner-line: rgba(17, 20, 24, 0.1);
  --inner-soft: #f6f6f6;
  --inner-blue: #2f63df;
  color: var(--inner-ink);
}

.truxcrm-inner-main .wrap {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.truxcrm-inner-main .page-head {
  padding: clamp(8.5rem, 12vw, 10.5rem) 0 clamp(4rem, 7vw, 6rem);
  background: #fff;
}

.truxcrm-inner-main .page-head.center {
  text-align: center;
}

.truxcrm-inner-main .page-head.center .wrap {
  max-width: 48rem;
}

.truxcrm-inner-main .eyebrow {
  display: inline-flex;
  width: max-content;
  min-height: 1.65rem;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--inner-line);
  border-radius: 999px;
  background: var(--inner-soft);
  color: #6b7076;
  font-family: var(--fonts--badge);
  font-size: 0.64rem;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.truxcrm-inner-main h1 {
  max-width: 52rem;
  margin: 1.1rem 0 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.truxcrm-inner-main .center h1 {
  margin-inline: auto;
}

.truxcrm-inner-main .lead {
  max-width: 43rem;
  margin: 1.15rem 0 0;
  color: var(--inner-muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.truxcrm-inner-main .center .lead {
  margin-inline: auto;
}

.truxcrm-inner-main .section {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}

.truxcrm-inner-main .section-tight {
  padding: clamp(3.25rem, 5vw, 4.75rem) 0;
}

.truxcrm-inner-main .soft {
  border-block: 1px solid var(--inner-line);
  background: var(--inner-soft);
}

.truxcrm-inner-main h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.truxcrm-inner-main h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.truxcrm-inner-main p {
  color: var(--inner-muted);
}

/*
 * Running prose.
 *
 * The inner pages were built out of leads, cards and split layouts, so a plain
 * sequence of paragraphs had never come up: `p` carries no margin here, and
 * `.wrap` is as wide as the page. The About copy landed with its paragraphs
 * butted together across a 130-character measure. Narrative sections use this.
 */
.truxcrm-inner-main .prose {
  max-width: 44rem;
  margin-inline: auto;
}

.truxcrm-inner-main .prose p + p {
  margin-top: 1rem;
}

.truxcrm-inner-main a {
  color: inherit;
}

.truxcrm-inner-main .legal a,
.truxcrm-inner-main .article a {
  color: var(--inner-blue);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.truxcrm-inner-main .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.truxcrm-inner-main .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.truxcrm-inner-main .cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/*
 * A lone card. `.cards` is a hard three-column grid, so a single child rendered
 * at a third of the width with its text wrapping one word per line. The pricing
 * plan is one card by design, hence a modifier rather than a second wrapper.
 * Capped and centred so it does not stretch into a letterbox on a wide screen.
 */
.truxcrm-inner-main .cards.one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 30rem;
  margin-inline: auto;
}

.truxcrm-inner-main .card,
.truxcrm-inner-main .quote-box,
.truxcrm-inner-main .form-card {
  border: 1px solid var(--inner-line);
  border-radius: 0.8rem;
  background: #fff;
}

.truxcrm-inner-main .card {
  min-height: 13rem;
  padding: 1.3rem;
  transition: transform 240ms ease, border-color 240ms ease;
}

.truxcrm-inner-main .card:hover {
  border-color: rgba(17, 20, 24, 0.2);
  transform: translateY(-3px);
}

.truxcrm-inner-main .card .icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.8rem;
  place-items: center;
  border: 1px solid var(--inner-line);
  border-radius: 0.55rem;
  background: var(--inner-soft);
  color: var(--inner-ink);
}

.truxcrm-inner-main .card .icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.truxcrm-inner-main .card p {
  margin: 0;
  line-height: 1.55;
}

.truxcrm-inner-main .quote-box {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--inner-soft);
}

.truxcrm-inner-main .quote-box h3 {
  margin-top: 0.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.truxcrm-inner-main .checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.truxcrm-inner-main .checklist li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: #4f555c;
}

/*
 * A card's action button following its feature list. The list carries no bottom
 * margin and `p` has none either, so the button sat flush against the last tick.
 */
.truxcrm-inner-main .card .checklist + p {
  margin-top: 1.35rem;
}

.truxcrm-inner-main .checklist svg {
  width: 1.05rem;
  margin-top: 0.18rem;
  color: #171b20;
}

.truxcrm-inner-main .btn {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.truxcrm-inner-main .btn:hover {
  transform: translateY(-2px);
}

.truxcrm-inner-main .btn-dark {
  background: #111820;
  color: #fff;
}

.truxcrm-inner-main .btn-light {
  background: #fff;
  color: #111418;
}

.truxcrm-inner-main .btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.truxcrm-inner-main .btn-lg {
  min-height: 3.1rem;
  padding-inline: 1.15rem;
}

.truxcrm-inner-main .btn-block {
  width: 100%;
}

.truxcrm-inner-main .cta {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.85rem;
  background: #0e151c;
  color: #fff;
}

.truxcrm-inner-main .cta h2 {
  max-width: 50rem;
}

.truxcrm-inner-main .cta p {
  max-width: 43rem;
  color: rgba(255, 255, 255, 0.68);
}

.truxcrm-inner-main .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

/*
 * Blog.
 *
 * Built from the vocabulary already here -- the card border, radius and hover
 * lift are the same values as `.card`, and the article body reuses `.legal`'s
 * measure and rhythm via the `.article` alias. The list is one column rather
 * than a grid because these are headlines to read down, not tiles to scan.
 */
.truxcrm-inner-main .truxcrm-post-list {
  display: grid;
  max-width: 43rem;
  margin-inline: auto;
  gap: 0.75rem;
}

.truxcrm-inner-main .truxcrm-post-card {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.35rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.8rem;
  background: #fff;
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease;
}

.truxcrm-inner-main .truxcrm-post-card:hover {
  border-color: rgba(17, 20, 24, 0.2);
  transform: translateY(-3px);
}

.truxcrm-inner-main .truxcrm-post-card-thumb {
  display: block;
  overflow: hidden;
  border-radius: 0.55rem;
  background: var(--inner-soft);
}

.truxcrm-inner-main .truxcrm-post-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.truxcrm-inner-main .truxcrm-post-card-body {
  display: block;
}

/* The list stacks on a narrow screen; a 14rem thumbnail beside text at that
   width leaves neither enough room to read. */
@media (max-width: 40rem) {
  .truxcrm-inner-main .truxcrm-post-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

.truxcrm-inner-main .truxcrm-post-card h2 {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.truxcrm-inner-main .truxcrm-post-card p {
  margin: 0;
  line-height: 1.6;
}

.truxcrm-inner-main .truxcrm-post-card-meta,
.truxcrm-inner-main .truxcrm-post-meta {
  display: block;
  color: #8a9098;
  font-size: 0.85rem;
}

.truxcrm-inner-main .truxcrm-post-card-meta {
  margin-top: 0.9rem;
}

.truxcrm-inner-main .truxcrm-post-meta {
  margin: 1.15rem 0 0;
}

/*
 * A screenshot inside an article.
 *
 * Allowed to break the 43rem text measure, because a UI screenshot at reading
 * width is unreadable. Capped a little wider and centred, with the caption
 * back at body width so it still reads as prose.
 */
.truxcrm-inner-main .truxcrm-figure {
  /*
   * Breaks out of the 43rem text column to 52rem. The negative inline margin
   * is what does it -- an earlier `calc(50% - min(50%, 26rem))` resolved to
   * zero, because inside this container 50% is 21.5rem and the min picked the
   * same value, so the figure silently stayed at text width.
   *
   * Both halves are clamped against the viewport so this can never produce
   * horizontal scroll on a narrow screen.
   */
  width: min(52rem, 100vw - 3rem);
  margin-block: 2rem 2.4rem;
  margin-inline: calc(50% - min(26rem, 50vw - 1.5rem));
}

.truxcrm-inner-main .truxcrm-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--inner-line);
  border-radius: 0.7rem;
}

.truxcrm-inner-main .truxcrm-figure figcaption {
  max-width: 43rem;
  margin: 0.75rem auto 0;
  color: var(--inner-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.truxcrm-inner-main .truxcrm-post-back {
  max-width: 43rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--inner-line);
}

.truxcrm-inner-main .truxcrm-post-back a {
  color: var(--inner-blue);
  text-decoration: none;
}

.truxcrm-inner-main .legal,
.truxcrm-inner-main .article {
  max-width: 43rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.75;
}

.truxcrm-inner-main .legal > .updated + p,
.truxcrm-inner-main .article > .updated + p {
  margin: 1.6rem 0 2rem;
  color: var(--inner-ink);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 520;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.truxcrm-inner-main .legal > p,
.truxcrm-inner-main .article > p,
.truxcrm-inner-main .legal > ul,
.truxcrm-inner-main .article > ul {
  margin-bottom: 1.2rem;
}

.truxcrm-inner-main .legal h2,
.truxcrm-inner-main .article h2 {
  margin: 3.25rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--inner-line);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.035em;
}

.truxcrm-inner-main .legal h3,
.truxcrm-inner-main .article h3 {
  margin-top: 1.6rem;
}

.truxcrm-inner-main .updated {
  display: inline-flex;
  margin: 0;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--inner-line);
  border-radius: 999px;
  background: var(--inner-soft);
  color: #737980;
  font-family: var(--fonts--badge);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.truxcrm-inner-main .note,
.truxcrm-inner-main .toc {
  margin: 1.8rem 0;
  padding: 1.2rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.7rem;
  background: var(--inner-soft);
}

.truxcrm-inner-main .note {
  color: #515860;
}

.truxcrm-inner-main .toc h4 {
  margin: 0 0 0.75rem;
  font-family: var(--fonts--badge);
  font-size: 0.68rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.truxcrm-inner-main .toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1.6rem;
  margin: 0;
  padding-left: 1.25rem;
  color: #5e656d;
  font-size: 0.84rem;
}

.truxcrm-inner-main .form-card {
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  background: #fff;
}

.truxcrm-inner-main .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.truxcrm-inner-main .field {
  margin-bottom: 0.75rem;
}

.truxcrm-inner-main .field label {
  margin-bottom: 0.35rem;
  color: #41474e;
  font-size: 0.73rem;
  font-weight: 600;
}

.truxcrm-inner-main input,
.truxcrm-inner-main select,
.truxcrm-inner-main textarea {
  width: 100%;
  min-height: 3.1rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.5rem;
  background: var(--inner-soft);
  color: var(--inner-ink);
}

.truxcrm-inner-main textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.truxcrm-inner-main input:focus,
.truxcrm-inner-main select:focus,
.truxcrm-inner-main textarea:focus {
  border-color: #60666d;
  outline: 2px solid rgba(17, 20, 24, 0.07);
}

.truxcrm-inner-main .form-ok {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
}

.truxcrm-inner-main .form-ok svg {
  width: 3rem;
  color: #1b8c60;
}

.truxcrm-inner-main .form-card.is-submitted form {
  display: none;
}

.truxcrm-inner-main .form-card.is-submitted .form-ok {
  display: block;
}

.truxcrm-email-preview {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 0.75rem solid var(--inner-soft);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--inner-line);
}

.truxcrm-email-preview-head,
.truxcrm-email-address,
.truxcrm-dns-list > div,
.truxcrm-email-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.truxcrm-email-preview-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--inner-line);
}

.truxcrm-email-preview-head > div {
  display: flex;
  flex-direction: column;
}

.truxcrm-email-preview-head small {
  color: #7a8086;
}

.truxcrm-email-preview-head span,
.truxcrm-dns-list em {
  padding: 0.34rem 0.58rem;
  border: 1px solid #cde8dc;
  border-radius: 999px;
  background: #f1faf6;
  color: #19724f;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 650;
}

.truxcrm-email-address {
  margin: 1rem 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.55rem;
  background: var(--inner-soft);
}

.truxcrm-email-address span {
  color: #777e85;
  font-size: 0.73rem;
}

.truxcrm-dns-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.truxcrm-dns-list > div {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.55rem;
}

.truxcrm-dns-list span {
  color: #6d747b;
}

.truxcrm-email-preview-foot {
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  color: #737a81;
  font-size: 0.72rem;
}

.truxcrm-email-preview-foot span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #1c9566;
}

.truxcrm-page-demo .page-head {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.truxcrm-page-demo .page-head .quote-box {
  background: #0e151c;
  color: #fff;
}

.truxcrm-page-demo .page-head .quote-box p,
.truxcrm-page-demo .page-head .quote-box li {
  color: rgba(255, 255, 255, 0.72);
}

.truxcrm-page-demo .page-head .quote-box svg {
  color: #fff;
}

.truxcrm-company-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.8rem;
  background: #fff;
}

.truxcrm-company-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.truxcrm-company-card p {
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.truxcrm-company-card address {
  margin-bottom: 0.6rem;
  color: #4f565d;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.55;
}

.truxcrm-company-card a {
  color: var(--inner-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.truxcrm-page-security > .section:first-of-type,
.truxcrm-page-email-setup > .section:nth-of-type(2) {
  background: var(--inner-soft);
}

.truxcrm-inner-main .reveal {
  animation: truxcrm-inner-reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.truxcrm-inner-main .reveal.d1 {
  animation-delay: 80ms;
}

.truxcrm-inner-main .reveal.d2 {
  animation-delay: 160ms;
}

@keyframes truxcrm-inner-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .truxcrm-inner-main .wrap {
    width: min(100% - 2rem, 75rem);
  }

  .truxcrm-inner-main .page-head {
    padding-top: 7.5rem;
  }

  .truxcrm-inner-main h1 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .truxcrm-inner-main .split,
  .truxcrm-inner-main .cards,
  .truxcrm-inner-main .cards.two {
    grid-template-columns: 1fr;
  }

  .truxcrm-inner-main .card {
    min-height: 0;
  }

  .truxcrm-inner-main .card .icon {
    margin-bottom: 1.1rem;
  }

  .truxcrm-inner-main .toc ol,
  .truxcrm-inner-main .field-row {
    grid-template-columns: 1fr;
  }

  .truxcrm-dns-list > div {
    grid-template-columns: 3.5rem 1fr;
  }

  .truxcrm-dns-list em {
    width: max-content;
    grid-column: 2;
  }

  .truxcrm-email-address {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .truxcrm-inner-main .reveal {
    animation: none;
  }
}

/* Holding page for routes that are planned but not built, and for genuine
   misses. Shares the inner-page shell so the header and footer still work. */
.truxcrm-page-placeholder .page-head {
  padding-block: clamp(6rem, 18vw, 12rem);
}

.truxcrm-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* The surrounding .wrap centres block children, which would otherwise stretch
   these to the full column width. */
.truxcrm-placeholder-actions .btn {
  flex: 0 0 auto;
  min-width: 11rem;
}

.truxcrm-page-placeholder .btn-light {
  border-color: rgba(17, 20, 24, 0.16);
}

.truxcrm-placeholder-help {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  opacity: 0.65;
}

/* ------------------------------------------------------------------------ */
/* Email setup guide                                                        */
/* ------------------------------------------------------------------------ */
/* The provider instructions are long -- seven hosts, each with DNS records --
   so they are collapsed into <details> rather than laid out as one wall of
   text. Native disclosure, so it works with no JavaScript, is keyboard
   operable, and a browser's in-page find can still open the right one. */

.truxcrm-record-table {
  display: grid;
  margin: 1.6rem 0 0;
  gap: 0.5rem;
}

.truxcrm-record-table > div {
  display: grid;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.6rem;
  background: #fff;
  gap: 0.15rem 1rem;
  grid-template-columns: 4.5rem minmax(0, 1fr);
}

.truxcrm-record-table dt {
  grid-row: 1 / 3;
  font-family: var(--fonts--badge);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.truxcrm-record-table dd {
  margin: 0;
  font-size: 0.95rem;
}

.truxcrm-record-effort {
  color: var(--inner-muted);
  font-size: 0.82rem;
}

/* A note that leads a section rather than qualifying one, so it carries a
   heading and reads at body weight instead of the muted legal grey. */
.truxcrm-inner-main .note.truxcrm-callout {
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.5rem 1.6rem;
  color: var(--inner-ink);
}

.truxcrm-callout h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.truxcrm-callout p {
  margin: 0;
  color: #515860;
}

.truxcrm-steps {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.truxcrm-steps li {
  padding-left: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.truxcrm-steps code,
.truxcrm-provider-body code,
.truxcrm-inner-main .lead code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--inner-line);
  border-radius: 0.3rem;
  background: var(--inner-soft);
  font-family: var(--fonts--badge);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.truxcrm-providers {
  display: grid;
  max-width: 52rem;
  margin: 2.2rem auto 0;
  gap: 0.6rem;
}

.truxcrm-provider {
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: 0.7rem;
  background: #fff;
  transition: border-color 160ms ease;
}

.truxcrm-provider:hover {
  border-color: rgba(17, 20, 24, 0.2);
}

.truxcrm-provider[open] {
  border-color: rgba(17, 20, 24, 0.22);
}

.truxcrm-provider summary {
  display: grid;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  cursor: pointer;
  gap: 0.15rem;
  list-style: none;
  position: relative;
}

/* Safari still paints its own triangle without this. */
.truxcrm-provider summary::-webkit-details-marker {
  display: none;
}

.truxcrm-provider summary:focus-visible {
  outline: 2px solid var(--inner-blue);
  outline-offset: -2px;
}

/* A chevron built from two borders, so the disclosure has an affordance
   without shipping another SVG for it. */
.truxcrm-provider summary::after {
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #9aa1a9;
  border-bottom: 2px solid #9aa1a9;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.truxcrm-provider[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.truxcrm-provider-name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.truxcrm-provider-hint {
  color: var(--inner-muted);
  font-size: 0.87rem;
}

.truxcrm-provider-body {
  padding: 0.25rem 1.25rem 1.35rem;
  border-top: 1px solid var(--inner-line);
}

.truxcrm-provider-body > *:first-child {
  margin-top: 1.1rem;
}

.truxcrm-provider-body h4 {
  margin: 1.5rem 0 0;
  font-family: var(--fonts--badge);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.truxcrm-provider-body p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.truxcrm-provider-body .checklist {
  margin-top: 1.1rem;
}

.truxcrm-provider-tip {
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--inner-blue);
  background: var(--inner-soft);
  color: #515860;
  font-size: 0.9rem;
}

/* One DNS record. Three labelled cells on a wide screen, stacked on a phone,
   with the value free to wrap -- a DKIM key is far too long for one line. */
.truxcrm-dns {
  display: grid;
  margin: 0.85rem 0 0;
  border: 1px solid var(--inner-line);
  border-radius: 0.5rem;
  background: var(--inner-soft);
  gap: 1px;
  grid-template-columns: 5.5rem 11rem minmax(0, 1fr);
  overflow: hidden;
}

.truxcrm-dns > div {
  padding: 0.6rem 0.8rem;
  background: #fff;
}

.truxcrm-dns dt {
  color: var(--inner-muted);
  font-family: var(--fonts--badge);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.truxcrm-dns dd {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

/* Inside a record the value is already in a mono context; a second box around
   it just adds noise. */
.truxcrm-dns code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
}

.truxcrm-faq .truxcrm-provider summary {
  padding-block: 0.95rem;
}

.truxcrm-faq .truxcrm-provider-name {
  font-size: 0.98rem;
  font-weight: 500;
}

@media (max-width: 48rem) {
  .truxcrm-dns {
    grid-template-columns: minmax(0, 1fr);
  }

  .truxcrm-record-table > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .truxcrm-record-table dt {
    grid-row: auto;
    margin-bottom: 0.2rem;
  }
}

/* ------------------------------------------------------------------------ */
/* Demo and contact                                                         */
/* ------------------------------------------------------------------------ */
/* Mirrors the home page contact section: the rotating brand mark on the left,
   the form on the right. The orbit itself is styled in template-overrides.css,
   which every page loads, so only the surrounding layout lives here. */

.truxcrm-demo-grid {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  /* The aside is a fixed-ish column and the form takes the rest: the form has
     paired fields that get cramped below about 26rem. */
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
}

.truxcrm-demo-brand {
  position: sticky;
  /* Clears the fixed site header when the form is long enough to scroll. */
  top: 7rem;
  display: grid;
  justify-items: center;
  text-align: center;
}

.truxcrm-demo-brand .truxcrm-orbit {
  width: min(100%, 17rem);
}

.truxcrm-demo-brand .truxcrm-orbit-caption {
  max-width: 22rem;
  margin: 1.25rem 0 0;
  color: var(--inner-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.truxcrm-demo-brand .checklist {
  margin-top: 1.6rem;
  text-align: left;
}

.truxcrm-demo-aside-foot {
  margin: 1.5rem 0 0;
  color: var(--inner-muted);
  font-size: 0.9rem;
}

.truxcrm-demo-aside-foot a {
  color: var(--inner-blue);
  font-weight: 600;
}

.truxcrm-demo-grid .form-card {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 1rem;
}

.truxcrm-demo-grid .form-card h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
}

.truxcrm-demo-lead {
  margin: 0.6rem 0 1.5rem;
  color: var(--inner-muted);
  font-size: 0.98rem;
}

.truxcrm-demo-fineprint {
  margin: 0.9rem 0 0;
  color: var(--inner-muted);
  font-size: 0.84rem;
  text-align: center;
}

/* The contact page swaps the aside's email line for the company card, so it
   inherits the aside's centred text and needs pulling back to the left. */
.truxcrm-demo-brand .truxcrm-company-card {
  margin-top: 1.5rem;
  text-align: left;
}

@media (max-width: 60rem) {
  .truxcrm-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sticky is meaningless once the columns stack, and it would pin the mark
     over the form on the way down. */
  .truxcrm-demo-brand {
    position: static;
  }

  .truxcrm-demo-brand .checklist {
    max-width: 26rem;
  }
}

/* On a phone the full-size mark pushes the form most of a screen down, and the
   form is what the page is for. Shrink the mark rather than move it: it still
   sets the tone at the top, but the first field is reachable. */
@media (max-width: 40rem) {
  .truxcrm-demo-brand .truxcrm-orbit {
    width: min(62%, 12.5rem);
  }

  .truxcrm-demo-brand .truxcrm-orbit-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .truxcrm-demo-brand .checklist {
    margin-top: 1.2rem;
  }
}

/* ------------------------------------------------------------------------ */
/* Touch and small-screen refinements                                       */
/* ------------------------------------------------------------------------ */

@media (max-width: 47.99rem) {
  /* Measured at 11.7px. These sit above the fields you type into on a phone,
     which is the worst place on the site to be squinting. */
  .truxcrm-inner-main .field label {
    font-size: 0.82rem;
  }

  /* 10.2px. Uppercase and letter-spaced, so it survives being small, but not
     this small. */
  .truxcrm-inner-main .eyebrow {
    font-size: 0.7rem;
  }

  /* The mono section labels inside the provider steps, and the Type/Name/Value
     captions on each DNS record. */
  .truxcrm-provider-body h4 {
    font-size: 0.74rem;
  }

  .truxcrm-dns dt {
    font-size: 0.66rem;
  }

  /* A DKIM value is a long unbroken string; give it the full width of the
     card rather than sharing the row with its label. */
  .truxcrm-dns dd {
    font-size: 0.86rem;
  }
}

@media (pointer: coarse) {
  /* Native select and input controls, so a thumb lands on the right one. */
  .truxcrm-inner-main .field input,
  .truxcrm-inner-main .field select,
  .truxcrm-inner-main .field textarea {
    min-height: 2.9rem;
  }

  /* The disclosure rows on the email guide: the whole summary is the control,
     so it only needs to clear the minimum, but the FAQ rows were tighter. */
  .truxcrm-provider summary {
    min-height: 2.75rem;
  }

  .truxcrm-inner-main .checklist a,
  .truxcrm-demo-aside-foot a,
  .truxcrm-company-card a {
    display: inline-block;
    padding-block: 0.35rem;
  }
}

@media (max-width: 47.99rem) {
  /* Legal pages: the "last updated" line and the contents heading. */
  .truxcrm-inner-main .legal .updated,
  .truxcrm-inner-main .article .updated {
    font-size: 0.78rem;
  }

  .truxcrm-inner-main .toc h4 {
    font-size: 0.76rem;
  }

  /* The email-setup app mockup. Small by design -- it is standing in for a
     screenshot -- but not so small it cannot be read on the device most
     people will open this page on. */
  .truxcrm-email-preview-head span,
  .truxcrm-dns-list em,
  .truxcrm-email-preview-foot {
    font-size: 0.78rem;
  }

  /* Type / Name / Value captions, and the SPF / DKIM / DMARC row labels. */
  .truxcrm-dns dt {
    font-size: 0.74rem;
  }

  .truxcrm-record-table dt {
    font-size: 0.78rem;
  }

  /* The security page's tenant-isolation diagram. */
  .tx-iso-name small,
  .tx-iso-records li {
    font-size: 0.78rem;
  }
}
