/*
 * Shared design of the section-based product landings (landings/partials/product-page.blade.php).
 * Each landing's theme file sets the variables below and adds its own touches.
 * Logical properties only: the same rules serve Arabic (RTL) and English (LTR).
 */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-2: #115e59;
  --primary-ink: #ffffff;
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.12);
  --hero-bg: linear-gradient(180deg, #f0fdfa, #ffffff);
  --header-bg: rgba(255, 255, 255, 0.9);
  --radius: 20px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--heading); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.lw { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* Buttons */
.lb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; }
.lb--lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.lb--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.lb--primary:hover { background: var(--primary-2); color: var(--primary-ink); transform: translateY(-2px); }
.lb--ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.lb--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Header */
.lh { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.lh.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06); }
.lh__bar { display: flex; align-items: center; gap: 14px; min-height: 74px; }
.lh__q2t { height: 32px; width: auto; }
.lh__divider { width: 1px; height: 28px; background: var(--line-strong); }
.lh__product { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.lh__product img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.lh__nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.lh__nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.lh__nav a:hover { color: var(--heading); }
.lh__nav-actions { display: none; }
.lh__end { display: flex; align-items: center; gap: 10px; }
.lh__lang { color: var(--heading); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.85rem; }
.lh__lang:hover { border-color: var(--primary); color: var(--primary); }
.lh__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--heading); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.lh__toggle .icon { width: 22px; height: 22px; }

/* Sections */
.ld-section { padding-block: 84px; }
.ld-head { max-width: 760px; margin-inline: auto; text-align: center; margin-block-end: 46px; }
.ld-head--start { text-align: start; margin-inline: 0; }
.ld-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-block-end: 14px; }
.ld-head p { color: var(--muted); font-size: 1.07rem; }
.ld-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-block-end: 12px; }
html[lang="ar"] .ld-eyebrow { letter-spacing: 0; font-size: 0.92rem; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero */
.ld-hero { background: var(--hero-bg); padding-block: 64px 84px; position: relative; overflow: hidden; }
.ld-hero__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; position: relative; }
.ld-hero__logo { height: 56px; width: auto; margin-block-end: 18px; }
.ld-kicker { color: var(--primary); font-weight: 700; font-size: 0.9rem; margin-block-end: 14px; }
.ld-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-block-end: 20px; letter-spacing: -0.02em; }
html[lang="ar"] .ld-hero h1 { letter-spacing: 0; line-height: 1.35; }
.ld-accent { color: var(--accent); }
.ld-lead { color: var(--text); font-size: 1.12rem; max-width: 38rem; margin-block-end: 30px; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-actions--center { justify-content: center; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.ld-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.ld-chips .icon { color: var(--accent); }
.ld-hero__media { position: relative; }
.ld-hero__badge { position: absolute; inset-inline-start: -18px; bottom: -22px; display: flex; align-items: center; gap: 10px; max-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; color: var(--heading); font-size: 0.9rem; }
.ld-hero__badge .icon { color: var(--accent); width: 26px; height: 26px; }

/* Browser frame around screenshots */
.ld-browser { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ld-browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); direction: ltr; }
.ld-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.ld-browser__bar i:nth-child(1) { background: #f87171; }
.ld-browser__bar i:nth-child(2) { background: #fbbf24; }
.ld-browser__bar i:nth-child(3) { background: #34d399; }
.ld-browser__bar span { margin-inline-start: 12px; flex: 1; font-size: 0.75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Facts strip */
.ld-facts { border-block: 1px solid var(--line); background: var(--surface); }
.ld-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ld-fact { display: flex; gap: 14px; align-items: flex-start; padding: 26px 20px; }
.ld-fact + .ld-fact { border-inline-start: 1px solid var(--line); }
.ld-fact .icon { width: 28px; height: 28px; color: var(--primary); }
.ld-fact strong { display: block; color: var(--heading); font-size: 1rem; }
.ld-fact span { color: var(--muted); font-size: 0.9rem; }

/* Modules */
.ld-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-module { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.ld-module:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ld-module__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--primary); margin-block-end: 18px; }
.ld-module__icon .icon { width: 24px; height: 24px; }
.ld-module h3 { font-size: 1.15rem; margin-block-end: 8px; }
.ld-module p { color: var(--muted); font-size: 0.95rem; }
.ld-module ul { display: grid; gap: 6px; margin-block-start: 14px; }
.ld-module li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.ld-module li .icon { color: var(--accent); margin-block-start: 4px; width: 16px; height: 16px; }
.ld-module__tag { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 0.72rem; font-weight: 700; color: var(--primary); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }

/* Screenshot tabs */
.ld-showcase { background: var(--bg-soft); }
.ld-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-end: 28px; }
.ld-tabs__tab { font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: all 0.2s; }
.ld-tabs__tab:hover { color: var(--heading); border-color: var(--line-strong); }
.ld-tabs__tab.is-active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.ld-tabs__panel { max-width: 1000px; margin-inline: auto; }
.ld-tabs__panel figcaption { text-align: center; color: var(--muted); margin-block-start: 16px; font-size: 0.95rem; }

/* Why */
.ld-why__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.ld-why__list { display: grid; gap: 14px; }
.ld-why__list li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.ld-why__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.ld-why__icon .icon { width: 18px; height: 18px; }
.ld-why__list h3 { font-size: 1.05rem; margin-block-end: 4px; }
.ld-why__list p { color: var(--muted); font-size: 0.95rem; }

/* Demo doors */
.ld-doors__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ld-door { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: inherit; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.ld-door:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.ld-door__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); }
.ld-door__icon .icon { width: 24px; height: 24px; }
.ld-door h3 { font-size: 1.15rem; }
.ld-door p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.ld-door__link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; }
.ld-doors__note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-block-start: 22px; }

/* Steps */
.ld-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ld-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ld-step__number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-weight: 800; margin-block-end: 16px; }
.ld-step h3 { font-size: 1.08rem; margin-block-end: 6px; }
.ld-step p { color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.ld-faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px; align-items: start; }
.ld-faq { display: grid; gap: 12px; }
.ld-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.ld-faq__item[open] { border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.ld-faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 700; color: var(--heading); }
.ld-faq__item summary::-webkit-details-marker { display: none; }
.ld-faq__item summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.ld-faq__item[open] summary::after { transform: rotate(45deg); }
.ld-faq__item p { color: var(--muted); padding-block-end: 20px; }

/* Final call to action */
.ld-final { padding-block: 30px 90px; }
.ld-final__box { text-align: center; border-radius: 30px; padding: 60px 24px; background: var(--final-bg, var(--primary)); color: var(--final-ink, #fff); }
.ld-final__box img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px; object-fit: contain; background: #fff; padding: 6px; }
.ld-final__box h2 { color: inherit; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-block-end: 12px; }
.ld-final__box > p { opacity: 0.85; max-width: 640px; margin: 0 auto 28px; }
.ld-final .lb--primary { background: var(--final-button, #fff); color: var(--final-button-ink, var(--primary)); box-shadow: none; }
.ld-final .lb--ghost { color: inherit; border-color: rgba(255, 255, 255, 0.45); }
.ld-final .lb--ghost:hover { border-color: #fff; color: inherit; }
.ld-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-block-start: 28px; }
.ld-contact a { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 600; opacity: 0.9; }
.ld-contact a:hover { opacity: 1; }

/* Footer */
.lf { border-top: 1px solid var(--line); padding-block: 40px 28px; color: var(--muted); font-size: 0.92rem; background: var(--footer-bg, var(--bg-soft)); }
.lf__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.lf__brand img { height: 34px; width: auto; margin-block-end: 12px; }
.lf__links { display: grid; gap: 8px; }
.lf__links a, .lf__contact a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.lf__links a:hover, .lf__contact a:hover { color: var(--primary); }
.lf__contact { display: grid; gap: 8px; }
.lf__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-block-start: 28px; padding-block-start: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; }

/* Responsive */
@media (max-width: 1199px) {
  .lh__nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); padding: 10px 20px 20px; }
  .lh__nav.is-open { display: flex; }
  .lh__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lh__nav-actions { display: flex; gap: 10px; padding-block-start: 14px; }
  .lh__nav-actions a { flex: 1; border-bottom: 1px solid var(--line-strong); padding: 11px 14px; }
  .lh__end { margin-inline-start: auto; }
  .lh__action { display: none; }
  .lh__toggle { display: inline-flex; }
}
@media (max-width: 991px) {
  .ld-hero__grid, .ld-why__grid, .ld-faq-grid { grid-template-columns: 1fr; }
  .ld-hero__grid { gap: 48px; }
  .ld-modules, .ld-steps { grid-template-columns: repeat(2, 1fr); }
  .ld-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .ld-fact:nth-child(3) { border-inline-start: 0; }
  .ld-fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ld-head--start { text-align: center; margin-inline: auto; }
  .lf__grid { grid-template-columns: 1fr 1fr; }
  .ld-hero__badge { inset-inline-start: 12px; }
}
@media (max-width: 640px) {
  .lw { width: calc(100% - 32px); }
  .lh__bar { min-height: 64px; gap: 10px; }
  .lh__q2t { height: 26px; }
  .lh__product span { display: none; }
  .ld-section { padding-block: 60px; }
  .ld-hero { padding-block: 36px 60px; }
  .ld-modules, .ld-steps, .ld-facts__grid { grid-template-columns: 1fr; }
  .ld-fact + .ld-fact { border-inline-start: 0; border-top: 1px solid var(--line); }
  .ld-actions .lb { flex: 1 1 100%; }
  .ld-hero__badge { position: static; margin-block-start: 16px; max-width: none; }
  .lf__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lb, .ld-module, .ld-door { transition: none; }
}
