/* Public product site (mazoonmail.com). Same palette as the portal, its own small stylesheet. */
:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e7eaf0;
  --bg: #ffffff;
  --tint: #f5f7fb;
  --brand: #0f4c81;
  --accent: #2ec4b6;
  --navy-1: #0a1a33;
  --navy-2: #0e2a52;
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
}
:root[lang="ar"] { --font: "Cairo", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
img, svg { flex: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--navy-1); box-shadow: 0 8px 24px rgba(46, 196, 182, .3); }
.btn.light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn.outline { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.outline:hover { border-color: var(--accent); }

/* ---------- Top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 26, 51, .96); backdrop-filter: blur(10px); }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.site-nav .links { display: flex; gap: 22px; }
.site-nav .links a { color: rgba(255, 255, 255, .78); font-size: 15px; }
.site-nav .links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-actions a { font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; color: #fff; }
.nav-actions .lang { color: rgba(255, 255, 255, .7); }
.nav-actions .ghost { border: 1px solid rgba(255, 255, 255, .25); }
.nav-actions .primary { background: var(--accent); color: var(--navy-1); }
.nav-actions .lang:hover { color: #fff; }
.menu-only { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; place-items: center; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(46, 196, 182, .28), transparent 60%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: #fff; text-align: center; padding: 84px 0 96px;
}
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(46, 196, 182, .16); color: #8ff0e6; font-size: 13.5px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 20px auto 16px; max-width: 820px; }
.hero .lead { max-width: 720px; margin: 0 auto; color: rgba(255, 255, 255, .8); font-size: 18px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .note { color: rgba(255, 255, 255, .55); font-size: 14px; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.tinted { background: var(--tint); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; text-align: center; margin-bottom: 14px; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto; }
.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: start; }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 196, 182, .14); color: #138a7e; margin-bottom: 14px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 18px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { text-align: center; padding: 10px 16px; }
.steps .num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; text-align: start; }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(15, 76, 129, .12); }
.plan .flag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--accent); color: var(--navy-1); font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 32px; font-weight: 800; margin-top: 12px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan .price.soon { font-size: 18px; color: var(--brand); }
.plan .per { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan li, .migrate li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li svg, .migrate li svg { width: 18px; height: 18px; color: #138a7e; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.small-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- Migration ---------- */
.migrate {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2)); color: #fff;
  border-radius: 24px; padding: 44px 48px;
}
.migrate h2 { text-align: start; color: #fff; font-size: clamp(22px, 2.8vw, 30px); }
.migrate p { color: rgba(255, 255, 255, .8); margin: 0 0 14px; max-width: 640px; }
.migrate ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.migrate li { color: #fff; }
.migrate li svg { color: var(--accent); }
.migrate .btn { flex: none; white-space: nowrap; }
/* These cards replace the .wrap side padding with their own, so they keep a gap to the screen edge here. */
.migrate, .contact-band { max-width: 1120px; }
@media (max-width: 1160px) { .migrate, .contact-band { margin-inline: 20px; } }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--brand); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- Contact band ---------- */
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; }
.contact-band h2 { text-align: start; margin-bottom: 6px; }
.contact-band p { margin: 0; color: var(--muted); }
.contact-band .cta { margin-top: 0; }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 34px; font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.legal .lead { font-size: 17px; color: var(--ink-2); }
.legal h2 { text-align: start; font-size: 21px; margin: 30px 0 8px; }
.legal p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-1); color: rgba(255, 255, 255, .7); padding: 56px 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .footer-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.site-footer a { display: block; color: rgba(255, 255, 255, .75); margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: inline-flex; margin-bottom: 12px; }
.site-footer .official { font-size: 13px; color: rgba(255, 255, 255, .5); }
/* WhatsApp is how most customers here reach us, so it stays one tap away. */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(16, 24, 40, .25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
.rights { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .links { display: none; }
  .nav-actions .lang { display: none; }
  .menu-btn { display: grid; }
  .site-nav.open .links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 70px; inset-inline: 0;
    background: var(--navy-1); padding: 8px 20px 16px; border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 30px rgba(10, 26, 51, .35);
  }
  .site-nav.open .links a { padding: 13px 0; font-size: 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav.open .menu-only { display: contents; }
}
@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .grid.four, .grid.three, .plans, .steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .migrate, .contact-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .nav-actions .ghost { display: none; }
  .site-nav .wrap { gap: 12px; }
  .site-footer a { padding: 6px 0; margin-bottom: 4px; }
  .migrate .btn { white-space: normal; }
  .migrate, .contact-band { margin-inline: 16px; }
}

/* ---------- Blog ---------- */
.blog-hero { background: linear-gradient(180deg, var(--navy-1), var(--navy-2)); color: #fff; text-align: center; padding: 64px 0; }
.blog-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.blog-hero p { color: rgba(255, 255, 255, .78); max-width: 680px; margin: 12px auto 0; font-size: 17px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(15, 76, 129, .1); transform: translateY(-2px); }
.post-card h2, .post-card h3 { font-size: 18.5px; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); }
.post-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 14px; }
.post-card .more svg { width: 15px; height: 15px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.draft-tag, .draft-banner { align-self: flex-start; background: #fffaeb; color: #b54708; border: 1px solid #fedf89; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.draft-banner { display: inline-block; margin-bottom: 12px; }

.post-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.post-head .crumb { font-size: 14px; font-weight: 600; color: var(--muted); }
.post-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 8px; }
.post-head .meta { margin: 0; color: var(--muted); font-size: 14px; }
.post-body { padding-top: 36px; padding-bottom: 72px; }
.toc { background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 28px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 22px; }
.toc li { margin: 4px 0; }

.prose { font-size: 17.5px; line-height: 1.95; color: var(--ink-2); }
.prose > p:first-child { font-size: 19px; color: var(--ink); font-weight: 500; }
.prose h2 { font-size: 25px; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19.5px; color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; direction: ltr; unicode-bidi: isolate; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; overflow-wrap: anywhere; }
.prose pre { direction: ltr; text-align: left; background: var(--navy-1); color: #e6edf5; border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose blockquote { margin: 26px 0; padding: 18px 22px; border-inline-start: 4px solid var(--accent); background: rgba(46, 196, 182, .08); border-radius: 12px; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
/* House rule: tables centred, bordered, with hover. */
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.prose th { background: var(--tint); color: var(--ink); }
.prose tbody tr:hover td { background: rgba(46, 196, 182, .08); }

.related { margin-top: 44px; }
.home-posts .post-grid { margin-top: 40px; }
.home-posts .all-link { text-align: center; margin-top: 28px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }

@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .post-grid, .post-grid.two { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16.5px; }
}
