/* Code Line website — shared styles (Arabic RTL + English LTR) */
:root {
  --navy: #0b1f3a;
  --navy-2: #13305a;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --brand: #0f766e;
  --brand-soft: #e6f4f1;
  --wa: #15803d;
  --wa-hover: #166534;
  --gold: #f4b400;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max: 1160px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 84px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 14px; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn svg { width: 22px; height: 22px; flex: none; }
.no-calls { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.no-calls strong { color: var(--ink); }

/* Top notice */
.topbar { background: var(--navy); color: #dbe6f5; font-size: 0.88rem; text-align: center; padding: 7px 16px; }
.topbar a { color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .btn { padding: 9px 16px; font-size: 0.95rem; }
.nav .lang { color: var(--muted); font-weight: 600; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero { padding-block: 72px 64px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(15,118,110,0.12), transparent 60%),
  radial-gradient(700px 360px at 0% 10%, rgba(19,48,90,0.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 .hl { color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.check { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--brand); }

/* Trial card visual */
.trial-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.trial-card .tc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.trial-card .tc-title { font-weight: 700; color: var(--navy); }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge-gold { background: #fff6dc; color: #8a6100; }
.tc-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.tc-steps::before { content: ""; position: absolute; inset-inline-start: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tc-steps li { position: relative; padding-inline-start: 46px; padding-block: 8px; }
.tc-steps .dot { position: absolute; inset-inline-start: 4px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--brand); }
.tc-steps li.done .dot { background: var(--brand); color: #fff; }
.tc-steps strong { display: block; color: var(--navy); }
.tc-steps span { color: var(--muted); font-size: 0.93rem; }
.tc-foot { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.95rem; }
.tc-price { font-weight: 700; color: var(--brand); font-size: 1.4rem; }

/* Trust strip */
.trust { padding-block: 26px; background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: 0.97rem; }
.trust-item svg { width: 34px; height: 34px; flex: none; color: var(--brand); background: var(--brand-soft); border-radius: 10px; padding: 7px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); }
.product .p-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.product .p-name { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 0; }
.product .p-desc { color: var(--muted); }
.product ul { list-style: none; padding: 0; margin: 6px 0 20px; display: grid; gap: 8px; }
.product li { display: flex; gap: 10px; font-size: 0.97rem; }
.product li .check { width: 20px; height: 20px; margin-top: 4px; }
.product .p-cta { margin-top: auto; }
.product .p-cta .btn { width: 100%; }
.product .p-price { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.product .p-price strong { color: var(--navy); font-size: 1.05rem; }
.product.featured { border: 2px solid var(--brand); }

.service { text-align: start; }
.service .s-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.service .s-icon svg { width: 26px; height: 26px; }
.service p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; inset-inline-start: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.step.final { background: var(--navy); border-color: var(--navy); }
.step.final h3, .step.final p { color: #fff; }
.step.final::before { background: var(--gold); color: var(--navy); }

/* Terms */
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.terms li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.note-box { background: var(--navy); color: #e2ebf7; border-radius: var(--radius); padding: 28px; }
.note-box h3 { color: #fff; }
.note-box p { color: #c9d6ea; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* Contact band */
.contact-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 26px; padding: 52px 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }
.contact-band h2 { color: #fff; }
.contact-band p { color: #c9d6ea; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 14px 16px; }
.contact-list .label { display: block; font-size: 0.82rem; color: #a9bbd6; }
.contact-list a { color: #fff; font-weight: 700; font-size: 1.1rem; direction: ltr; unicode-bidi: isolate; }
.contact-list .warn { color: var(--gold); font-weight: 700; font-size: 0.92rem; }

/* Footer */
.site-footer { background: #081629; color: #9fb1cb; padding-block: 44px 28px; margin-top: 84px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #d6e2f3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(21,128,61,0.35); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float:hover { background: var(--wa-hover); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-band, .terms-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { row-gap: 34px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .site-header { position: sticky; }
  .header-row { position: relative; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .grid-4, .steps, .trust-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-band { padding: 34px 22px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
