@font-face {
  font-family: "PingARLT";
  src: url("/assets/PingARLT-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "PingARLT";
  src: url("/assets/PingARLT-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --soft: #f7f8f8;
  --foreground: #1f2223;
  --muted: #415762;
  --border: #e5e6e6;
  --accent: #e0ff82;
  --accent-strong: #e3ff8f;
  --accent-ink: #1f2223;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingARLT", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 500;
  color: var(--foreground);
  background: var(--soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[data-lang="ar"] .en { display: none; }
[data-lang="en"] .ar { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--foreground); border-radius: 999px;
  overflow: hidden; height: 40px; background: var(--background);
}
.lang-toggle button {
  border: 0; background: transparent; font: inherit; cursor: pointer;
  padding: 0 16px; height: 100%; color: var(--foreground); font-size: 14px;
}
.lang-toggle button.active { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font: inherit; font-size: 15px;
  cursor: pointer; border: 1px solid var(--foreground); background: var(--background);
  color: var(--foreground); transition: transform .06s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .06em;
  color: var(--muted); background: var(--background); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 4px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* Sections */
section.block { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card .ic {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent-ink);
}
.card h3 { font-size: 20px; font-weight: 500; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* Pricing */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--foreground); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-size: 12px;
  border-radius: 999px; padding: 4px 14px; border: 1px solid var(--accent);
}
.price-card .num { font-size: 48px; font-weight: 500; line-height: 1; }
.price-card .num small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-card .amt { font-size: 30px; font-weight: 500; margin: 14px 0 4px; }
.price-card .per { color: var(--muted); font-size: 14px; }
.price-card .btn { width: 100%; margin-top: 20px; }
.price-note { text-align: center; color: var(--muted); margin-top: 20px; font-size: 15px; }

/* CTA band */
.cta-band { background: var(--foreground); color: #fff; border-radius: var(--radius-lg); padding: 54px 28px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 500; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: 10px; }
.cta-band .btn { margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--background); padding: 44px 0; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--foreground); }
.footer-meta { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Legal pages */
.legal { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; margin: 40px 0; }
.legal h1 { font-size: 34px; font-weight: 500; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 20px; font-weight: 500; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-inline-start: 22px; margin-top: 8px; }
.legal a { color: var(--foreground); text-decoration: underline; }
.back-link { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 15px; }
