@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --tb-navy: #0c2340;
  --tb-navy-mid: #14345c;
  --tb-blue: #0c63ce;
  --tb-blue-dark: #0a56b3;
  --tb-blue-deep: #084792;
  --tb-blue-soft: #e8f1fc;
  --tb-blue-hero-top: #0d6ad8;
  --tb-blue-hero-bot: #0a5ec4;
  --tb-green: #1b8b32;
  --tb-green-dark: #167529;
  --tb-text: #1a1a1a;
  --tb-muted: #555555;
  --tb-faint: #888888;
  --tb-border: #e0e0e0;
  --tb-border-strong: #c8c8c8;
  --tb-bg: #f0f0f0;
  --tb-white: #ffffff;
  --tb-success: #1b8b32;
  --tb-success-soft: #e8f6eb;
  --tb-danger: #c41e3a;
  --tb-danger-soft: #fdecee;
  --tb-warning: #b54708;
  --tb-warning-soft: #fffaeb;

  --tb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --tb-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --tb-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.14);
  --tb-ring: 0 0 0 3px rgba(12, 99, 206, 0.22);

  --tb-radius-sm: 4px;
  --tb-radius: 6px;
  --tb-radius-lg: 8px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Consolas, monospace;
  --page-max: 1180px;
  --flow-max: 1080px;
  --tb-logo-color: var(--tb-blue);
  --tb-logo-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--tb-text);
  background: var(--tb-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--tb-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--tb-blue-soft);
  color: var(--tb-blue-dark);
  padding: 0.12em 0.45em;
  border-radius: 4px;
}

/* ========== Chase-style chrome ========== */
.tb-topbar {
  background: var(--tb-white);
  border-bottom: 1px solid var(--tb-border);
  font-size: 0.875rem;
}

.tb-topbar-inner,
.tb-nav-inner,
.tb-page,
.tb-hero-inner,
.tb-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.tb-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
}

.tb-top-links {
  display: flex;
  gap: 0;
  align-items: center;
  color: var(--tb-text);
}

.tb-top-links span,
.tb-top-links a {
  color: var(--tb-text);
  padding: 0.65rem 0.9rem;
  cursor: default;
  font-weight: 500;
  font-size: 0.875rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.tb-top-links span.is-active,
.tb-top-links a.is-active {
  color: var(--tb-blue);
  border-bottom-color: var(--tb-blue);
  font-weight: 600;
}

.tb-top-links--right span,
.tb-top-links--right a {
  color: var(--tb-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  border-bottom: none;
  padding: 0.5rem 0.65rem;
}

.tb-nav {
  background: var(--tb-white);
  border-bottom: 1px solid var(--tb-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1.5rem;
}

.tb-logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  min-width: 0;
}

.tb-logo-full {
  display: block;
  height: calc(32px * var(--tb-logo-scale, 1));
  width: auto;
  max-height: 48px;
  object-fit: contain;
}

.tb-logo-icon {
  width: calc(28px * var(--tb-logo-scale, 1));
  height: calc(28px * var(--tb-logo-scale, 1));
  max-width: 72px;
  max-height: 72px;
  border-radius: 6px;
  background: var(--tb-logo-color, var(--tb-blue));
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tb-logo-icon--image {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.tb-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tb-logo-text {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: calc(1.55rem * var(--tb-logo-scale, 1));
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}

.tb-logo-text span {
  color: inherit;
}

.tb-nav-links {
  display: flex;
  gap: 0.15rem 1.15rem;
  font-size: 0.9375rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tb-nav-links > span,
.tb-nav-links > a {
  color: var(--tb-text);
  font-weight: 500;
  white-space: nowrap;
}

.tb-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue-deep);
  font-weight: 600;
  font-size: 0.8125rem;
}

.tb-step-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tb-blue);
}

/* Hero (flow pages) */
.tb-hero {
  background: linear-gradient(105deg, var(--tb-blue-hero-top) 0%, var(--tb-blue-hero-bot) 55%, #0954b0 100%);
  color: white;
  padding: 2.75rem 0 3rem;
}

.tb-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.tb-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 20ch;
}

.tb-hero p {
  margin: 0;
  opacity: 0.95;
  max-width: 620px;
  line-height: 1.55;
  font-size: 1.05rem;
  font-weight: 400;
}

.tb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.35rem;
  font-size: 0.875rem;
  opacity: 0.92;
}

.tb-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tb-hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

/* Layout */
.tb-page {
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
  width: 100%;
}

.tb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.tb-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.tb-flow-layout--single {
  max-width: 720px;
}

@media (max-width: 960px) {
  .tb-grid,
  .tb-flow-layout {
    grid-template-columns: 1fr;
  }

  .tb-nav-links--main {
    display: none;
  }
}

/* Cards */
.tb-card {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-lg);
  box-shadow: var(--tb-shadow);
  padding: 2.25rem 2.5rem 2.5rem;
}

.tb-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--tb-navy);
}

.tb-card .subtitle {
  margin: 0 0 1.75rem;
  color: var(--tb-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tb-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-faint);
  margin: 0.25rem 0 1rem;
}

.tb-divider {
  height: 1px;
  background: var(--tb-border);
  margin: 0.5rem 0 1.75rem;
  border: 0;
}

/* Fields */
.tb-field {
  margin-bottom: 1.35rem;
}

.tb-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--tb-text);
}

.tb-field input,
.tb-field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--tb-border-strong);
  border-radius: var(--tb-radius-sm);
  font: inherit;
  font-size: 1rem;
  background: var(--tb-white);
  color: var(--tb-text);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tb-field input::placeholder {
  color: var(--tb-faint);
}

.tb-field input:hover,
.tb-field select:hover {
  border-color: #aaa;
}

.tb-field input:focus,
.tb-field select:focus {
  outline: none;
  border-color: var(--tb-blue);
  box-shadow: var(--tb-ring);
}

.tb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.tb-row:has(> .tb-field:nth-child(3):last-child) {
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
}

@media (max-width: 640px) {
  .tb-row,
  .tb-row:has(> .tb-field:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}

/* Upload */
.tb-upload {
  border: 1.5px dashed var(--tb-border-strong);
  border-radius: var(--tb-radius);
  padding: 2rem 1.25rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  display: block;
  min-height: 168px;
}

.tb-upload:hover,
.tb-upload.dragover {
  border-color: var(--tb-blue);
  background: var(--tb-blue-soft);
}

.tb-upload input {
  display: none;
}

.tb-upload-icon {
  margin-bottom: 0.55rem;
  color: var(--tb-blue);
}

.tb-upload-icon svg {
  width: 36px;
  height: 36px;
}

.tb-upload small {
  display: block;
  color: var(--tb-faint);
  margin-top: 0.45rem;
  font-size: 0.75rem;
}

/* Buttons */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--tb-radius-sm);
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tb-btn:active {
  transform: translateY(1px);
}

.tb-btn-primary {
  background: var(--tb-blue);
  color: white;
  width: 100%;
}

.tb-btn-primary:hover {
  background: var(--tb-blue-dark);
}

.tb-btn-green {
  background: var(--tb-green);
  color: white;
  width: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.tb-btn-green:hover {
  background: var(--tb-green-dark);
}

.tb-btn-outline {
  background: white;
  color: var(--tb-blue);
  border: 1.5px solid var(--tb-blue);
  width: 100%;
}

.tb-btn-outline:hover {
  background: var(--tb-blue-soft);
}

.tb-btn-success {
  background: var(--tb-success);
  color: white;
}

.tb-btn-success:hover {
  background: var(--tb-green-dark);
}

.tb-btn-danger {
  background: white;
  color: var(--tb-danger);
  border: 1px solid #f0b4ae;
}

.tb-btn-danger:hover {
  background: var(--tb-danger-soft);
  border-color: var(--tb-danger);
}

/* Side help */
.tb-aside {
  position: sticky;
  top: 92px;
}

.tb-aside-card {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-lg);
  box-shadow: var(--tb-shadow-sm);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1rem;
}

.tb-aside-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tb-navy);
}

.tb-aside-card p,
.tb-aside-card li {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.tb-aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tb-aside-card li + li {
  margin-top: 0.45rem;
}

.tb-aside-secure {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--tb-success-soft);
  border: 1px solid #c6e4d2;
  border-radius: var(--tb-radius);
  padding: 1rem 1.05rem;
}

.tb-aside-secure strong {
  display: block;
  color: var(--tb-success);
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.tb-aside-secure p {
  margin: 0;
  color: #2f6b4a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.tb-lock-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--tb-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-lock-icon svg {
  width: 15px;
  height: 15px;
}

.tb-alert {
  padding: 1.05rem 1.2rem;
  border-radius: var(--tb-radius);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tb-alert-info {
  background: var(--tb-blue-soft);
  border: 1px solid #c5daf0;
  color: #0d4d84;
}

.tb-alert-success {
  background: var(--tb-success-soft);
  border: 1px solid #b8ddc7;
  color: #0f5c39;
}

.tb-alert-error {
  background: var(--tb-danger-soft);
  border: 1px solid #f0c0bb;
  color: #912018;
}

/* Transactions */
.tb-transaction-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tb-transaction {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-lg);
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--tb-shadow-sm);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.2s ease;
}

.tb-transaction:hover {
  box-shadow: var(--tb-shadow);
}

.tb-txn-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-txn-icon svg {
  width: 24px;
  height: 24px;
}

.tb-transaction.processing {
  opacity: 0.6;
  pointer-events: none;
}

.tb-transaction.approved {
  animation: slideOutRight 0.55s ease forwards;
  border-color: #b8ddc7;
}

.tb-transaction.declined {
  animation: slideOutLeft 0.55s ease forwards;
  border-color: #f0c0bb;
}

@keyframes slideOutRight {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes slideOutLeft {
  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}

.tb-amount {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--tb-navy);
  letter-spacing: -0.02em;
}

.tb-merchant {
  font-size: 1.08rem;
  font-weight: 600;
}

.tb-meta {
  color: var(--tb-muted);
  font-size: 0.86rem;
}

.tb-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tb-actions .tb-btn {
  min-width: 110px;
  padding: 0.72rem 1rem;
}

@media (max-width: 720px) {
  .tb-transaction {
    grid-template-columns: 52px 1fr;
  }

  .tb-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .tb-actions .tb-btn {
    flex: 1;
  }
}

.tb-pulse {
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.tb-footer-note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--tb-muted);
  text-align: center;
}

/* Landing / security start */
.tb-landing {
  max-width: var(--flow-max);
  margin: 0 auto;
}

.tb-landing-hero-card {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-lg);
  box-shadow: var(--tb-shadow);
  padding: 3rem 3.25rem;
  margin-bottom: 2rem;
}

.tb-landing-hero-card--solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  padding: 3.25rem 3rem 3rem;
}

.tb-landing-hero-card--solo h2 {
  width: 100%;
  text-align: center;
}

.tb-landing-hero-card--solo > p {
  margin: 0 auto 1.75rem;
  max-width: 38ch;
  text-align: center;
  color: var(--tb-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.tb-landing-hero-card--solo .tb-landing-cta {
  width: min(100%, 280px);
  max-width: 280px;
  margin: 0 auto;
  display: inline-flex;
  align-self: center;
}

.tb-landing-hero-card--solo .tb-help-line {
  width: 100%;
  margin-top: 1.15rem;
  text-align: center;
}

.tb-landing-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-landing-icon svg {
  width: 28px;
  height: 28px;
}

.tb-landing-hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--tb-navy);
  line-height: 1.2;
}

.tb-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .tb-feature-grid {
    grid-template-columns: 1fr;
  }
}

.tb-feature {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--tb-navy);
}

.tb-feature p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tb-feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.tb-flow-shell {
  max-width: var(--flow-max);
  margin: 0 auto;
  width: 100%;
}

.tb-form-card {
  animation: fadeSlideUp 0.45s ease both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tb-page-enter {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tb-btn-primary:disabled,
.tb-btn-primary.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.tb-btn.is-loading::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Overlay */
.tb-flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 35, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
  backdrop-filter: blur(3px);
}

.tb-flow-overlay[hidden] {
  display: none !important;
}

.tb-flow-modal {
  background: white;
  border-radius: var(--tb-radius-lg);
  padding: 2.5rem 2.15rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--tb-shadow-lg);
  animation: modalPop 0.4s ease;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tb-flow-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--tb-success-soft);
  color: var(--tb-success);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkPop 0.45s ease 0.1s both;
}

@keyframes checkPop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.tb-flow-modal h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tb-navy);
}

.tb-flow-modal p {
  margin: 0 0 1rem;
  color: var(--tb-muted);
  line-height: 1.55;
  font-size: 0.97rem;
}

.tb-flow-countdown {
  font-size: 0.8125rem;
  color: var(--tb-blue);
  margin-bottom: 1.15rem;
  min-height: 1.25rem;
  font-weight: 600;
}

.tb-flow-locked {
  overflow: hidden;
}

.tb-complete-panel {
  text-align: center;
  padding: 3.25rem 2.25rem;
}

.tb-complete-panel .tb-flow-check {
  margin-bottom: 1.35rem;
}

.tb-ref-inline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tb-muted);
  margin: 0 0 1.5rem;
  background: #f7f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  display: inline-block;
}

.tb-code-field input {
  letter-spacing: 0.4em;
  font-size: 1.45rem;
  text-align: center;
  font-weight: 600;
  font-family: var(--font-mono);
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.tb-scan-bar {
  height: 4px;
  background: var(--tb-blue-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}

.tb-scan-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--tb-blue);
  border-radius: 999px;
  animation: scanProgress 1.5s ease forwards;
}

@keyframes scanProgress {
  to {
    width: 100%;
  }
}

/* Footer */
.tb-site-footer {
  margin-top: auto;
  background: var(--tb-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.5rem;
}

.tb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .tb-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .tb-footer-grid {
    grid-template-columns: 1fr;
  }
}

.tb-footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.tb-footer-brand span {
  color: #7eb7e8;
}

.tb-footer-grid p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 28ch;
}

.tb-footer-grid h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tb-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-footer-grid li {
  font-size: 0.86rem;
  padding: 0.28rem 0;
  color: rgba(255, 255, 255, 0.65);
}

.tb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.tb-form-actions {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.tb-help-line {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--tb-muted);
}

/* ========== Login page (Chase-matched layout) ========== */
body.tb-login-page {
  background: var(--tb-white);
}

.tb-login-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

.tb-login-header {
  background: var(--tb-white);
  border-bottom: 1px solid #ececec;
}

.tb-login-logo-row {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-top: 0.4rem;
  padding-bottom: 0.1rem;
}

.tb-login-page .tb-logo-full {
  height: calc(34px * var(--tb-logo-scale, 1));
  max-height: 40px;
}

.tb-login-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  align-items: center;
  padding-top: 0.15rem;
  padding-bottom: 0.95rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
}

.tb-login-nav-row span {
  white-space: nowrap;
  cursor: default;
}

.tb-login-nav-row span:hover {
  color: var(--tb-blue);
}

.tb-login-hero {
  background: linear-gradient(90deg, #002e6d 0%, #00408f 28%, #0052ad 58%, #005eb8 100%);
  padding: 3rem 0 3.25rem;
  color: #fff;
}

.tb-login-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.75rem;
  min-height: 300px;
}

.tb-login-promo {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1 1 auto;
  max-width: 680px;
  min-width: 0;
}

.tb-login-promo-badge {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a7adf 0%, #0c63ce 55%, #0a54b8 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem;
  gap: 0.05rem;
}

.tb-login-badge-line {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
}

.tb-login-badge-amount {
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tb-login-promo-copy {
  min-width: 0;
}

.tb-login-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.tb-login-promo-copy h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.tb-login-promo-copy > p:not(.tb-login-eyebrow) {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 36ch;
  opacity: 0.96;
}

.tb-login-promo-copy .tb-btn-green {
  min-width: 168px;
  height: 44px;
  padding: 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1f8b2f;
}

.tb-login-promo-copy .tb-btn-green:hover {
  background: #187528;
}

.tb-login-card {
  width: 356px;
  flex: 0 0 356px;
  max-width: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
  padding: 1.85rem 1.65rem 1.55rem;
  color: var(--tb-text);
}

.tb-login-card .tb-btn-primary,
.tb-login-card .tb-btn-outline {
  height: 46px;
  font-size: 1rem;
  border-radius: 4px;
}

.tb-login-card .tb-btn-primary {
  background: #0c63ce;
}

.tb-login-card .tb-btn-outline {
  border-width: 1.5px;
}

.tb-login-field {
  position: relative;
  margin-bottom: 1.2rem;
}

.tb-login-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #bdbdbd;
  border-radius: 0;
  padding: 1.15rem 2.75rem 0.5rem 0;
  font: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--tb-text);
}

.tb-login-field input:focus {
  outline: none;
  border-bottom-color: #0c63ce;
  box-shadow: none;
}

.tb-login-field label {
  position: absolute;
  left: 0;
  top: 1.05rem;
  color: #757575;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.15s ease;
}

.tb-login-field input:focus + label,
.tb-login-field input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.7rem;
  color: #666;
  font-weight: 600;
}

.tb-login-show {
  position: absolute;
  right: 0;
  top: 1.1rem;
  background: none;
  border: none;
  color: #0c63ce;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.tb-login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0.1rem 0 1.25rem;
  font-size: 0.8125rem;
}

.tb-login-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.tb-login-check input {
  width: 15px;
  height: 15px;
  accent-color: #0c63ce;
}

.tb-login-link {
  color: #0c63ce;
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.tb-login-link::after {
  content: "›";
  font-size: 1.05rem;
  line-height: 1;
}

.tb-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #9e9e9e;
  font-size: 0.8rem;
}

.tb-login-divider::before,
.tb-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.tb-login-links {
  margin-top: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tb-login-error {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem;
  background: var(--tb-danger-soft);
  color: var(--tb-danger);
  border-radius: 4px;
  font-size: 0.8125rem;
}

.tb-login-error.is-visible {
  display: block;
}

/* Choose section */
.tb-login-choose {
  background: #fff;
  padding: 3.25rem 0 2rem;
  text-align: center;
}

.tb-login-choose h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.tb-login-icons-img {
  display: block;
  width: min(920px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.tb-login-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tb-login-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfcfcf;
}

.tb-login-dots span.is-active {
  background: #0c63ce;
}

/* Product tiles */
.tb-login-tiles {
  background: #fff;
  padding: 1.25rem 0 3.5rem;
}

.tb-login-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.tb-login-tile {
  background: linear-gradient(145deg, #0c63ce 0%, #0a54b0 100%);
  color: #fff;
  border-radius: 10px;
  min-height: 150px;
  padding: 1.5rem 1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 6px 18px rgba(12, 99, 206, 0.2);
}

.tb-login-tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.tb-login-tile p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.92;
  max-width: 22ch;
}

.tb-login-tile-art {
  flex: 0 0 auto;
  opacity: 0.95;
  color: #fff;
}

.tb-login-tile-art svg {
  width: 88px;
  height: 64px;
}

.tb-login-footer {
  padding: 1.35rem 0;
  background: #0c2340;
}

@media (max-width: 1020px) {
  .tb-login-hero-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .tb-login-promo {
    max-width: none;
  }

  .tb-login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex-basis: auto;
  }

  .tb-login-tiles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tb-login-wrap {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .tb-login-promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .tb-login-promo-badge {
    width: 128px;
    height: 128px;
    flex-basis: 128px;
  }

  .tb-login-badge-amount {
    font-size: 2.1rem;
  }

  .tb-login-nav-row {
    gap: 0.55rem 1rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
