/* دفتر الشام / DaftarSham — product site (static). Arabic / English in one page: [lang] blocks shown by html[data-l].
   Colours from the app: MegaSham green #0F6E56 and jasmine orange #EF9F27. */
:root {
  --bg: #f6f8f7; --card: #ffffff; --ink: #10231d; --mut: #55675f; --line: #dfe7e3;
  --brand: #0F6E56; --brand-ink: #0b5948; --accent: #EF9F27; --accent-ink: #8a5300; --soft: #e8f3ef; --soft2: #fdf3e2;
  --shadow: 0 6px 24px rgba(16, 35, 29, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1613; --card: #13211c; --ink: #e6f0ec; --mut: #9db3aa; --line: #233a32;
    --brand: #2fae8b; --brand-ink: #5cc9a8; --accent: #f2b04d; --accent-ink: #f2b04d; --soft: #16302a; --soft2: #2b2414; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; line-height: 1.75; font-size: 16px; overflow-x: hidden; }
html[data-l="en"] body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; line-height: 1.65; }
html[data-l="ar"] [lang="en"], html[data-l="en"] [lang="ar"] { display: none !important; }
a { color: var(--brand-ink); } a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--mut); line-height: 1.2; }
nav.links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.links a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
nav.links a:hover { background: var(--soft); color: var(--ink); }
.lang-btn { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 12px; padding: 11px 20px; font-weight: 700; font-size: 16px; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn.ghost { background: var(--card); color: var(--brand-ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--brand-ink); }
.btn.off { background: var(--card); color: var(--mut); border-color: var(--line); cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font-weight: 500; font-size: 12px; opacity: .85; }

.hero { padding-top: 56px; padding-bottom: 36px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 48px); line-height: 1.22; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero p.lead { font-size: 19px; color: var(--mut); margin: 0 0 22px; max-width: 620px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .art { display: grid; place-items: center; }
.hero .art img { width: min(280px, 70vw); height: auto; border-radius: 56px; box-shadow: 0 18px 50px rgba(15, 110, 86, .28); }
.pill { display: inline-block; background: var(--soft2); color: var(--accent-ink); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.facts { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; color: var(--mut); font-size: 14px; }
.facts li::before { content: '✓'; color: var(--brand-ink); font-weight: 800; margin-inline-end: 6px; }

section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 6px; line-height: 1.3; }
.sub { color: var(--mut); margin: 0 0 24px; max-width: 720px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.4; }
.card p { margin: 0; color: var(--mut); font-size: 15px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand-ink); }
.icon svg { width: 24px; height: 24px; }

.trades { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trades li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps .card { position: relative; padding-top: 22px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; inset-inline-start: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #3a2400; font-weight: 800; display: grid; place-items: center; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--brand); }
.plan .price { font-size: 34px; font-weight: 800; margin: 6px 0 0; line-height: 1.2; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--mut); }
.plan ul { margin: 14px 0 18px; padding: 0; list-style: none; color: var(--mut); font-size: 15px; flex: 1; }
.plan li { padding: 5px 0; } .plan li::before { content: '✓'; color: var(--brand-ink); font-weight: 800; margin-inline-end: 8px; }
.plan .btn { justify-content: center; }
.fine { color: var(--mut); font-size: 13px; margin-top: 14px; }

details.q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
details.q summary { cursor: pointer; font-weight: 700; list-style: none; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::before { content: '+'; display: inline-block; width: 20px; color: var(--brand-ink); font-weight: 800; }
details.q[open] summary::before { content: '−'; }
details.q p { margin: 8px 0 2px; color: var(--mut); }

.band { background: var(--brand); color: #fff; border-radius: 20px; padding: 28px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; } .band p { margin: 0; opacity: .9; }
.band .btn { background: #fff; color: #0b5948; border-color: #fff; } .band .btn:hover { background: var(--soft2); color: #0b5948; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
/* «راسلنا» form on support.html */
#contact { scroll-margin-top: 80px; }
.cform { display: grid; gap: 14px; max-width: 760px; }
.cform label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.cform label small { color: var(--mut); font-weight: 400; }
.cform input, .cform select, .cform textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.cform textarea { resize: vertical; min-height: 140px; }
.cform .crow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform .btn { justify-self: start; cursor: pointer; }
.cform .btn[disabled] { opacity: .6; cursor: default; }
.cform .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.cmsg:empty { display: none; }
.cmsg { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.cmsg.ok { background: var(--soft); color: var(--brand-ink); }
.cmsg.err { background: var(--soft2); color: var(--accent-ink); }
@media (max-width: 640px) { .cform .crow { grid-template-columns: 1fr; } .cform .btn { justify-self: stretch; justify-content: center; } }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 24px 0; box-shadow: var(--shadow); }
.doc h1 { font-size: 28px; margin-top: 0; line-height: 1.3; } .doc h2 { font-size: 20px; margin-top: 26px; }
.doc .meta { color: var(--mut); font-size: 14px; }
.doc li { margin-bottom: 4px; }
.note { background: var(--soft); border-radius: 10px; padding: 12px 14px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--mut); font-size: 14px; margin-top: 24px; }
footer .wrap { display: flex; gap: 10px 14px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--mut); }

/* ---------- guide ---------- */
.crumbs { font-size: 14px; color: var(--mut); margin: 22px 0 4px; }
.crumbs a { color: var(--mut); }
.g-title { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.25; margin: 0 0 8px; }
.g-lead { color: var(--mut); font-size: 18px; margin: 0 0 18px; max-width: 760px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--ink); }
.toc a:hover { background: var(--soft); }
.gstep { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 18px 0; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.gstep.solo { grid-template-columns: 1fr; }
.gstep h2 { font-size: 22px; margin: 0 0 8px; }
.gstep p { margin: 0 0 10px; }
.gstep .tip, .g-note { background: var(--soft2); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin-top: 12px; }
.gstep .tip::before, .g-note::before { content: '💡 '; }
ol.marks { counter-reset: m; list-style: none; padding: 0; margin: 10px 0 0; }
ol.marks > li { counter-increment: m; position: relative; padding-inline-start: 38px; margin-bottom: 10px; }
ol.marks > li::before { content: counter(m); position: absolute; inset-inline-start: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #3a2400; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
figure.shot { margin: 0; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 6px solid #1d2b26; box-shadow: 0 10px 28px rgba(0,0,0,.18); background: #1d2b26; }
figure.shot figcaption { font-size: 13px; color: var(--mut); text-align: center; margin-top: 8px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gcard { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.gcard:hover { border-color: var(--brand); color: var(--ink); }
.gcard b { display: block; font-size: 17px; margin: 8px 0 4px; } .gcard span.d { color: var(--mut); font-size: 14px; }
.gcard .em { font-size: 26px; }
.gcard.soon { opacity: .55; pointer-events: none; }
.result-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 0; }
.result-box div { background: var(--soft); border-radius: 12px; padding: 10px 12px; } .result-box small { display: block; color: var(--mut); font-size: 13px; } .result-box b { font-size: 20px; }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }

@media (max-width: 430px) {
  header.top .wrap { gap: 6px; }
  .logo { font-size: 17px; gap: 8px; } .logo img { width: 34px; height: 34px; }
  nav.links { gap: 0; } nav.links a { padding: 4px 5px; font-size: 13.5px; }
  .lang-btn { font-size: 13px; padding: 3px 9px; }
}
@media (max-width: 760px) {
  .gstep { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .gstep figure.shot { max-width: 280px; margin: 0 auto; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 20px; gap: 18px; }
  .hero .art { order: -1; } .hero .art img { width: 132px; border-radius: 30px; }
  .hero p.lead { font-size: 17px; }
  header.top .wrap { padding: 8px 16px; } nav.links a { padding: 4px 6px; font-size: 14px; }
  nav.links .hide-sm { display: none; }
  h2 { font-size: 24px; }
  .band { padding: 22px; }
}

/* guide articles */
.art { max-width: 760px; }
.art h2 { font-size: 21px; margin: 30px 0 8px; }
.art p, .art li { line-height: 1.9; }
.art ul, .art ol { padding-inline-start: 22px; }
.art .note { font-size: 17px; margin: 12px 0; }
.art table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.art th, .art td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.art th { background: var(--soft); }
.art .n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.art .gstep { margin-top: 12px; }
.art .cta { margin: 28px 0 8px; }
.g-text { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 18px 0; box-shadow: var(--shadow); }
.g-text h2 { font-size: 22px; margin: 0 0 8px; } .g-text p { margin: 0 0 10px; }
.trades a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.trades a:hover { color: var(--brand-ink); }

/* ustacari.com.tr: Turkish only, Latin font like the English pages */
html[data-l="tr"] body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; line-height: 1.65; }

/* UstaCari palette: İznik turquoise for the brand, tulip red for the accent, a little warmer ceramic white */
:root {
  --bg: #f5f8f8; --ink: #0f2427; --mut: #546a6d; --line: #dbe7e8;
  --brand: #0B7A82; --brand-ink: #075A61; --accent: #E3262E; --accent-ink: #B5121B; --soft: #e3f3f3; --soft2: #fdeced;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1718; --card: #112224; --ink: #e5f1f1; --mut: #9ab4b6; --line: #213b3e;
    --brand: #36b3ba; --brand-ink: #7fd3d3; --accent: #f0646a; --accent-ink: #f7a3a6; --soft: #12302f; --soft2: #33191b;
  }
}