/* Public marketing chrome: premium navbar + footer (all public templates). */

body.tm-pnav-lock {
  overflow: hidden;
}

.tm-pnav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.tm-pnav.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.88);
}

.tm-pnav.is-open {
  border-bottom-color: transparent;
  z-index: 10001;
}

.tm-pnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tm-pnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tm-pnav__brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.tm-pnav__brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.2)) drop-shadow(0 0 18px rgba(244, 114, 182, 0.12));
}

.tm-pnav__word {
  font-family: "Poppins", var(--tm-font-sans, system-ui), sans-serif;
  font-size: 1.15rem;
}

.tm-pnav__center {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.tm-pnav__link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tm-pnav__link:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

.tm-pnav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.18));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.tm-pnav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tm-pnav__ghost {
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tm-pnav__ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.tm-pnav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #0b1220;
  background: linear-gradient(135deg, #38bdf8, #a78bfa 55%, #f472b6);
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tm-pnav__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.35);
}

.tm-pnav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tm-pnav__burger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  border-radius: 2px;
  background: #e2e8f0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.tm-pnav.is-open .tm-pnav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tm-pnav.is-open .tm-pnav__burger span:nth-child(2) {
  opacity: 0;
}

.tm-pnav.is-open .tm-pnav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tm-pnav-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.tm-pnav-sheet[hidden] {
  display: none !important;
}

.tm-pnav-sheet:not([hidden]).is-open {
  pointer-events: auto;
}

.tm-pnav__drawer {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 16px;
  border: none;
  background: #0b1220;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.tm-pnav-sheet.is-open .tm-pnav__drawer {
  transform: translateX(0);
}

.tm-pnav__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.tm-pnav-sheet.is-open .tm-pnav__backdrop {
  opacity: 1;
}

.tm-pnav__dlink,
.tm-pnav__dcta {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #e2e8f0;
  transition: background 0.2s ease;
}

.tm-pnav__dlink:hover {
  background: rgba(148, 163, 184, 0.12);
}

.tm-pnav__dlink.is-active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

.tm-pnav__dcta {
  text-align: center;
  margin-top: 4px;
  color: #0b1220;
  background: linear-gradient(135deg, #38bdf8, #c084fc);
}

.tm-pnav__dsep {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin: 8px 0;
}

.tm-pnav__dhead {
  margin: 0 0 12px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

@media (max-width: 899px) {
  .tm-pnav__inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .tm-pnav__right {
    display: none;
  }

  .tm-pnav__brand {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease;
  }

  .tm-pnav.is-open .tm-pnav__brand {
    opacity: 0;
    pointer-events: none;
  }

  .tm-pnav__drawer {
    padding:
      calc(76px + env(safe-area-inset-top, 0px))
      20px
      calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .tm-pnav.is-open .tm-pnav__inner {
    position: relative;
    z-index: 2;
  }

  .tm-pnav__dlink,
  .tm-pnav__dcta {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .tm-pnav__dcta {
    margin-top: 8px;
    padding: 16px 18px;
  }
}

@media (min-width: 900px) {
  .tm-pnav__center {
    display: flex;
  }

  .tm-pnav__ghost {
    display: inline-flex;
  }

  .tm-pnav__burger {
    display: none;
  }

  .tm-pnav-sheet {
    display: none !important;
  }

  .tm-pnav.is-open {
    border-bottom-color: rgba(148, 163, 184, 0.18);
  }
}

/* ---------- Footer ---------- */

.tm-pf {
  position: relative;
  margin-top: auto;
  padding: 72px 0 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.92) 40%, #020617 100%);
  overflow: hidden;
}

.tm-pf__glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.18), transparent 65%);
  pointer-events: none;
}

.tm-pf__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.tm-pf__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 640px) {
  .tm-pf__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px 32px;
  }
}

.tm-pf__brandcol {
  max-width: 320px;
}

.tm-pf__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8fafc;
  font-family: "Poppins", var(--tm-font-sans, system-ui), sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.tm-pf__mark {
  display: flex;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.25));
}

.tm-pf__tag {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.88);
}

.tm-pf__email {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #67e8f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-pf__email:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

.tm-pf__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.tm-pf__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.85);
  background: rgba(15, 23, 42, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tm-pf__soc:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}

.tm-pf__h {
  margin: 0 0 14px;
  font-family: "Poppins", var(--tm-font-sans, system-ui), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.tm-pf__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-pf__list li {
  margin-bottom: 10px;
}

.tm-pf__list a {
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.tm-pf__list a:hover {
  color: #fff;
}

.tm-pf__divider {
  height: 1px;
  margin: 40px 0 24px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
}

.tm-pf__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (min-width: 720px) {
  .tm-pf__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.tm-pf__company {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.tm-pf__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.75);
}

/* ---------- Login (dark glass — matches public shell; fixes white card + dark inputs clash) ---------- */

body.tm-page--login .tm-auth-main {
  max-width: 440px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}

body.tm-page--login .tm-auth-title {
  margin: 0 0 10px;
  font-family: "Poppins", var(--tm-font-sans, system-ui), sans-serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

body.tm-page--login .tm-auth-lead {
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.92);
}

body.tm-page--login .tm-auth-lead strong {
  color: #fff;
  font-weight: 600;
}

body.tm-page--login .tm-auth-lead a {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.tm-page--login .tm-auth-lead a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

body.tm-page--login .tm-auth-alert {
  margin-bottom: 14px;
}

body.tm-page--login .tm-auth-card {
  padding: 26px 22px 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 56px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

body.tm-page--login .tm-auth-card .tm-form label {
  color: rgba(226, 232, 240, 0.88);
  letter-spacing: 0.06em;
}

body.tm-page--login .tm-auth-card .tm-form input {
  background: rgba(2, 6, 23, 0.65) !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  border-radius: 14px !important;
}

body.tm-page--login .tm-auth-card .tm-form input::placeholder {
  color: rgba(148, 163, 184, 0.82) !important;
}

body.tm-page--login .tm-auth-card .tm-form input:focus {
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
}

body.tm-page--login .tm-auth-submit.tm-btn--primary {
  margin-top: 4px;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  border-radius: 14px !important;
  background: linear-gradient(135deg, #38bdf8, #818cf8 48%, #c084fc) !important;
  background-size: 140% 100% !important;
  border: none !important;
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body.tm-page--login .tm-auth-submit.tm-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.tm-page--login .tm-auth-alert.tm-alert.show {
  display: block;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fecdd3;
}

body.tm-page--login .tm-auth-alert.tm-alert.tm-alert--staff.show {
  background: rgba(30, 58, 138, 0.35);
  border-color: rgba(96, 165, 250, 0.45);
  color: #dbeafe;
}

body.tm-page--login .tm-alert-staff-msg {
  margin: 0 0 12px;
}

body.tm-page--login .tm-alert-staff-btn {
  margin: 0;
  text-decoration: none;
  text-align: center;
}

body.tm-page--login .tm-auth-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(203, 213, 225, 0.88);
}

body.tm-page--login .tm-auth-foot--staff {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

body.tm-page--login .tm-auth-foot a {
  color: #a5f3fc;
  font-weight: 600;
  text-decoration: none;
}

body.tm-page--login .tm-auth-foot a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
