/* ══════════════════════════════════════════════════════════════════════
   Ehdaa (إهداء) - Apple System Settings & Inset Grouped Design System
   Designed for ehdda.cloud | Clean, Solid, Highly-Organized UI/UX
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Self-Hosted IBM Plex Sans Arabic Fonts (Preserved 100%) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

/* 2. Apple System Design Tokens (Light Theme by Default) */
:root {
  /* Surface & Backgrounds */
  --system-bg: #f2f2f7;
  --system-grouped-bg: #f2f2f7;
  --card-bg: #ffffff;
  --card-sub-bg: #f8f8fa;
  --nav-bg: #ffffff;
  --banner-bg: #ffffff;
  --footer-bg: #ffffff;

  /* Hairlines & Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --divider: rgba(0, 0, 0, 0.06);

  /* Typography */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-quaternary: #aeaeb2;

  /* Brand & Accent */
  --primary: #007a70;
  --primary-hover: #00635b;
  --primary-active: #004d46;
  --primary-soft: #e6f7f5;
  --primary-text: #007a70;

  /* Buttons */
  --btn-primary-bg: #007a70;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #e5e5ea;
  --btn-secondary-hover: #d1d1d6;
  --btn-secondary-text: #1d1d1f;

  /* Segmented Controls */
  --segmented-bg: #e5e5ea;
  --segmented-active-bg: #ffffff;
  --segmented-text: #6e6e73;
  --segmented-active-text: #1d1d1f;
  --segmented-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);

  /* Apple Squircle Icon Badges */
  --badge-emerald-bg: #e6f7f2;
  --badge-emerald-color: #007a70;
  --badge-blue-bg: #ebf5ff;
  --badge-blue-color: #0071e3;
  --badge-purple-bg: #f3eeff;
  --badge-purple-color: #7c3aed;
  --badge-orange-bg: #fff4e5;
  --badge-orange-color: #f56300;
  --badge-amber-bg: #fef9c3;
  --badge-amber-color: #d97706;
  --badge-rose-bg: #ffe4e6;
  --badge-rose-color: #e11d48;
  --badge-slate-bg: #f1f5f9;
  --badge-slate-color: #475569;

  /* Salla & Zid Colors */
  --salla-badge-bg: #e8f7f0;
  --salla-badge-color: #059669;
  --zid-badge-bg: #f3eeff;
  --zid-badge-color: #7c3aed;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows (Subtle, crisp Apple style) */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);

  /* Typography Configuration */
  --font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Dark Theme Variables */
html[data-theme="dark"],
body.dark-mode {
  --system-bg: #111827;
  --system-grouped-bg: #111827;
  --card-bg: #1f2937;
  --card-sub-bg: #293548;
  --nav-bg: #1f2937;
  --banner-bg: #1f2937;
  --footer-bg: #182231;

  --border: rgba(255, 255, 255, 0.13);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --divider: rgba(255, 255, 255, 0.1);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-quaternary: #64748b;

  --primary: #2dd4bf;
  --primary-hover: #14b8a6;
  --primary-active: #0f766e;
  --primary-soft: rgba(45, 212, 191, 0.15);
  --primary-text: #5eead4;

  --btn-primary-bg: #2dd4bf;
  --btn-primary-text: #042f2e;
  --btn-secondary-bg: #334155;
  --btn-secondary-hover: #475569;
  --btn-secondary-text: #f8fafc;

  --segmented-bg: #293548;
  --segmented-active-bg: #475569;
  --segmented-text: #cbd5e1;
  --segmented-active-text: #ffffff;
  --segmented-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);

  --badge-emerald-bg: rgba(0, 122, 112, 0.25);
  --badge-emerald-color: #34d399;
  --badge-blue-bg: rgba(0, 113, 227, 0.25);
  --badge-blue-color: #38bdf8;
  --badge-purple-bg: rgba(124, 58, 237, 0.25);
  --badge-purple-color: #a78bfa;
  --badge-orange-bg: rgba(245, 99, 0, 0.25);
  --badge-orange-color: #fb923c;
  --badge-amber-bg: rgba(217, 119, 6, 0.25);
  --badge-amber-color: #fbbf24;
  --badge-rose-bg: rgba(225, 29, 72, 0.25);
  --badge-rose-color: #fb7185;
  --badge-slate-bg: rgba(71, 85, 105, 0.25);
  --badge-slate-color: #94a3b8;

  --salla-badge-bg: rgba(5, 150, 105, 0.22);
  --salla-badge-color: #34d399;
  --zid-badge-bg: rgba(124, 58, 237, 0.22);
  --zid-badge-color: #a78bfa;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 4. Reset & Core Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--system-bg);
}

body {
  font-family: var(--font-family);
  font-weight: 500;
  background-color: var(--system-bg);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

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

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

/* 5. Top Announcement Banner (Apple System Pill) */
.announcement-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.88rem;
  transition: var(--transition);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

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

.announcement-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.announcement-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* 6. Site Header & Apple Inset Navigation Bar */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: 1140px;
  margin: 12px auto 0;
  padding: 0 16px;
}

.nav-inset-card {
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--border);
}

.brand-name {
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--card-sub-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dark Mode Switcher Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-sub-bg);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  transform: scale(1.04);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* 7. Apple Buttons & Pill Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 600;
  transition: var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

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

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(0, 122, 112, 0.2);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

.btn-white {
  background: #ffffff;
  color: #007a70;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background: #f8f8fa;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* 8. Apple Squircle Icon Badges (macOS / iOS Settings Style) */
.apple-badge,
.apple-badge-lg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: center !important;
  transition: var(--transition-fast);
}

.apple-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.apple-badge svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

.apple-badge-lg {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
}

.apple-badge-lg svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

.badge-emerald {
  background: var(--badge-emerald-bg);
  color: var(--badge-emerald-color);
}

.badge-blue {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-color);
}

.badge-purple {
  background: var(--badge-purple-bg);
  color: var(--badge-purple-color);
}

.badge-orange {
  background: var(--badge-orange-bg);
  color: var(--badge-orange-color);
}

.badge-amber {
  background: var(--badge-amber-bg);
  color: var(--badge-amber-color);
}

.badge-rose {
  background: var(--badge-rose-bg);
  color: var(--badge-rose-color);
}

.badge-slate {
  background: var(--badge-slate-bg);
  color: var(--badge-slate-color);
}

/* 9. Inset Grouped Architecture & General Section Styling */
.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 10. Hero Section */
.hero-section {
  padding: 72px 0 54px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.highlight-text {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Inset Trust Group Pill Container */
.hero-trust-inset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  box-shadow: var(--shadow-card);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* 11. Benefits Section (Inset Grouped Grid) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.inset-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.inset-card:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.inset-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.inset-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.inset-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 12. Core Features Grid (6 Inset Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.feature-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.feature-text {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 13. Salla & Zid Integration Section (Apple Inset Group Master Cards) */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.integration-master-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.integration-master-card:hover {
  box-shadow: var(--shadow-elevated);
}

.integration-top {
  padding: 24px;
  background: var(--card-sub-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integration-platform-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.platform-badge-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.salla-tag {
  background: var(--salla-badge-bg);
  color: var(--salla-badge-color);
}

.zid-tag {
  background: var(--zid-badge-bg);
  color: var(--zid-badge-color);
}

/* Grouped List Rows separated by hairlines */
.grouped-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.grouped-row {
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--divider);
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.grouped-row:last-child {
  border-bottom: none;
}

.grouped-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.grouped-row svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.integration-footer-bar {
  padding: 16px 24px;
  background: var(--card-sub-bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
}

.salla-master-card .grouped-row svg,
.salla-master-card .integration-footer-bar {
  color: var(--salla-badge-color);
}

.zid-master-card .grouped-row svg,
.zid-master-card .integration-footer-bar {
  color: var(--zid-badge-color);
}

/* 14. How It Works Section (3-Step Inset Group Cards) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-inset-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: var(--transition-fast);
}

.step-inset-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow-elevated);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.step-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 15. Dynamic Subscription Plans Section (Apple Segmented Control & Cards) */
.plans-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

/* Apple System Segmented Control */
.apple-segmented-control {
  display: inline-flex;
  background: var(--segmented-bg);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.segmented-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--segmented-text);
  background: transparent;
  transition: var(--transition-fast);
}

.segmented-btn svg {
  width: 18px;
  height: 18px;
}

.segmented-btn.active {
  background: var(--segmented-active-bg);
  color: var(--segmented-active-text);
  box-shadow: var(--segmented-shadow);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-fast);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.plan-card.featured {
  border: 2px solid var(--primary);
}

.featured-ribbon {
  position: absolute;
  top: 14px;
  left: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.plan-header {
  margin-bottom: 22px;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 2.6em;
  line-height: 1.45;
  margin-bottom: 16px;
}

.plan-price {
  padding: 12px 16px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.price-tagline-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-status-footer {
  text-align: center;
  padding: 12px;
  background: var(--card-sub-bg);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plans-loading-state,
.plans-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 16. FAQ Section (Apple Inset GroupBox Accordion) */
.faq-group-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
  transition: var(--transition-fast);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--card-sub-bg);
}

.faq-arrow {
  color: var(--text-tertiary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* 17. Bottom CTA Banner (Apple Master Inset Card) */
.bottom-cta-section {
  padding: 48px 0 72px;
}

.cta-master-card {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

html[data-theme="dark"] .cta-master-card {
  background: var(--card-bg);
  border: 1px solid var(--primary);
}

.cta-master-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-master-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #ffffff;
}

.cta-master-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-master-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 18. Apple Inset Grouped Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.logo-img-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--border);
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.footer-platforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

/* 19. Responsive Breakpoints (Mobile, Tablet, Desktop) */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    margin: 8px auto 0;
    padding: 0 12px;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    flex-direction: column;
    padding: 16px;
    gap: 6px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 10px 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust-inset {
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-master-card {
    padding: 32px 20px;
  }

  .cta-master-title {
    font-size: 1.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Privacy page */
.privacy-page { min-height: 100vh; background: #f6f7f9; color: #17211b; }
.privacy-header { max-width: 960px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.privacy-brand { color: #15803d; font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.privacy-back { color: #475569; text-decoration: none; }
.privacy-shell { max-width: 900px; margin: 0 auto; padding: 24px 24px 56px; }
.privacy-title { margin-bottom: 24px; }
.privacy-title h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); }
.privacy-title p { color: #64748b; line-height: 1.9; }
.privacy-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 12px 40px rgba(15, 23, 42, .06); }
.privacy-card h2 { margin: 30px 0 8px; font-size: 1.25rem; }
.privacy-card h2:first-child { margin-top: 0; }
.privacy-card p { margin: 0; color: #475569; line-height: 2; }
.privacy-card a { color: #15803d; }
.privacy-footer { padding: 0 24px 36px; text-align: center; color: #64748b; }

/* 20. Official Floating WhatsApp Button (Fixed Bottom-Left) */
.whatsapp-floating-btn {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  right: auto !important;
  z-index: 99999 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background-color: #25d366 !important;
  background: #25d366 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

.whatsapp-floating-btn:active {
  transform: scale(0.94) !important;
}

.whatsapp-floating-btn svg {
  width: 32px !important;
  height: 32px !important;
  fill: #ffffff !important;
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    width: 54px !important;
    height: 54px !important;
  }
  .whatsapp-floating-btn svg {
    width: 28px !important;
    height: 28px !important;
  }
}
