/* Darjina marketing site
   One stylesheet for Arabic (RTL) and English (LTR).
   Logical properties only (inline/block), so the same rules mirror correctly. */

/* ---------- Tokens ---------- */
:root {
  /* Brand, taken from the logo */
  --ink: #0d1413;          /* logo background */
  --ink-2: #131e1c;
  --ink-3: #1b2a27;
  --teal-900: #17332f;
  --teal-800: #1f4741;
  --teal-700: #285c54;     /* text/buttons on light: 7.2:1 on --paper */
  --sea: #4f8a80;          /* logo sea-green, decorative / large only on light */
  --sea-300: #8fc2b8;      /* text accents on dark: 9:1 on --ink */
  --mint: #e4f1ee;         /* logo wordmark */
  --mint-2: #eef6f4;
  --paper: #f8fbfa;
  --surface: #ffffff;
  --line: #d5e5e1;
  --line-dark: #26403b;
  --text: #13201e;         /* 16:1 on --paper */
  --muted: #475a56;        /* 6.9:1 on --paper */
  --on-dark: #e4f1ee;
  --on-dark-muted: #a9c4be; /* 9.6:1 on --ink */
  --sand: #d0ad74;         /* warm accent on dark: 9:1 on --ink */
  --sand-ink: #7a5820;     /* warm accent text on light: 6:1 on --paper */
  --sand-soft: #f6eedf;
  --danger: #a33b32;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow: 0 1px 2px rgb(13 20 19 / .06), 0 8px 24px rgb(13 20 19 / .07);
  --shadow-l: 0 30px 60px -20px rgb(0 0 0 / .45);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);

  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "El Messiri", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh-body: 1.85;
  --lh-head: 1.35;
}
html[lang="en"] {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --lh-body: 1.65;
  --lh-head: 1.12;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-head);
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
html[lang="en"] :where(h1, h2) { font-weight: 600; letter-spacing: -.005em; }
html[lang="en"] :where(h3) { font-family: var(--font-body); font-weight: 600; line-height: 1.35; }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.05rem + .35vw, 1.3rem); }
html[lang="en"] :where(h1) { font-size: clamp(2.3rem, 1.5rem + 3.8vw, 4.1rem); }
html[lang="en"] :where(h2) { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem); }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-900); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
::selection { background: var(--sea-300); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--sand-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--sand);
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -100px;
  z-index: 100;
  background: var(--sand);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* Latin brand / numbers inside Arabic text keep their direction */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .7em 1.45em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn:hover { --btn-bg: var(--teal-900); color: var(--btn-fg); transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--light { --btn-bg: var(--mint); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #fff; }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.btn--sand:hover { --btn-bg: #dcbd8a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--teal-700); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--mint); --btn-fg: var(--teal-900); }
.on-dark .btn--ghost, .btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--mint); border-color: rgb(228 241 238 / .45); }
.on-dark .btn--ghost:hover, .btn--ghost-dark:hover { --btn-bg: rgb(228 241 238 / .08); --btn-fg: #fff; border-color: var(--mint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--teal-700);
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform .2s; }
.text-link:hover .arrow { transform: translateX(-3px); }
html[dir="ltr"] .arrow { transform: scaleX(-1); }
html[dir="ltr"] .text-link:hover .arrow { transform: scaleX(-1) translateX(-3px); }
.on-dark .text-link { color: var(--sea-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgb(13 20 19 / .96);
  color: var(--on-dark);
  border-block-end: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(13 20 19 / .86); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; border-radius: 8px; }
.brand img { height: 44px; width: auto; }
.primary-nav { margin-inline-start: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.primary-nav a:hover { color: #fff; background: rgb(228 241 238 / .06); }
.primary-nav a[aria-current="page"] { color: var(--mint); background: rgb(79 138 128 / .22); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px; border-radius: 999px;
  color: var(--mint); text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1px solid var(--line-dark);
}
.lang-link:hover { border-color: var(--sea); color: #fff; }
.lang-link svg { width: 18px; height: 18px; }
.header-cta { min-height: 42px; padding-block: .5em; font-size: .95rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border-radius: 12px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--mint); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.site-header[data-open="true"] .nav-toggle .i-close { display: block; }
.site-header[data-open="true"] .nav-toggle .i-menu { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
}
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .js .primary-nav {
    display: none;
    order: 5; flex-basis: 100%;
    margin: 0; padding-block: 8px 18px;
  }
  .js .site-header[data-open="true"] .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
  .primary-nav .nav-mobile-cta { display: block; margin-block-start: 10px; }
  .primary-nav .nav-mobile-cta .btn { width: 100%; }
  /* no JS: show nav as a scrollable row */
  html:not(.js) .primary-nav { order: 5; flex-basis: 100%; overflow-x: auto; padding-block-end: 8px; }
  html:not(.js) .primary-nav ul { flex-direction: row; }
}
@media (min-width: 900px) { .nav-mobile-cta { display: none; } }
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .lang-link { padding-inline: 10px; }
  .lang-link svg { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--mint-2); }
.section--white { background: var(--surface); }
.section--dark, .on-dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-block-end: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-block-end: 14px;
  color: var(--sand-ink); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--sand); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); }
.on-dark .lead, .section--dark .lead { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgb(79 138 128 / .28), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(31 71 65 / .55), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px);
}
.hero::after { /* soft fabric curve */
  content: ""; position: absolute; inset-inline: -10%; inset-block-end: -1px; height: 90px;
  background: var(--paper);
  clip-path: ellipse(70% 100% at 50% 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(36px, 6vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { color: #fff; margin-block-end: .45em; }
.hero h1 .accent { color: var(--sea-300); }
.hero .lead { max-width: 36em; margin-block-end: 1.6em; }
.hero-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-block-start: 26px; color: var(--on-dark-muted); font-size: .95rem;
}
.hero-note svg { width: 20px; height: 20px; flex: none; margin-block-start: .3em; color: var(--sea-300); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-mark {
  position: absolute; inset-inline-end: -40px; inset-block-start: -30px;
  width: min(420px, 85%); opacity: .14; pointer-events: none;
}

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 80% at 90% 0%, rgb(79 138 128 / .25), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 112px);
}
.page-hero::after {
  content: ""; position: absolute; inset-inline: -10%; inset-block-end: -1px; height: 60px;
  background: var(--paper); clip-path: ellipse(70% 100% at 50% 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .lead { max-width: 40em; }
.page-hero .hero-mark { width: 300px; inset-inline-end: 2%; inset-block-start: 10px; opacity: .12; }
@media (max-width: 700px) { .page-hero .hero-mark { display: none; } }

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.problem-item {
  position: relative;
  padding: 24px 22px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.problem-item .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand-soft); color: var(--sand-ink); font-weight: 700; font-size: .95rem;
  margin-block-end: 12px;
}
.problem-item h3 { margin-block-end: .35em; }
.problem-item p { color: var(--muted); margin: 0; font-size: 1rem; }
.bridge {
  margin-block-start: 36px; padding: 22px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--mint);
  display: flex; gap: 16px; align-items: center;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 500;
}
.bridge img { width: 44px; height: auto; flex: none; }
.bridge p { margin: 0; }

/* ---------- Feature cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: #b9d6cf; box-shadow: 0 2px 4px rgb(13 20 19 / .05), 0 16px 36px rgb(13 20 19 / .1); }
.card h3 { margin-block-end: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px; margin-block-end: 18px;
  background: linear-gradient(145deg, var(--teal-800), var(--ink));
  color: var(--mint);
}
.icon-badge svg { width: 26px; height: 26px; }
.section-foot { margin-block-start: 36px; display: flex; justify-content: center; }

/* ---------- Steps ---------- */
.how-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--mint);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 5px var(--mint-2);
}
.step h3 { margin-block-end: .25em; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* three-screens strip */
.screens { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); align-items: flex-end; }
.screens .phone { --pw: clamp(150px, 26vw, 210px); }
.screens .phone:nth-child(2) { transform: translateY(-22px); }
@media (max-width: 560px) {
  .screens .phone { --pw: 168px; }
  .screens .phone:nth-child(1), .screens .phone:nth-child(3) { display: none; }
  .screens .phone:nth-child(2) { transform: none; }
}

/* ---------- Roles ---------- */
.roles { display: grid; gap: 20px; }
@media (min-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
.role {
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
}
.role--owner { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.role--owner h3 { color: #fff; }
.role-head { display: flex; align-items: center; gap: 14px; margin-block-end: 18px; }
.role-head h3 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.role-head .icon-badge { margin: 0; }
.role--owner .icon-badge { background: var(--sand); color: var(--ink); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .45em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23285c54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
html[lang="en"] .ticks li::before { inset-block-start: .2em; }
.role--owner .ticks li { color: var(--on-dark); }
.role--owner .ticks li::before {
  background-color: rgb(208 173 116 / .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0ad74' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Dashboard highlight ---------- */
.dash { position: relative; overflow: hidden; }
.dash::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 10% 50%, rgb(79 138 128 / .22), transparent 70%);
  pointer-events: none;
}
.dash-grid { position: relative; display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: .95fr 1.05fr; } }
.dash .ticks li::before {
  background-color: rgb(143 194 184 / .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fc2b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.dash .ticks li { color: var(--on-dark); }
.dash-visual { display: flex; justify-content: center; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.trust-item { padding: 6px 0; }
.trust-item .icon-badge { background: var(--mint); color: var(--teal-700); border: 1px solid var(--line); }
.trust-item p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #b9d6cf; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.06rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23285c54' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(79 138 128 / .35), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-block-end: .3em; }
.cta-band p { color: var(--on-dark-muted); margin: 0; font-size: 1.1rem; }
.cta-band .mark-bg { position: absolute; inset-inline-start: -30px; inset-block-end: -60px; width: 220px; opacity: .08; pointer-events: none; }
.cta-band > * { position: relative; }

/* ---------- Feature detail groups (features page) ---------- */
.group { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.group + .group { border-block-start: 1px solid var(--line); }
@media (min-width: 960px) {
  .group { grid-template-columns: 1.1fr .9fr; }
  .group--flip .group-visual { order: -1; }
}
.group-visual { display: flex; justify-content: center; }
.group h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.feature-list { list-style: none; display: grid; gap: 16px; margin-block-start: 22px; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.feature-list .dot {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--mint); color: var(--teal-700);
}
.feature-list .dot svg { width: 19px; height: 19px; }
.feature-list h3 { font-size: 1.05rem; margin: 0 0 .15em; font-family: var(--font-body); font-weight: 600; line-height: 1.5; }
.feature-list p { margin: 0; color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--teal-800); font-size: .92rem; font-weight: 500; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-block-start: 28px; }
.subnav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgb(228 241 238 / .25); color: var(--mint); text-decoration: none; font-size: .95rem;
}
.subnav a:hover { background: rgb(228 241 238 / .08); border-color: var(--mint); }

/* ---------- Timeline (how-it-works page) ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 22px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 24px; inset-inline-start: 23px; width: 2px;
  background: linear-gradient(var(--sea), var(--line));
}
.timeline > li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.timeline .step-num { position: relative; z-index: 1; }
.timeline .t-body {
  padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.timeline .t-body h2, .timeline .t-body h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); margin-block-end: .35em; }
.timeline .t-body p { color: var(--muted); }
.timeline .t-body p:last-child, .timeline .t-body ul:last-child { margin-block-end: 0; }
.timeline .t-body ul { list-style: none; display: grid; gap: 8px; }
.timeline .t-body ul li { position: relative; padding-inline-start: 20px; color: var(--muted); }
.timeline .t-body ul li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .8em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--sea);
}
html[lang="en"] .timeline .t-body ul li::before { inset-block-start: .65em; }
.tip {
  margin-block-start: 14px; padding: 12px 16px; border-radius: var(--radius-s);
  background: var(--sand-soft); color: #4a3a1c; font-size: .96rem;
  border-inline-start: 3px solid var(--sand);
}

/* ---------- Prose (about, privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); margin-block: 1.6em .55em; }
.prose h2:first-child { margin-block-start: 0; }
.prose h3 { margin-block: 1.3em .4em; }
.prose p, .prose li { color: #2c3b38; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-block-end: 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--sea); }
.prose .updated { color: var(--muted); font-size: .95rem; }
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-block: 28px; }
.value { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { margin-block: 0 .3em; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }
.quote-block {
  margin: 32px 0; padding: 26px 28px; border-radius: var(--radius);
  background: var(--ink); color: var(--mint);
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.35rem; margin: 0; }
html[lang="en"] .contact-card h2 { font-size: 1.7rem; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card .value-line { font-size: 1.2rem; font-weight: 600; color: var(--text); direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] .contact-card .value-line { text-align: right; }
.contact-card .btn { margin-block-start: auto; align-self: flex-start; }
.contact-card--wa { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.contact-card--wa h2, .contact-card--wa .value-line { color: #fff; }
.contact-card--wa p { color: var(--on-dark-muted); }
.info-list { list-style: none; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.info-list svg { width: 20px; height: 20px; flex: none; margin-block-start: .35em; color: var(--teal-700); }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--sea); margin-block-end: .1em; }
.notfound img { width: 120px; margin: 0 auto 10px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 64px 28px; font-size: .98rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 170px; height: auto; margin-block-end: 14px; }
.footer-brand p { max-width: 30em; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--mint); margin-block-end: 14px; letter-spacing: .01em; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-block-start: .35em; color: var(--sea-300); }
.footer-availability { margin-block-start: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgb(79 138 128 / .16); color: var(--mint); font-size: .92rem; }
.footer-bottom {
  margin-block-start: 44px; padding-block-start: 22px; border-block-start: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Phone mockups ---------- */
.phone {
  --pw: 280px;
  position: relative; flex: none;
  width: var(--pw); aspect-ratio: 9 / 17.4;
  padding: calc(var(--pw) * .035);
  border-radius: calc(var(--pw) * .15);
  background: linear-gradient(160deg, #2b3a37, #0a100f 60%);
  box-shadow: var(--shadow-l), inset 0 0 0 1.5px rgb(255 255 255 / .08);
  font-size: calc(var(--pw) * .045);
  line-height: 1.45;
  color: var(--text);
}
.phone::before { /* notch */
  content: ""; position: absolute; z-index: 2; inset-block-start: calc(var(--pw) * .055); inset-inline-start: 50%;
  width: 30%; height: calc(var(--pw) * .055); border-radius: 99px; background: #0a100f;
  transform: translateX(-50%);
}
html[dir="rtl"] .phone::before { transform: translateX(50%); }
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .12);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.scr-top {
  background: var(--ink); color: var(--mint);
  padding: 2.9em 1.1em .9em;
  display: flex; align-items: center; justify-content: space-between; gap: .5em;
}
.scr-top b { font-weight: 600; font-size: 1.08em; }
.scr-top small { color: var(--on-dark-muted); font-size: .82em; direction: ltr; unicode-bidi: isolate; }
.scr-body { padding: .9em; display: grid; gap: .7em; align-content: start; flex: 1; }
.scr-card { background: #fff; border: 1px solid var(--line); border-radius: .9em; padding: .75em .85em; }
.scr-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.scr-muted { color: var(--muted); font-size: .86em; }
.scr-amount { font-weight: 700; white-space: nowrap; }
.scr-amount small { font-weight: 500; font-size: .75em; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .15em .65em; border-radius: 99px; font-size: .78em; font-weight: 600; white-space: nowrap;
}
.chip--pending { background: #fdf2dd; color: #7a5820; }
.chip--ready { background: #dff0ec; color: #1f4741; }
.chip--paid { background: #1f4741; color: #fff; }
.chip--late { background: #f8e1de; color: #8a2f27; }
.scr-btn {
  margin-block-start: auto; background: var(--teal-700); color: #fff; border-radius: 99px;
  text-align: center; padding: .7em; font-weight: 600; font-size: .92em;
  display: flex; align-items: center; justify-content: center; gap: .4em;
}
.scr-btn svg { width: 1.2em; height: 1.2em; }
.scr-bottom { padding: .9em; }
.scr-divider { height: 1px; background: var(--line); margin-block: .45em; }
.scr-progress { height: .45em; border-radius: 99px; background: var(--mint); overflow: hidden; }
.scr-progress span { display: block; height: 100%; background: var(--sea); border-radius: inherit; }
.scr-search {
  display: flex; align-items: center; gap: .5em; background: #fff; border: 1.5px solid var(--sea);
  border-radius: .8em; padding: .55em .7em; font-weight: 600; direction: ltr; unicode-bidi: isolate;
}
.scr-search svg { width: 1.1em; height: 1.1em; color: var(--teal-700); }
.scr-search .caret { width: 1.5px; height: 1.1em; background: var(--teal-700); }
.scr-person { display: flex; gap: .6em; align-items: center; }
.avatar {
  width: 2.2em; height: 2.2em; border-radius: 50%; flex: none;
  background: var(--mint); color: var(--teal-700); display: grid; place-items: center; font-weight: 700;
}
.scr-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: .8em; padding: .6em .7em; }
.kpi .k { color: var(--muted); font-size: .8em; display: block; }
.kpi .v { font-weight: 700; font-size: 1.25em; direction: ltr; unicode-bidi: isolate; display: block; text-align: start; }
html[dir="rtl"] .kpi .v { text-align: right; }
.kpi--dark { background: var(--ink); border-color: var(--ink); color: #fff; grid-column: 1 / -1; }
.kpi--dark .k { color: var(--on-dark-muted); }
.kpi .v.late { color: #a33b32; }
.bars { display: flex; align-items: flex-end; gap: .35em; height: 4.2em; padding-block-start: .3em; }
.bars span { flex: 1; background: var(--sea-300); border-radius: .25em .25em 0 0; }
.bars span.hi { background: var(--teal-700); }
.abaya-fig { position: relative; background: #fff; border: 1px solid var(--line); border-radius: .9em; padding: .4em; }
.abaya-fig svg { width: 100%; height: auto; }
.abaya-fig .lbl { font-family: var(--font-body); font-size: 9px; font-weight: 600; }

/* floating cards around hero phone */
.float-card {
  position: absolute; z-index: 2;
  background: #fff; color: var(--text);
  border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / .45);
  font-size: .86rem; line-height: 1.4;
  display: flex; align-items: center; gap: 10px;
}
.float-card .icon-badge { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.float-card .icon-badge svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: .95rem; }
.float-card span { color: var(--muted); }
.float-card--a { inset-inline-start: 0; inset-block-start: 64%; }
.float-card--b { inset-inline-end: 0; inset-block-end: 14%; }
@media (max-width: 520px) {
  .float-card { font-size: .78rem; padding: 8px 10px; }
  .float-card--a { inset-inline-start: -4px; inset-block-start: 8%; }
  .float-card--b { inset-inline-end: -4px; inset-block-end: 6%; }
  .hero-visual .phone { --pw: 240px; }
  .hero-visual { min-height: 0; }
}

/* ---------- Placeholder marker (English copy pending) ---------- */
.placeholder-note {
  background: var(--sand-soft); color: #4a3a1c; border-block-end: 1px solid #e8d8b8;
  font-size: .92rem; text-align: center; padding: 8px var(--gutter);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero-visual .phone { animation: floaty 7s ease-in-out infinite; }
}
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .hero-visual { display: none !important; }
  body { background: #fff; }
}

/* ---------- Mockup extras ---------- */
.scr-new { text-align: center; color: var(--teal-700); font-weight: 600; }
.scr-search--idle { border-color: var(--line); font-weight: 500; color: var(--muted); direction: inherit; }
.scr-chips { display: flex; gap: .4em; flex-wrap: wrap; }
.avatar--sq { border-radius: .5em; }
.avatar svg { width: 1.2em; height: 1.2em; }
.scr-progress span.me { background: var(--teal-700); }
.scr-body > b { font-size: .95em; margin-block-start: .2em; }

/* ---------- Feature groups extras ---------- */
.group-head { display: flex; align-items: center; gap: 14px; margin-block-end: 6px; }
.group-head .icon-badge { margin: 0; flex: none; }
.group-head h2 { margin: 0; }
.group .lead { margin-block: 10px 4px; }
.group .ticks { margin-block-start: 20px; }
.group--wide { grid-template-columns: 1fr !important; }
.ticks--cols { display: grid; gap: 12px 32px; }
@media (min-width: 860px) { .ticks--cols { grid-template-columns: 1fr 1fr; } }
.screens--pair .phone { --pw: clamp(160px, 30vw, 240px); }
.screens--pair .phone:nth-child(2) { transform: translateY(-26px); }
@media (max-width: 560px) {
  .screens--pair .phone { --pw: 150px; }
  .screens--pair .phone:nth-child(1) { display: block; }
  .screens--pair .phone:nth-child(2) { display: block; transform: translateY(-16px); }
}
.subhead { font-size: 1.15rem; margin-block: 28px 0; display: flex; align-items: center; gap: 10px; }
html[lang="en"] .subhead { font-family: var(--font-body); font-weight: 600; }
.subhead svg { width: 22px; height: 22px; color: var(--sea); }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--sand-soft); color: var(--sand-ink); font-weight: 600; font-size: .88rem;
}
.soon-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-block: 26px 14px; }
.soon-card { padding: 24px; border-radius: var(--radius); border: 1.5px dashed #c8b48c; background: #fffdf8; }
.soon-card h3 { margin-block-end: .35em; }
.soon-card p { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 18px; height: 18px; flex: none; margin-block-start: .35em; }
.tbd { background: var(--sand-soft); color: #5a4317; padding: 0 .3em; border-radius: 4px; }

/* ---------- How-it-works page ---------- */
.journey { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 30px; counter-reset: none; position: relative; }
.journey li { position: relative; }
.journey a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgb(228 241 238 / .07); border: 1px solid rgb(228 241 238 / .2);
  color: var(--mint); text-decoration: none; font-weight: 600;
}
html[dir="rtl"] .journey a { padding: 6px 10px 6px 14px; }
.journey a:hover { background: rgb(79 138 128 / .3); border-color: var(--sea-300); }
.journey svg { width: 20px; height: 20px; color: var(--sea-300); }
.how-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .how-layout { grid-template-columns: 1fr 300px; } }
.how-aside { display: none; }
@media (min-width: 1000px) {
  .how-aside { display: grid; gap: 40px; justify-items: center; position: sticky; inset-block-start: 96px; }
  .how-aside .phone { --pw: 240px; }
  .how-aside .phone + .phone { display: none; }
}
.timeline { scroll-margin-block-start: 90px; }
.timeline > li { scroll-margin-block-start: 90px; }
.eod {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l);
  background: var(--sand-soft); border: 1px solid #ecdcbc;
}
.eod .icon-badge { margin: 0; background: var(--ink); color: var(--sand); }
.eod h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-block-end: .3em; }
.eod p { margin: 0; color: #3e3420; font-size: 1.08rem; }
@media (max-width: 520px) { .eod { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-visual svg { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.mission-text {
  font-family: var(--font-display); color: #fff; margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.7;
}
html[lang="en"] .mission-text { line-height: 1.35; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.about-two { display: grid; gap: 40px; }
@media (min-width: 860px) { .about-two { grid-template-columns: 1fr 1fr; } }
.about-two .prose h2 { margin-block-start: 0; }
.value .icon-badge { width: 44px; height: 44px; border-radius: 13px; margin-block-end: 14px; }
.value .icon-badge svg { width: 22px; height: 22px; }

/* ---------- Contact page ---------- */
.contact-card .icon-badge { margin-block-end: 6px; }
.contact-card--wa .icon-badge { background: var(--sand); color: var(--ink); }
.value-line--text { direction: inherit !important; }
html[dir="rtl"] .contact-card .value-line { direction: ltr; text-align: right; }
html[dir="rtl"] .contact-card .value-line--text { direction: rtl !important; }
.hours {
  margin-block-start: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 24px 28px; border-radius: var(--radius-l); background: var(--mint-2); border: 1px solid var(--line);
}
.hours .icon-badge { margin: 0; }
.hours h2 { font-size: 1.3rem; margin-block-end: .2em; }
html[lang="en"] .hours h2 { font-size: 1.7rem; }
.hours p { margin: 0 0 .3em; }
.demo-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1.1fr .9fr; } }
.checklist-card { padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist-card h3 { margin-block-end: 16px; }
.checklist-card .note { margin: 20px 0 0; }

/* ---------- 404 ---------- */
.tape-q { width: 120px; margin: 0 auto 8px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-block: 8px 28px; }
.nf-links a { font-weight: 600; }

/* ---------- Dark section helpers ---------- */
.section--dark .icon-badge { background: rgb(79 138 128 / .28); color: var(--mint); }
.section--dark .group-head h2 { color: #fff; }
.section--dark .subhead svg { color: var(--sand); }
.footer-availability svg { width: 18px; height: 18px; flex: none; color: var(--sand); }
.footer-availability { border-radius: 14px; align-items: flex-start; line-height: 1.6; }
@media (max-width: 520px) { .float-card--a { display: none; } }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.values { grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.group > *, .dash-grid > *, .how-grid > *, .hero-grid > *, .about-grid > *, .demo-grid > * { min-width: 0; }
@media (max-width: 380px) { .screens--pair .phone { --pw: 134px; } }
.primary-nav .nav-mobile-cta .btn { display: flex; color: var(--ink); background: var(--mint); padding: 12px 18px; border-radius: 999px; }
.primary-nav .nav-mobile-cta .btn:hover { background: #fff; color: var(--ink); }
.hero .lead, .page-hero .lead { color: var(--on-dark-muted); }
