/* Public marketing page — light, professional SaaS */

:root {
  --pl-bg: #f4f7fb;
  --pl-bg-elevated: #ffffff;
  --pl-surface: #ffffff;
  --pl-border: #e2e8f0;
  --pl-border-strong: #cbd5e1;
  --pl-text: #0f172a;
  --pl-muted: #64748b;
  --pl-accent: #2563eb;
  --pl-accent-hover: #1d4ed8;
  --pl-teal: #0d9488;
  --pl-teal-soft: #ccfbf1;
}

.pl-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--pl-text);
  background: var(--pl-bg);
  line-height: 1.5;
}

.pl-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(13, 148, 136, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 90%, rgba(99, 102, 241, 0.08), transparent 45%);
  pointer-events: none;
}

.pl-wrap {
  position: relative;
  z-index: 1;
}

.pl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid var(--pl-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pl-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--pl-text);
  text-decoration: none;
}

.pl-logo span {
  color: var(--pl-teal);
  font-weight: 600;
}

.pl-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
}

/* Plain text nav links only — not primary buttons */
.pl-nav > a:not(.pl-btn) {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.pl-nav > a:not(.pl-btn):hover {
  color: #0f172a;
}

/* Header CTA: keep label high-contrast on blue (avoids nav link colour bleeding) */
.pl-nav a.pl-btn.pl-btn--primary,
.pl-nav button.pl-btn.pl-btn--primary {
  color: #ffffff;
}

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.pl-btn--primary {
  background: var(--pl-accent);
  color: #fff;
}

.pl-btn--primary:hover {
  background: var(--pl-accent-hover);
}

.pl-btn--ghost {
  background: var(--pl-bg-elevated);
  color: var(--pl-text);
  border: 1px solid var(--pl-border-strong);
}

.pl-btn--ghost:hover {
  background: #f8fafc;
  border-color: var(--pl-muted);
}

.pl-btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  border-radius: 0.65rem;
}

.pl-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
}

.pl-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: var(--pl-teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  margin-bottom: 1.25rem;
}

.pl-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--pl-text);
}

.pl-hero .pl-lead {
  margin: 0 auto 2rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--pl-muted);
}

.pl-muted {
  color: var(--pl-muted);
}

body.pl-modal-open {
  overflow: hidden;
}

.pl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  box-sizing: border-box;
}

/* ``display: flex`` above wins over the UA ``[hidden]`` rule — keep the dialog closed until opened. */
.pl-modal[hidden] {
  display: none !important;
}

.pl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 41, 59, 0.42) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pl-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(28.5rem, 100%);
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(15, 23, 42, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .pl-modal:not([hidden]) .pl-modal__dialog {
    animation: pl-modal-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes pl-modal-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pl-modal__chrome {
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--pl-teal) 0%, var(--pl-accent) 55%, #6366f1 100%);
}

.pl-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--pl-muted);
  cursor: pointer;
  border-radius: 0.55rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.pl-modal__close:hover {
  color: var(--pl-text);
  background: #fff;
  border-color: var(--pl-border-strong);
  transform: translateY(-1px);
}

.pl-modal__close-icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  margin-top: -0.1rem;
}

.pl-modal__head {
  padding: 1.35rem 1.5rem 1rem;
  padding-right: 3.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.pl-modal__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-teal);
}

.pl-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--pl-text);
}

.pl-modal__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--pl-muted);
  max-width: 36ch;
}

.pl-modal__body {
  padding: 1.15rem 1.5rem 0.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.pl-modal__msg {
  min-height: 0;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pl-modal__msg:not(:empty) {
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
}

.pl-modal__msg--ok:not(:empty) {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.pl-modal__msg--err:not(:empty) {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.pl-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.pl-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
  min-width: 0;
}

.pl-modal__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.pl-modal__field input {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: var(--pl-text);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.pl-modal__field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.pl-modal__field input:hover {
  border-color: #94a3b8;
  background: #fff;
}

.pl-modal__field input:focus {
  outline: none;
  border-color: var(--pl-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.pl-modal__foot {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
}

.pl-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
}

.pl-btn--modal-secondary {
  min-width: 5.5rem;
  padding: 0.6rem 1.1rem;
}

.pl-btn--modal-primary {
  min-width: 8.75rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12), 0 4px 14px -2px rgba(37, 99, 235, 0.28);
}

.pl-btn--modal-primary:hover {
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15), 0 8px 20px -4px rgba(37, 99, 235, 0.35);
}

.pl-footer__btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.35rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pl-accent);
  cursor: pointer;
  text-decoration: none;
}

.pl-footer__btn:hover {
  color: var(--pl-accent-hover);
  text-decoration: underline;
}

.pl-footer__sep {
  margin: 0 0.15rem;
  opacity: 0.6;
}

.pl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* POST logout sits beside primary CTA (Django 6+ LogoutView is POST-only). */
.pl-hero-cta .logout-post-form--tenant-cta {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pl-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.pl-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--pl-text);
}

.pl-section .pl-sub {
  text-align: center;
  color: var(--pl-muted);
  font-size: 0.95rem;
  margin: 0 0 2.25rem;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pl-card {
  padding: 1.5rem 1.35rem;
  border-radius: 0.75rem;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pl-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pl-card-ic {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--pl-accent);
  margin-bottom: 1rem;
}

.pl-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pl-text);
}

.pl-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pl-muted);
}

.pl-band {
  max-width: 1120px;
  margin: 0 auto 4rem;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
  border: 1px solid var(--pl-border);
  text-align: center;
}

.pl-band p {
  margin: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--pl-muted);
  font-size: 0.95rem;
}

.pl-band strong {
  color: var(--pl-text);
}

.pl-footer {
  border-top: 1px solid var(--pl-border);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--pl-muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.5);
}

.pl-footer a {
  color: var(--pl-accent);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

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

.pl-footer-copy {
  margin-top: 0.75rem;
  opacity: 0.85;
}

/* Firm subdomain entry (guests) — not the global marketing page */
.pl-body--tenant-entry .pl-logo--text {
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.pl-nav-muted {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pl-muted);
  text-decoration: none;
}

.pl-nav-muted:hover {
  color: var(--pl-accent);
}

/* Tenant workspace welcome — centered card, calm hierarchy */
.pl-body--tenant-entry {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #eef2f7;
}

.pl-tenant-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pl-tenant-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(13, 148, 136, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 88% 60%, rgba(99, 102, 241, 0.06), transparent 45%);
}

.pl-body--tenant-entry .pl-wrap {
  position: relative;
  z-index: 1;
}

.pl-tenant-header {
  justify-content: center;
  border-bottom-color: rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.92);
}

.pl-tenant-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.pl-tenant-brand__tagline {
  margin: 0;
  max-width: 20rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #64748b;
}

.pl-tenant-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem clamp(2rem, 5vw, 3rem);
  gap: 0;
}

.pl-tenant-shell {
  position: relative;
  width: 100%;
  max-width: 28.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.125rem;
}

.pl-tenant-shell::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(120%, 36rem);
  height: 16rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(37, 99, 235, 0.09) 0%, rgba(13, 148, 136, 0.04) 40%, transparent 72%);
  opacity: 0.9;
}

.pl-tenant-card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 22px 56px -22px rgba(15, 23, 42, 0.16),
    0 8px 20px -8px rgba(37, 99, 235, 0.07);
}

.pl-tenant-card__accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(90deg, #0d9488 0%, #2563eb 50%, #6366f1 100%);
  opacity: 0.92;
}

.pl-tenant-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.35rem 1.85rem 2.4rem;
  gap: 0;
}

.pl-tenant-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 0.25rem;
  border-radius: 1rem;
  color: #0f766e;
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 55%, #ffffff 100%);
  border: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.07);
}

.pl-tenant-card__eyebrow {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
}

.pl-tenant-card__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--pl-text);
  max-width: 20ch;
}

.pl-tenant-card__kicker {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #334155;
}

.pl-tenant-card__lead {
  margin: 1.15rem 0 0;
  font-size: 1.015rem;
  line-height: 1.62;
  font-weight: 400;
  color: #475569;
  max-width: 26rem;
}

.pl-tenant-card__kicker + .pl-tenant-card__lead {
  margin-top: 0.45rem;
}

.pl-tenant-card__sublead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--pl-muted);
  max-width: 26rem;
}

.pl-tenant-card__meta {
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.pl-tenant-card__meta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pl-tenant-host-pill {
  display: inline-block;
  max-width: 100%;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #334155;
  font-family: inherit;
  line-height: 1.35;
  word-break: break-all;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.pl-tenant-card__divider {
  width: 100%;
  max-width: 12rem;
  height: 1px;
  margin: 1.65rem 0 0;
  background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
}

.pl-tenant-card__actions {
  margin-top: 1.35rem;
  width: 100%;
  max-width: 22rem;
}

.pl-tenant-card__fineprint {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.52;
  color: var(--pl-muted);
  max-width: 24rem;
}

.pl-tenant-card__inner .pl-hero-cta {
  width: 100%;
  justify-content: center;
}

.pl-btn--tenant-primary {
  min-width: min(100%, 15.5rem);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12), 0 4px 14px -2px rgba(37, 99, 235, 0.35);
}

.pl-btn--tenant-primary:hover {
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.14), 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.pl-tenant-panels {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pl-tenant-panel {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pl-tenant-panel:hover {
  border-color: #cbd5e1;
}

.pl-tenant-panel[open] {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.1);
}

.pl-tenant-panel--muted {
  background: rgba(248, 250, 252, 0.95);
}

.pl-tenant-panel__summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem 0.9rem 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  user-select: none;
}

.pl-tenant-panel__summary::-webkit-details-marker,
.pl-tenant-panel__summary::marker {
  display: none;
}

.pl-tenant-panel__summary-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  text-align: left;
}

.pl-tenant-panel__summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  opacity: 0.85;
}

.pl-tenant-panel[open] .pl-tenant-panel__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.12rem;
}

.pl-tenant-panel__body {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.pl-tenant-panel__body p {
  margin: 0.75rem 0 0;
}

.pl-tenant-panel__body p:first-child {
  margin-top: 0.85rem;
}

.pl-tenant-panel__body a {
  font-weight: 600;
  color: var(--pl-accent);
}

.pl-tenant-panel__body--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #475569;
}

.pl-tenant-panel__body--mono p {
  margin-top: 0.85rem;
}

.pl-tenant-footer {
  text-align: center;
}

.pl-tenant-footer__trust {
  margin: 0 auto 0.65rem;
  max-width: 22rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.pl-tenant-footer .pl-footer-copy {
  margin-top: 0.35rem;
}

.pl-tenant-hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.pl-tenant-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pl-tenant-lead {
  margin-top: 1rem;
  text-align: center;
}

.pl-code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pl-border);
}

.pl-tenant-support {
  margin: 1.75rem auto 0;
  max-width: 34rem;
  padding: 1rem 1.15rem;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.pl-tenant-support__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pl-accent, #2563eb);
}

.pl-tenant-support__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.pl-tenant-support__body a {
  font-weight: 600;
  color: var(--pl-accent, #2563eb);
}

.pl-tenant-support-details {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 99, 235, 0.15);
}

.pl-tenant-support-details__summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pl-accent, #2563eb);
  list-style: none;
}

.pl-tenant-support-details__summary::-webkit-details-marker {
  display: none;
}

.pl-tenant-support-details__summary::after {
  content: ' ▼';
  font-size: 0.7em;
  opacity: 0.75;
}

.pl-tenant-support-details[open] .pl-tenant-support-details__summary::after {
  content: ' ▲';
}

.pl-tenant-support-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.pl-tenant-support-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.pl-tenant-support-field input {
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--pl-border);
  font-size: 0.9375rem;
  font-family: inherit;
}

.pl-tenant-support-field input[type='password'] {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.pl-tenant-support-field input:focus {
  outline: none;
  border-color: var(--pl-accent, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.pl-tenant-support-field input[type='password']:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Support code: match global app.css PIN chrome when app.css is loaded after this sheet */
.pl-tenant-support-field input.app-pin-field {
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  padding: 10px 12px;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.pl-tenant-support-field input.app-pin-field:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.pl-tenant-support-field input.app-pin-field::placeholder {
  color: #94a3b8;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Shared with app.css — remote support gateway does not load app.css */
label.app-pin-field-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.42rem;
  margin: 0;
}

label.app-pin-field-wrap > .app-pin-field-wrap__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.pl-tenant-support-form__submit {
  margin-top: 0.25rem;
  align-self: flex-start;
}

.pl-tenant-support--gateway {
  margin-top: 1.25rem;
  text-align: left;
}

.pl-op-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.pl-op-steps li {
  margin-bottom: 0.45rem;
}

.pl-op-msgs {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 34rem;
  text-align: left;
}

.pl-op-msgs li {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.pl-op-msgs li.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.pl-op-msgs li.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.pl-tenant-op-hint {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.pl-tenant-op-hint a {
  font-weight: 600;
  color: var(--pl-accent, #2563eb);
}

.pl-tenant-op-footer {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  text-align: center;
}

.pl-tenant-op-footer a {
  font-weight: 600;
  color: var(--pl-accent, #2563eb);
}

.pl-tenant-note {
  margin: 2rem auto 0;
  max-width: 34rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--pl-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--pl-border);
  border-radius: 12px;
}

@media (max-width: 640px) {
  .pl-nav a[href='#features'] {
    display: none;
  }

  .pl-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
