/* OrderDock Landing Page Styles — Full LTR & RTL Native Support */

:root {
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #ecfdf5;
  --brand-border: #a7f3d0;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --font: system-ui, -apple-system, 'Segoe UI', 'Cairo', 'Tajawal', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--subtle);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background: radial-gradient(circle at top right, #ecfdf5 0%, #ffffff 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Browser & Side Panel Mockup */
.browser-mock {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.browser-url {
  margin-inline: 8px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--subtle);
  font-size: 11px;
}

.dock-badge {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.browser-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.chat-pane {
  background: #efeae2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-header-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
}

.avatar-mock {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-phone {
  display: block;
  font-size: 10px;
  color: var(--subtle);
}

.bubble {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.4;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.bubble.in {
  background: #ffffff;
  align-self: flex-start;
}

.bubble.out {
  background: #d9fdd3;
  align-self: flex-end;
}

.sidepanel-mock {
  background: #f8fafc;
  border-inline-start: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sp-safe {
  font-size: 10px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 2px 7px;
  border-radius: 999px;
}

.sp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.sp-kpi {
  background: #ffffff;
  border: 1px solid var(--border);
  border-inline-start: 3px solid #d97706;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  color: var(--subtle);
}

.sp-kpi.green {
  border-inline-start-color: var(--brand);
}

.sp-kpi strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.sp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sp-stage {
  background: #fffbeb;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.sp-meta {
  font-size: 11px;
  color: var(--muted);
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sp-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 999px;
}

.sp-tag.rem {
  background: #fef2f2;
  color: #dc2626;
}

.sp-btn {
  margin-top: auto;
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: default;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.f-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Pricing */
.billing-toggle {
  margin-top: 20px;
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.bill-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bill-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.save-badge {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.12);
}

.popular-tag {
  position: absolute;
  top: -12px;
  inset-inline-end: 20px;
  background: var(--brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-tier {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-val {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.price-val small {
  font-size: 15px;
  font-weight: 600;
  color: var(--subtle);
}

.price-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  flex: 1;
}

.checkout-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--subtle);
}

/* Install Steps */
.install-box h2 {
  text-align: center;
  margin: 0 0 32px;
  font-size: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.step-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ */
.faq-wrap {
  max-width: 760px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Privacy Policy Page */
.policy-container {
  max-width: 780px;
  padding: 48px 20px 80px;
}

.policy-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.policy-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.policy-card h2 {
  margin: 26px 0 8px;
  font-size: 18px;
  color: var(--brand-dark);
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 14.5px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
  font-size: 13px;
  color: var(--subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

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