/**
 * Kuetu auth + landing hero/pricing — visual layer only
 * Accent: #444DDB · surfaces: #f4f7fb · Inter/system
 */

/* ═══════════════════════════════════════════
   Auth — centered card
   ═══════════════════════════════════════════ */

.auth-body {
  font-family: var(--st-font-sans, Inter, system-ui, sans-serif);
  background: var(--st-bg, #f4f7fb);
  color: var(--st-text, #1a2332);
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(68, 77, 219, 0.16), transparent 55%),
    radial-gradient(720px 420px at 100% 0%, rgba(68, 77, 219, 0.1), transparent 50%),
    linear-gradient(165deg, #eef2fb 0%, #f4f7fb 45%, #e8edf6 100%);
}

.auth-page__lang {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

[dir="rtl"] .auth-page__lang {
  right: auto;
  left: 1.25rem;
}

.auth-page__lang .st-language-switcher .btn-outline-secondary {
  border-color: var(--st-border, #e2e8f0);
  color: var(--st-text-secondary, #64748b);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
}

.auth-page__lang .st-language-switcher .btn-outline-secondary:hover,
.auth-page__lang .st-language-switcher .btn-outline-secondary:focus {
  background: #fff;
  border-color: var(--st-brand, #444DDB);
  color: var(--st-brand, #444DDB);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--st-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(44, 51, 168, 0.1);
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 480px) {
  .auth-card {
    padding: 2.25rem 2rem 2rem;
  }
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none !important;
  margin-bottom: 1.5rem;
  color: var(--st-text, #1a2332) !important;
}

.auth-brand:hover {
  color: var(--st-brand, #444DDB) !important;
}

.auth-brand__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.auth-brand__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.auth-panel {
  width: 100%;
}

.auth-panel__intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-brand, #444DDB);
  margin-bottom: 0.5rem;
}

.auth-panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--st-text, #1a2332);
  margin: 0 0 0.4rem;
}

.auth-panel__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--st-text-secondary, #64748b);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--st-border, #e2e8f0);
  background: #fff;
  color: var(--st-text, #1a2332);
  font-weight: 600;
  font-size: 0.9375rem;
}

.auth-social__btn:hover {
  background: var(--st-bg, #f4f7fb);
  border-color: #cbd5e1;
  color: var(--st-text, #1a2332);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.15rem 0;
  color: var(--st-text-secondary, #64748b);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--st-border, #e2e8f0);
}

.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--st-text, #1a2332);
  margin-bottom: 0.4rem;
}

.auth-input {
  position: relative;
}

.auth-input__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--st-muted, #64748b);
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 1;
}

[dir="rtl"] .auth-input__icon {
  left: auto;
  right: 0.9rem;
}

.auth-field__input,
.auth-input .form-control,
.auth-input .form-select {
  width: 100%;
  border-radius: 10px !important;
  border: 1px solid var(--st-border, #e2e8f0) !important;
  background: #fff !important;
  color: var(--st-text, #1a2332) !important;
  font-size: 0.9375rem;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem !important;
  box-shadow: none !important;
  min-height: 46px;
}

[dir="rtl"] .auth-field__input,
[dir="rtl"] .auth-input .form-control,
[dir="rtl"] .auth-input .form-select {
  padding: 0.7rem 2.5rem 0.7rem 0.9rem !important;
}

.auth-field__input:focus,
.auth-input .form-control:focus,
.auth-input .form-select:focus {
  border-color: var(--st-brand, #444DDB) !important;
  box-shadow: 0 0 0 3px rgba(68, 77, 219, 0.18) !important;
}

.auth-input__toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--st-muted, #64748b);
  padding: 0.35rem;
  line-height: 1;
  cursor: pointer;
}

[dir="rtl"] .auth-input__toggle {
  right: auto;
  left: 0.65rem;
}

.auth-field__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--st-danger, #dc2626);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
}

.auth-meta .form-check-label {
  color: var(--st-text-secondary, #64748b);
}

.auth-meta__link {
  color: var(--st-brand, #444DDB) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-meta__link:hover {
  color: var(--st-brand-hover, #353cbc) !important;
  text-decoration: underline;
}

.auth-agree {
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
}

.auth-agree a {
  color: var(--st-brand, #444DDB);
  font-weight: 600;
}

/* Primary CTA — always solid brand + white text */
.auth-submit,
.auth-card .btn.auth-submit,
.auth-card button.auth-submit[type="submit"],
.auth-card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #444DDB !important;
  background: #444DDB !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(68, 77, 219, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus,
.auth-card .btn.auth-submit:hover,
.auth-card .btn.auth-submit:focus,
.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
  background: #353cbc !important;
  border-color: #353cbc !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(68, 77, 219, 0.34);
}

.auth-switch {
  text-align: center;
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--st-text-secondary, #64748b);
}

.auth-switch a {
  color: var(--st-brand, #444DDB) !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: 0.25rem;
}

.auth-switch a:hover {
  color: var(--st-brand-hover, #353cbc) !important;
  text-decoration: underline;
}

.auth-footnote {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--st-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Hide legacy Able Pro auth chrome if still present */
.auth-main .auth-sidecontent,
.auth-aside,
.auth-sidecontent {
  display: none !important;
}

/* ═══════════════════════════════════════════
   Landing — nav, hero, pricing
   ═══════════════════════════════════════════ */

.landing-page {
  background: var(--st-bg, #f4f7fb);
  font-family: var(--st-font-sans, Inter, system-ui, sans-serif);
}

.landing-page .navbar.lp-nav,
.landing-page .navbar.default.lp-nav {
  background: linear-gradient(135deg, #444DDB 0%, #2c33a8 100%) !important;
  backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: 0 8px 28px rgba(44, 51, 168, 0.22);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.landing-page .lp-nav .navbar-brand.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.landing-page .lp-nav .navbar-brand.landing-logo img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.landing-page .lp-nav .lp-brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.landing-page .lp-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
}

.landing-page .lp-nav .nav-link:hover,
.landing-page .lp-nav .nav-link.active {
  color: #ffffff !important;
}

.landing-page .lp-nav .btn-secondary,
.landing-page .lp-nav .lp-nav-cta {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #444DDB !important;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.45rem 1rem;
}

.landing-page .lp-nav .btn-secondary:hover,
.landing-page .lp-nav .lp-nav-cta:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #2c33a8 !important;
}

.landing-page .lp-nav .st-language-switcher .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
  border-radius: 9999px;
}

.landing-page .lp-nav .st-language-switcher .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

/* Hero — full-bleed atmosphere, single composition */
.lp-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(44, 51, 168, 0.92) 0%, rgba(68, 77, 219, 0.82) 42%, rgba(30, 41, 110, 0.9) 100%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.08), transparent 50%),
    #2c33a8;
  background-size: cover;
  background-position: center;
}

.lp-hero__bg--image {
  background-blend-mode: multiply, normal, normal, normal;
}

.lp-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: lp-grid-drift 28s linear infinite;
}

@keyframes lp-grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.lp-hero__inner {
  position: relative;
  padding: 4.5rem 0 5rem;
  max-width: 720px;
}

.lp-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: lp-fade-up 0.7s ease both;
}

.lp-hero__brand img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.lp-hero__brand-name {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.lp-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff !important;
  margin: 0 0 1rem;
  animation: lp-fade-up 0.75s ease 0.08s both;
}

.lp-hero__lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-weight: 400;
  animation: lp-fade-up 0.75s ease 0.16s both;
}

.lp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: lp-fade-up 0.75s ease 0.24s both;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #444DDB !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-btn-primary:hover {
  transform: translateY(-1px);
  color: #2c33a8 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

@keyframes lp-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pricing */
.lp-pricing {
  background: var(--st-bg, #f4f7fb);
  padding: 4.5rem 0;
}

.lp-pricing__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.lp-pricing__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--st-text, #1a2332);
  margin-bottom: 0.65rem;
}

.lp-pricing__header p {
  margin: 0;
  color: var(--st-text-secondary, #64748b);
  font-size: 1.05rem;
  line-height: 1.5;
}

.lp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.lp-pricing-card {
  background: #ffffff;
  border: 1px solid var(--st-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(44, 51, 168, 0.06);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(68, 77, 219, 0.14);
  border-color: rgba(68, 77, 219, 0.35);
}

.lp-pricing-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--st-text, #1a2332);
  margin: 0 0 1rem;
}

.lp-pricing-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin-bottom: 1.35rem;
  color: var(--st-text, #1a2332);
  font-variant-numeric: tabular-nums;
}

.lp-pricing-card__price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #444DDB;
}

.lp-pricing-card__price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #444DDB;
}

.lp-pricing-card__price-interval {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--st-text-secondary, #64748b);
}

.lp-pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.lp-pricing-card__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--st-border-subtle, #edf1f5);
  font-size: 0.9rem;
  color: var(--st-text-secondary, #64748b);
  text-align: start;
}

.lp-pricing-card__list li:last-child {
  border-bottom: none;
}

.lp-pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #cbd5e1;
}

[dir="rtl"] .lp-pricing-card__list li {
  padding: 0.55rem 1.5rem 0.55rem 0;
}

[dir="rtl"] .lp-pricing-card__list li::before {
  left: auto;
  right: 0;
}

.lp-pricing-card__list li.is-enabled {
  color: var(--st-text, #1a2332);
  font-weight: 500;
}

.lp-pricing-card__list li.is-enabled::before {
  background: #444DDB;
}

.lp-pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #444DDB !important;
  background: #444DDB !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-pricing-card__cta:hover {
  background: #353cbc !important;
  border-color: #353cbc !important;
  color: #ffffff !important;
}

/* Prefer light auth/landing even if theme_mode is dark */
.auth-body[data-pc-theme],
.landing-page[data-pc-theme] {
  color-scheme: light;
}
