/* Kay License Cloud portal tweaks */
.navbar-brand { letter-spacing: -0.02em; }
.pricing-card-title { font-size: 2rem; }

/* —— Shared portal chrome —— */
.portal-page {
  min-height: 100vh;
  background: #fff;
}
.portal-nav {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.portal-nav-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border: none;
}
.portal-nav-transparent .portal-nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}
.portal-nav-transparent .portal-nav-link:hover,
.portal-nav-transparent .portal-nav-link.active {
  color: #fff !important;
}
.portal-nav-solid {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.portal-nav-solid .portal-nav-link {
  color: var(--tblr-secondary);
  font-size: 0.95rem;
}
.portal-nav-solid .portal-nav-link:hover,
.portal-nav-solid .portal-nav-link.active {
  color: var(--tblr-primary) !important;
}
.portal-nav-solid .btn-link.portal-nav-link {
  text-decoration: none;
}
.portal-lang-switch {
  font-size: 0.85rem;
  user-select: none;
}
.portal-lang-link {
  color: var(--tblr-secondary);
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 0.25rem;
}
.portal-lang-link:hover {
  color: var(--tblr-primary);
}
.portal-lang-link.active {
  color: var(--tblr-primary);
  font-weight: 600;
}
.portal-lang-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}
.portal-nav-transparent .portal-lang-link {
  color: rgba(255, 255, 255, 0.55);
}
.portal-nav-transparent .portal-lang-link:hover,
.portal-nav-transparent .portal-lang-link.active {
  color: #fff;
}
.portal-nav-transparent .portal-lang-sep {
  color: rgba(255, 255, 255, 0.35);
}
.portal-page-hero {
  background: #f8fafc;
}

/* WeChat Pay checkout */
.btn-wechat-pay {
  background-color: #07c160;
  border-color: #07c160;
  color: #fff;
}
.btn-wechat-pay:hover,
.btn-wechat-pay:focus {
  background-color: #06ad56;
  border-color: #06ad56;
  color: #fff;
}
.checkout-qr-wechat .checkout-qr-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #e8f8ef;
  color: #07c160;
  font-size: 0.85rem;
  font-weight: 600;
}
.checkout-qr-wechat .checkout-qr-frame {
  border-color: #b7ebcd !important;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.08);
}
.checkout-qr-card {
  max-width: 420px;
  margin: 0 auto;
}
.landing-pay-actions .btn-wechat-pay {
  font-weight: 600;
}

.portal-page-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.portal-auth-main .page-center {
  min-height: calc(100vh - 12rem);
}

/* —— Marketing home (Flintrix landing) —— */
.landing-page { background: #fff; }

.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.landing-nav .nav-link {
  font-size: 0.95rem;
}
.landing-nav .nav-link:hover,
.landing-nav .nav-link.active {
  color: #fff !important;
}

.landing-hero {
  position: relative;
  background: linear-gradient(165deg, #0f1419 0%, #1a2332 45%, #243044 100%);
  color: #fff;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 95%);
}
.landing-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.landing-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.landing-hero-sub { font-size: 1.125rem; color: rgba(255, 255, 255, 0.72); }
.landing-hero-sub-oneline {
  white-space: nowrap;
  font-size: clamp(0.72rem, 1.05vw, 1.0625rem);
  letter-spacing: -0.01em;
}
.landing-hero-link a:hover { color: #fff !important; text-decoration: underline; }

.landing-demo-video {
  max-width: 960px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  background: #0f172a;
}
.landing-demo-video video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.landing-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.btn-landing-cta {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-landing-cta:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
}
.btn-landing-outline {
  background: #fff;
  color: #1e293b;
  border: none;
  font-weight: 600;
}
.btn-landing-outline:hover { background: #f1f5f9; color: #0f172a; }

.landing-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.landing-section-muted { background: #f8fafc; }

.landing-plan-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.landing-plan-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.landing-plan-recommended {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px #7c3aed, 0 16px 48px rgba(124, 58, 237, 0.12);
}
.landing-plan-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.landing-plan-card .card-body { position: relative; padding: 1.5rem; }
.landing-plan-price .display-6 { font-size: 2rem; letter-spacing: -0.02em; }
.landing-quota-box {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.landing-feature-list li {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.landing-feature-disabled { opacity: 0.55; }
.btn-landing-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
}
.btn-landing-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.landing-testimonial {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}
.landing-stars { color: #fbbf24; letter-spacing: 0.1em; }
.landing-rating-badge {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
}

.landing-accordion .accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
}
.landing-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.landing-footer-meta {
  line-height: 1.5;
}
.landing-footer-brand,
.landing-footer-contact {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .landing-footer-brand,
  .landing-footer-contact {
    white-space: normal;
  }
}
.landing-footer-link {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}
.landing-footer-link:hover {
  color: var(--tblr-primary, #206bc4);
  text-decoration: underline;
}
.landing-footer-wechat-qr {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.landing-wechat-card {
  display: inline-block;
  padding: 1.5rem 1.75rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.landing-wechat-qr-lg {
  width: 280px;
  height: 280px;
  max-width: min(280px, 72vw);
  max-height: min(280px, 72vw);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.landing-wechat-hint {
  font-weight: 600;
  color: #0f172a;
}

/* —— Home: product value sections (marketing-aligned) —— */
.landing-stats-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: -1px;
}
.landing-stat-card {
  padding: 0.5rem 0.75rem;
}
.landing-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}
.landing-stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.landing-value-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.landing-value-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.landing-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 700;
}
.landing-arch-flow {
  max-width: 520px;
  margin: 0 auto;
}
.landing-arch-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
}
.landing-arch-step-accent {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #faf5ff, #fff);
}
.landing-arch-tag {
  flex-shrink: 0;
  min-width: 4.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
}
.landing-arch-arrow {
  text-align: center;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0;
}
.landing-delivery-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}
.landing-delivery-list li:last-child {
  border-bottom: none;
}
.landing-delivery-list strong {
  color: #0f172a;
}
.landing-eda-badges,
.landing-compat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.landing-eda-badges span,
.landing-compat-badges span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}
.landing-compat-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.landing-compat-group {
  margin: 0;
}
.landing-compat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.resources-hero .display-6 { letter-spacing: -0.03em; }
.resources-doc-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.resources-doc-card:hover {
  border-color: var(--tblr-primary);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06);
}
.resources-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tblr-border-color);
}
.resources-sidebar .nav-link {
  font-size: 0.9rem;
  color: var(--tblr-secondary);
}
.resources-sidebar .nav-link:hover {
  color: var(--tblr-primary);
}
.resources-qr {
  width: 240px;
  height: 240px;
  max-width: min(240px, 70vw);
  max-height: min(240px, 70vw);
  object-fit: contain;
  border-radius: var(--tblr-border-radius);
  border: 1px solid var(--tblr-border-color);
  background: #fff;
}

/* —— In-portal Markdown docs —— */
.doc-content {
  font-size: 1rem;
  line-height: 1.7;
}
.doc-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.doc-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--tblr-border-color);
}
.doc-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.doc-content p,
.doc-content ul,
.doc-content ol {
  margin-bottom: 1rem;
}
.doc-content table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
}
.doc-content th,
.doc-content td {
  border: 1px solid var(--tblr-border-color);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}
.doc-content th {
  background: #f8fafc;
  font-weight: 600;
}
.doc-content code {
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}
.doc-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.doc-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.doc-content a {
  color: var(--tblr-primary);
}
.doc-sidebar .nav-link {
  font-size: 0.9rem;
}

/* —— Downloads page —— */
.downloads-page {
  background: #f1f5f9;
}
.downloads-back-link:hover {
  color: var(--tblr-primary) !important;
}
.downloads-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.downloads-section {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.downloads-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.downloads-package-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.downloads-package-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.downloads-package-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  color: var(--tblr-primary);
}
.downloads-install-cmd code {
  display: block;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.downloads-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.downloads-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.downloads-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tblr-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.downloads-step-code code {
  background: #f1f5f9;
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
}
.downloads-cta-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  margin-top: auto;
}
