/* Orderat marketing site — shared stylesheet.
   Logical properties (margin-inline-start, etc.) throughout so one stylesheet serves both
   RTL (Arabic, default) and LTR (English) without a second stylesheet. */

:root {
  --brand-start: #4a5fdc;
  --brand-end: #2f3fb0;
  --brand-gradient: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  --bg: #f4f6ff;
  --surface: #ffffff;
  --text: #1c1f3a;
  --text-muted: #565b82;
  --border: #e1e5fb;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.6rem;
  --shadow: 0 12px 30px -12px rgba(47, 63, 176, 0.25);
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.75;
  font-size: 16px;
}
html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: var(--brand-end); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 { line-height: 1.35; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

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

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 100;
  background: var(--text); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.85rem; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.25rem; color: var(--text);
}
.brand img { border-radius: 0.4rem; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--brand-end); font-weight: 700; }
.lang-switch {
  border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
}
.lang-switch:hover { text-decoration: none; border-color: var(--brand-end); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%; background: var(--surface);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--border); display: none; gap: 0.9rem;
  }
  .site-nav.is-open { display: flex; }
  .lang-switch { align-self: flex-start; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 999px; padding: 0.8rem 1.6rem; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
}
.btn--primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { text-decoration: none; opacity: 0.92; }
.btn--ghost { background: var(--surface); color: var(--brand-end); border: 1.5px solid var(--brand-end); }
.btn--ghost:hover { text-decoration: none; background: #eef0ff; }
.btn--ghost-light { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn--ghost-light:hover { text-decoration: none; background: rgba(255,255,255,0.25); }

.store-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.75rem 1.3rem;
  background: var(--brand-gradient); color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.store-badge--soon { background: #d8dcf7; color: #3a3f7a; box-shadow: none; cursor: default; }
.store-badges--compact .store-badge { padding: 0.45rem 0.9rem; font-size: 0.85rem; box-shadow: none; }

/* Hero */
.hero { padding-block: 3.5rem 3rem; }
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--text-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.5rem; }

/* Screenshots */
.screenshots { padding-block: 0.5rem 2.5rem; }
.screenshots__strip {
  display: flex; gap: 1.1rem; overflow-x: auto; padding-block: 0.5rem 1rem;
  scroll-snap-type: x proximity;
}
.screenshots__item {
  flex: none; width: 180px; margin: 0; scroll-snap-align: start; text-align: center;
}
.screenshots__item img {
  width: 100%; border-radius: 1.4rem; border: 6px solid var(--surface); box-shadow: var(--shadow);
}
.screenshots__item figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.85rem; }

/* Sections */
.section { padding-block: 3rem; }
.section--tinted { background: #eceffe; border-radius: var(--radius-lg); }
.section-heading { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; }
.kicker { color: var(--brand-end); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.section-lead { color: var(--text-muted); }

.problem__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 900px;
}
.problem__list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; box-shadow: var(--shadow);
}

/* Card grids */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; color: var(--text); box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.feature-card:hover { text-decoration: none; transform: translateY(-3px); }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }
.icon.feature-card__icon { width: 32px; height: 32px; color: var(--brand-end); margin-bottom: 0.9rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps__item { position: relative; padding-inline-start: 3rem; }
.steps__num {
  position: absolute; inset-inline-start: 0; top: 0; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--brand-gradient); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}

/* Pricing */
.pricing-teaser__card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); max-width: 480px; margin-inline: auto; text-align: center; }
.pricing-teaser__trial { color: var(--brand-end); font-weight: 700; }
.pricing-teaser__price { font-size: 1.4rem; }
.pricing-teaser__or { color: var(--text-muted); margin-inline: 0.4rem; }
.pricing-teaser__note { color: var(--text-muted); font-size: 0.9rem; }

.pricing-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 640px; margin: 2rem 0; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; text-align: center; box-shadow: var(--shadow); }
.pricing-card--highlight { border-color: var(--brand-end); background: linear-gradient(180deg, #eef0ff, #fff); }
.pricing-card__badge { color: var(--brand-end); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.pricing-card__label { color: var(--text-muted); margin-bottom: 0.2rem; }
.pricing-card__price { font-size: 2rem; font-weight: 700; margin-bottom: 0.3rem; }
.pricing-card__price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card__save { color: #1f8a4c; font-weight: 600; font-size: 0.9rem; }
.pricing-note { color: var(--text-muted); font-size: 0.9rem; }
.pricing-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block: 1.5rem 2.5rem; }

.highlight-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.highlight-list li {
  padding-inline-start: 1.6rem; position: relative; color: var(--text-muted);
}
.highlight-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand-gradient);
}
.highlight-list--check li { padding-inline-start: 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.highlight-list--check li::before { content: none; }
.highlight-list--check .icon { width: 20px; height: 20px; color: #1f8a4c; flex: none; margin-top: 0.2em; }

/* FAQ */
.faq-list { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item summary::marker { color: var(--brand-end); }
.faq-item__a { color: var(--text-muted); margin-top: 0.6rem; }
.link-more { font-weight: 700; }

/* Feature / business page */
.breadcrumbs { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--text-muted); }
.crumb-sep { margin-inline: 0.4rem; }
.feature-page__header { max-width: 70ch; margin-bottom: 1.6rem; }
.icon.feature-page__icon { width: 40px; height: 40px; color: var(--brand-end); margin-bottom: 1rem; }
.feature-page__section { max-width: 70ch; margin-bottom: 1.6rem; }
.feature-page__demo-cta { margin: 1.5rem 0; }
.business-page__examples { color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: var(--brand-gradient); border-radius: var(--radius-lg); color: #fff;
  margin-block: 3rem; padding-block: 3rem;
}
.cta-band__inner { text-align: center; max-width: 60ch; margin-inline: auto; }
.cta-band__inner h2 { color: #fff; }
.cta-band__inner p { color: rgba(255,255,255,0.9); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1rem; }

/* Blog */
.blog-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 2rem 0; }
.blog-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow); color: var(--text); }
.blog-card:hover { text-decoration: none; }
.blog-card__meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.blog-card__badge { border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.5rem; }
.blog-card p:last-child { color: var(--text-muted); margin-bottom: 0; }
.blog-post__header { max-width: 70ch; }
.blog-post__meta { color: var(--text-muted); font-size: 0.9rem; }
.blog-post__body { max-width: 70ch; }
.blog-post__body h2 { margin-top: 1.6rem; }
.blog-post__back { margin-top: 2rem; font-weight: 700; }
.notice { background: #fff6dd; border: 1px solid #f0dca0; border-radius: var(--radius-md); padding: 0.8rem 1.1rem; max-width: 70ch; }

/* Legal */
.legal-doc { max-width: 74ch; }
.legal-doc__updated { color: var(--text-muted); font-size: 0.9rem; }
.legal-section { margin-block: 1.6rem; }
.legal-section ul { padding-inline-start: 1.4rem; color: var(--text-muted); }
.legal-doc__contact { color: var(--text-muted); font-size: 0.9rem; margin-top: 2rem; }

/* Contact */
.contact-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.6rem; max-width: 420px; text-align: center; margin: 1.5rem 0; }
.contact-card__email { color: var(--text-muted); margin-top: 0.6rem; }
.contact-social { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* Footer */
.site-footer { margin-top: 3rem; padding-block: 2.5rem; border-top: 1px solid var(--border); }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__brand { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__tagline { color: var(--text-muted); font-size: 0.9rem; }
.site-footer__cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.site-footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.2rem; }
.site-footer__col a { color: var(--text); }
.site-footer__legal { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; margin-bottom: 0; }

@media (max-width: 640px) {
  .hero { padding-block: 2.5rem 2rem; }
  .section { padding-block: 2.2rem; }
  .cta-band { padding-block: 2.2rem; }
}
