/* Public pages (blog, articles, about, pricing) — magazine look, always light. Loaded AFTER styles.css.
   Everything here is scoped to body.site so the app is never affected. (founder 2026-10-24) */
body.site {
  --s-teal: #0a6b63; --s-teal-d: #064a44; --s-teal-l: #e6f2f0; --s-mint: #4cc2b6;
  --s-ink: #13232a; --s-muted: #5b6b71; --s-line: #e3e8e9; --s-bg: #f6f8f8; --s-card: #fff;
  --s-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  --s-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Naskh Arabic", serif;
  margin: 0; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-sans);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
body.site a { color: inherit; }
body.site * { box-sizing: border-box; }
.s-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.s-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--s-line); }
.s-top .s-wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.s-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--s-ink); font-weight: 700; font-size: 19px; }
.s-logo svg { color: var(--s-teal); }
.s-logo small { display: block; font-size: 9px; letter-spacing: .22em; color: var(--s-muted); font-weight: 600; margin-top: -3px; }
.s-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.s-nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--s-muted); font-weight: 500; }
.s-nav a:hover, .s-nav a[aria-current="page"] { color: var(--s-ink); background: #eef3f3; }
.s-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--s-teal); color: #fff !important; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; border: 0; cursor: pointer; }
.s-cta:hover { background: var(--s-teal-d); }
.s-cta.ghost { background: transparent; color: var(--s-teal) !important; box-shadow: inset 0 0 0 1.5px var(--s-teal); }
.s-cta.ghost:hover { background: var(--s-teal-l); }
.s-cta.light { background: #fff; color: var(--s-teal-d) !important; }

/* ---------- hero / masthead ---------- */
.s-hero { background: linear-gradient(135deg, #073f3a 0%, #0a6b63 55%, #14857a 100%); color: #fff; position: relative; overflow: hidden; }
.s-hero::before, .s-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.s-hero::before { width: 520px; height: 520px; right: -140px; top: -220px; }
.s-hero::after { width: 320px; height: 320px; left: -120px; bottom: -200px; }
.s-hero .s-wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.s-kicker { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #a8e6de; }
.s-hero h1 { font-family: var(--s-serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 12px 0 14px; font-weight: 700; letter-spacing: -.01em; max-width: 18ch; }
.s-hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #d8efec; max-width: 60ch; margin: 0; }
.s-hero .s-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.s-sec { padding: 64px 0; }
.s-sec.alt { background: #fff; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.s-h2 { font-family: var(--s-serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.s-sub { color: var(--s-muted); font-size: 17px; margin: 0 0 30px; max-width: 64ch; }
.s-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.s-grid.g4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- blog cards ---------- */
.s-tabs { display: flex; gap: 8px; margin: 0 0 26px; flex-wrap: wrap; }
.s-tab { border: 1px solid var(--s-line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--s-muted); }
.s-tab[aria-pressed="true"] { background: var(--s-ink); color: #fff; border-color: var(--s-ink); }
.s-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.s-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 60, 55, .12); }
.s-cover { aspect-ratio: 16 / 9; background: var(--s-teal-l) center / cover no-repeat; display: block; width: 100%; object-fit: cover; }
.s-card-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--s-muted); flex-wrap: wrap; }
.s-topic { color: var(--s-teal); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.s-card h3 { font-family: var(--s-serif); font-size: 21px; line-height: 1.3; margin: 2px 0 0; font-weight: 700; }
.s-card p { margin: 0; color: var(--s-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-more { margin-top: auto; padding-top: 8px; color: var(--s-teal); font-weight: 600; font-size: 15px; }
.s-feature { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border: 1px solid var(--s-line); border-radius: 22px; overflow: hidden;
  text-decoration: none; color: inherit; margin-bottom: 34px; transition: box-shadow .18s ease; }
.s-feature:hover { box-shadow: 0 18px 40px rgba(10, 60, 55, .13); }
.s-feature .s-cover { aspect-ratio: auto; min-height: 340px; height: 100%; }
.s-feature .s-card-b { padding: 38px 40px; justify-content: center; gap: 14px; }
.s-feature h3 { font-family: var(--s-serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.18; margin: 0; }
.s-feature p { margin: 0; color: var(--s-muted); font-size: 17px; }
.s-badge { display: inline-block; background: var(--s-teal-l); color: var(--s-teal-d); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
[dir="rtl"] .s-card h3, [dir="rtl"] .s-feature h3, [dir="rtl"] .s-hero h1, [dir="rtl"] .s-h2 { font-family: var(--s-sans); }

/* ---------- article ---------- */
.s-art-hero { background: #fff; border-bottom: 1px solid var(--s-line); }
.s-art-hero .s-wrap { max-width: 860px; padding-top: 44px; padding-bottom: 36px; }
.s-crumbs { font-size: 14px; color: var(--s-muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.s-crumbs a { color: var(--s-teal); text-decoration: none; font-weight: 600; }
.s-art-hero h1 { font-family: var(--s-serif); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 10px 0 16px; font-weight: 700; letter-spacing: -.01em; }
.s-art-hero .lead { font-size: 19px; color: var(--s-muted); margin: 0 0 20px; }
.s-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--s-muted); }
.s-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.s-byline b { color: var(--s-ink); }
.s-art-cover { max-width: 1000px; margin: 30px auto 0; padding: 0 24px; }
.s-art-cover img { width: 100%; border-radius: 20px; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.s-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 20px; font-size: 18.5px; line-height: 1.75; }
.s-body h1:first-child { display: none; }
.s-body h2 { font-family: var(--s-serif); font-size: 29px; line-height: 1.25; margin: 46px 0 12px; }
.s-body h3 { font-size: 21px; margin: 32px 0 8px; }
.s-body p { margin: 0 0 20px; }
.s-body a { color: var(--s-teal); text-decoration: underline; text-underline-offset: 3px; }
.s-body ul, .s-body ol { padding-inline-start: 26px; margin: 0 0 22px; }
.s-body li { margin: 6px 0; }
.s-body blockquote { margin: 26px 0; padding: 16px 22px; background: var(--s-teal-l); border-inline-start: 4px solid var(--s-teal); border-radius: 10px; color: var(--s-teal-d); }
.s-body .tbl-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--s-line); border-radius: 14px; background: #fff; }
.s-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
.s-body th { background: #0a6b63; color: #fff; text-align: start; padding: 11px 14px; font-weight: 600; }
.s-body td { padding: 10px 14px; border-top: 1px solid var(--s-line); }
.s-body tr:nth-child(even) td { background: #f8fbfb; }
[dir="rtl"] .s-body, [dir="rtl"] .s-body h2 { font-family: var(--s-sans); }
.s-cta-box { max-width: 720px; margin: 10px auto 0; padding: 0 24px; }
.s-cta-box > div { background: linear-gradient(135deg, #073f3a, #0a6b63); color: #fff; border-radius: 22px; padding: 30px 32px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.s-cta-box h3 { margin: 0 0 4px; font-size: 22px; }
.s-cta-box p { margin: 0; color: #d8efec; }

/* ---------- about ---------- */
.s-step { background: #fff; border: 1px solid var(--s-line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.s-step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--s-teal-l); color: var(--s-teal); display: grid; place-items: center; font-weight: 800; }
.s-step h3 { margin: 4px 0 0; font-size: 20px; }
.s-step p { margin: 0; color: var(--s-muted); font-size: 15.5px; }
.s-founder { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.s-founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px rgba(10,60,55,.18); }
.s-founder .bio { font-size: 17.5px; line-height: 1.75; }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.s-tags span { background: var(--s-teal-l); color: var(--s-teal-d); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; }
.s-promise { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.s-promise div { border-inline-start: 3px solid var(--s-mint); padding: 4px 0 4px 16px; }
[dir="rtl"] .s-promise div { padding: 4px 16px 4px 0; }
.s-promise b { display: block; font-size: 17px; margin-bottom: 4px; }
.s-promise span { color: var(--s-muted); font-size: 15px; }

/* ---------- pricing ---------- */
.s-price { background: #fff; border: 1px solid var(--s-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.s-price.hl { border: 2px solid var(--s-teal); box-shadow: 0 16px 36px rgba(10,60,55,.12); }
.s-price .ic { font-size: 26px; }
.s-price h3 { margin: 0; font-size: 20px; }
.s-price .what { color: var(--s-muted); font-size: 15px; margin: 0; }
.s-price .free { font-size: 15px; font-weight: 700; color: var(--s-teal-d); background: var(--s-teal-l); border-radius: 10px; padding: 8px 12px; }
.s-price .amt { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.s-price .amt small { font-size: 15px; font-weight: 500; color: var(--s-muted); letter-spacing: 0; }
.s-price ul { margin: 4px 0 0; padding-inline-start: 20px; color: var(--s-muted); font-size: 14.5px; }
.s-price .flag { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--s-teal); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.s-note { background: #fff8ec; border: 1px solid #f1dcb6; color: #7a4b12; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 0 0 26px; }
.s-faq details { background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.s-faq summary { font-weight: 700; cursor: pointer; font-size: 16.5px; }
.s-faq p { margin: 10px 0 0; color: var(--s-muted); }

/* ---------- newsletter + footer ---------- */
body.site #newsletterBox { max-width: 720px; margin: 40px auto 0; padding: 0 24px; }
body.site #newsletterBox .card { border-radius: 20px; }
.s-foot { margin-top: 70px; background: #0d2226; color: #b9cacd; font-size: 14.5px; }
.s-foot .s-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 48px; padding-bottom: 30px; }
.s-foot h4 { color: #fff; margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.s-foot a { display: block; text-decoration: none; padding: 3px 0; color: #b9cacd; }
.s-foot a:hover { color: #fff; }
.s-foot .s-copy { grid-column: 1 / -1; border-top: 1px solid #23393d; padding-top: 18px; font-size: 13px; color: #8aa0a4; }
.s-foot .s-logo { color: #fff; margin-bottom: 10px; }
.s-foot .s-logo svg { color: var(--s-mint); }

@media (max-width: 860px) {
  .s-nav a.hide-sm { display: none; }
  .s-feature { grid-template-columns: 1fr; }
  .s-feature .s-cover { min-height: 220px; }
  .s-feature .s-card-b { padding: 24px; }
  .s-founder { grid-template-columns: 1fr; }
  .s-founder img { max-width: 220px; }
  .s-foot .s-wrap { grid-template-columns: 1fr 1fr; }
  .s-hero .s-wrap { padding-top: 44px; padding-bottom: 44px; }
  .s-sec { padding: 46px 0; }
}
@media (max-width: 520px) {
  .s-top .s-wrap { gap: 10px; }
  .s-nav a { padding: 8px 8px; font-size: 14px; }
  .s-cta { padding: 9px 14px; font-size: 14px; }
  .s-body { font-size: 17.5px; }
}

/* news articles (2026-10-24): real photo with credit, source box */
.s-art-cover { margin-inline: auto; }
.s-art-cover.news img { aspect-ratio: 16 / 9; }
.s-art-cover figcaption { font-size: 12.5px; color: #6b7a78; margin-top: 8px; text-align: end; }
.s-art-cover figcaption a, .s-source a { color: inherit; text-decoration: underline; }
.s-source { margin: 34px 0 0; padding: 16px 20px; border: 1px solid #d9e6e4; background: #f6faf9; border-radius: 14px; font-size: 14.5px; color: #3c4b49; line-height: 1.6; }
