:root {
  /* KaamSure brand — hi-vis orange + deep navy (not safety-yellow ToolBelt) */
  --ink: #0b2340;
  --ink-soft: #3a5068;
  --muted: #5f738a;
  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --paper-3: #e8e4db;
  --line: #d9d3c7;
  --orange: #ff6a13;
  --orange-deep: #e85a00;
  --orange-soft: #fff1e6;
  --helmet-white: #f4f7fb;
  --helmet-yellow: #e8b923;
  --navy: #0b2340;
  --navy-mid: #163556;
  --ok: #1b8f46;
  --amber-star: #ff6a13;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 36px rgba(11, 35, 64, 0.1);
  --shadow-lg: 0 26px 56px rgba(11, 35, 64, 0.14);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ========== Header ========== */
.tb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(217, 211, 199, 0.85);
}

.tb-header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.tb-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.tb-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.tb-logo__img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}

.tb-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.tb-logo__text span {
  color: var(--orange);
}

.tb-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-width: 0;
}

.tb-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.tb-nav a:hover {
  color: var(--orange);
}

.tb-header__actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 0.85rem);
  justify-self: end;
  min-width: 0;
  flex-shrink: 1;
}

.tb-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.tb-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.tb-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tb-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.tb-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tb-mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: rgba(251, 250, 247, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 12px 28px rgba(11, 35, 64, 0.08);
  overflow-y: auto;
  max-height: calc(100dvh - var(--header-h));
}

.tb-mobile-nav a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
}

.tb-mobile-nav a:hover,
.tb-mobile-nav a:focus-visible {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

body.tb-menu-open {
  overflow: hidden;
}

.tb-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tb-login:hover {
  color: var(--ink);
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 11px;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tb-btn--ink {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 35, 64, 0.22);
  border-radius: 11px;
}

.tb-btn--ink:hover {
  transform: translateY(-1px);
  background: var(--navy-mid);
}

.tb-btn--orange {
  background: linear-gradient(180deg, #ff8538, var(--orange) 55%, var(--orange-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 106, 19, 0.35);
  border-radius: 11px;
}

.tb-btn--orange:hover {
  transform: translateY(-1px);
}

.tb-btn--wide {
  width: 100%;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
}

/* ========== Hero ========== */
.tb-hero {
  position: relative;
  padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3rem, 7vh, 5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 78%, rgba(255, 106, 19, 0.16), transparent 70%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f1ea 55%, #efeae1 100%);
}

.tb-hero__bg-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(11, 35, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 35, 64, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.tb-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.tb-hero__content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.tb-hero__content p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.tb-switch {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.25rem;
  padding: 0.3rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  border: 1px solid rgba(11, 35, 64, 0.9);
}

.tb-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(244, 247, 251, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tb-switch__btn.is-active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 19, 0.4);
}

.tb-switch__btn:not(.is-active):hover {
  color: #fff;
}

/* Collage — 3 columns, NO overlays on the main portrait */
.tb-collage {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: center;
}

.tb-collage__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 55%);
  height: min(280px, 50%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 19, 0.28), rgba(11, 35, 64, 0.08) 50%, transparent 72%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

.tb-collage__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.tb-collage__side--left {
  align-items: stretch;
}

.tb-collage__side--right {
  align-items: stretch;
}

/* Main portrait — nothing sits on top of this */
.tb-collage__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

.tb-collage__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.tb-collage__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 211, 199, 0.9);
  padding: 0.75rem 0.9rem;
  min-width: 0;
}

.tb-collage__card--job {
  padding: 0;
  overflow: hidden;
}

.tb-collage__card--job img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.tb-collage__card--job .body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.tb-collage__card--job strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.tb-collage__card--job span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.tb-collage__card--job .apply {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
  color: var(--ink);
  width: fit-content;
  max-width: 100%;
}

.tb-pill--hire::before {
  content: "";
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 8px 8px 2px 2px;
  background: var(--helmet-white);
  border: 1.5px solid var(--navy);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.tb-pill--tag {
  font-weight: 600;
  color: var(--ink-soft);
}

.tb-pill--tag i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tb-float-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 160px;
}

.tb-float-photo:last-child,
.tb-float-photo--site {
  max-width: 140px;
  margin-left: auto;
  aspect-ratio: 5 / 4;
}

.tb-float-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-msg {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
}

.tb-msg img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tb-msg p {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.tb-msg strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}

/* ========== Role cards ========== */
.tb-roles {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  background: var(--paper);
}

.tb-roles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tb-role {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.35rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-width: 0;
}

.tb-role:hover,
.tb-role.is-active {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 106, 19, 0.4);
}

.tb-role__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  position: relative;
}

/* White hard hat — builders / supervisors */
.tb-role[data-goto-flow="contractor"] .tb-role__icon::before {
  content: "";
  width: 26px;
  height: 14px;
  background: var(--helmet-white);
  border-radius: 12px 12px 3px 3px;
  box-shadow:
    0 8px 0 -2px var(--helmet-white),
    8px 10px 0 -6px var(--orange);
}

/* Yellow hard hat — site crew */
.tb-role[data-goto-flow="worker"] .tb-role__icon {
  background: var(--navy-mid);
}

.tb-role[data-goto-flow="worker"] .tb-role__icon::before {
  content: "";
  width: 26px;
  height: 14px;
  background: var(--helmet-yellow);
  border-radius: 12px 12px 3px 3px;
  box-shadow: 0 8px 0 -2px var(--helmet-yellow);
}

.tb-role h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.tb-role p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tb-role__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* ========== Register band ========== */
.tb-register {
  padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(3rem, 7vh, 4.5rem);
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 106, 19, 0.12), transparent 60%),
    var(--paper-2);
}

.tb-register__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.tb-register__copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.tb-register__copy h2 em {
  font-style: normal;
  color: var(--orange);
}

.tb-register__copy > p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 40ch;
}

.tb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  row-gap: 1.1rem;
  margin-bottom: 1.35rem;
}

.tb-stat {
  flex: 1 1 7rem;
  min-width: 0;
  padding: 0;
}

.tb-stat:first-child {
  padding-left: 0;
}

.tb-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.tb-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.tb-quote {
  padding-top: 0.25rem;
  max-width: 44ch;
}

.tb-quote__stars {
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.tb-quote p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 0.45rem;
}

.tb-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.tb-flow-copy {
  display: none;
}

.tb-flow-copy.is-active {
  display: block;
}

/* Form panel */
.tb-panel-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.tb-register-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.tb-register-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 0.5rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tb-register-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(11, 35, 64, 0.08);
}

.tb-register-tab[data-goto-flow="contractor"].is-active {
  color: var(--orange-deep);
}

.tb-register-tab[data-goto-flow="worker"].is-active {
  color: var(--navy);
}

.tb-badge {
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  z-index: 2;
  background: var(--navy);
  color: var(--helmet-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 35, 64, 0.28);
  transform: rotate(2deg);
  white-space: nowrap;
  border-left: 3px solid var(--orange);
}

.tb-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: var(--paper-2);
}

.tb-auth-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.tb-auth-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(11, 35, 64, 0.06);
}

.tb-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.3rem 1.2rem;
  overflow: hidden;
}

.tb-panel__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  min-width: 0;
}

.tb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2.5px solid rgba(242, 118, 31, 0.55);
}

.tb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-panel__kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.15rem;
}

.tb-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.tb-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #5c6570);
  line-height: 1.4;
}

.tb-flow-form {
  display: none;
}

.tb-flow-form.is-active {
  display: block;
}

.tb-field {
  margin-bottom: 0.85rem;
  min-width: 0;
}

.tb-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.tb-field input,
.tb-field select {
  width: 100%;
  min-width: 0;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tb-field input::placeholder {
  color: #9aa3b2;
}

.tb-field input:focus,
.tb-field select:focus {
  outline: none;
  border-color: rgba(242, 118, 31, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 118, 31, 0.14);
}

.tb-field input.is-invalid,
.tb-field select.is-invalid {
  border-color: #e05555;
}

.tb-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ok);
}

.tb-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.tb-otp {
  appearance: none;
  border: 1px solid rgba(242, 118, 31, 0.45);
  background: rgba(242, 118, 31, 0.08);
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.tb-otp:hover {
  background: rgba(242, 118, 31, 0.14);
}

.tb-msg-line {
  min-height: 1.15rem;
  font-size: 0.82rem;
  margin: 0.15rem 0 0.4rem;
}

.tb-msg-line.ok { color: var(--ok); }
.tb-msg-line.err { color: #d64545; }

.tb-panel__foot {
  margin-top: 1rem;
  text-align: center;
}

.tb-switch-link {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.tb-switch-link strong {
  color: var(--orange);
  font-weight: 700;
}

.tb-legal {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
}

.tb-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tb-success {
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.tb-success h3 {
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}

.tb-success p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ========== Compare ========== */
.tb-compare {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  background: #fff;
}

.tb-compare h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.75rem;
}

.tb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 32, 51, 0.05);
}

.tb-table th,
.tb-table td {
  padding: 0.95rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.tb-table th:first-child,
.tb-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
}

.tb-table thead th {
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.tb-table thead th.is-accent,
.tb-table td.is-accent {
  background: var(--navy);
  color: #fff;
}

.tb-table tbody tr:last-child td {
  border-bottom: none;
}

.tb-check {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}

.tb-x {
  color: #c5cad3;
  font-weight: 700;
}

.tb-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== Testimonials ========== */
.tb-social {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  background: var(--paper-2);
}

.tb-social h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.tb-social__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tb-testimonial {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  min-width: 0;
  box-shadow: var(--shadow);
}

.tb-testimonial__stars {
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.tb-testimonial p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.tb-testimonial strong {
  display: block;
  font-size: 0.88rem;
}

.tb-testimonial span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

/* ========== Bottom CTA ========== */
.tb-cta {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  background:
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(255, 106, 19, 0.15), transparent 65%),
    #fff;
}

.tb-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.tb-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.tb-cta p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 40ch;
}

.tb-cta__visual {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.tb-cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* ========== Footer ========== */
.tb-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: #fff;
}

.tb-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.tb-footer p {
  font-size: 0.85rem;
  color: var(--muted);
}

.tb-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tb-footer a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.tb-footer a:hover {
  color: var(--orange);
}

/* Language switcher (header) */
.ks-lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.ks-lang__select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 28px 8px 12px;
  min-width: 0;
  max-width: 9.5rem;
  width: 100%;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(11, 35, 64, 0.04);
}

.ks-lang__select:hover,
.ks-lang__select:focus {
  border-color: var(--orange);
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Responsive ========== */

/* Large tablet / small laptop */
@media (max-width: 1100px) {
  .tb-nav {
    gap: 1rem;
  }

  .tb-nav a {
    font-size: 0.86rem;
  }

  .tb-register__grid {
    gap: 1.75rem;
  }

  .tb-collage {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 0.75fr);
  }

  .tb-roles__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .tb-register__grid,
  .tb-cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-register__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .tb-panel-wrap {
    order: 1;
    justify-self: stretch;
    max-width: min(520px, 100%);
    margin-inline: auto;
    width: 100%;
  }

  .tb-register__copy {
    order: 2;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .tb-register__copy > p,
  .tb-quote {
    max-width: none;
  }

  .tb-social__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-collage {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(420px, 100%);
  }

  .tb-collage__side {
    display: none;
  }

  .tb-collage__stage {
    max-width: none;
  }

  .tb-cta__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .tb-header__inner {
    width: min(1120px, calc(100% - 1.5rem));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .tb-nav {
    display: none;
  }

  .tb-menu-btn {
    display: inline-flex;
  }

  .tb-mobile-nav:not([hidden]) {
    display: flex;
  }

  .tb-logo {
    min-width: 0;
  }

  .tb-header__end {
    gap: 0.35rem;
  }

  .tb-roles__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .tb-hero__content {
    margin-bottom: 2rem;
  }

  .tb-hero__content .tb-btn--orange {
    width: 100%;
    max-width: 22rem;
  }

  .tb-switch {
    width: 100%;
    max-width: 22rem;
  }

  .tb-switch__btn {
    font-size: 0.74rem;
    padding: 0.55rem 0.65rem;
  }

  .tb-social__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .tb-stat {
    flex: none;
    padding: 0;
    border-left: none;
    text-align: center;
  }

  .tb-stat strong {
    font-size: 1.25rem;
  }

  .tb-register-tab {
    font-size: 0.76rem;
    padding: 0.6rem 0.35rem;
  }

  .tb-badge {
    right: 0.5rem;
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
  }

  .tb-panel {
    padding: 1.1rem 1rem 1rem;
    border-radius: 16px;
  }

  .tb-cta__visual {
    min-height: 220px;
  }

  .tb-table {
    min-width: 560px;
  }

  .ks-lang__select {
    max-width: 7.5rem;
    font-size: 0.76rem;
    padding: 7px 24px 7px 10px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .wrap,
  .tb-header__inner {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .tb-header {
    height: auto;
    min-height: var(--header-h);
    padding: 0.45rem 0;
    padding-top: max(0.45rem, env(safe-area-inset-top));
  }

  .tb-login {
    display: none;
  }

  .tb-logo__img {
    height: 34px;
    width: 34px;
  }

  .tb-logo__text {
    font-size: 0.92rem;
  }

  .tb-btn--header {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .tb-hero__content h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .tb-hero__content p {
    font-size: 0.95rem;
  }

  .tb-phone {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-otp {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .tb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .tb-table th,
  .tb-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.8rem;
  }

  .tb-role {
    padding: 1.15rem 1rem;
  }

  .tb-role h3 {
    font-size: 1.1rem;
  }

  .tb-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tb-panel__head {
    gap: 0.65rem;
  }

  .tb-panel__title {
    font-size: 1.05rem;
  }

  .tb-avatar {
    width: 42px;
    height: 42px;
  }

  .ks-lang__select {
    max-width: 6.5rem;
    font-size: 0.72rem;
    padding: 6px 22px 6px 8px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .wrap,
  .tb-header__inner {
    width: min(1120px, calc(100% - 0.85rem));
  }

  .tb-logo__text {
    font-size: 0.84rem;
  }

  .tb-btn--header {
    padding: 0.48rem 0.55rem;
    font-size: 0.68rem;
  }

  .tb-switch__btn {
    font-size: 0.68rem;
    padding: 0.5rem 0.45rem;
  }

  .tb-register-tab {
    font-size: 0.7rem;
    padding: 0.55rem 0.25rem;
  }

  .tb-auth-tab {
    font-size: 0.8rem;
    padding: 0.55rem 0.5rem;
  }

  .tb-badge {
    position: static;
    display: inline-block;
    transform: none;
    margin-bottom: 0.65rem;
  }

  .tb-panel-wrap {
    display: flex;
    flex-direction: column;
  }

  .tb-register-tabs {
    order: 1;
  }

  .tb-badge {
    order: 2;
    align-self: flex-start;
  }

  .tb-panel {
    order: 3;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .wrap,
  .tb-header__inner {
    width: min(1200px, calc(100% - 2rem));
  }

  .tb-collage {
    width: min(1080px, 100%);
  }
}

@media (min-width: 769px) {
  .tb-menu-btn {
    display: none !important;
  }

  .tb-mobile-nav {
    display: none !important;
  }
}
