/* Design tokens mirrored from hr.examopotamia.com */
:root {
  --accent: #0c7c6e;
  --accent-dark: #085a50;
  --accent-light: #2fb8a4;
  --bg: #f3f1ec;
  --card: #ffffff;
  --charcoal: #1c3431;
  --gold: #d9a441;
  --graphite: #2a4643;
  --ink: #0f1e1c;
  --line: #e4e1d9;
  --line-2: #d0ccc1;
  --muted: #6f6b62;
  --font: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", "Noto Kufi Arabic", system-ui, sans-serif;
  --shadow-card: inset 0 1px #ffffffd9, 0 2px 6px #12120f0f, 0 24px 48px -20px #12120f52;
  --shadow-btn: inset 0 1px #ffffff2e, 0 1px 2px #0003, 0 8px 18px -10px #0c7c6ebf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(15 30 28 / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.logo img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; font-size: 14px; font-weight: 500; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--gold); }
.nav-links a { text-decoration: none; color: rgb(255 255 255 / .82); }
.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
  font: 700 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 20% -10%, var(--graphite), transparent 60%), linear-gradient(180deg, var(--charcoal), var(--ink));
  color: #fff; padding: 72px 0 88px; min-height: 70vh;
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; inset-inline-end: -120px; top: -160px; border-radius: 9999px;
  background: radial-gradient(circle, rgb(217 164 65 / .18), transparent 65%); filter: blur(40px);
}
.hero .container { position: relative; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 800; }
.gold { color: var(--gold); }
.lead { max-width: 620px; font-size: 17px; line-height: 1.7; color: rgb(255 255 255 / .78); margin: 0 0 32px; }

/* How it works */
.how { padding: 72px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); }
.feature-num { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .1em; }
.feature h3 { margin: 10px 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

.site-footer { background: var(--ink); color: rgb(255 255 255 / .62); font-size: 14px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 64px; }
  .preview-row { grid-template-columns: 70px 1fr 50px; }
  .preview-row > :nth-child(4), .preview-row > :nth-child(5) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
.eyebrow-accent { color: var(--accent); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .3); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: rgb(255 255 255 / .6); font-size: 14px; margin: 14px 0 0; }
.section-title { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.01em; margin: 0 0 28px; }
.fit { padding-top: 0; }

/* Product preview */
.preview { margin-top: 48px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); max-width: 900px; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ink); color: rgb(255 255 255 / .6); font-size: 12px; }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.preview-bar i:nth-child(2) { background: #febc2e; } .preview-bar i:nth-child(3) { background: #28c840; }
.preview-bar span { margin: 0 auto; background: rgb(255 255 255 / .08); padding: 3px 14px; border-radius: 6px; }
.preview-row { display: grid; grid-template-columns: 90px 1fr 70px 90px 80px; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.preview-row.head { border-top: 0; background: #fbfaf7; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 9999px; text-align: center; width: fit-content; }
.p1 { background: #fbe9e8; color: #b23a32; } .p2 { background: #fbf1dc; color: #8a5f12; } .p3 { background: #e3f2ec; color: var(--accent-dark); } .p4 { background: #eef0f3; color: #4a5560; }
.st-open { background: #e6effa; color: #24578f; } .st-pending { background: #fbf1dc; color: #8a5f12; } .st-resolved { background: #e3f2ec; color: var(--accent-dark); }
.ok { color: var(--accent); font-weight: 600; font-size: 13px; } .late { color: #b23a32; font-weight: 700; font-size: 13px; }

/* ---------- Multi-page site ---------- */
html[lang="ar"] { --font: "Noto Kufi Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .eyebrow, html[lang="ar"] .btn { letter-spacing: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.nav { gap: 18px; }
.nav-signin { color: rgb(255 255 255 / .85); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-signin:hover { color: #fff; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: rgb(255 255 255 / .85); font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .15); }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover { color: #fff; background: rgb(255 255 255 / .06); }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .45); display: grid; z-index: 30; }
.dropdown-menu a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu a[aria-current] { color: var(--accent); }
.mobile-nav { display: none; }
.btn-outline { background: #fff; color: var(--charcoal); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.page-hero { background: radial-gradient(900px 400px at 15% -20%, var(--graphite), transparent 60%), linear-gradient(180deg, var(--charcoal), var(--ink)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }
.page-hero .lead { margin: 0; }
.how .section-title { margin-top: 8px; }
.how .faq { margin-bottom: 8px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-bottom: 56px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--accent); }
.plan h2 { margin: 0; font-size: 20px; }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; }
.plan-price { font-size: 34px; font-weight: 800; margin: 10px 0 0; }
.plan-per { color: var(--muted); margin: 0; font-size: 14px; }
.plan-blurb { margin: 12px 0; line-height: 1.6; }
.plan ul, .checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan li, .checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.plan li svg, .checks li svg { color: var(--accent); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--graphite); line-height: 1.7; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 56px; align-items: start; }
.cta-card h2 { margin: 0 0 8px; font-size: 20px; }
.cta-card p { margin-bottom: 18px; }

.contact-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.contact-card:hover { border-color: var(--accent); }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: #e3f2ec; color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.contact-cta { margin-top: 10px; color: var(--accent); font-weight: 700; unicode-bidi: plaintext; text-align: start; }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; font-size: 14px; }
.toc a { color: var(--graphite); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 760px; line-height: 1.75; font-size: 16px; }
.prose.narrow { margin-inline: auto; }
.prose section { scroll-margin-top: 88px; padding-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose section:first-child h2, .prose > h2:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--graphite); }
.legal-note { background: #fbf1dc; border: 1px solid #f3d9a8; color: #8a5f12 !important; padding: 12px 16px; border-radius: 10px; font-size: 14px; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 10px; align-content: start; }
.footer-grid a { color: rgb(255 255 255 / .72); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 14px 0 18px; line-height: 1.6; max-width: 300px; }
.whatsapp { display: inline-flex !important; align-items: center; gap: 8px; background: #25d366; color: #0b3d1f !important; font-weight: 700; padding: 9px 14px; border-radius: 9999px; }
.whatsapp:hover { filter: brightness(1.05); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); padding-top: 18px; padding-bottom: 24px; font-size: 13px; }

@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .mobile-nav { display: block; }
  .nav .lang { margin-inline-start: auto; }
  .lang summary span { display: none; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .plan-grid, .split { grid-template-columns: 1fr; }
  .nav .btn-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
