/* ============================================================
   TAWASEL.IO — Redesign Design System (shared)
   Ported from design_handoff_tawasel_redesign for the live site.
   Playful, bold, trustworthy SaaS (PostHog-inspired).
   NOTE: This file is purely presentational. It contains NO
   tracking, analytics, SEO or routing logic — those live in
   each page's <head> and are untouched.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Surfaces */
  --paper: #FAF5EC;
  --paper-2: #F3ECDD;
  --card: #FFFFFF;
  --ink: #0E2018;
  --ink-soft: #41544B;
  --line: #0E2018;

  /* Brand */
  --green: #11A65C;
  --green-deep: #0A7D44;
  --green-soft: #DBF3E4;
  --green-glow: #5BE39B;

  /* Playful accents */
  --coral: #FF6A4D;
  --coral-soft: #FFE0D7;
  --amber: #FFC247;
  --amber-soft: #FFEFC8;
  --violet: #7B61FF;
  --violet-soft: #E6E0FF;
  --sky: #1FB6C9;
  --sky-soft: #D2F1F5;

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --border: 2.5px solid var(--line);
  --shadow: 5px 5px 0 var(--line);
  --shadow-lg: 8px 8px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);

  /* Type */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --maxw: 1200px;
}

html[dir="rtl"] {
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --font-mono: 'Tajawal', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(var(--paper-2) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
html[dir="rtl"] body { line-height: 1.8; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Font helper classes (back-compat with existing markup) */
.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }
.ar    { font-family: 'Tajawal', sans-serif; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); line-height: 1.5; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }

.highlight { position: relative; white-space: nowrap; background: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 92%, transparent 92%); padding: 0 0.06em; }
.highlight.green { background: linear-gradient(transparent 58%, var(--green-glow) 58%, var(--green-glow) 92%, transparent 92%); }
.highlight.coral { background: linear-gradient(transparent 58%, var(--coral-soft) 58%, var(--coral-soft) 92%, transparent 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px;
  border: var(--border); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translate(2px, 2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translate(-1px,-1px); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-dark:hover { box-shadow: var(--shadow-lg); transform: translate(-1px,-1px); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { box-shadow: var(--shadow); transform: translate(-1px,-1px); }
.btn-wa { background: #25D366; color: #06351c; box-shadow: var(--shadow); }
.btn-wa:hover { box-shadow: var(--shadow-lg); transform: translate(-1px,-1px); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
}
html[dir="rtl"] .pill { font-family: var(--font-body); letter-spacing: 0; }
.pill.green { background: var(--green-soft); }
.pill.amber { background: var(--amber-soft); }
.pill.coral { background: var(--coral-soft); }
.pill.violet { background: var(--violet-soft); }
.pill.sky { background: var(--sky-soft); }

.sticker {
  position: absolute; font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
  padding: 8px 14px; border: var(--border); border-radius: 999px; background: var(--amber);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* ---------- Cards ---------- */
.card { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,245,236,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2.5px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--green); border: 2.5px solid var(--line); display: grid; place-items: center; color: #fff; box-shadow: 2px 2px 0 var(--line); flex: none; }
.logo .ar { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .98rem; transition: background .15s; color: var(--ink); }
.nav-links a:hover, .nav-links a.is-current { background: var(--green-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: var(--card); border: 2.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px; border-bottom: 2.5px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mobile-menu a:hover { background: var(--green-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 40px; border-top: 2.5px solid var(--line); }
.footer a { color: #B9Cabf; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
.footer .logo { color: #fff; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8FA396; font-size: .9rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Marquee logos ---------- */
.marquee { overflow: hidden; border-block: 2.5px solid var(--line); background: var(--paper-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; align-items: center; width: max-content; animation: scroll 32s linear infinite; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; opacity: .55; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(2deg); }
.flex { display: flex; } .items-center { align-items: center; } .gap-sm { gap: 10px; } .gap { gap: 18px; } .wrap-flex { flex-wrap: wrap; }
html[dir="rtl"] .flip-x { transform: scaleX(-1); }

/* ============================================================
   HERO grid (homepage two-column)
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle { display: inline-flex; align-items: center; gap: 0; background: var(--card); border: 2.5px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.price-toggle button { font-family: var(--font-body); font-weight: 700; font-size: .95rem; border: none; background: transparent; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.price-toggle button.on { background: var(--green); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--card); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; position: relative; }
.price-card.feature { border-color: var(--green); box-shadow: 8px 8px 0 var(--green); transform: translateY(-8px); }
.price-card .price-name { display: inline-flex; align-self: flex-start; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; white-space: nowrap; margin: 14px 0 4px; }
.price-amount .cur { font-size: 1.1rem; vertical-align: super; font-weight: 700; margin-inline-end: 4px; }
.price-amount .per { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-feats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.price-feats li::before { content: "✓"; color: var(--green-deep); font-weight: 800; flex: none; }
.price-feats li small { display: block; color: var(--ink-soft); font-size: .82rem; }
.plan-badge { position: absolute; top: -14px; inset-inline-end: 22px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } .price-card.feature { transform: none; } }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); }

/* Add-ons table */
.addon-list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.addon-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1.5px solid var(--paper-2); }
.addon-row .k { font-weight: 700; }
.addon-row .s { color: var(--ink-soft); font-size: .9rem; }
.addon-row .v { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.addon-row .v small { font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: .78rem; margin-inline-start: 4px; }

/* CTA band */
.cta-band-card { background: var(--ink); color: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band-card h2 { color: #fff; max-width: 20ch; margin: 0 auto; }
.cta-band-card p { color: #B9Cabf; margin: 16px auto 28px; max-width: 50ch; }

/* ============================================================
   BLOG index
   ============================================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font-family: var(--font-mono); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.chip:hover, .chip.on { background: var(--green-soft); }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.featured-thumb { background: var(--green); min-height: 280px; display: grid; place-items: center; color: #fff; font-size: 4rem; position: relative; }
.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .featured-post { grid-template-columns: 1fr; } }

.post-card { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { min-height: 150px; display: grid; place-items: center; font-size: 2.6rem; border-bottom: 2.5px solid var(--line); }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-cat { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); }
.post-card h3 { font-size: 1.2rem; }
.post-meta { color: var(--ink-soft); font-size: .85rem; margin-top: auto; }

.newsletter-band { background: var(--ink); color: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 48px; text-align: center; }
.newsletter-band h2 { color: #fff; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 2.5px solid var(--line); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); }

/* ============================================================
   ARTICLE (blog post)
   ============================================================ */
.article { max-width: 720px; margin: 0 auto; font-size: 1.12rem; line-height: 1.75; }
.article p { margin: 0 0 1.2em; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6em 0 .5em; }
.article h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 1.4em 0 .4em; }
.article ul, .article ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.article li { margin: .4em 0; }
.article a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { margin: 1.4em 0; padding: 14px 22px; border-inline-start: 4px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
html[dir="rtl"] .article blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.article img { border: var(--border); border-radius: var(--radius); margin: 1.4em 0; }
.article-hero { aspect-ratio: 21 / 9; border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; font-size: 4rem; background: var(--green-soft); }

/* ============================================================
   CONTACT / form
   ============================================================ */
.field-label { font-weight: 700; font-size: .9rem; margin-bottom: 6px; display: block; }
.field-input, .field-select, .field-textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 2.5px solid var(--line); font-family: var(--font-body); font-size: 1rem; background: var(--card); color: var(--ink); }
.field-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.ok-msg { display: none; background: var(--green-soft); border: 2px solid var(--green); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; font-weight: 600; }
.ok-msg.show { display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .cta-band-card, .newsletter-band, .price-card { padding: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
  .nav-cta .nav-burger { display: inline-flex; }
}

/* ============================================================
   WhatsApp Shared Inbox product mock (homepage hero)
   ============================================================ */
.inbox { background: var(--card); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 64px 280px 1fr 250px; height: 540px; font-size: 14px; line-height: 1.4; }
.ib-rail { background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }
.ib-rail .ib-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--green); display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.ib-rail-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #9DB3A8; cursor: pointer; }
.ib-rail-ico.active { background: rgba(255,255,255,.12); color: #fff; }
.ib-rail-ico:hover { color: #fff; }
.ib-rail-spacer { margin-top: auto; }
.ib-avatar-me { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.ib-list { border-inline-end: 2px solid var(--paper-2); display: flex; flex-direction: column; background: var(--paper); }
.ib-list-head { padding: 16px; border-bottom: 2px solid var(--paper-2); }
.ib-list-head .ib-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ib-search { margin-top: 12px; background: var(--card); border: 2px solid var(--paper-2); border-radius: 10px; padding: 8px 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.ib-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 2px solid var(--paper-2); }
.ib-tab { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 2px solid var(--paper-2); cursor: pointer; }
.ib-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.ib-chats { overflow-y: auto; flex: 1; }
.ib-chat { display: flex; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--paper-2); cursor: pointer; align-items: flex-start; }
.ib-chat:hover { background: var(--green-soft); }
.ib-chat.active { background: var(--card); box-shadow: inset 3px 0 0 var(--green); }
html[dir="rtl"] .ib-chat.active { box-shadow: inset -3px 0 0 var(--green); }
.ib-ava { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); }
.ib-chat-body { flex: 1; min-width: 0; }
.ib-chat-top { display: flex; justify-content: space-between; gap: 6px; min-width: 0; }
.ib-chat-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-chat-time { font-size: 11px; color: var(--ink-soft); flex: none; }
.ib-chat-msg { color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-chat-meta { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.ib-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.ib-unread { margin-inline-start: auto; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.ib-conv { display: flex; flex-direction: column; background: #F7F3EB; background-image: radial-gradient(rgba(14,32,24,.05) 1px, transparent 1px); background-size: 18px 18px; }
.ib-conv-head { background: var(--card); border-bottom: 2px solid var(--paper-2); padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.ib-conv-head .ib-ava { width: 38px; height: 38px; }
.ib-conv-info { flex: 1; }
.ib-conv-name { font-weight: 700; }
.ib-conv-sub { font-size: 12px; color: var(--green-deep); }
.ib-stage { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--amber-soft); border: 2px solid var(--amber); white-space: nowrap; flex: none; }
.ib-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ib-bubble { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); position: relative; }
.ib-in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.ib-out { background: #D7F7C5; align-self: flex-end; border-top-right-radius: 4px; }
html[dir="rtl"] .ib-in { border-top-left-radius: 14px; border-top-right-radius: 4px; }
html[dir="rtl"] .ib-out { border-top-right-radius: 14px; border-top-left-radius: 4px; }
.ib-bubble .t { font-size: 10px; color: var(--ink-soft); display: block; text-align: end; margin-top: 3px; }
.ib-bot { align-self: flex-start; background: var(--violet-soft); border: 1.5px solid var(--violet); }
.ib-bot .who { font-size: 10px; font-weight: 700; color: var(--violet); display: block; margin-bottom: 2px; }
.ib-composer { background: var(--card); border-top: 2px solid var(--paper-2); padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.ib-composer .field { flex: 1; background: var(--paper); border: 2px solid var(--paper-2); border-radius: 999px; padding: 9px 15px; color: var(--ink-soft); }
.ib-send { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.ib-crm { border-inline-start: 2px solid var(--paper-2); padding: 18px 16px; overflow-y: auto; background: var(--card); }
.ib-crm h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 10px; font-weight: 700; }
html[dir="rtl"] .ib-crm h5 { font-family: var(--font-body); letter-spacing: 0; }
.ib-crm-ava { width: 56px; height: 56px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); font-size: 1.3rem; margin: 0 auto 8px; }
.ib-crm-name { text-align: center; font-weight: 700; font-family: var(--font-display); }
.ib-crm-phone { text-align: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.ib-pipeline { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.ib-stage-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: var(--paper); }
.ib-stage-row.done { background: var(--green-soft); font-weight: 700; }
.ib-stage-row.current { background: var(--amber-soft); font-weight: 700; border: 2px solid var(--amber); }
.ib-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ib-dot.fill { background: var(--green); border-color: var(--green); }
.ib-dot.cur { background: var(--amber); border-color: var(--amber); }
.ib-note { background: var(--amber-soft); border: 1.5px solid var(--amber); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; }
.ib-note .who { font-size: 10px; font-weight: 700; color: var(--green-deep); display: block; margin-bottom: 2px; }
@media (max-width: 1024px) { .inbox { grid-template-columns: 56px 240px 1fr; height: 500px; } .ib-crm { display: none; } }
@media (max-width: 720px) { .inbox { grid-template-columns: 1fr; height: auto; } .ib-rail { flex-direction: row; padding: 10px 14px; gap: 14px; } .ib-rail .ib-logo { margin-bottom: 0; } .ib-rail-spacer { margin-top: 0; margin-inline-start: auto; } .ib-list { display: none; } .ib-thread { height: 360px; } }

/* ============================================================
   LEGACY CONTENT PAGES — blog posts (.article-*) + legal (.legal-body)
   Body markup is preserved; these rules re-skin it to the new design.
   ============================================================ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); margin-bottom: 28px; }
.back-link:hover { color: var(--green); }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; color: var(--ink-soft); font-family: var(--font-mono); font-size: .8rem; }
.issue-tag { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); border: 2px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.meta-sep { opacity: .5; }
h1.article-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.article-lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); margin-bottom: 40px; border-bottom: 2.5px solid var(--paper-2); padding-bottom: 28px; }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; margin: 1.7em 0 .5em; }
.article-body h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; margin: 1.4em 0 .4em; }
.article-body p { margin: 0 0 1.1em; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.article-body li { margin: .45em 0; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote, .legal-body blockquote { margin: 1.5em 0; padding: 16px 24px; border-inline-start: 4px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
html[dir="rtl"] .article-body blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.article-body blockquote p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-style: normal; margin: 0; }
.callout { background: var(--amber-soft); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 24px; margin: 1.6em 0; }
.callout p { margin: 0; }
.callout strong { color: var(--green-deep); }
.article-cta { margin-top: 56px; padding: 40px; background: var(--ink); color: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: center; }
.article-cta h3 { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.article-cta p { color: #B9Cabf; margin-bottom: 22px; }
.article-cta a { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 700; padding: 14px 24px; border-radius: 999px; border: var(--border); background: var(--green); color: #fff; box-shadow: var(--shadow); }
.article-cta a:hover { box-shadow: var(--shadow-lg); transform: translate(-1px,-1px); }

/* Legal pages (privacy / terms) */
.page-hero { padding: 64px 0 32px; border-bottom: 2.5px solid var(--paper-2); }
.page-hero h1 { margin: 14px 0 16px; }
.page-hero p { max-width: 60ch; color: var(--ink-soft); font-size: 1.15rem; }
.legal-body { max-width: 800px; margin: 0 auto; padding: 48px 24px 88px; font-size: 1.05rem; line-height: 1.75; }
.legal-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 1.6em 0 .5em; }
.legal-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 1.3em 0 .4em; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul, .legal-body ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.legal-body li { margin: .4em 0; }
.legal-body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { font-weight: 700; }
.legal-body .updated { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-soft); margin-bottom: 28px; }

/* 404 */
.err-wrap { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.err-wrap .code { font-family: var(--font-mono); font-weight: 700; color: var(--green-deep); letter-spacing: .1em; }

/* ---------- Language toggle ---------- */
.lang-toggle { font-family: var(--font-mono); font-weight: 700; font-size: .82rem; cursor: pointer; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s; color: var(--ink); }
html[dir="rtl"] .lang-toggle { font-family: var(--font-body); }
.lang-toggle:hover { background: var(--amber-soft); }
html[dir="rtl"] .nav-links { margin-inline-start: auto; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
