/* Daftar — secondary-page styles (About / Privacy / Contact, EN + AR).
   The main landing + compare pages are self-contained (inline styles);
   this stylesheet powers only the legal/contact pages and is themed to
   match the rebranded landing.html exactly (forest green + amber, white
   canvas, Plus Jakarta Sans).  The --p-* tokens are kept because the
   contact page's inline styles reference them. */

:root {
  /* Brand — matches landing.html */
  --p-teal:        #1B4332;
  --p-teal-soft:   #2D6A4F;
  --p-teal-deep:   #112E22;
  --p-teal-tint:   #E7EFEA;
  --p-teal-tint2:  #F2F7F4;
  --p-amber:       #E8842B;
  --p-olive:       #B08D57;

  /* Neutrals — matches landing.html */
  --ink:    #1A1A1A;
  --muted:  #3A3A3A;
  --soft:   #6B6B6B;
  --line:   #ECECF1;

  /* legacy --p-* aliases still referenced by the contact page inline CSS */
  --p-ink:       #1A1A1A;
  --p-ink-soft:  #3A3A3A;
  --p-muted:     #6B6B6B;
  --p-line:      #ECECF1;

  --grad: linear-gradient(135deg, #1B4332, #2D6A4F);

  /* aliases so the ported landing header CSS works verbatim */
  --violet2: #2D6A4F;
  --lav:     #E7EFEA;

  --pg-font-sans:   'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pg-font-arabic: 'Tajawal', 'Noto Naskh Arabic', system-ui, sans-serif;
  --pg-font-mono:   ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--pg-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body,
body[dir="rtl"] { font-family: var(--pg-font-arabic); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--p-teal-tint);
  color: var(--p-teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Header — morphing pill, identical to landing.html (with the
   shrink-on-scroll + hide-on-scroll-down animation driven by the
   inline script on each page).
   ============================================================ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px; display: flex; align-items: center;
  transition: padding .35s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
}
.hdr.hidden { transform: translateY(-130%); }
.bar {
  flex: 1; display: flex; align-items: center;
  transition: max-width .45s cubic-bezier(.4,0,.2,1), margin .45s cubic-bezier(.4,0,.2,1), background .45s, box-shadow .45s, border-color .45s, padding .45s;
  max-width: 100%; margin: 0 auto; border: 1px solid transparent; border-radius: 999px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; transition: gap .45s, padding .45s; }
.logo .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; box-shadow: 0 6px 16px rgba(27,67,50,.32); }
.logo .mark b { color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.logo .mark i { position: absolute; right: 7px; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--p-amber); }
.logo .txt { display: flex; flex-direction: column; }
.logo .txt .nm { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: .95; color: var(--ink); }
.logo .txt .sub { font-size: 12.5px; font-weight: 600; color: #9aa0a6; letter-spacing: .01em; margin-top: 3px; white-space: nowrap; }
.logo .txt .sub b { color: var(--violet2); font-weight: 800; }
.spacer { flex: 1; min-width: 0; transition: flex .45s cubic-bezier(.4,0,.2,1); }
.navpill { margin: 0 auto; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px; box-shadow: 0 10px 30px rgba(26,24,48,.06); transition: box-shadow .45s, border-color .45s, padding .45s, background .45s, margin .45s; }
.navpill a { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.navpill a:hover { background: var(--lav); color: var(--ink); }
.actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.actions .lang { font-size: 15px; font-weight: 700; color: var(--soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.actions .lang:hover { background: var(--lav); color: var(--ink); }
.actions .signin { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 999px; }
.actions .signin:hover { background: var(--lav); }
.actions .cta { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 999px; background: var(--grad); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px rgba(27,67,50,.32); transition: transform .15s, box-shadow .15s, padding .45s; }
.actions .cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(27,67,50,.4); }

/* scrolled / shrunk */
.hdr.shrink { padding: 14px 40px; }
.hdr.shrink .bar { max-width: max-content; margin: 0 auto; background: #fff; border-color: var(--line); padding: 8px 10px; box-shadow: 0 14px 38px rgba(26,24,48,.12); gap: 6px; }
.hdr.shrink .spacer { flex: 0; }
.hdr.shrink .logo { gap: 0; padding: 0 6px 0 4px; }
.hdr.shrink .logo .txt { display: none; }
.hdr.shrink .navpill { border-color: transparent; box-shadow: none; padding: 0 4px; margin: 0; background: transparent; }
.hdr.shrink .actions .lang, .hdr.shrink .actions .signin { display: none; }
.hdr.shrink .actions .cta { padding: 10px 20px; }

@media (max-width: 760px) {
  .navpill { display: none; }
  /* Founder: the header had no login on phones — keep Sign in visible at
     every mobile width; only the language toggle drops. */
  .actions .lang { display: none; }
  .actions { gap: 8px; }
  .hdr { padding: 14px 18px; }
  .hdr.shrink .actions .signin { display: inline-flex; }
}
@media (max-width: 600px) {
  .hdr { padding: 14px 16px; }
  /* Mark-only logo so Sign in + CTA both fit on narrow phones. */
  .logo .txt { display: none; }
  .actions .signin { padding: 8px 12px; font-size: 14.5px; }
  .actions .cta { padding: 9px 15px; font-size: 14.5px; }
}

/* Footer brand lockup (kept from the original markup) */
.brand-lockup {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.brand-lockup .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.32);
}
.brand-lockup .mark .d {
  color: #fff; font-size: 22px; font-weight: 800; line-height: 1;
  font-family: var(--pg-font-sans);
}
.brand-lockup .mark .dot {
  position: absolute; right: 7px; bottom: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--p-amber);
}
.brand-lockup .stack { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand-lockup .word {
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); line-height: 0.95;
}
.brand-lockup .word .dot { color: var(--p-amber); }
/* Arabic logo: signature dot mirrors to the start side (left) in RTL */
[dir="rtl"] .logo .mark i,
[dir="rtl"] .brand-lockup .mark .dot { right: auto; left: 7px; }
.brand-lockup .powered {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--soft); text-transform: lowercase;
}
.brand-lockup .powered b { color: var(--p-teal-soft); font-weight: 800; }

/* ============================================================
   Legal hero + body (About / Privacy)
   ============================================================ */
.legal-hero { padding: 116px 0 28px; }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  margin: 0; max-width: 20ch; color: var(--ink);
  text-wrap: balance;
}
.legal-hero .updated {
  font-size: 19px; line-height: 1.6; color: var(--soft);
  margin: 18px 0 0; max-width: 60ch;
}

.legal-body { padding: 24px 0 84px; }
.legal-body .container { max-width: 768px; }
.legal-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  margin: 44px 0 14px;
}
.legal-body h2:first-child { margin-top: 8px; }
.legal-body h3 {
  font-size: 19px; font-weight: 800; color: var(--ink);
  margin: 30px 0 10px;
}
.legal-body p {
  font-size: 17px; line-height: 1.72; color: var(--muted);
  margin: 0 0 16px; text-wrap: pretty;
}
.legal-body ul { margin: 0 0 18px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-body li { font-size: 17px; line-height: 1.65; color: var(--muted); }
.legal-body li::marker { color: var(--p-teal-soft); }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a {
  color: var(--p-teal-soft); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(45, 106, 79, 0.3);
  transition: color 0.15s, border-color 0.15s;
}
.legal-body a:hover { color: var(--p-teal); border-color: var(--p-teal); }
.legal-body code {
  font-family: var(--pg-font-mono); font-size: 0.92em;
  background: var(--p-teal-tint); color: var(--p-teal);
  padding: 2px 7px; border-radius: 6px;
}

/* ============================================================
   Footer (matches landing.html)
   ============================================================ */
.footer { background: #F2F3F7; color: var(--muted); padding: 64px 0 36px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer .brand-lockup .word { color: var(--ink); }
.footer .brand-block p { font-size: 15px; line-height: 1.6; color: var(--soft); margin: 18px 0 0; max-width: 34ch; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--p-olive); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.footer-socials a:hover { background: #9a784a; transform: translateY(-1px); }
.footer h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 15px; color: var(--soft); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--p-teal); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
