/* Rhodium Customer App - Landing page styles */
/* Brand from app theme: theme_constants.dart / theme_config.dart */

:root {
  --primary: #4C1717;
  --primary-dark: #3a1111;
  --primary-soft: rgba(76, 23, 23, 0.08);
  --secondary: #A58B8B;
  --accent: #8B4513;
  --background: #f6f4f3;
  --surface: #FFFFFF;
  --text-primary: #1a1515;
  --text-secondary: #5c5555;
  --success: #2E7D32;
  --error: #D32F2F;
  --font-display: 'Plus Jakarta Sans', 'Maven Pro', sans-serif;
  --font-primary: 'Maven Pro', 'Roboto', sans-serif;
  --font-fallback: 'Roboto', sans-serif;
  --font-arabic: 'Cairo', 'Maven Pro', sans-serif;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow: 0 4px 20px rgba(26, 21, 21, 0.06);
  --shadow-hover: 0 12px 36px rgba(76, 23, 23, 0.14);
  --shadow-glow: 0 0 80px rgba(76, 23, 23, 0.12);
}

/* Render below-the-fold sections lazily on supported browsers */
@supports (content-visibility: auto) {
  #main-content > section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Anchor targets clear the fixed navbar without jump (also scroll via JS in main.js) */
section[id],
footer[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* Skip link - visible on focus only */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid white;
  outline-offset: 2px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

/* Arabic: use Cairo for entire page (nav, headings, body, etc.) */
html[lang="ar"],
html[dir="rtl"] {
  --font-primary: var(--font-arabic);
  --font-display: var(--font-arabic);
}

/* Navbar */
#mainNav {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

#mainNav.nav-at-hero {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

#mainNav.nav-at-hero .navbar-brand,
#mainNav.nav-at-hero .nav-link {
  color: var(--text-primary);
}

#mainNav.nav-at-hero .nav-link:hover {
  color: var(--primary);
}

#mainNav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--primary);
  opacity: 0.9;
}

.navbar-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  background-color: rgba(76, 23, 23, 0.06);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

#mainNav.nav-at-hero .nav-link.active {
  color: var(--primary);
}

.navbar-toggler {
  border-color: var(--secondary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(76, 23, 23, 0.2);
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  border: 1px solid rgba(76, 23, 23, 0.15);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 8px rgba(76, 23, 23, 0.06);
}

.lang-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover {
  color: var(--primary);
  background-color: rgba(76, 23, 23, 0.06);
}

.lang-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--background);
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(76, 23, 23, 0.09) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(139, 69, 19, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(76, 23, 23, 0.05) 0%, transparent 40%),
    linear-gradient(165deg, #faf8f7 0%, var(--background) 45%, #f3eeec 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content .reveal-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .reveal-item:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal-item:nth-child(2) { transition-delay: 0.15s; }
.hero-content .reveal-item:nth-child(3) { transition-delay: 0.2s; }
.hero-content .reveal-item:nth-child(4) { transition-delay: 0.3s; }
.hero-content .reveal-item:nth-child(5) { transition-delay: 0.4s; }
.hero-content .reveal-item:nth-child(6) { transition-delay: 0.5s; }
.hero-content .reveal-item:nth-child(7) { transition-delay: 0.6s; }

.hero-visual {
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(76, 23, 23, 0.12);
  box-shadow: 0 4px 16px rgba(76, 23, 23, 0.07);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subcopy {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 1rem;
}

.hero-bullets {
  font-size: 0.9375rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-launching {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-launching::before {
  content: '•';
  display: inline-block;
  margin-inline-end: 0.5rem;
  color: var(--accent);
}

.cta-primary {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  font-size: 1.0625rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #5a1f1f 0%, var(--primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(76, 23, 23, 0.35);
}

.cta-primary:focus {
  box-shadow: 0 0 0 3px rgba(76, 23, 23, 0.35);
}

.hero .hero-cta-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  border-width: 2px;
  padding: 0.85rem 1.65rem;
  color: var(--primary);
  border-color: rgba(76, 23, 23, 0.35);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero .hero-cta-secondary:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(76, 23, 23, 0.12);
}

.lottie-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  min-height: 200px;
  max-width: 90%;
  opacity: 0.85;
  z-index: 0;
}

.hero-device {
  position: relative;
  z-index: 1;
  max-height: 500px;
  object-fit: contain;
}

/* Scroll reveal (global) */
.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-section.reveal,
.reveal-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.feature-card-wrap.reveal-section { transition-delay: calc(var(--i, 0) * 0.06s); }
.step-wrap.reveal-section { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Section titles */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Highlights strip */
.highlights {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(250, 248, 247, 0.98) 100%);
  border-top: 1px solid rgba(76, 23, 23, 0.06);
  border-bottom: 1px solid rgba(76, 23, 23, 0.06);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.highlight-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(76, 23, 23, 0.1), rgba(76, 23, 23, 0.04));
  border: 1px solid rgba(76, 23, 23, 0.08);
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.25s ease;
}

.highlight-item:hover .highlight-icon-wrap {
  transform: scale(1.08);
  background: rgba(76, 23, 23, 0.12);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.05);
}

/* Features */
.features {
  background-color: var(--surface);
}

/* Physicians */
.physicians {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--surface) 100%);
  border-top: 1px solid rgba(76, 23, 23, 0.06);
  border-bottom: 1px solid rgba(76, 23, 23, 0.06);
}

.physicians-intro {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.provider-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 249, 0.95) 100%);
  border: 1px solid rgba(76, 23, 23, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.provider-benefit {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: rgba(76, 23, 23, 0.04);
  border: 1px solid rgba(76, 23, 23, 0.08);
  height: 100%;
}

.provider-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(76, 23, 23, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.provider-benefit-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.provider-benefit-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.provider-trust {
  display: grid;
  gap: 0.5rem;
}

.provider-trust-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-weight: 600;
}

.provider-trust-item i {
  color: var(--success);
  margin-top: 0.2rem;
}

.provider-form-card {
  background: var(--surface);
  border: 1px solid rgba(76, 23, 23, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.provider-form-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
}

.provider-form-sub {
  color: var(--text-secondary);
}

.rhodium-form .form-control {
  border-radius: var(--radius-md);
  border-color: rgba(76, 23, 23, 0.16);
  padding: 0.75rem 0.9rem;
}

.rhodium-form .form-control:focus {
  border-color: rgba(76, 23, 23, 0.4);
  box-shadow: 0 0 0 3px rgba(76, 23, 23, 0.14);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tab {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--background);
  border: 1px solid rgba(76, 23, 23, 0.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.feature-tab:hover {
  color: var(--primary);
  background: rgba(76, 23, 23, 0.06);
  border-color: rgba(76, 23, 23, 0.2);
}

.feature-tab.active {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.feature-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* When tabs exist, hide in-content category headings */
.features:has(.feature-tabs) .feature-category {
  display: none;
}

/* Hide feature cards that are not in the active category */
.feature-card-wrap[data-feature-category]:not(.feature-category-visible) {
  display: none !important;
}

.feature-intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.market-feature-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.market-feature-list li {
  margin-bottom: 0.35rem;
}

.market-feature-list li:last-child {
  margin-bottom: 0;
}

.closing-rmc {
  background: linear-gradient(180deg, rgba(76, 23, 23, 0.04) 0%, transparent 100%);
  border-top: 1px solid rgba(26, 21, 21, 0.06);
  border-bottom: 1px solid rgba(26, 21, 21, 0.06);
}

.closing-rmc-inner {
  max-width: 820px;
}

.closing-rmc-copy {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-category {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid rgba(76, 23, 23, 0.15);
}

.feature-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.feature-card .card-body {
  padding: 1.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(76, 23, 23, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* How it works */
.how-it-works {
  background-color: var(--background);
}

.steps-row {
  position: relative;
}

/* Connector line between steps (desktop only) */
@media (min-width: 992px) {
  .steps-row::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, rgba(76, 23, 23, 0.2) 0%, rgba(76, 23, 23, 0.35) 50%, rgba(76, 23, 23, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
  }
  .steps-row .step-wrap {
    position: relative;
    z-index: 1;
  }
}

.step-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(76, 23, 23, 0.25);
}

.step-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* App preview */
.app-preview {
  background-color: var(--surface);
}

.preview-main-wrap {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.preview-device-frame {
  padding: 12px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

.preview-main-img {
  display: block;
  border-radius: 16px;
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

.preview-thumbnails {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.preview-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.preview-thumb-btn:hover {
  border-color: rgba(76, 23, 23, 0.2);
}

.preview-thumb-btn.active,
.preview-thumb-btn:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 23, 23, 0.2);
}

.preview-thumb-img {
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-height: 140px;
  object-fit: cover;
  width: 100%;
}

.preview-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Download section */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, #6b2020 100%);
  color: white;
}

.download-inner {
  max-width: 640px;
  margin: 0 auto;
}

.download .section-title {
  color: white;
}

.download-subcopy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.launch-forms {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.launch-card-single {
  margin-left: auto;
  margin-right: auto;
}

.waitlist-message {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.waitlist-msg-success {
  background: rgba(255, 255, 255, 0.95);
  color: var(--success);
}

.waitlist-msg-error {
  background: rgba(255, 235, 238, 0.95);
  color: #b71c1c;
}

.waitlist-message a {
  color: inherit;
  font-weight: 700;
}

/* Quick SEO-visible metrics (factual counts from the product) */
.trust-metrics {
  background: var(--surface);
  border-color: rgba(26, 21, 21, 0.06) !important;
}

.trust-metric {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.trust-metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.1;
  color: var(--primary);
}

.trust-metric-label {
  display: block;
  margin-top: 0.25rem;
}

.launch-card {
  height: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.25rem 1.35rem;
}

.launch-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.launch-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
}

.launch-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
}

.launch-card-desc {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.launch-btn {
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1rem;
}

.launch-btn-outline {
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  border-width: 2px;
}

.download .rhodium-form .form-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.download .rhodium-form .form-control {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.download .rhodium-form .form-control:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.download .rhodium-form .form-note {
  color: rgba(255, 255, 255, 0.75);
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  animation: coming-soon-pulse 2.5s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.lottie-download {
  width: 120px;
  height: 120px;
  min-height: 120px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Store buttons - identical size, custom style */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 200px;
  width: 200px;
  height: 56px;
  padding: 0 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #f5f5f5;
  color: #1f1f1f;
}

.store-btn-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.store-btn-name {
  font-size: 1rem;
  font-weight: 700;
}

.btn-download {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--primary);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download .btn-download-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-download:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-download:hover .btn-download-icon {
  transform: scale(1.15);
}

.qr-hint {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

/* Footer */
.footer {
  background-color: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--primary);
  opacity: 0.9;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-social-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-inline-end: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: rgba(76, 23, 23, 0.06);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  color: var(--primary);
  background: rgba(76, 23, 23, 0.12);
  transform: scale(1.05);
}

/* Download section layout + phone mockup */
.download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.download-mockup {
  flex-shrink: 0;
}

.phone-mockup {
  width: 160px;
  height: 280px;
  border-radius: 24px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.05);
  padding: 10px;
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #333;
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(76, 23, 23, 0.15) 0%, rgba(76, 23, 23, 0.05) 100%);
}

@media (min-width: 992px) {
  .download-wrap {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }
  .download-inner {
    flex: 1;
    max-width: 480px;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== Responsive: all screens ========== */
/* Container padding at all breakpoints */
.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Extra small (320px+) */
@media (min-width: 320px) {
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  .cta-primary {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
  }
  .feature-tab {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --nav-height: 64px;
  }
  .navbar-logo {
    height: 36px;
  }
  .hero {
    min-height: calc(100vh - var(--nav-height));
  }
  .hero-content .hero-subcopy,
  .hero-content .hero-bullets {
    max-width: 100%;
  }
  .hero-device {
    max-height: 280px;
  }
  .lottie-hero {
    width: 180px;
    height: 180px;
    min-height: 160px;
  }
  .highlight-icon-wrap {
    width: 44px;
    height: 44px;
  }
  .highlight-icon {
    font-size: 1.25rem;
  }
  .feature-card .card-body {
    padding: 1.25rem;
  }
  .feature-tabs {
    gap: 0.35rem;
  }
  .step-card {
    padding: 1.25rem;
  }
  .step-num {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }
  .preview-main-wrap {
    max-width: 260px;
  }
  .preview-device-frame {
    padding: 10px;
    border-radius: 22px;
  }
  .preview-main-img {
    max-height: 340px;
  }
  .preview-thumb-img {
    max-height: 90px;
  }
  .store-btn {
    min-width: 160px;
    width: 160px;
    height: 48px;
    padding: 0 0.75rem;
    gap: 8px;
  }
  .store-btn-icon {
    font-size: 1.5rem;
  }
  .store-btn-label {
    font-size: 0.6rem;
  }
  .store-btn-name {
    font-size: 0.9rem;
  }
  .footer-social-link {
    width: 44px;
    height: 44px;
  }
}

/* Small (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-device {
    max-height: 360px;
  }
  .preview-main-img {
    max-height: 400px;
  }
}

/* Medium (768px - 991px) */
@media (max-width: 991.98px) {
  .hero-subcopy {
    max-width: 100%;
  }
  .steps-row::before {
    display: none;
  }
}

/* Large (992px+) - desktop */
@media (min-width: 992px) {
  .download-mockup {
    display: block !important;
  }
}

/* Touch targets and overflow */
@media (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .lang-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .preview-thumb-btn {
    min-height: 44px;
  }
}

/* --- Plans & pricing (catalog / fallback) --- */
.plans-pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(76, 23, 23, 0.06) 0%, var(--background) 42%, #faf8f7 100%);
}

.plans-pricing-glow {
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 55%;
  min-height: 280px;
  background: radial-gradient(ellipse 75% 80% at 50% 0%, rgba(76, 23, 23, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.plans-intro {
  max-width: 640px;
}

.plans-asof {
  font-size: 0.85rem;
}

.plans-tier-row {
  margin-top: 0.5rem;
}

.plan-tier-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 249, 0.95) 100%);
  border: 1px solid rgba(76, 23, 23, 0.1);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(76, 23, 23, 0.18);
}

.plan-tier-card-featured {
  border-color: rgba(76, 23, 23, 0.42);
  box-shadow: 0 12px 40px rgba(76, 23, 23, 0.18), 0 0 0 1px rgba(76, 23, 23, 0.08);
  transform: scale(1.02);
}

.plan-tier-card-featured:hover {
  transform: translateY(-4px) scale(1.02);
}

.plan-tier-card-inner {
  padding: 1.25rem 1rem;
}

.plan-tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.plan-tier-tagline {
  margin: 0;
  min-height: 2.5rem;
}

.plan-promo-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(46, 125, 50, 0.15);
  color: var(--success);
}

.plan-tier-price-block {
  margin-top: 0.5rem;
}

.plan-price-was {
  font-size: 0.8rem;
}

.plan-price-headline {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.plan-currency {
  font-size: 0.85em;
  font-weight: 600;
}

.plan-price-period {
  margin-top: 0.15rem;
}

.plan-price-monthly {
  color: var(--text-secondary);
}

.plans-matrix-wrap {
  max-width: 100%;
}

.plans-table-responsive {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.plans-matrix-table {
  margin-bottom: 0;
  font-size: 0.875rem;
  --bs-table-border-color: rgba(76, 23, 23, 0.1);
}

.plans-matrix-table thead th {
  background: linear-gradient(180deg, rgba(76, 23, 23, 0.09) 0%, rgba(76, 23, 23, 0.04) 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  border-bottom: 2px solid rgba(76, 23, 23, 0.12);
}

.plans-th-feature {
  min-width: 160px;
}

.plans-feature-label {
  font-weight: 600;
  text-align: start;
  max-width: 220px;
}

.plans-check {
  color: var(--success);
  font-size: 1.1rem;
}

.plans-x {
  color: var(--error);
  opacity: 0.65;
  font-size: 0.95rem;
}

.plans-cell-muted {
  color: var(--text-secondary);
  opacity: 0.7;
}

.plans-cell-strong {
  font-weight: 800;
  color: var(--primary);
}

.plans-fallback-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.plans-spinner {
  width: 2.5rem;
  height: 2.5rem;
}

#plans-catalog-mount .plans-loading {
  min-height: 120px;
}

/* Membership-style plan grid + comparison (burgundy / index palette) */
.mp-membership-inner {
  position: relative;
}

.mp-billing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.mp-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mp-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: var(--surface);
  border: 1px solid rgba(76, 23, 23, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.mp-toggle button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}

.mp-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.mp-toggle button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mp-save-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(46, 125, 50, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mp-save-pill.mp-save-pill-visible {
  opacity: 1;
}

.mp-live-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.mp-live-badge[data-live="false"] {
  color: var(--text-secondary);
}

.mp-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .mp-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mp-plans-grid {
    grid-template-columns: 1fr;
  }
}

.mp-plan {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 249, 0.95) 100%);
  border: 1px solid rgba(76, 23, 23, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mp-plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(76, 23, 23, 0.18);
}

.mp-plan-featured {
  border-color: rgba(76, 23, 23, 0.42);
  box-shadow: 0 12px 40px rgba(76, 23, 23, 0.16), 0 0 0 1px rgba(76, 23, 23, 0.06);
}

.mp-plan-badge {
  position: absolute;
  top: -10px;
  inset-inline-end: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.mp-plan-name {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.mp-plan-tagline {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 2.5rem;
}

.mp-price-row {
  margin-bottom: 1rem;
}

.mp-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.mp-price-cur {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-inline-end: 0.15rem;
}

.mp-price-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mp-price-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.mp-price-was {
  color: var(--text-secondary);
  opacity: 0.85;
}

.mp-price-promo {
  color: var(--success);
  font-weight: 600;
}

.mp-plan-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.88rem;
}

.mp-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.mp-feat-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.mp-plan-feature-off .mp-feat-icon,
.mp-feat-icon-off {
  color: rgba(92, 85, 85, 0.35);
}

.mp-plan-feature-off {
  color: var(--text-secondary);
}

.mp-plan-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(76, 23, 23, 0.18);
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mp-plan-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mp-plan-cta-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: #fff;
}

.mp-plan-cta-primary:hover {
  color: #fff;
  filter: brightness(1.05);
  border-color: transparent;
}

.mp-compare-section {
  margin-top: 3.5rem;
}

.mp-compare-heading {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.mp-compare-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  max-width: 40rem;
}

.mp-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 23, 23, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table.mp-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
  margin-bottom: 0;
}

.mp-compare th,
.mp-compare td {
  padding: 0.75rem 1rem;
  text-align: start;
  border-bottom: 1px solid rgba(76, 23, 23, 0.08);
  vertical-align: middle;
}

.mp-compare thead th {
  background: linear-gradient(180deg, rgba(76, 23, 23, 0.09) 0%, rgba(76, 23, 23, 0.04) 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.mp-compare tbody tr:last-child td {
  border-bottom: none;
}

.mp-compare .mp-cat {
  background: rgba(76, 23, 23, 0.07);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.mp-compare td:not(:first-child),
.mp-compare th:not(:first-child) {
  text-align: center;
}

.mp-cell-yes {
  color: var(--success);
  font-weight: 700;
}

.mp-cell-no {
  color: rgba(92, 85, 85, 0.35);
}

.mp-cell-struct {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mp-cell-unit {
  color: var(--text-secondary);
  opacity: 0.75;
}

.mp-api-note code {
  font-size: 0.8em;
  color: var(--primary);
  background: rgba(76, 23, 23, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

[dir="rtl"] .mp-compare th,
[dir="rtl"] .mp-compare td {
  text-align: start;
}

[dir="rtl"] .mp-compare td:not(:first-child),
[dir="rtl"] .mp-compare th:not(:first-child) {
  text-align: center;
}

[dir="rtl"] .plans-feature-label {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-content .reveal-item,
  .reveal-section,
  .reveal-item,
  .plan-tier-card,
  .mp-plan,
  .feature-card,
  .highlight-icon-wrap {
    transition: none;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* RTL */
[dir="rtl"] .hero-bullets,
[dir="rtl"] .hero-subcopy {
  max-width: 520px;
}

[dir="rtl"] .feature-intro {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .lang-switcher .lang-btn:first-child {
  border-inline-start: 1px solid rgba(76, 23, 23, 0.2);
}

[dir="rtl"] .navbar-nav.ms-auto {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

[dir="rtl"] .footer-link.me-3 {
  margin-inline-end: 0.5rem;
  margin-inline-start: 0.5rem;
}

[dir="rtl"] .text-md-end {
  text-align: left;
}

[dir="rtl"] .lottie-download {
  margin-left: auto;
  margin-right: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-item,
  .hero-content .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .coming-soon-badge {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .cta-primary:hover,
  .feature-card:hover,
  .btn-download:hover,
  .store-btn:hover,
  .highlight-item:hover .highlight-icon-wrap,
  .highlight-item:hover .highlight-icon {
    transform: none;
  }
}
