/* ==========================================================================
   Ostadi Marketing Site — Design System & Styles
   Modern SaaS Aesthetics · Light & Dark Theme · Cairo & Plus Jakarta Sans
   ========================================================================== */

/* ---- Design Tokens & Color Palettes ---- */
:root {
  /* Brand Accents */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;
  --sky-glow: rgba(2, 132, 199, 0.25);

  /* Status & Accents */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-glow: rgba(22, 163, 74, 0.2);

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-glow: rgba(245, 158, 11, 0.2);

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;

  /* Geometry & Timing */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography Stacks */
  --font-ar: "Cairo", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---- Light Theme (Default) ---- */
:root, [data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-topbar: rgba(255, 255, 255, 0.88);
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-input: #ffffff;

  --text-main: #0f172a;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: var(--sky-500);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --topbar-border: rgba(226, 232, 240, 0.8);
  --hero-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  --hero-border: #bae6fd;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-topbar: rgba(11, 15, 25, 0.85);
  --bg-card: #0f172a;
  --bg-card-hover: #151f38;
  --bg-subtle: #1e293b;
  --bg-hover: #334155;
  --bg-input: #0b1120;

  --text-main: #f8fafc;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-subtle: #1e293b;
  --border-card: #1e293b;
  --border-focus: var(--sky-400);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 20px -4px rgba(0, 0, 0, 0.6), 0 4px 8px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 32px -8px rgba(0, 0, 0, 0.7);

  --topbar-border: rgba(30, 41, 59, 0.8);
  --hero-bg: linear-gradient(135deg, #090d16 0%, #0c1830 50%, #0c2340 100%);
  --hero-border: rgba(14, 165, 233, 0.25);

  /* Badge tints for dark mode */
  --sky-50: rgba(14, 165, 233, 0.12);
  --sky-100: rgba(14, 165, 233, 0.2);
  --sky-200: rgba(14, 165, 233, 0.35);
  --green-50: rgba(34, 197, 94, 0.12);
  --green-100: rgba(34, 197, 94, 0.2);
  --amber-50: rgba(245, 158, 11, 0.12);
  --amber-100: rgba(245, 158, 11, 0.2);
  --red-50: rgba(239, 68, 68, 0.12);
  --red-100: rgba(239, 68, 68, 0.2);
  --purple-50: rgba(168, 85, 247, 0.12);
  --purple-100: rgba(168, 85, 247, 0.2);
}

/* ---- Reset & Global Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[lang="fr"] body,
html[dir="ltr"] body {
  font-family: var(--font-latin);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: -0.02em;
}

.fine {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

/* ---- Topbar Glass Navigation ---- */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--shadow-xs);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 8px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  user-select: none;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px var(--sky-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.top-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.top-nav a:hover {
  color: var(--text-heading);
  background: var(--bg-card);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn-toggle:hover {
  background: var(--bg-hover);
  color: var(--sky-600);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--sky-50);
  border: 1.5px solid var(--sky-200);
  color: var(--sky-700);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .lang-toggle {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.35);
  color: var(--sky-300);
}

.lang-toggle:hover {
  background: var(--sky-100);
  border-color: var(--sky-400);
}

.lang-toggle:active {
  transform: scale(0.96);
}

/* Mobile Nav Dock */
@media (max-width: 640px) {
  header.topbar {
    z-index: 80;
    /* backdrop-filter on an ancestor makes position:fixed children
       position relative to the header instead of the viewport,
       which pinned the bottom nav dock to the top covering the logo.
       Disable it on mobile so .top-nav docks to the viewport bottom. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar-inner {
    padding: 8px 16px;
    position: relative;
    z-index: 70;
  }
  .brand {
    font-size: 1.1rem;
  }
  .top-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-top: 1px solid var(--border-subtle);
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: var(--bg-topbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 60;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .top-nav a {
    font-size: 0.75rem;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .top-nav a::before {
    font-size: 1.1rem;
  }
  .top-nav a[href*="features"]::before { content: "⚡"; }
  .top-nav a[href*="plans"]::before { content: "💰"; }
  .top-nav a[href*="privacy"]::before { content: "🔒"; }
  .top-nav a[href*="terms"]::before { content: "📋"; }
  .top-nav a[href*="contact"]::before { content: "📞"; }
  body {
    padding-bottom: 68px;
  }
  .top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 71;
  }
  .icon-btn-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .lang-toggle {
    height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .brand small {
    display: none;
  }
}

/* ---- Hero Section ---- */
.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--hero-border);
  padding: 64px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(60px);
  animation: floatOrb 7s ease-in-out infinite;
  z-index: 0;
}

.hero-orb {
  width: 320px;
  height: 320px;
  background: var(--sky-500);
  top: -80px;
  right: -80px;
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  background: var(--amber-500);
  bottom: -40px;
  left: -40px;
  animation-delay: -3.5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-600);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-badge {
  color: var(--sky-400);
  border-color: rgba(14, 165, 233, 0.3);
}

.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero p.sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 680px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons System ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 12px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
  transition: all var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--sky-600);
  color: #ffffff;
  box-shadow: 0 3px 12px var(--sky-glow);
}

.btn-primary:hover {
  background: var(--sky-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--sky-glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--sky-600);
  border-color: var(--sky-200);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .btn-ghost {
  color: var(--sky-400);
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--bg-card);
}

.btn-ghost:hover {
  background: var(--sky-50);
  border-color: var(--sky-400);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ---- Hero Stats with Counter Animations ---- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--sky-600);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .stat-number {
  color: var(--sky-400);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Content Sections & Blocks ---- */
section.block {
  padding: 48px 0;
}

h2.sec {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2.sec-center {
  text-align: center;
  justify-content: center;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-600), var(--sky-400));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap,
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 16px;
}

[data-theme="dark"] .feature-icon-wrap,
[data-theme="dark"] .feature-icon {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Flagship feature (interactive dashboard) spans the full grid row */
.feature-card--wide {
  background: linear-gradient(135deg, var(--sky-50), var(--bg-card) 75%);
}

[data-theme="dark"] .feature-card--wide {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), var(--bg-card) 75%);
}

.feature-card--wide p {
  max-width: 760px;
}

@media (min-width: 640px) {
  .feature-card--wide {
    grid-column: 1 / -1;
  }
}

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.step:hover {
  border-color: var(--sky-400);
  transform: translateY(-2px);
}

.step-num-badge,
.step b.num,
.step .num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  margin-inline-end: 12px;
  box-shadow: 0 2px 6px var(--sky-glow);
  flex-shrink: 0;
}

/* ---- Plans Table ---- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

table.plans {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  font-size: 0.9rem;
  min-width: 680px;
}

table.plans th, table.plans td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-main);
  background-clip: padding-box;
}

table.plans th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-size: 0.92rem;
  font-weight: 800;
}

table.plans tr:last-child td {
  border-bottom: none;
}

/* Sticky first column */
table.plans th:first-child, table.plans td:first-child {
  position: sticky;
  z-index: 6;
  inset-inline-start: 0;
  text-align: start;
}

[dir="ltr"] table.plans th:first-child, [dir="ltr"] table.plans td:first-child { left: 0; right: auto; box-shadow: 1px 0 0 var(--border-subtle); }
[dir="rtl"] table.plans th:first-child, [dir="rtl"] table.plans td:first-child { right: 0; left: auto; box-shadow: -1px 0 0 var(--border-subtle); }

table.plans th:first-child {
  background: var(--bg-subtle);
  z-index: 7;
}

table.plans td:first-child {
  background: var(--bg-card);
  font-weight: 700;
}

/* Recommended Plan Highlight Column */
table.plans th.hl {
  background: var(--amber-50);
  color: var(--amber-700);
}

[data-theme="dark"] table.plans th.hl {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-400);
}

table.plans td.hl {
  background: var(--amber-50);
}

[data-theme="dark"] table.plans td.hl {
  background: rgba(245, 158, 11, 0.08);
}

.price {
  font-weight: 800;
  color: var(--sky-600);
  direction: ltr;
  unicode-bidi: isolate;
}

[data-theme="dark"] .price {
  color: var(--sky-400);
}

/* ---- Pricing Simulator ---- */
.sim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  max-width: 580px;
  margin: 0 auto;
}

.sim-label {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 20px 0 10px;
  color: var(--text-heading);
}

.sim-label.first {
  margin-top: 0;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chipbtn {
  border: 1.5px solid var(--sky-200);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sky-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 42px;
  touch-action: manipulation;
}

[data-theme="dark"] .chipbtn {
  border-color: rgba(14, 165, 233, 0.35);
  color: var(--sky-400);
  background: var(--bg-card);
}

.chipbtn:hover {
  border-color: var(--sky-500);
  background: var(--sky-50);
}

.chipbtn.active {
  background: var(--sky-600);
  border-color: var(--sky-600);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--sky-glow);
}

#clsCount {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1.05rem;
  width: 140px;
  background: var(--bg-input);
  color: var(--text-main);
  text-align: center;
}

#clsCount:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--sky-glow);
}

.sim-result {
  margin-top: 22px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

[data-theme="dark"] .sim-result {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.sim-total {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--green-700);
  margin-bottom: 8px;
}

[data-theme="dark"] .sim-total {
  color: var(--green-400);
}

/* ---- Photos Cloud Highlight Banner ---- */
.photos {
  background: linear-gradient(135deg, var(--amber-50), rgba(253, 230, 138, 0.4));
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .photos {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.25);
}

.photos h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-heading);
}

.photos p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

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

.testimonial-card .stars {
  color: var(--amber-400);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-card .quote {
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 800;
  color: var(--sky-600);
  font-size: 0.88rem;
}

[data-theme="dark"] .testimonial-card .author {
  color: var(--sky-400);
}

.testimonial-card .role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ---- Trust Bar ---- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.trust-item {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 12px 0;
}

/* ---- FAQ Accordion ---- */
details.faq {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

details.faq:hover {
  border-color: var(--border-focus);
}

details.faq[open] {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

details.faq summary {
  font-weight: 800;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::before {
  content: "▸";
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 0.85rem;
  color: var(--sky-600);
}

details.faq[open] summary::before {
  transform: rotate(90deg);
}

details.faq p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Contact Card ---- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* ---- Legal / Policy Pages ---- */
.hero-sm {
  padding: 44px 0 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.policy-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--sky-600);
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 8px;
}

[data-theme="dark"] .policy-card h2 {
  color: var(--sky-400);
}

.policy-card p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-main);
}

.policy-list {
  margin: 0 0 12px;
  padding-inline-start: 24px;
}

.policy-list li {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--text-main);
}

.consent-card {
  border-color: var(--sky-300);
  background: var(--sky-50);
}

[data-theme="dark"] .consent-card {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
}

/* ---- Footer ---- */
footer {
  margin-top: 50px;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

footer a {
  color: var(--sky-600);
  font-weight: 700;
}

[data-theme="dark"] footer a {
  color: var(--sky-400);
}

footer a:hover {
  text-decoration: underline;
}

/* ---- Micro-Animations & Responsive ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card, .step, .testimonial-card, .policy-card {
  animation: fadeInUp 0.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
