/**
 * Landing / website — light Word/Excel palette (fixed; not portal-app theme).
 */
:root {
  --portal-viewport-design: 1440px;
  --portal-font-family: "Source Sans 3", "Segoe UI", sans-serif;
  --portal-font-display: "Source Serif 4", "Georgia", serif;
  --portal-font-size-min: 10pt;
  --bs-font-sans-serif: var(--portal-font-family);
  --bs-body-font-family: var(--portal-font-family);

  /* Word blue + Excel green */
  --landing-word: #185abd;
  --landing-word-deep: #2b579a;
  --landing-word-rgb: 24, 90, 189;
  --landing-excel: #217346;
  --landing-excel-bright: #107c41;
  --landing-excel-rgb: 33, 115, 70;

  --landing-accent: var(--landing-excel);
  --landing-accent-rgb: var(--landing-excel-rgb);
  --landing-accent-2: var(--landing-word);
  --landing-accent-2-rgb: var(--landing-word-rgb);

  --landing-ink: #1f2428;
  --landing-ink-soft: #3d4650;
  --landing-muted: #5c6773;
  --landing-brand: var(--landing-word-deep);
  --landing-surface: #ffffff;
  --landing-surface-2: #f7f9fb;
  --landing-wash: #eef3f8;
  --landing-border: rgba(31, 36, 40, 0.1);
  --landing-shadow: 0 12px 28px rgba(31, 36, 40, 0.08);
}

html {
  font-size: 10pt;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.portal-landing {
  margin-bottom: 60px;
  padding-top: 72px;
  font-family: var(--portal-font-family);
  color-scheme: light;
  background:
    radial-gradient(ellipse 70% 45% at 88% -8%, rgba(var(--landing-word-rgb), 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 6% 12%, rgba(var(--landing-excel-rgb), 0.09), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--landing-wash) 42%, #f4f7f5 100%);
  color: var(--landing-ink);
  overflow-x: hidden;
}

body.portal-landing small,
body.portal-landing .small,
body.portal-landing .form-text,
body.portal-landing .badge {
  font-size: max(var(--portal-font-size-min), 0.875em);
}

.portal-landing .container,
.portal-landing .landing-main__inner {
  width: 100%;
  max-width: min(100%, var(--portal-viewport-design));
  margin-left: auto;
  margin-right: auto;
}

.landing-main {
  padding-bottom: 1rem;
}

.landing-muted {
  color: var(--landing-muted) !important;
}

/* ——— Navbar ——— */
.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1020;
  border-bottom: 1px solid var(--landing-border) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(31, 36, 40, 0.04);
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
}

.portal-landing .landing-navbar .navbar-brand {
  color: var(--landing-word-deep) !important;
  font-family: var(--portal-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

.portal-landing .landing-navbar .nav-link {
  color: var(--landing-ink-soft);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  position: relative;
}

.portal-landing .landing-navbar .nav-link:hover,
.portal-landing .landing-navbar .nav-link:focus {
  color: var(--landing-word) !important;
}

.portal-landing .landing-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  background: linear-gradient(90deg, var(--landing-excel), var(--landing-word));
}

.portal-landing .landing-navbar .nav-link:hover::after,
.portal-landing .landing-navbar .nav-link:focus::after {
  transform: scaleX(1);
}

.landing-navbar .navbar-toggler {
  border-color: rgba(31, 36, 40, 0.2);
  padding: 0.35rem 0.55rem;
}

.landing-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(var(--landing-word-rgb), 0.22);
}

.landing-toggler-icon {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--landing-ink);
  position: relative;
  border-radius: 2px;
}

.landing-toggler-icon::before,
.landing-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--landing-ink);
  border-radius: 2px;
}

.landing-toggler-icon::before {
  top: -6px;
}

.landing-toggler-icon::after {
  top: 6px;
}

.portal-landing a:not(.btn):not(.navbar-brand):not(.nav-link):not(.page-link):not(.dropdown-item) {
  color: var(--landing-word);
  text-decoration: none;
}

.portal-landing a:not(.btn):not(.navbar-brand):not(.nav-link):not(.page-link):not(.dropdown-item):hover {
  text-decoration: underline;
}

/* ——— Buttons ——— */
.portal-landing .btn-primary {
  color: #fff;
  background-color: var(--landing-excel);
  border-color: var(--landing-excel);
  font-weight: 600;
  border-radius: 6px;
}

.portal-landing .btn-primary:hover,
.portal-landing .btn-primary:focus {
  color: #fff;
  background-color: color-mix(in srgb, var(--landing-excel) 88%, black);
  border-color: color-mix(in srgb, var(--landing-excel) 88%, black);
}

.portal-landing .btn-outline-primary {
  color: var(--landing-word);
  border-color: rgba(var(--landing-word-rgb), 0.45);
  border-radius: 6px;
  font-weight: 600;
}

.portal-landing .btn-outline-primary:hover,
.portal-landing .btn-outline-primary:focus {
  color: #fff;
  background-color: var(--landing-word);
  border-color: var(--landing-word);
}

.portal-landing .btn-outline-secondary {
  border-color: rgba(31, 36, 40, 0.22);
  color: var(--landing-ink-soft);
  border-radius: 6px;
  font-weight: 600;
}

.portal-landing .btn-outline-secondary:hover,
.portal-landing .btn-outline-secondary:focus {
  background: rgba(var(--landing-word-rgb), 0.06);
  border-color: rgba(var(--landing-word-rgb), 0.35);
  color: var(--landing-word-deep);
}

.crm-circle-btn {
  min-width: 120px;
  height: 38px;
  padding: 0 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: max(var(--portal-font-size-min), 0.78rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  border: 1px solid transparent;
}

.crm-btn-register {
  background: var(--landing-excel);
  border-color: var(--landing-excel);
}

.crm-btn-register:hover,
.crm-btn-register:focus {
  background: color-mix(in srgb, var(--landing-excel) 86%, black);
  border-color: color-mix(in srgb, var(--landing-excel) 86%, black);
  color: #fff;
}

.crm-btn-login {
  background: var(--landing-word);
  border-color: var(--landing-word);
}

.crm-btn-login:hover,
.crm-btn-login:focus {
  background: color-mix(in srgb, var(--landing-word) 86%, black);
  border-color: color-mix(in srgb, var(--landing-word) 86%, black);
  color: #fff;
}

.crm-btn-dashboard {
  background: linear-gradient(90deg, var(--landing-excel), var(--landing-word));
  border-color: transparent;
}

.crm-btn-dashboard:hover,
.crm-btn-dashboard:focus {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--landing-excel) 84%, black),
    color-mix(in srgb, var(--landing-word) 84%, black)
  );
  color: #fff;
}

/* ——— Forms (login / account) ——— */
.portal-landing .form-control,
.portal-landing .form-select {
  background-color: #fff;
  border: 1px solid rgba(31, 36, 40, 0.16);
  color: var(--landing-ink);
  border-radius: 6px;
}

.portal-landing .form-control::placeholder {
  color: rgba(31, 36, 40, 0.4);
}

.portal-landing .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231f2428' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px 10px;
}

.portal-landing .form-control:-webkit-autofill,
.portal-landing .form-control:-webkit-autofill:hover,
.portal-landing .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--landing-ink);
  caret-color: var(--landing-ink);
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.portal-landing .form-control:focus,
.portal-landing .form-select:focus,
.portal-landing .form-check-input:focus {
  background-color: #fff;
  border-color: rgba(var(--landing-word-rgb), 0.55);
  color: var(--landing-ink);
  box-shadow: 0 0 0 0.2rem rgba(var(--landing-word-rgb), 0.16);
}

.portal-landing .landing-login-form .landing-login-field .form-control {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  min-height: 2.85rem;
}

.portal-landing .landing-login-form .landing-login-field {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.portal-landing .form-check-input {
  background-color: #fff;
  border: 1px solid rgba(31, 36, 40, 0.28);
}

.portal-landing .form-check-input:checked {
  background-color: var(--landing-excel);
  border-color: var(--landing-excel);
}

.portal-landing .form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--landing-excel);
  border-color: var(--landing-excel);
}

/* ——— Footer ——— */
.landing-footer {
  border-top: 1px solid var(--landing-border) !important;
  background: rgba(255, 255, 255, 0.85);
  color: var(--landing-muted) !important;
}

.landing-footer a {
  color: var(--landing-muted) !important;
}

.landing-footer a:hover {
  color: var(--landing-word) !important;
}

/* ——— Hero (full-bleed, light) ——— */
.landing-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-margin-top: 72px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(238, 246, 241, 0.55) 100%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.landing-hero__plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-hero__doc {
  position: absolute;
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 24px 48px rgba(31, 36, 40, 0.12);
  overflow: hidden;
  background: #fff;
}

.landing-hero__doc--word {
  width: min(52vw, 560px);
  height: min(68vh, 520px);
  right: -4%;
  top: 8%;
  border: 1px solid rgba(var(--landing-word-rgb), 0.18);
  animation: hero-doc-drift 12s ease-in-out infinite alternate;
}

.landing-hero__doc--excel {
  width: min(38vw, 380px);
  height: min(48vh, 360px);
  right: 18%;
  bottom: 6%;
  border: 1px solid rgba(var(--landing-excel-rgb), 0.2);
  animation: hero-doc-drift 14s ease-in-out infinite alternate-reverse;
  animation-delay: -3s;
}

.landing-hero__ribbon {
  display: block;
  height: 14%;
  min-height: 42px;
}

.landing-hero__ribbon--word {
  background: linear-gradient(180deg, #2b579a 0%, #185abd 100%);
}

.landing-hero__ribbon--excel {
  background: linear-gradient(180deg, #217346 0%, #107c41 100%);
}

.landing-hero__lines {
  display: block;
  height: 86%;
  background:
    repeating-linear-gradient(
      transparent 0,
      transparent 22px,
      rgba(var(--landing-word-rgb), 0.08) 22px,
      rgba(var(--landing-word-rgb), 0.08) 23px
    );
  margin: 1.25rem 1.5rem;
}

.landing-hero__grid {
  display: block;
  height: 86%;
  background:
    linear-gradient(rgba(var(--landing-excel-rgb), 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--landing-excel-rgb), 0.12) 1px, transparent 1px);
  background-size: 28px 22px;
  background-position: -1px -1px;
  margin: 0.85rem;
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.landing-hero__copy {
  max-width: 34rem;
  animation: hero-copy-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-brand-mark {
  font-family: var(--portal-font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--landing-word-deep);
  margin-bottom: 0.85rem;
}

.landing-hero__title {
  font-family: var(--portal-font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--landing-ink);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.landing-hero__lead {
  color: var(--landing-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.landing-hero__actions .btn-lg {
  padding: 0.65rem 1.25rem;
}

/* ——— Sections ——— */
.landing-section {
  scroll-margin-top: 86px;
  margin-bottom: 2.25rem;
  padding-top: 0.5rem;
}

.landing-metrics-section {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
  padding: 1.25rem 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
}

.metric-item strong {
  font-family: var(--portal-font-display);
  font-size: 1.15rem;
  color: var(--landing-word-deep);
  letter-spacing: -0.02em;
}

.metric-item span {
  color: var(--landing-muted);
  font-size: max(var(--portal-font-size-min), 0.85rem);
}

.metric-item:nth-child(2) strong {
  color: var(--landing-excel);
}

.section-title {
  font-family: var(--portal-font-display);
  letter-spacing: -0.02em;
  color: var(--landing-ink);
}

.landing-panel {
  padding: 0.25rem 0;
}

.landing-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.landing-media-block {
  min-height: 280px;
  border-radius: 4px;
  border: 1px solid var(--landing-border);
  background:
    linear-gradient(135deg, rgba(var(--landing-word-rgb), 0.12) 0%, transparent 45%),
    linear-gradient(320deg, rgba(var(--landing-excel-rgb), 0.14) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(var(--landing-word-rgb), 0.05) 27px,
      rgba(var(--landing-word-rgb), 0.05) 28px
    ),
    #fff;
  position: relative;
  overflow: hidden;
}

.landing-media-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(90deg, var(--landing-word-deep) 0%, var(--landing-word) 55%, var(--landing-excel) 100%);
  opacity: 0.92;
}

.landing-media-block::after {
  content: "";
  position: absolute;
  inset: 64px 18px 18px;
  background:
    linear-gradient(90deg, rgba(var(--landing-excel-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(rgba(var(--landing-excel-rgb), 0.1) 1px, transparent 1px);
  background-size: 32px 24px;
  border: 1px solid rgba(var(--landing-excel-rgb), 0.12);
}

.feature-block {
  padding: 0.25rem 0 0.5rem;
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-block:hover {
  transform: translateY(-2px);
}

.feature-block:nth-child(1),
.col-md-4:nth-child(1) .feature-block {
  border-top-color: var(--landing-word);
}

.col-md-4:nth-child(2) .feature-block {
  border-top-color: var(--landing-excel);
}

.col-md-4:nth-child(3) .feature-block {
  border-top-color: color-mix(in srgb, var(--landing-word) 50%, var(--landing-excel));
}

.feature-block__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.feature-block__icon--word {
  color: var(--landing-word);
  background: rgba(var(--landing-word-rgb), 0.1);
}

.feature-block__icon--excel {
  color: var(--landing-excel);
  background: rgba(var(--landing-excel-rgb), 0.1);
}

.feature-block__icon--mixed {
  color: var(--landing-word-deep);
  background: linear-gradient(135deg, rgba(var(--landing-word-rgb), 0.1), rgba(var(--landing-excel-rgb), 0.1));
}

.quote-block {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid rgba(var(--landing-word-rgb), 0.35);
}

.col-md-4:nth-child(2) .quote-block {
  border-left-color: rgba(var(--landing-excel-rgb), 0.45);
}

.quote-block p {
  color: var(--landing-ink-soft);
  font-style: italic;
  font-family: var(--portal-font-display);
}

.step-block {
  position: relative;
  padding-top: 0.25rem;
}

.step-block__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--landing-word);
}

.col-md-4:nth-child(2) .step-block__num {
  background: var(--landing-excel);
}

.col-md-4:nth-child(3) .step-block__num {
  background: linear-gradient(135deg, var(--landing-excel), var(--landing-word));
}

.landing-section--contact {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--landing-border);
}

/* Login / shared card surfaces (account pages) */
.landing-card {
  background: var(--landing-surface);
  border-radius: 8px;
  border: 1px solid var(--landing-border);
  box-shadow: var(--landing-shadow);
  max-width: 100%;
}

.landing-side-note {
  border-radius: 8px;
  border: 1px dashed rgba(var(--landing-excel-rgb), 0.35);
  background: rgba(var(--landing-excel-rgb), 0.04);
}

.org-box,
.testimonial-card {
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

/* Tenant modal — light */
.portal-landing .login-tenant-modal .modal-content.login-tenant-modal__content {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(31, 36, 40, 0.16);
  color: var(--landing-ink);
}

.portal-landing .login-tenant-modal .modal-header {
  border-bottom: none;
}

.portal-landing .login-tenant-modal .modal-title {
  color: var(--landing-ink);
  font-family: var(--portal-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-landing .login-tenant-modal .login-tenant-modal__lead {
  color: var(--landing-ink-soft);
}

.portal-landing .login-tenant-modal .btn-close--landing {
  filter: none;
  opacity: 0.55;
}

.portal-landing .login-tenant-modal .btn-close--landing:hover {
  opacity: 1;
}

.portal-landing .login-tenant-modal .landing-tenant-hint {
  border-color: rgba(var(--landing-word-rgb), 0.22) !important;
  background: rgba(var(--landing-word-rgb), 0.05) !important;
  color: var(--landing-ink-soft) !important;
}

.portal-landing .login-tenant-modal .login-tenant-card {
  color: var(--landing-ink);
  background: linear-gradient(
    135deg,
    rgba(var(--landing-excel-rgb), 0.08),
    rgba(var(--landing-word-rgb), 0.05)
  );
  border: 1px solid rgba(var(--landing-excel-rgb), 0.28);
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.portal-landing .login-tenant-modal .login-tenant-card:hover,
.portal-landing .login-tenant-modal .login-tenant-card:focus {
  color: var(--landing-ink);
  background: linear-gradient(
    135deg,
    rgba(var(--landing-excel-rgb), 0.14),
    rgba(var(--landing-word-rgb), 0.08)
  );
  border-color: rgba(var(--landing-excel-rgb), 0.55);
  box-shadow: 0 10px 24px rgba(var(--landing-excel-rgb), 0.12);
  transform: translateY(-1px);
}

.portal-landing .login-tenant-modal .login-tenant-card:focus-visible {
  outline: 2px solid var(--landing-excel);
  outline-offset: 2px;
}

.portal-landing .login-tenant-modal .login-tenant-card__icon {
  background: rgba(var(--landing-excel-rgb), 0.12);
  color: var(--landing-excel);
}

.portal-landing .login-tenant-modal .login-tenant-card__chevron {
  color: var(--landing-muted);
  opacity: 0.9;
}

.portal-landing .login-tenant-modal__loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 0 0 10px 10px;
}

.portal-landing .login-tenant-modal__loading-overlay[hidden] {
  display: none !important;
}

.portal-landing .login-tenant-modal__spinner {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--landing-excel);
  border-width: 0.2em;
}

.portal-landing .login-tenant-modal__loading-text {
  color: var(--landing-ink-soft);
  font-weight: 600;
}

.portal-landing .login-tenant-modal .login-tenant-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.portal-landing .login-tenant-modal .btn-close--landing:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Legacy helpers kept for other landing views */
.pricing-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-block {
  border: 1px solid rgba(var(--landing-excel-rgb), 0.22);
}

.client-slider-wrap {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.client-slider-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: client-marquee 24s linear infinite;
}

.client-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--landing-word-rgb), 0.2);
  background: #fff;
  color: var(--landing-ink);
  font-size: max(var(--portal-font-size-min), 0.8rem);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.service-code {
  font-size: max(var(--portal-font-size-min), 0.72rem);
  color: var(--landing-excel);
  border: 1px solid rgba(var(--landing-excel-rgb), 0.25);
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
}

.package-card {
  border: 1px solid var(--landing-border);
}

.package-specs > div {
  gap: 0.75rem;
  padding: 0.15rem 0;
  border-bottom: 1px dashed rgba(31, 36, 40, 0.1);
}

.package-specs > div:last-child {
  border-bottom: 0;
}

.package-features {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: max(var(--portal-font-size-min), 0.72rem);
  line-height: 1.35;
  color: var(--landing-ink-soft);
  background: var(--landing-surface-2);
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  padding: 0.55rem;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--landing-shadow);
}

.pricing-lines strong {
  color: var(--landing-ink);
}

.price-badge {
  background: rgba(var(--landing-excel-rgb), 0.08);
  color: var(--landing-excel);
  border: 1px solid rgba(var(--landing-excel-rgb), 0.25);
  border-radius: 4px;
  padding: 0.08rem 0.55rem;
  font-weight: 600;
  white-space: nowrap;
}

.portal-landing .text-muted {
  color: var(--landing-muted) !important;
}

/* ——— Responsive ——— */
@media (min-width: 768px) {
  body.portal-landing {
    padding-top: 78px;
  }

  .landing-hero {
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
  }

  .landing-section {
    margin-bottom: 2.75rem;
  }
}

@media (min-width: 992px) {
  .landing-navbar .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .landing-split {
    grid-template-columns: 1.15fr 1fr;
  }

  .landing-hero__copy {
    max-width: 36rem;
  }
}

@media (max-width: 991.98px) {
  .landing-navbar .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .landing-navbar .navbar-collapse {
    flex-basis: 100%;
  }

  #navLanding {
    margin-top: 0.6rem;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    background: #fff;
    padding: 0.6rem;
    box-shadow: var(--landing-shadow);
  }

  #navLanding:not(.show) {
    display: none !important;
  }

  #navLanding .nav-link {
    padding: 0.55rem 0.75rem;
  }

  #navLanding .nav-item .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  #navLanding .nav-item .crm-circle-btn {
    width: 100%;
    min-width: 0;
    height: 40px;
    margin-top: 0.35rem;
  }

  .landing-hero__doc--word {
    width: 58vw;
    right: -12%;
    opacity: 0.55;
  }

  .landing-hero__doc--excel {
    width: 42vw;
    right: 8%;
    opacity: 0.5;
  }
}

@media (max-width: 575.98px) {
  body.portal-landing {
    padding-top: 68px;
  }

  .landing-navbar .container,
  .portal-landing .container,
  .portal-landing .landing-main__inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .landing-hero__doc--word,
  .landing-hero__doc--excel {
    display: none;
  }

  .landing-hero__plane::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background:
      linear-gradient(180deg, transparent, rgba(var(--landing-word-rgb), 0.06)),
      linear-gradient(90deg, rgba(var(--landing-excel-rgb), 0.08), transparent 60%);
  }

  .landing-brand-mark {
    font-size: 1.7rem;
  }

  .landing-hero__title {
    font-size: 1.2rem;
  }

  .landing-metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .landing-media-block {
    min-height: 200px;
  }

  .landing-hero__actions .btn {
    width: 100%;
  }
}

@keyframes hero-doc-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-12px, 10px, 0);
  }
}

@keyframes hero-copy-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes client-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__doc--word,
  .landing-hero__doc--excel,
  .landing-hero__copy,
  .client-slider-track {
    animation: none !important;
  }

  .feature-block {
    transition: none;
  }
}

/* Language selector */
.portal-landing .language-selector .language-btn {
  color: var(--landing-ink-soft);
  font-size: max(var(--portal-font-size-min), 0.9375rem);
  white-space: nowrap;
  text-decoration: none;
}

.portal-landing .language-selector .language-btn:hover {
  color: var(--landing-word);
}

.portal-landing .language-selector .language-btn:focus,
.portal-landing .language-selector .language-btn:focus-visible {
  color: var(--landing-word);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--landing-word-rgb), 0.22);
}

.portal-landing .language-selector .current-lang {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--landing-excel);
}

.portal-landing .language-selector .dropdown-menu {
  border: 1px solid var(--landing-border);
  box-shadow: var(--landing-shadow);
}

.portal-landing .language-selector .dropdown-item.language-option:hover,
.portal-landing .language-selector .dropdown-item.language-option:focus {
  color: var(--landing-ink);
  background-color: rgba(var(--landing-word-rgb), 0.08);
}

.portal-landing .language-selector .dropdown-item.language-option.active,
.portal-landing .language-selector .dropdown-item.language-option:active {
  color: var(--landing-ink);
  background-color: rgba(var(--landing-excel-rgb), 0.14);
  font-weight: 600;
}

.portal-landing .language-selector .dropdown-item.language-option.active:hover,
.portal-landing .language-selector .dropdown-item.language-option.active:focus {
  color: var(--landing-ink);
  background-color: rgba(var(--landing-excel-rgb), 0.2);
}

.portal-landing .language-selector .flag-icon {
  width: 20px;
  height: auto;
  max-height: 14px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.portal-landing .language-selector .language-option {
  display: flex;
  align-items: center;
}
