/* English / LTR overrides — load after style.css on /en/* pages */
/* Fonts: link Inter + Plus Jakarta Sans in each /en/*.html head */

html[dir="ltr"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[dir="ltr"] body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
}

html[dir="ltr"] .nav-brand-name,
html[dir="ltr"] .landing-about-title,
html[dir="ltr"] .tool-header h1,
html[dir="ltr"] .report-section-title,
html[dir="ltr"] .card h2,
html[dir="ltr"] .legal-page h2,
html[dir="ltr"] .legal-page h3 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.025em;
}

/* Hero title — Cormorant Garamond: editorial private-banking serif */
html[dir="ltr"].page-landing.page-en .landing-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5.2vw, 2.65rem) !important;
  letter-spacing: 0.015em;
  line-height: 1.14;
  margin-bottom: 14px !important;
  text-wrap: balance;
  font-feature-settings: "liga" 1, "kern" 1;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0c1222 !important;
  color: #0c1222 !important;
}

html[dir="ltr"].page-landing.page-en .landing-cta-tagline {
  font-size: 0.625rem !important;
  line-height: 1.6;
  font-weight: 400;
  color: #64748b;
  max-width: 26rem;
  margin-bottom: 20px !important;
}

html[dir="ltr"] .navbar,
html[dir="ltr"] .nav-menu,
html[dir="ltr"] .nav-brand-link {
  direction: ltr;
}

html[dir="ltr"] .nav-menu {
  flex-direction: row;
}

html[dir="ltr"] body.page-landing .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 24px rgba(15, 23, 42, 0.04);
}

html[dir="ltr"] .nav-brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: #64748b;
}

html[dir="ltr"] .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
}

html[dir="ltr"] .landing-trust {
  direction: ltr;
}

html[dir="ltr"] .landing-cta-panel {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

html[dir="ltr"] .landing-about-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}

/* About block — card + justified body (EN page lacks .landing-about-open wrapper) */
html[dir="ltr"] .landing-about-en {
  width: 100%;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  text-align: left;
}

html[dir="ltr"] .landing-about-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 0 0 16px;
}

html[dir="ltr"] .landing-about-en .landing-about-body {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

html[dir="ltr"] .landing-about-en .landing-about-body p {
  margin: 0 0 12px;
}

html[dir="ltr"] .landing-about-en .landing-about-body p:last-child {
  margin-bottom: 0;
}

/* Footer — override FA guest rule that hides copyright */
html[dir="ltr"].page-landing.page-en .footer-left {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

html[dir="ltr"].page-landing.page-en .footer-advanced,
html[dir="ltr"].page-landing.page-en .en-footer {
  margin-top: 28px;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
}

html[dir="ltr"].page-landing.page-en .footer-content {
  justify-content: space-between;
  width: 100%;
}

html[dir="ltr"].page-landing.page-en .footer-right {
  justify-content: flex-end;
  width: auto;
  margin: 0;
}

html[dir="ltr"].page-landing.page-en .en-footer-wrap.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 36px;
}

html[dir="ltr"].page-landing.page-en .footer-left span,
html[dir="ltr"].page-landing.page-en .footer-left a {
  color: #64748b;
  font-size: 0.8125rem;
}

html[dir="ltr"] .landing-hero {
  padding-bottom: 8px;
}

html[dir="ltr"] .landing-trust li {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

html[dir="ltr"] .char-counter {
  text-align: right;
}

html[dir="ltr"] .plan-item {
  border-right: none;
  border-left: 3px solid #3b82f6;
  padding: 10px 14px;
}

html[dir="ltr"] .footer-left span {
  margin-right: 0;
  margin-left: 12px;
}

html[dir="ltr"] .en-fa-note {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 16px;
  line-height: 1.65;
}

html[dir="ltr"] .en-fa-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

html[dir="ltr"] .en-fa-note a:hover {
  text-decoration: underline;
}

html[dir="ltr"] .landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

html[dir="ltr"] .btn {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[dir="ltr"] .btn-primary {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35), 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[dir="ltr"] .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4), 0 2px 4px rgba(15, 23, 42, 0.08);
}

html[dir="ltr"] .btn-secondary-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
}

html[dir="ltr"] .btn-secondary-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Tool / checkup page */
html[dir="ltr"] .tool-card {
  border-radius: 16px;
  border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[dir="ltr"] .tool-form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
}

html[dir="ltr"] .tool-form-group input {
  border-radius: 10px;
  border-color: #cbd5e1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[dir="ltr"] .tool-form-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

html[dir="ltr"] .tool-score-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

html[dir="ltr"] .tool-priority {
  border-radius: 12px;
}

/* Sample report */
html[dir="ltr"] .sample-banner {
  font-weight: 500;
}

html[dir="ltr"] .report-section {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[dir="ltr"] .score-value {
  font-family: "Plus Jakarta Sans", sans-serif;
}

html[dir="ltr"] .legal-page .card {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

html[dir="ltr"] .legal-page p {
  line-height: 1.75;
  color: #475569;
}

@media (max-width: 768px) {
  html[dir="ltr"] .nav-menu.active {
    left: 0;
    right: auto;
  }

  html[dir="ltr"] .lang-switch-wrap {
    margin: 8px auto 0;
  }
}
