/* TAMAX components: header, buttons, cards, forms, accordion, tabs, wizard, footer. */

/* ============================================================
   Buttons
   ============================================================ */

.tx-btn {
  --btn-bg: var(--tx-blue);
  --btn-fg: #ffffff;
  --btn-border: var(--tx-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tx-2);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--tx-r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--tx-font-sans);
  font-size: var(--tx-fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--tx-dur-fast) var(--tx-ease),
    box-shadow var(--tx-dur) var(--tx-ease), background-color var(--tx-dur-fast) var(--tx-ease),
    border-color var(--tx-dur-fast) var(--tx-ease), color var(--tx-dur-fast) var(--tx-ease);
}

.tx-btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11, 123, 208, 0.25);
}

.tx-btn:active {
  transform: translateY(0);
}

.tx-btn[aria-disabled="true"],
.tx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tx-btn--primary {
  --btn-bg: linear-gradient(135deg, var(--tx-blue) 0%, var(--tx-blue-700) 100%);
  --btn-border: transparent;
  background-image: linear-gradient(135deg, var(--tx-blue) 0%, var(--tx-blue-700) 100%);
  background-color: var(--tx-blue-700);
}

.tx-btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--tx-blue-700);
  --btn-border: var(--tx-border-strong);
}

.tx-btn--secondary:hover {
  --btn-border: var(--tx-blue);
  background: var(--tx-blue-100);
  box-shadow: none;
}

.tx-on-dark .tx-btn--secondary {
  --btn-fg: var(--tx-on-dark);
  --btn-border: rgba(167, 190, 210, 0.45);
}

.tx-on-dark .tx-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  --btn-border: var(--tx-cyan);
}

.tx-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--tx-blue-700);
  --btn-border: transparent;
  padding-inline: 0.75rem;
}

.tx-btn--ghost:hover {
  box-shadow: none;
  background: var(--tx-blue-100);
}

.tx-btn--accent {
  --btn-bg: var(--tx-cyan);
  --btn-fg: #04202a;
  --btn-border: transparent;
}

.tx-btn--accent:hover {
  box-shadow: 0 8px 26px rgba(41, 184, 238, 0.32);
}

.tx-btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--tx-fs-sm);
}

.tx-btn--block {
  width: 100%;
}

.tx-btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.tx-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-3);
  align-items: center;
}

.tx-btn-row--center {
  justify-content: center;
}

.tx-btn-row:not(:first-child) {
  margin-top: var(--tx-5);
}

/* Text link with arrow */
.tx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.75rem;
}

.tx-link-arrow::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  mask: var(--tx-arrow) center / contain no-repeat;
  -webkit-mask: var(--tx-arrow) center / contain no-repeat;
  transition: transform var(--tx-dur) var(--tx-ease);
}

:root {
  --tx-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 5.2 12 6.4l4.7 4.8H4v1.6h12.7L12 17.6l1.2 1.2 6.8-6.8z'/%3E%3C/svg%3E");
}

.tx-link-arrow:hover::after {
  transform: translateX(3px);
}

.tx-link-arrow:hover {
  text-decoration: underline;
}

/* ============================================================
   Badges, pills, notes
   ============================================================ */

.tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--tx-r-pill);
  background: var(--tx-blue-100);
  color: var(--tx-cyan);
  border: 1px solid rgba(41, 184, 238, 0.3);
  font-size: var(--tx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.tx-badge--accent {
  background: rgba(86, 217, 249, 0.14);
  color: var(--tx-sky);
  border-color: rgba(86, 217, 249, 0.3);
}

.tx-badge--neutral {
  background: var(--tx-bg-2);
  color: var(--tx-muted);
  border-color: var(--tx-border);
}

.tx-on-dark .tx-badge {
  background: rgba(41, 184, 238, 0.12);
  color: var(--tx-cyan);
  border-color: rgba(41, 184, 238, 0.3);
}

.tx-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-2);
  padding: 0;
  margin: 0 0 var(--tx-4);
  list-style: none;
}

.tx-badge-row li {
  margin: 0;
}

.tx-note {
  display: flex;
  gap: var(--tx-3);
  padding: var(--tx-4);
  border: 1px solid var(--tx-border);
  border-left: 3px solid var(--tx-blue);
  border-radius: var(--tx-r);
  background: var(--tx-bg);
  font-size: var(--tx-fs-sm);
  color: var(--tx-muted);
}

.tx-note p {
  font-size: inherit;
}

.tx-note:not(:first-child) {
  margin-top: var(--tx-5);
}

.tx-note--warning {
  background: var(--tx-warning-bg);
  border-color: var(--tx-warning-border);
  border-left-color: #e0a838;
  color: #f0c987;
}

.tx-on-dark .tx-note {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 195, 226, 0.22);
  border-left-color: var(--tx-cyan);
  color: var(--tx-on-dark-muted);
}

.tx-note svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--tx-blue);
}

.tx-on-dark .tx-note svg {
  color: var(--tx-cyan);
}

/* ============================================================
   Cards
   ============================================================ */

.tx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--tx-3);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--tx-surface);
  border: 1px solid var(--tx-surface-border);
  border-radius: var(--tx-r-lg);
  box-shadow: var(--tx-shadow-sm);
  transition: transform var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease),
    border-color var(--tx-dur) var(--tx-ease);
}

.tx-card h3,
.tx-card h4 {
  margin: 0;
}

.tx-card p {
  margin: 0;
}

.tx-card--link:hover,
.tx-card--link:focus-within {
  transform: translateY(-3px);
  border-color: rgba(11, 123, 208, 0.4);
  box-shadow: var(--tx-shadow-lg);
}

/* Whole card clickable while keeping one real link for assistive tech. */
.tx-card--link .tx-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tx-card--link .tx-card-title a {
  text-decoration: none;
  color: inherit;
}

.tx-card--link:focus-within {
  outline: var(--tx-focus);
  outline-offset: var(--tx-focus-offset);
}

.tx-card--link .tx-card-title a:focus-visible {
  outline: none;
}

.tx-on-dark .tx-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(148, 195, 226, 0.22);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.tx-on-dark .tx-card--link:hover {
  border-color: rgba(41, 184, 238, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.tx-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--tx-r);
  background: linear-gradient(140deg, rgba(11, 123, 208, 0.12), rgba(41, 184, 238, 0.12));
  border: 1px solid rgba(11, 123, 208, 0.18);
  color: var(--tx-blue-700);
  flex: none;
}

.tx-card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.tx-on-dark .tx-card-icon {
  background: linear-gradient(140deg, rgba(41, 184, 238, 0.16), rgba(11, 123, 208, 0.1));
  border-color: rgba(41, 184, 238, 0.28);
  color: var(--tx-cyan);
}

.tx-card-title {
  font-size: var(--tx-fs-h4);
  margin: 0;
}

/* Scoped so it outranks `.tx-card p { margin: 0 }` and the link really is
   pushed to the bottom of every card in a row. */
.tx-card .tx-card-foot,
.tx-app-card__body .tx-card-foot {
  margin-top: auto;
  padding-top: var(--tx-2);
}

/* Feature list inside cards */
.tx-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--tx-2);
}

.tx-check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin: 0;
  font-size: var(--tx-fs-sm);
}

.tx-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(86, 217, 249, 0.16);
  border: 1px solid rgba(18, 121, 108, 0.3);
}

.tx-check-list li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.55em;
  width: 0.45rem;
  height: 0.24rem;
  border-left: 2px solid var(--tx-sky-700);
  border-bottom: 2px solid var(--tx-sky-700);
  transform: rotate(-45deg);
}

.tx-on-dark .tx-check-list li::before {
  background: rgba(41, 184, 238, 0.14);
  border-color: rgba(41, 184, 238, 0.35);
}

.tx-on-dark .tx-check-list li::after {
  border-color: var(--tx-cyan);
}

/* Numbered steps */
.tx-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--tx-5);
  counter-reset: tx-step;
}

@media (min-width: 48em) {
  .tx-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68em) {
  .tx-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tx-step {
  position: relative;
  margin: 0;
  padding-top: var(--tx-5);
  border-top: 2px solid var(--tx-border);
}

.tx-step::before {
  counter-increment: tx-step;
  content: counter(tx-step, decimal-leading-zero);
  position: absolute;
  top: -0.95rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 1.9rem;
  padding-inline: 0.6rem;
  border-radius: var(--tx-r-pill);
  background: var(--tx-navy);
  color: var(--tx-white);
  font-family: var(--tx-font-mono);
  font-size: var(--tx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tx-on-dark .tx-step {
  border-top-color: rgba(148, 195, 226, 0.25);
}

.tx-on-dark .tx-step::before {
  background: var(--tx-cyan);
  color: #04202a;
}

.tx-step h3 {
  font-size: var(--tx-fs-h4);
  margin-bottom: var(--tx-2);
}

.tx-step p {
  font-size: var(--tx-fs-sm);
  margin: 0;
}

/* ============================================================
   Header and navigation
   ============================================================ */

.tx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 16, 31, 0.42);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease),
    background-color var(--tx-dur) var(--tx-ease);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tx-header {
    background: var(--tx-midnight);
  }
}

.tx-header.is-stuck {
  background: rgba(4, 16, 31, 0.82);
  border-bottom-color: rgba(148, 195, 226, 0.18);
  box-shadow: 0 6px 24px rgba(2, 8, 16, 0.35);
}

.tx-header__inner {
  display: flex;
  align-items: center;
  gap: var(--tx-4);
  min-height: var(--tx-header-h);
}

.tx-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--tx-r-sm);
}

.tx-logo img {
  width: auto;
  height: 2.25rem;
  display: block;
}

@media (min-width: 30em) {
  .tx-logo img {
    height: 2.5rem;
  }
}

.tx-nav {
  display: none;
  margin-left: auto;
}

.tx-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-nav__list li {
  margin: 0;
}

.tx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--tx-r-sm);
  color: var(--tx-ink);
  font-size: var(--tx-fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--tx-dur-fast) var(--tx-ease), background-color var(--tx-dur-fast) var(--tx-ease);
}

.tx-nav__link:hover {
  color: var(--tx-cyan);
  background: var(--tx-blue-100);
}

.tx-nav__link[aria-current="page"],
.tx-nav__link[aria-current="true"] {
  color: var(--tx-cyan);
}

.tx-nav__link[aria-current="page"]::after,
.tx-nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  margin-top: 2.1rem;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--tx-cyan);
}

.tx-header__actions {
  display: flex;
  align-items: center;
  gap: var(--tx-2);
  margin-left: auto;
}

@media (min-width: 70em) {
  .tx-header__actions {
    margin-left: 0;
  }
}

/* Very narrow phones: shrink the logo and the language switch so the header
   row still fits at 320px without a horizontal scrollbar. */
@media (max-width: 24em) {
  .tx-header__inner {
    gap: var(--tx-2);
  }
  .tx-logo img {
    height: 1.9rem;
  }
  .tx-header__actions {
    gap: var(--tx-1);
  }
}

/* Language switch */
.tx-lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r-pill);
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.tx-lang a,
.tx-lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: var(--tx-r-pill);
  font-size: var(--tx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--tx-muted);
}

.tx-lang a:hover {
  color: var(--tx-cyan);
  background: var(--tx-blue-100);
}

@media (max-width: 24em) {
  .tx-lang a,
  .tx-lang span {
    min-width: 2.1rem;
    padding-inline: 0.3rem;
  }
}

.tx-lang [aria-current="true"] {
  background: var(--tx-blue);
  color: var(--tx-white);
}

.tx-header__cta {
  display: none;
}

@media (min-width: 70em) {
  .tx-nav {
    display: block;
  }
  .tx-header__cta {
    display: inline-flex;
  }
}

/* Language suggestion bar */
.tx-lang-bar {
  border-bottom: 1px solid var(--tx-border);
  background: var(--tx-blue-100);
}

.tx-lang-bar[hidden] {
  display: none !important;
}

.tx-lang-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tx-2) var(--tx-4);
  padding-block: var(--tx-2);
}

.tx-lang-bar p {
  margin: 0;
  font-size: var(--tx-fs-sm);
  color: var(--tx-ink);
}

.tx-lang-bar .tx-btn {
  margin-left: auto;
}

.tx-lang-bar .tx-link-arrow,
.tx-lang-bar .tx-btn--ghost {
  color: var(--tx-cyan);
}

.tx-lang-bar .tx-btn--ghost:hover {
  background: var(--tx-blue-100);
}

/* Mobile menu toggle */
.tx-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r);
  background: rgba(255, 255, 255, 0.05);
  color: var(--tx-ink);
  cursor: pointer;
}

@media (min-width: 70em) {
  .tx-burger {
    display: none;
  }
}

.tx-burger__box {
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
}

.tx-burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--tx-dur) var(--tx-ease), opacity var(--tx-dur-fast) var(--tx-ease);
}

.tx-burger__box span:nth-child(1) {
  top: 0;
}
.tx-burger__box span:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}
.tx-burger__box span:nth-child(3) {
  bottom: 0;
}

.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(1) {
  transform: translateY(0.395rem) rotate(45deg);
}
.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(2) {
  opacity: 0;
}
.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(3) {
  transform: translateY(-0.395rem) rotate(-45deg);
}

/* Mobile panel */
.tx-mobile-nav {
  position: fixed;
  inset: var(--tx-header-h) 0 0;
  z-index: 99;
  background: var(--tx-midnight);
  border-top: 1px solid var(--tx-border);
  padding: var(--tx-5) var(--tx-gutter) var(--tx-8);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--tx-4);
}

.tx-mobile-nav[hidden] {
  display: none !important;
}

@media (min-width: 70em) {
  .tx-mobile-nav {
    display: none !important;
  }
}

.tx-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.tx-mobile-nav li {
  margin: 0;
}

.tx-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--tx-border);
  color: var(--tx-ink);
  font-size: var(--tx-fs-lg);
  font-weight: 600;
  text-decoration: none;
}

.tx-mobile-nav a[aria-current="page"],
.tx-mobile-nav a[aria-current="true"] {
  color: var(--tx-cyan);
}

.tx-mobile-nav__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tx-3);
  margin-top: auto;
}

body.tx-no-scroll {
  overflow: hidden;
}

/* ============================================================
   Breadcrumbs
   ============================================================ */

.tx-breadcrumb {
  padding-top: var(--tx-4);
  font-size: var(--tx-fs-sm);
}

.tx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--tx-muted);
  font-size: var(--tx-fs-sm);
}

.tx-breadcrumb li + li::before {
  content: "/";
  color: var(--tx-border-strong);
}

.tx-breadcrumb a {
  color: var(--tx-muted);
  text-decoration: none;
}

.tx-breadcrumb a:hover {
  color: var(--tx-blue-700);
  text-decoration: underline;
}

.tx-breadcrumb [aria-current="page"] {
  color: var(--tx-ink);
  font-weight: 600;
}

.tx-on-dark .tx-breadcrumb li,
.tx-on-dark .tx-breadcrumb a {
  color: var(--tx-on-dark-muted);
}

.tx-on-dark .tx-breadcrumb [aria-current="page"] {
  color: var(--tx-on-dark);
}

/* ============================================================
   Accordion (FAQ)
   ============================================================ */

.tx-accordion {
  display: grid;
  gap: var(--tx-3);
}

.tx-accordion__item {
  border: 1px solid var(--tx-surface-border);
  border-radius: var(--tx-r);
  background: var(--tx-surface);
  overflow: hidden;
  transition: border-color var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease);
}

.tx-accordion__item:has([aria-expanded="true"]),
.tx-accordion__item[open] {
  border-color: rgba(11, 123, 208, 0.35);
  box-shadow: var(--tx-shadow);
}

.tx-accordion__btn {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tx-4);
  width: 100%;
  min-height: 3.5rem;
  padding: var(--tx-4);
  border: 0;
  background: none;
  color: var(--tx-text);
  font-family: var(--tx-font-display);
  font-size: var(--tx-fs-lg);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.tx-accordion__btn::-webkit-details-marker {
  display: none;
}

.tx-accordion__icon {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--tx-border-strong);
  transition: background-color var(--tx-dur-fast) var(--tx-ease),
    border-color var(--tx-dur-fast) var(--tx-ease), transform var(--tx-dur) var(--tx-ease);
}

.tx-accordion__icon::before,
.tx-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--tx-dur) var(--tx-ease), opacity var(--tx-dur-fast) var(--tx-ease);
}

.tx-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

[aria-expanded="true"] .tx-accordion__icon,
[open] .tx-accordion__icon {
  background: var(--tx-blue);
  border-color: var(--tx-blue);
  color: #fff;
}

[aria-expanded="true"] .tx-accordion__icon::after,
[open] .tx-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.tx-accordion__panel {
  padding: 0 var(--tx-4) var(--tx-4);
}

.tx-accordion__panel > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid var(--tx-border);
  padding-top: var(--tx-4);
}

.tx-on-dark .tx-accordion__panel > :first-child {
  border-top-color: rgba(148, 195, 226, 0.2);
}

/* ============================================================
   Tabs (audience panels)
   ============================================================ */

.tx-tabs__list {
  display: grid;
  gap: var(--tx-2);
  margin-bottom: var(--tx-5);
}

@media (min-width: 44em) {
  .tx-tabs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tx-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-height: 4.25rem;
  padding: var(--tx-4);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r);
  background: var(--tx-white);
  color: var(--tx-muted);
  font-family: var(--tx-font-display);
  font-size: var(--tx-fs-lg);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--tx-dur) var(--tx-ease), color var(--tx-dur) var(--tx-ease),
    background-color var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease);
}

.tx-tab small {
  font-family: var(--tx-font-sans);
  font-size: var(--tx-fs-sm);
  font-weight: 500;
  color: var(--tx-muted);
}

.tx-tab:hover {
  border-color: var(--tx-border-strong);
  background: var(--tx-bg);
}

.tx-tab[aria-selected="true"] {
  border-color: var(--tx-blue);
  color: var(--tx-navy);
  background: var(--tx-white);
  box-shadow: 0 0 0 1px var(--tx-blue), var(--tx-shadow);
}

.tx-tabpanel {
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r-lg);
  background: var(--tx-white);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  box-shadow: var(--tx-shadow-sm);
}

.tx-tabpanel:focus-visible {
  outline: var(--tx-focus);
  outline-offset: var(--tx-focus-offset);
}

.tx-tabpanel + .tx-tabpanel {
  margin-top: var(--tx-4);
}

/* ============================================================
   Forms
   ============================================================ */

.tx-form {
  display: grid;
  gap: var(--tx-5);
}

.tx-field {
  display: grid;
  gap: 0.4rem;
}

.tx-field > label,
.tx-fieldset__legend {
  font-size: var(--tx-fs-sm);
  font-weight: 700;
  color: var(--tx-ink);
}

.tx-field__hint {
  font-size: var(--tx-fs-xs);
  color: var(--tx-muted);
}

.tx-req {
  color: var(--tx-danger);
  font-weight: 700;
}

.tx-input,
.tx-select,
.tx-textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--tx-border-strong);
  border-radius: var(--tx-r);
  background: var(--tx-white);
  color: var(--tx-ink);
  font-family: inherit;
  font-size: max(1rem, var(--tx-fs-base));
  line-height: 1.5;
  transition: border-color var(--tx-dur-fast) var(--tx-ease), box-shadow var(--tx-dur-fast) var(--tx-ease);
}

.tx-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.tx-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23536578'%3E%3Cpath d='M12 15.4 6.6 10l1.1-1.1 4.3 4.3 4.3-4.3L17.4 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.35rem;
  padding-right: 2.6rem;
}

.tx-input:focus,
.tx-select:focus,
.tx-textarea:focus {
  outline: none;
  border-color: var(--tx-blue);
  box-shadow: 0 0 0 3px rgba(11, 123, 208, 0.18);
}

.tx-input[aria-invalid="true"],
.tx-select[aria-invalid="true"],
.tx-textarea[aria-invalid="true"] {
  border-color: var(--tx-danger);
}

.tx-input[aria-invalid="true"]:focus,
.tx-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

.tx-error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--tx-fs-xs);
  font-weight: 600;
  color: var(--tx-danger);
}

.tx-error.is-visible {
  display: flex;
}

.tx-error svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.tx-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--tx-3);
}

.tx-fieldset__legend {
  padding: 0;
  margin-bottom: var(--tx-1);
}

/* Choice cards (radio) */
.tx-choices {
  display: grid;
  gap: var(--tx-2);
}

@media (min-width: 40em) {
  .tx-choices--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tx-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--tx-3);
  min-height: 3.25rem;
  padding: var(--tx-3) var(--tx-4);
  border: 1px solid var(--tx-border-strong);
  border-radius: var(--tx-r);
  background: var(--tx-white);
  cursor: pointer;
  transition: border-color var(--tx-dur-fast) var(--tx-ease),
    background-color var(--tx-dur-fast) var(--tx-ease), box-shadow var(--tx-dur-fast) var(--tx-ease);
}

.tx-choice:hover {
  border-color: var(--tx-blue);
  background: var(--tx-bg);
}

.tx-choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--tx-blue);
}

.tx-choice__text {
  display: grid;
  gap: 0.15rem;
  font-size: var(--tx-fs-base);
  font-weight: 600;
  color: var(--tx-ink);
}

.tx-choice__text small {
  font-weight: 400;
  color: var(--tx-muted);
  font-size: var(--tx-fs-xs);
  line-height: 1.5;
}

.tx-choice:has(input:checked) {
  border-color: var(--tx-blue);
  background: var(--tx-blue-100);
  box-shadow: 0 0 0 1px var(--tx-blue);
}

.tx-choice:has(input:focus-visible) {
  outline: var(--tx-focus);
  outline-offset: var(--tx-focus-offset);
}

/* Consent checkbox */
.tx-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--tx-3);
  padding: var(--tx-4);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r);
  background: var(--tx-bg);
  font-size: var(--tx-fs-sm);
  color: var(--tx-muted);
  cursor: pointer;
}

.tx-consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--tx-blue);
}

.tx-consent:has(input:focus-visible) {
  outline: var(--tx-focus);
  outline-offset: var(--tx-focus-offset);
}

/* Honeypot: hidden from people, reachable by naive bots. */
.tx-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Multi-step wizard (contact + solution finder)
   ============================================================ */

.tx-wizard {
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-r-xl);
  background: var(--tx-white);
  box-shadow: var(--tx-shadow-lg);
  overflow: hidden;
}

.tx-wizard__head {
  padding: var(--tx-5) clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--tx-border);
  background: linear-gradient(180deg, var(--tx-bg) 0%, var(--tx-white) 100%);
}

.tx-progress {
  display: flex;
  align-items: center;
  gap: var(--tx-2);
  margin-bottom: var(--tx-3);
}

.tx-progress__label {
  font-size: var(--tx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-muted);
  white-space: nowrap;
}

.tx-progress__track {
  flex: 1;
  height: 6px;
  border-radius: var(--tx-r-pill);
  background: var(--tx-border);
  overflow: hidden;
}

.tx-progress__bar {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tx-blue) 0%, var(--tx-cyan) 100%);
  transition: width var(--tx-dur-slow) var(--tx-ease);
}

.tx-wizard__title {
  margin: 0;
  font-size: var(--tx-fs-h3);
}

.tx-wizard__intro {
  margin: var(--tx-2) 0 0;
  font-size: var(--tx-fs-sm);
}

.tx-wizard__body {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

/* The status area only takes space once a state is actually shown. */
.tx-wizard__states:not(:has(> :not([hidden]))) {
  display: none;
}

.tx-wizard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tx-3);
  padding: var(--tx-4) clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--tx-border);
  background: var(--tx-bg);
}

.tx-wizard__foot .tx-btn {
  flex: 1 1 auto;
}

@media (min-width: 40em) {
  .tx-wizard__foot .tx-btn {
    flex: 0 0 auto;
  }
  .tx-wizard__foot .tx-wizard__spacer {
    flex: 1;
  }
}

/* Steps are often fieldsets: strip the default browser frame and legend inset. */
.tx-step-panel {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.tx-step-panel > legend {
  display: block;
  width: 100%;
  padding: 0;
  float: left;
}

.tx-step-panel > legend + * {
  clear: both;
}

.tx-step-panel[hidden] {
  display: none !important;
}

/* Status regions */
.tx-status {
  display: grid;
  gap: var(--tx-2);
  padding: var(--tx-4);
  border-radius: var(--tx-r);
  border: 1px solid var(--tx-border);
  background: var(--tx-bg);
  font-size: var(--tx-fs-sm);
}

.tx-status--success {
  border-color: rgba(18, 121, 108, 0.35);
  background: var(--tx-success-bg);
  color: #0a4f46;
}

.tx-status--error {
  border-color: rgba(180, 35, 24, 0.3);
  background: var(--tx-danger-bg);
  color: #7a1a12;
}

.tx-status h3 {
  margin: 0;
  font-size: var(--tx-fs-h4);
  color: inherit;
}

.tx-status p {
  color: inherit;
  margin: 0;
}

.tx-spinner {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tx-spin 0.8s linear infinite;
}

@keyframes tx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Footer
   ============================================================ */

.tx-footer {
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(11, 123, 208, 0.25) 0%, rgba(11, 123, 208, 0) 55%),
    linear-gradient(180deg, var(--tx-navy) 0%, var(--tx-midnight) 100%);
  color: var(--tx-on-dark-muted);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--tx-6);
}

.tx-footer__grid {
  display: grid;
  gap: var(--tx-7);
}

@media (min-width: 44em) {
  .tx-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .tx-footer__grid {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: var(--tx-6);
  }
}

.tx-footer__brand img {
  height: 2.4rem;
  width: auto;
  margin-bottom: var(--tx-4);
}

.tx-footer__tagline {
  font-family: var(--tx-font-display);
  font-size: var(--tx-fs-xl);
  font-weight: 700;
  color: var(--tx-white);
  margin: 0 0 var(--tx-3);
  letter-spacing: -0.02em;
}

.tx-footer__about {
  max-width: 34rem;
  font-size: var(--tx-fs-sm);
  color: var(--tx-on-dark-muted);
}

.tx-footer h2 {
  font-size: var(--tx-fs-sm);
  font-family: var(--tx-font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-white);
  margin-bottom: var(--tx-3);
}

.tx-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.tx-footer li {
  margin: 0;
}

.tx-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--tx-on-dark-muted);
  font-size: var(--tx-fs-sm);
  text-decoration: none;
}

.tx-footer a:hover {
  color: var(--tx-cyan);
  text-decoration: underline;
}

.tx-footer--slim {
  padding-block: var(--tx-6);
}

.tx-footer--slim .tx-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tx-3) var(--tx-5);
  margin-top: var(--tx-8);
  padding-top: var(--tx-5);
  border-top: 1px solid rgba(148, 195, 226, 0.18);
  font-size: var(--tx-fs-xs);
}

.tx-footer__bottom p {
  margin: 0;
  font-size: inherit;
  color: var(--tx-on-dark-muted);
}

.tx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-1) var(--tx-4);
  margin-left: auto;
}

.tx-footer__legal a {
  min-height: 2.25rem;
  font-size: var(--tx-fs-xs);
}

/* ============================================================
   Button micro-interactions and sizes
   ============================================================ */

.tx-btn--lg {
  min-height: 3.4rem;
  padding: 0.9rem 2rem;
  font-size: var(--tx-fs-lg);
}

/* A sheen that crosses the button once on hover. It is a single translated
   gradient inside an overflow-hidden box: no repaint of the label, no layout. */
.tx-btn--primary,
.tx-btn--accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tx-btn--primary::after,
.tx-btn--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 76%
  );
  transform: translateX(-120%);
  transition: transform 620ms var(--tx-ease);
  pointer-events: none;
}

.tx-btn--primary:hover::after,
.tx-btn--accent:hover::after,
.tx-btn--primary:focus-visible::after,
.tx-btn--accent:focus-visible::after {
  transform: translateX(120%);
}

.tx-btn--primary:hover {
  box-shadow: 0 10px 30px rgba(11, 123, 208, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .tx-btn:hover {
    transform: none;
  }
  .tx-btn--primary::after,
  .tx-btn--accent::after {
    display: none;
  }
}

/* ============================================================
   Contact form layout
   ============================================================ */

.tx-form--contact {
  gap: var(--tx-4);
  padding: clamp(1.35rem, 1.1rem + 1.5vw, 2rem);
  border: 1px solid rgba(148, 195, 226, 0.22);
  border-radius: var(--tx-r-xl);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tx-form--contact .tx-fieldset {
  gap: var(--tx-4);
}

.tx-field-row {
  display: grid;
  gap: var(--tx-4);
}

@media (min-width: 34em) {
  .tx-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tx-field__opt {
  font-size: var(--tx-fs-xs);
  font-weight: 500;
  color: var(--tx-muted);
  text-transform: lowercase;
}

.tx-form__foot {
  display: grid;
  gap: var(--tx-3);
  align-items: center;
}

@media (min-width: 40em) {
  .tx-form__foot {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--tx-4);
  }
}

.tx-form__privacy {
  margin: 0;
  font-size: var(--tx-fs-xs);
}

.tx-form__noscript {
  margin: 0;
  padding: var(--tx-3) var(--tx-4);
  border: 1px solid var(--tx-warning-border);
  border-radius: var(--tx-r);
  background: var(--tx-warning-bg);
  color: #f0c987;
  font-size: var(--tx-fs-sm);
}

.tx-turnstile {
  min-height: 65px;
}

.tx-turnstile:empty {
  min-height: 0;
}

/* Submitting: the label swaps to "Sending" and the spinner joins it, so the
   button never changes width enough to shift the row. */
.tx-btn[aria-busy="true"] {
  cursor: progress;
}

/* ---------- Form fields on a dark section ---------- */

.tx-on-dark .tx-field > label,
.tx-on-dark .tx-fieldset__legend {
  color: var(--tx-on-dark);
}

.tx-on-dark .tx-field__opt,
.tx-on-dark .tx-field__hint {
  color: var(--tx-on-dark-muted);
}

.tx-on-dark .tx-req {
  color: var(--tx-sky);
}

.tx-on-dark .tx-input,
.tx-on-dark .tx-select,
.tx-on-dark .tx-textarea {
  border-color: rgba(148, 195, 226, 0.28);
  background: rgba(4, 16, 31, 0.55);
  color: var(--tx-on-dark);
}

.tx-on-dark .tx-input::placeholder,
.tx-on-dark .tx-textarea::placeholder {
  color: rgba(167, 190, 210, 0.65);
}

.tx-on-dark .tx-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A7BED2'%3E%3Cpath d='M12 15.4 6.6 10l1.1-1.1 4.3 4.3 4.3-4.3L17.4 10z'/%3E%3C/svg%3E");
}

/* The dark rule above uses the `background` shorthand, which resets the
   chevron's repeat, position and size along with the image. Restate them. */
.tx-on-dark .tx-select {
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.35rem;
}

/* A native select drops its options into the operating system menu, which
   uses the page's own colours: state them so the list is never light-on-light. */
.tx-on-dark .tx-select option {
  background: var(--tx-navy);
  color: var(--tx-on-dark);
}

.tx-on-dark .tx-input:focus,
.tx-on-dark .tx-select:focus,
.tx-on-dark .tx-textarea:focus {
  border-color: var(--tx-cyan);
  box-shadow: 0 0 0 3px rgba(41, 184, 238, 0.22);
}

.tx-on-dark .tx-input[aria-invalid="true"],
.tx-on-dark .tx-select[aria-invalid="true"],
.tx-on-dark .tx-textarea[aria-invalid="true"] {
  border-color: #ff8f85;
}

.tx-on-dark .tx-error {
  color: #ffb4ac;
}

.tx-on-dark .tx-status {
  border-color: rgba(148, 195, 226, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx-on-dark);
}

.tx-on-dark .tx-status--success {
  border-color: rgba(86, 217, 249, 0.45);
  background: rgba(86, 217, 249, 0.12);
  color: #b6f5ea;
}

.tx-on-dark .tx-status--error {
  border-color: rgba(255, 143, 133, 0.4);
  background: rgba(255, 143, 133, 0.1);
  color: #ffc9c3;
}

.tx-on-dark .tx-status strong {
  color: inherit;
}

/* A quiet card for supporting copy next to something more prominent. */
.tx-card--quiet {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 195, 226, 0.2);
}

/* The contact status is a paragraph, not a stack of blocks: keep its title
   and its sentence on the same flow line. */
p.tx-status {
  display: block;
}

p.tx-status[hidden] {
  display: none !important;
}
