/* Reayaty (رعايتي) — landing site styles
   Brand: teal #0F766E primary, gold #D4A574 accent, off-white #FAFAF9 bg
   Mobile-first, responsive, no framework. Works LTR (en) and RTL (ar). */

:root {
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --teal-light: #E6F1EF;
  --gold: #D4A574;
  --gold-dark: #B98A56;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #1C2B29;
  --muted: #5B6B68;
  --line: #E7E5E0;
  --shadow: 0 1px 2px rgba(16, 40, 37, .04), 0 8px 24px rgba(16, 40, 37, .06);
  --shadow-lg: 0 12px 40px rgba(16, 40, 37, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input { font-family: var(--font-ar); }

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--tint { background: var(--teal-light); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
html[lang="ar"] .eyebrow { letter-spacing: normal; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); font-weight: 800; }
.section > .container > h2,
.section-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 40px; font-size: 17px; }
.section--tint .section-sub { color: #3f5350; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--gold { background: var(--gold); color: #2a1e0c; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand .brand-ar { color: var(--teal); }
.nav-links { display: none; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { background: var(--teal-light); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-links + .nav-actions { margin-inline-start: 8px; }

.lang-toggle {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 20px; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { background: var(--teal-light); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212, 165, 116, .18), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -.01em; }
.hero .lede { font-size: clamp(18px, 2.6vw, 22px); color: var(--teal-dark); font-weight: 700; margin: 16px 0 8px; }
.hero p.sub { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.hero-card .hc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-card .hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.hero-card .hc-title { font-weight: 800; }
.hc-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff;
}
.hc-row:last-child { margin-bottom: 0; }
.hc-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--teal-light); display: grid; place-items: center; }
.hc-ic svg { width: 20px; height: 20px; stroke: var(--teal); }
.hc-txt b { display: block; font-size: 15px; }
.hc-txt small { color: var(--muted); }
.hc-pill { margin-inline-start: auto; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.hc-pill.ok { background: #E4F5EA; color: #1B7A45; }
.hc-pill.warn { background: #FCEFD9; color: var(--gold-dark); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative; transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature.is-signature { border-color: var(--gold); }
.feature .ficon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light); display: grid; place-items: center; margin-bottom: 16px; }
.feature.is-signature .ficon { background: #FBEFDD; }
.feature .ficon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.9; }
.feature.is-signature .ficon svg { stroke: var(--gold-dark); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature .tag {
  position: absolute; inset-inline-end: 18px; top: 18px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-dark); background: #FBEFDD; padding: 4px 9px; border-radius: 999px;
}
html[lang="ar"] .feature .tag { letter-spacing: normal; text-transform: none; }

/* ---------- Pricing ---------- */
.founding-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #2a1e0c; font-weight: 800; padding: 14px 18px; border-radius: 999px;
  max-width: 760px; margin: 0 auto 36px; text-align: center;
}
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan.is-popular { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); position: relative; }
.plan .popular-tag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
html[dir="rtl"] .plan .popular-tag { transform: translateX(50%); }
.plan h3 { font-size: 22px; }
.plan .plan-desc { color: var(--muted); font-size: 14px; min-height: 40px; margin-top: 4px; }
.plan .price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price .amt { font-size: 40px; font-weight: 800; color: var(--ink); }
.plan .price .cur { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan .price .per { font-size: 15px; color: var(--muted); }
.plan .yearly { color: var(--gold-dark); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 6px 0 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #34433f; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; stroke: var(--teal); }
.plan .btn { margin-top: auto; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.about-text p { font-size: 17.5px; color: #33433f; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; color: var(--teal); }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .cc-ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--teal-light); display: grid; place-items: center; }
.contact-card .cc-ic svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.9; }
.contact-card b { display: block; font-size: 14px; color: var(--muted); font-weight: 700; }
.contact-card a, .contact-card p { font-size: 17px; font-weight: 700; color: var(--ink); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #DBE9E7; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-ar { color: var(--gold); }
.footer-brand p { color: #B9D2CE; margin-top: 12px; max-width: 320px; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .footer-col h4 { letter-spacing: normal; text-transform: none; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #C7DDD9; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  color: #A9C6C1; font-size: 13.5px;
}
.footer-bottom a { color: #C7DDD9; }

/* ---------- Policy / legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal .intro { color: #34433f; font-size: 17px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; color: var(--teal-dark); }
.legal p, .legal li { color: #34433f; font-size: 16px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-inline-start: 22px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal .callout {
  background: var(--teal-light); border-inline-start: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; color: #234742;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { grid-template-columns: 1.3fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-links + .nav-actions { margin-inline-start: 8px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .nav-actions { margin-inline-start: auto; }
}
