.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
body { background: var(--surface); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-actions { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.lang-btn { font-weight: 700; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 520px) { .hide-sm { display: none; } .nav-in { gap: 10px; } .logo { font-size: 1.05rem; } }

/* hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, var(--hero-a) 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, var(--hero-b) 0%, transparent 60%); padding: 64px 0 72px; overflow: hidden; }
html[dir="rtl"] .hero { background: radial-gradient(1000px 500px at 15% -10%, var(--hero-a) 0%, transparent 60%), radial-gradient(700px 400px at 100% 100%, var(--hero-b) 0%, transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill { display: inline-block; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: .85em; padding: .35em .9em; border-radius: 999px; margin-bottom: 18px; border: 1px solid var(--brand-100); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: 0; }
.hero h1 span { color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.trust { color: var(--muted); font-size: .92em; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 36px 0 48px; } .cta-row .btn { flex: 1 1 220px; } }

/* hero mock card */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; transform: rotate(-1.2deg); max-width: 440px; margin-inline: auto; }
html[dir="rtl"] .mock { transform: rotate(1.2deg); }
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-head .badge { margin-inline-start: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 1.1em; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.tile b { font-size: 1.25rem; } .tile b.warn { color: var(--warn); }
.tile svg { height: 22px; width: 100%; }
.mock-alert, .mock-rem { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px; }
.mock-alert { background: var(--warn-50); }
.mock-alert .sev { width: 28px; height: 28px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.mock-rem { background: var(--brand-50); }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.sec-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
html[lang="ar"] .sec-title { font-weight: 700; }
.sec-sub { text-align: center; color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto 44px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step .num { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .94em; margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.doc-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.doc-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ticks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; font-weight: 800; flex: none; }
.doc-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.dp-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dp-line { height: 10px; border-radius: 6px; background: var(--line-2); }
.w90 { width: 90%; } .w80 { width: 80%; } .w75 { width: 75%; } .w70 { width: 70%; } .w60 { width: 60%; }
.dp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0; }
.dp-grid div { height: 48px; border-radius: 10px; background: linear-gradient(180deg, var(--brand-50), var(--surface)); border: 1px solid var(--brand-100); }
@media (max-width: 800px) { .doc-band { grid-template-columns: 1fr; } }

.safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.safe .ic { font-size: 1.6rem; margin-bottom: 8px; }
@media (max-width: 800px) { .safe { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: 0 14px 40px rgba(14,124,107,.16); }
.plan.trial { background: var(--brand-50); border-color: var(--brand-100); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-weight: 700; font-size: .78em; padding: .2em .8em; border-radius: 999px; white-space: nowrap; }
html[dir="rtl"] .plan .tag { transform: translateX(50%); }
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan .price { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.plan .price small { font-size: .45em; color: var(--muted); font-weight: 600; }
.plan .per { color: var(--muted); font-size: .88em; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: .9em; color: var(--ink-2); flex: 1; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; 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.3em; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

.final-cta { background: linear-gradient(135deg, var(--brand-700), var(--brand) 55%, #15a58c); color: #fff; border-radius: 28px; padding: 56px 28px; text-align: center; }
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.final-cta p { opacity: .9; font-size: 1.1rem; }
.cta-white { background: #fff; color: #095c50; margin-top: 8px; }
.cta-white:hover { background: #ebf7f3; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.disclaimer { max-width: 560px; margin-top: 12px; }
.foot-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.copy { margin-top: 18px; }
@media (max-width: 520px) {
  .nav .logo > span:last-child { display: none; }
  .nav-actions { gap: 2px; }
  .nav-actions .btn-primary { padding: .35em .75em; font-size: .82em; }
}
