/* DCare Systems — marketing site. One stylesheet for EN (ltr) and AR (rtl): logical properties only. */
:root {
  --ink: #0b1624;
  --ink-2: #13243a;
  --ink-3: #1c3350;
  --paper: #ffffff;
  --mist: #eef3f5;
  --line: #dce4ea;
  --text: #0b1624;
  --muted: #4a5b6c;
  --on-ink: #e8eef4;
  --on-ink-muted: #a9bacb;
  /* Brand (see /brand.html): DCare Green #12935D, Pulse Green #2BBF7E (on dark), Deep Green #0D6E45, Ink #0B1624 */
  --teal: #12935d;
  --teal-ink: #0d6e45;
  --mint: #2bbf7e;
  --amber: #f2a93b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 22, 36, .06), 0 18px 48px rgba(11, 22, 36, .14);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, .45);
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  color-scheme: light;
}
html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
html[lang="ar"] body { line-height: 1.85; }
img, video { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #4fd096; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #3a5574; }
.btn-ghost-light:hover { border-color: var(--mint); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.brand img { height: 36px; width: 36px; display: block; flex: none; }
.brand-word { font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.brand-word .d { color: #12935d; }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word .d { color: #2bbf7e; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--mist); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { font-size: 15px; color: var(--ink); text-decoration: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.login { font-size: 15px; color: var(--ink); text-decoration: none; padding: 9px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav, .login, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px; margin: 0; }
  .site-header.open .nav a { font-size: 17px; padding: 12px; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 10%, rgba(43, 191, 126, .16), transparent 70%); pointer-events: none; }
html[dir="rtl"] .hero::before { background: radial-gradient(60% 60% at 15% 10%, rgba(43, 191, 126, .16), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-block: 84px 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--mint); border: 1px solid #24465a; border-radius: 999px; padding: 6px 12px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(43, 191, 126, .2); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin-block: 22px 20px; font-weight: 700; }
html[lang="ar"] .hero h1 { line-height: 1.3; font-size: clamp(34px, 4.6vw, 56px); }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { font-size: 20px; color: var(--on-ink-muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid #22384f; }
.proof div { display: flex; flex-direction: column; }
.proof strong { font-family: var(--font-mono); font-size: 24px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.proof span { font-size: 13.5px; color: var(--on-ink-muted); }
.hero-visual { position: relative; }
.device { background: #0e1d2f; border: 1px solid #2a4560; border-radius: 16px; box-shadow: var(--shadow-dark); overflow: hidden; }
.device-bar { display: flex; gap: 6px; padding: 10px 12px; background: #13243a; border-bottom: 1px solid #22384f; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c4661; display: block; }
.shot { position: relative; background: linear-gradient(110deg, #e9eff3 30%, #f6f9fb 50%, #e9eff3 70%); background-size: 200% 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.shot > img, .shot > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-label { position: absolute; inset: auto 12px 12px auto; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 6px; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-dark); padding: 14px 16px; font-size: 14px; }
.float-wa { inset-inline-end: -18px; top: 22%; width: 250px; }
.float-wa .bubble { background: #dcf8c6; border-radius: 10px; padding: 9px 11px; margin-top: 8px; line-height: 1.5; }
.float-wa small { display: block; margin-top: 6px; color: var(--muted); text-align: end; }
.float-pay { inset-inline-start: -22px; bottom: -22px; }
.float-pay b { display: block; font-family: var(--font-mono); font-size: 20px; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
html[lang="ar"] .float-pay b, html[lang="ar"] .proof strong { font-family: var(--font-body); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-ink); }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 72px; }
  .float-wa { inset-inline-end: 8px; top: auto; bottom: -30px; width: 220px; }
  .float-pay { display: none; }
}

/* ---------- customers ---------- */
.customers { border-bottom: 1px solid var(--line); }
.customers .wrap { padding-block: 36px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.customers-title { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.customer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.customer-list:empty { display: none; }
.customer-list { gap: 18px 44px; align-items: center; }
.customer-list li { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #5b6b7c; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.customer-list img { height: 60px; width: auto; max-width: 190px; object-fit: contain; }

/* ---------- section scaffolding ---------- */
.section { padding-block: 104px; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
html[lang="ar"] .kicker { font-family: var(--font-body); letter-spacing: 0; font-weight: 600; font-size: 15px; }
.section-ink .kicker { color: var(--mint); }
.section-head { max-width: 760px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 700; }
html[lang="ar"] .section-head h2 { line-height: 1.35; }
.section-head p { font-size: 19px; color: var(--muted); }
.section-ink .section-head p { color: var(--on-ink-muted); }

/* ---------- day timeline ---------- */
.day { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.day-list::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 31px; width: 2px; background: var(--line); }
.day-step { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 12px 14px 0; cursor: pointer; border-radius: 14px; position: relative; }
html[dir="rtl"] .day-step { padding: 14px 0 14px 12px; }
.day-step:focus-visible { outline: 3px solid var(--mint); }
.day-step time { font-family: var(--font-mono); font-size: 14px; color: var(--muted); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; height: 30px; display: grid; place-items: center; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.day-step strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.day-step span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.day-step[aria-selected="true"] { background: #fff; box-shadow: var(--shadow); }
.day-step[aria-selected="true"] time { background: var(--teal); color: #fff; border-color: var(--teal); }
.day-step .bar { display: none; height: 3px; background: var(--line); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.day-step[aria-selected="true"] .bar { display: block; }
.day-step .bar i { display: block; height: 100%; width: 0; background: var(--teal); }
.day.playing .day-step[aria-selected="true"] .bar i { animation: fill 6s linear forwards; }
@keyframes fill { to { width: 100%; } }
.day-stage { position: sticky; top: 92px; }
.day-panel[hidden] { display: none; }
.day-panel figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .day { grid-template-columns: 1fr; } .day-stage { position: static; order: -1; } }

/* ---------- modules ---------- */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.module { background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.module svg { width: 28px; height: 28px; color: var(--teal); }
.module h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.module p { font-size: 15px; color: var(--muted); line-height: 1.55; }
html[lang="ar"] .module p { line-height: 1.8; }
@media (max-width: 1000px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; }
.feature-copy h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; font-weight: 700; }
html[lang="ar"] .feature-copy h3 { line-height: 1.4; }
.feature-copy p { font-size: 18px; color: var(--muted); }
.new-badge { align-self: flex-start; font-size: 13px; font-weight: 600; color: #6b3a00; background: #fde6c2; border-radius: 999px; padding: 4px 10px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 4px; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-copy { order: 0; } }

/* ---------- kuwait grid ---------- */
.kw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kw article { background: var(--ink-2); border: 1px solid #22384f; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.kw svg { width: 28px; height: 28px; color: var(--mint); }
.kw h3 { font-size: 19px; color: #fff; }
.kw p { color: var(--on-ink-muted); font-size: 15.5px; }
@media (max-width: 960px) { .kw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kw { grid-template-columns: 1fr; } }

/* ---------- bilingual compare ---------- */
.compare { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--mist); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .top { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; background: var(--mint); transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: "EN  |  ع"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- phones ---------- */
.phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.phone { width: 250px; border-radius: 36px; background: var(--ink); padding: 10px; box-shadow: var(--shadow); }
.phone .shot { aspect-ratio: 390 / 844; border-radius: 28px; }
.phone:nth-child(2) { transform: translateY(-28px); }

/* ---------- security ---------- */
.sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sec div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .sec div { padding: 24px 0 24px 24px; }
.sec h3 { font-size: 18px; margin-bottom: 6px; }
.sec p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 640px) { .sec { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--teal); font-size: 14px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.steps ol, ol.steps { margin: 0; padding: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }

/* ---------- cta + footer ---------- */
.cta { background: var(--teal); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 84px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.cta p { color: #d6f3e4; font-size: 19px; margin-top: 10px; }
.cta .btn-light { background: #fff; color: var(--ink); }
.cta .btn-outline { border-color: #8fd9b4; color: #fff; }
.cta .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-alt { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-alt a { color: #fff; font-weight: 600; }
.contact-form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-dark); }
.contact-form .btn-light { background: var(--ink); color: #fff; align-self: flex-start; }
.contact-form .btn-light:hover { background: var(--ink-3); }
.contact-form .btn-light[disabled] { opacity: .6; cursor: wait; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c4d1da; border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(18, 147, 93, .35); border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #c2410c; }
.field .err { font-size: 13px; color: #b42318; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: var(--teal-ink); font-weight: 600; }
.form-status.bad { color: #b42318; }
@media (max-width: 860px) { .cta .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 64px 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #22384f; grid-column: 1 / -1; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pending { opacity: 0; transform: translateY(18px); }
