/* InvoiceNET marketing site.
   Tokens are copied verbatim from the Help Centre (einvoicehelp.citytechme.com /css/app.css)
   so both properties read as one product. Change a token there → change it here. */
:root {
  --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0;
  --primary: #123d67; --primary-hover: #0d2f50; --primary-ink: #ffffff;
  --blue: #2563eb; --blue-soft: #eff6ff; --blue-ink: #1d4ed8;
  --navy-card: #0f172a; --navy-card-2: #1e293b; --navy-ink: #e2e8f0;
  --ok: #047857; --ok-soft: #ecfdf5;
  --warn: #92400e; --warn-soft: #fef3c7; --warn-line: #fcd34d;
  --bad: #b91c1c; --bad-soft: #fef2f2;
  --violet: #6d28d9; --violet-soft: #f5f3ff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --radius-xl: 28px; --radius-lg: 18px; --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #17223a; --ink: #e5ebf5; --ink-2: #c3cede; --muted: #8b9ab3; --line: #22304b;
    --primary: #3b82c4; --primary-hover: #4a92d6; --blue: #60a5fa; --blue-soft: #14233f; --blue-ink: #93c5fd;
    --navy-card: #050b18; --navy-card-2: #101a30;
    --ok: #34d399; --ok-soft: #0c2a22; --warn: #fbbf24; --warn-soft: #2a2010; --warn-line: #78560f; --bad: #f87171; --bad-soft: #2c1414;
    --violet: #c4b5fd; --violet-soft: #221a3d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #17223a; --ink: #e5ebf5; --ink-2: #c3cede; --muted: #8b9ab3; --line: #22304b;
  --primary: #3b82c4; --primary-hover: #4a92d6; --blue: #60a5fa; --blue-soft: #14233f; --blue-ink: #93c5fd;
  --navy-card: #050b18; --navy-card-2: #101a30;
  --ok: #34d399; --ok-soft: #0c2a22; --warn: #fbbf24; --warn-soft: #2a2010; --warn-line: #78560f; --bad: #f87171; --bad-soft: #2c1414;
  --violet: #c4b5fd; --violet-soft: #221a3d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }
.num, code { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- mandate banner ---- */
.mandate { background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--ink); font-size: 13.5px; }
.mandate .wrap { display: flex; gap: 10px 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: 8px; text-align: center; }
.mandate b { color: var(--warn); font-variant-numeric: tabular-nums; }
.mandate a { font-weight: 700; color: var(--warn); text-decoration: underline; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none !important; }
.brand .word { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--primary); font-family: var(--font); }
.brand .word b { color: var(--blue); font-weight: 900; }
.brand .tag { font-size: 8.5px; font-weight: 600; letter-spacing: .22em; color: var(--ink-2); margin-top: 3px; white-space: nowrap; font-family: var(--font); }
:root[data-theme="dark"] .brand .word { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .word { color: var(--ink); } }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--primary); font-weight: 600; }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--blue-ink); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-danger:hover { filter: brightness(.92); }
.btn-soft { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.btn-light { background: #fff; color: #123d67; }
.btn-light:hover { background: #e2e8f0; }
.btn-outline-light { background: transparent; color: #e2e8f0; border-color: #475569; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 13px; border-radius: 14px; }

/* ---- sections ---- */
main { display: block; }
.section { padding-block: 56px; }
.section.tight { padding-block: 32px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 760px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 68ch; }

.hero { position: relative; overflow: hidden; background: var(--navy-card); color: var(--navy-ink); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); margin-top: 24px; }
.hero::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; border: 48px solid rgba(96, 165, 250, .07); pointer-events: none; }
.hero .label { color: #93c5fd; }
.hero h1 { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; max-width: 20ch; color: #fff; }
.hero p { color: #a8b5ca; max-width: 60ch; font-size: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; position: relative; z-index: 1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; position: relative; z-index: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #dbe4f0; }
.chip svg { width: 14px; height: 14px; color: #34d399; }
.page-hero { padding-block: 40px 8px; display: grid; gap: 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none !important; min-width: 0; }
a.card:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: var(--shadow); }
.card h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 6px; }
.card .ic svg { width: 22px; height: 22px; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); min-width: 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; width: fit-content; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.muted { background: var(--surface-2); color: var(--muted); }

/* phases */
.phase { gap: 12px; }
.phase .when { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.phase dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.phase dt { color: var(--muted); }
.phase dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.phase.now { border-color: var(--warn-line); background: linear-gradient(180deg, var(--warn-soft), var(--surface) 60%); }

.deadline { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.deadline .days { font-size: 34px; font-weight: 900; color: var(--warn); font-variant-numeric: tabular-nums; line-height: 1; }
.deadline p { flex: 1 1 280px; font-size: 15px; }
.big-num { font-size: 40px; font-weight: 900; color: var(--bad); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* flow */
.flow-svg { width: 100%; height: auto; direction: ltr; }
.flow-svg .box { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.flow-svg .box.asp { fill: var(--blue-soft); stroke: var(--blue); }
.flow-svg .box.fta { fill: var(--ok-soft); stroke: var(--ok); }
.flow-svg .t { font: 700 13px var(--font); fill: var(--ink); text-anchor: middle; }
.flow-svg .s { font: 500 11px var(--font); fill: var(--muted); text-anchor: middle; }
.flow-svg .ln { fill: none; stroke: var(--muted); stroke-width: 2; }
.flow-svg .ln.dash { stroke: var(--ok); stroke-dasharray: 5 4; }
.flow-svg .ah { fill: var(--muted); }
.flow-svg .ah.g { fill: var(--ok); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.data th { text-align: start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.strong { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .flabel { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.input, .select, textarea.input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; font-size: 15px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.field-error, .validation-summary-errors { color: var(--bad); font-size: 13px; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: 14.5px; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--primary); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.notice { padding: 14px 18px; border-radius: var(--radius); font-size: 14.5px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.notice.info { background: var(--blue-soft); color: var(--blue-ink); }
.fineprint { font-size: 12.5px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }

.cta-box { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--navy-card); color: var(--navy-ink); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); }
.cta-box h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.cta-box p { color: #a8b5ca; margin-top: 6px; max-width: 52ch; }
.cta-box .hero-cta { margin-top: 0; }

/* footer */
.footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); }
.footer address { font-style: normal; color: var(--muted); margin-top: 12px; font-size: 13.5px; }
.footer-base { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* Arabic: no uppercase, no tracking — same rule as the Help Centre */
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] .label, html[lang="ar"] .btn, html[lang="ar"] .badge, html[lang="ar"] table.data th,
html[lang="ar"] .field > label, html[lang="ar"] .field > .flabel, html[lang="ar"] .footer h4 { letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="ar"] .hero h1, html[lang="ar"] .page-hero h1, html[lang="ar"] .section-head h2 { letter-spacing: 0; line-height: 1.35; }

@media (max-width: 1260px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 16px; margin: 0; box-shadow: var(--shadow); }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-grid; }
  .top-actions .btn-ghost, .top-actions .login { display: none; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .top-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- utilities (the CSP forbids inline styles, so spacing lives here) ---- */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.my-6 { margin-block: 6px; } .my-18 { margin-block: 18px; } .my-result { margin: 8px 0 16px; } .m-0 { margin: 0; }
.muted { color: var(--muted); }
.lede-sm { font-size: 15.5px; }
.h-panel { font-size: 26px; font-weight: 800; margin: 6px 0 10px; line-height: 1.2; }
.h-result { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 8px; }
.panel-dark { background: var(--navy-card); color: var(--navy-ink); border-color: transparent; }
.panel-dark .dark-label { color: #93c5fd; }
.panel-dark .dark-text { color: #a8b5ca; }
.panel-dark .h-dark { color: #fff; font-size: 22px; font-weight: 800; margin: 6px 0 10px; }
.panel-dark .dark-address { font-style: normal; color: #a8b5ca; margin-top: 22px; font-size: 14px; }
html[lang="ar"] fieldset.field > legend { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---- CRM (staff area at /crm) ---- */
.crm-main { padding-block: 8px 64px; }
.crm-login { max-width: 440px; margin: 64px auto; }
.crm-user { margin-inline-end: 4px; }
.crm-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.crm-count { display: grid; gap: 2px; min-width: 104px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none !important; }
.crm-count b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.crm-count span { font-size: 12px; color: var(--muted); }
.crm-count.on { border-color: var(--blue); background: var(--blue-soft); }
.crm-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.crm-filter .input { flex: 1 1 260px; width: auto; }
.crm-filter .select { width: auto; }
.crm-message { white-space: pre-wrap; margin-top: 6px; color: var(--ink-2); }
.crm-narrow { max-width: 620px; }
.crm-secret { margin: 10px 0; }
.crm-secret code { font-size: 18px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; display: inline-block; user-select: all; }

/* ---- capabilities, path, FAQ ---- */
.erp-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 20px; }
.erp-strip .erp { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.erp-strip a { font-size: 13px; font-weight: 700; margin-inline-start: 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.steps li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.steps b { display: block; font-size: 16px; }
.steps p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 16px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 14px 20px 18px; color: var(--ink-2); }
.next-steps { margin: 10px 0 22px; padding-inline-start: 20px; display: grid; gap: 8px; color: #dbe4f0; font-size: 15px; }
.panel-dark a:not(.btn) { color: #93c5fd; }
.panel-dark .dark-address strong { color: #fff; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
/* The header keeps one primary action until there is room for the portal link too. */
.topbar .wrap { max-width: 1400px; }
@media (max-width: 1480px) { .top-actions .login { display: none; } }
@media (max-width: 420px) { .brand .tag { display: none; } .brand .word { font-size: 22px; } .topbar .wrap { gap: 10px; } }
@media (max-width: 420px) { .hero-cta .btn, .cta-box .btn { white-space: normal; height: auto; min-height: 52px; padding-block: 10px; text-align: center; } .hero, .cta-box { padding: 22px; } }

/* ---- insights ---- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.pill.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.article { max-width: 820px; }
.prose { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 0 0 16px; padding: 12px 18px; border-radius: var(--radius); background: var(--blue-soft); border-inline-start: 4px solid var(--blue); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.prose pre { background: var(--navy-card); color: var(--navy-ink); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose img { max-width: 100%; height: auto; }
textarea.crm-body { min-height: 360px; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
textarea.crm-body[lang="ar"] { font-family: var(--font-ar); font-size: 16px; }
textarea.crm-short { min-height: 72px; }

/* ---- home: split hero, benefits, soft CTA ---- */
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero-split h1 { max-width: 22ch; font-size: clamp(28px, 4.2vw, 46px); }
.hero-art { position: relative; z-index: 1; display: grid; gap: 14px; }
.hero-art .doc { background: #fff; color: #0f172a; border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.hero-art .doc-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; border-bottom: 2px solid #123d67; padding-bottom: 10px; }
.hero-art .doc-head span { font-size: 12px; color: #64748b; }
.hero-art .doc-lines { display: grid; gap: 10px; padding: 16px 0; }
.hero-art .doc-lines i { display: block; height: 10px; border-radius: 6px; background: #e2e8f0; }
.hero-art .doc-lines i.short { width: 60%; }
.hero-art .doc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e2e8f0; padding-top: 12px; font-size: 14px; color: #64748b; }
.hero-art .doc-total b { font-size: 18px; color: #0f172a; }
.hero-art .doc-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-art .doc-status li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #e2e8f0; }
.hero-art .doc-status svg { width: 18px; height: 18px; color: #34d399; flex: none; }
.benefits { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 16px; align-items: stretch; }
.stat-banner { display: grid; place-content: center; text-align: center; gap: 4px; padding: 28px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; }
.stat-banner .stat-big { font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-banner b { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .stat-banner b { letter-spacing: 0; text-transform: none; }
.cta-box.cta-soft { background: var(--blue-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.cta-box.cta-soft h2 { color: var(--ink); }
.cta-box.cta-soft p { color: var(--ink-2); }
.dark-checks { margin-top: 10px; }
.dark-checks li { color: #dbe4f0; }
@media (max-width: 900px) { .hero-split, .benefits { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 420px; } }
.hero-split > *, .benefits > * { min-width: 0; }
.hero-art .doc-head, .hero-art .doc-total { flex-wrap: wrap; }
@media (max-width: 420px) { .stat-banner .stat-big { font-size: 48px; } .hero-split h1 { font-size: 26px; overflow-wrap: anywhere; } }

/* ================= UX pass: icons, motion, certifications ================= */
.icon { width: 18px; height: 18px; flex: none; }
.btn .icon { width: 16px; height: 16px; }

/* top menu: icon + label, animated underline, icon lifts on hover */
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; transition: background-color .2s ease, color .2s ease; }
.nav a .icon { color: var(--muted); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--primary); text-decoration: none; }
.nav a:hover .icon, .nav a:focus-visible .icon { color: var(--blue); transform: translateY(-2px) scale(1.12); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] .icon { color: var(--blue); }
:root[data-theme="dark"] .nav a:hover { color: var(--blue-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a:hover { color: var(--blue-ink); } }

/* header gains a shadow once the page is scrolled */
.topbar { transition: box-shadow .25s ease; }
body.scrolled .topbar { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .25); }

/* buttons, cards and tiles respond to the pointer */
.btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(18, 61, 103, .6); }
.icon-btn { transition: background-color .2s ease, transform .15s ease; }
.icon-btn:hover { transform: translateY(-1px); }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
a.card .more { transition: gap .2s ease; display: inline-flex; gap: 4px; }
a.card:hover .more { gap: 10px; }
.steps li { transition: transform .2s ease, border-color .2s ease; }
.steps li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.pill, .erp-strip .erp, .chip { transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.pill:hover { transform: translateY(-1px); border-color: var(--blue); text-decoration: none; }
.footer ul a { transition: color .2s ease, padding-inline-start .2s ease; }
.footer ul a:hover { color: var(--blue-ink); padding-inline-start: 4px; text-decoration: none; }
.faq summary { transition: background-color .2s ease; border-radius: var(--radius); }
.faq summary:hover { background: var(--surface-2); }

/* sections ease in as they enter the viewport (only when the script has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* certification badges: white tiles so the artwork reads on any background */
.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.certs li { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; transition: transform .2s ease, box-shadow .2s ease; }
.certs li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.certs img { display: block; height: 52px; width: auto; max-width: 100%; }

/* "Your trusted ASP" highlight */
.trusted { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--surface) 0%, var(--blue-soft) 100%); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.trusted::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: linear-gradient(180deg, var(--primary), var(--blue)); }
.trusted-text { display: grid; gap: 14px; }
.trusted h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; color: var(--primary); }
:root[data-theme="dark"] .trusted h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trusted h2 { color: var(--ink); } }
.trusted p { color: var(--ink-2); font-size: 16.5px; }
.trusted .hero-cta { margin-top: 6px; }
.trusted-side { display: grid; gap: 12px; }
.trusted-side .certs { display: grid; grid-template-columns: 1fr 1fr; }
.trusted-side .certs li { padding: 14px; }
.trusted-side .certs img { height: auto; max-height: 64px; }
html[lang="ar"] .trusted h2 { letter-spacing: 0; line-height: 1.4; }

/* footer: parent company logo and badges */
.parent-logo { display: inline-grid; gap: 6px; margin-top: 18px; text-decoration: none !important; }
.parent-logo img { height: 34px; width: auto; background: #fff; border-radius: 10px; padding: 7px 12px; border: 1px solid var(--line); transition: transform .2s ease; }
.parent-logo:hover img { transform: translateY(-2px); }
.footer-certs { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-certs .certs img { height: 40px; }

@media (max-width: 900px) { .trusted { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .trusted-side .certs { grid-template-columns: 1fr; } }
.footer .certs { display: flex; gap: 12px; }

/* ================= UX round 2 ================= */
.text-link { font-weight: 700; }
.on-dark { color: #93c5fd; font-weight: 600; }
.cta-box > * { min-width: 0; }

/* Resources dropdown in the top menu */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary .icon { color: var(--muted); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.nav-drop > summary .chev .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-drop > summary .chev { display: inline-grid; }
.nav-drop > summary:hover { background: var(--surface-2); color: var(--primary); }
.nav-drop > summary:hover > .icon { color: var(--blue); transform: translateY(-2px) scale(1.12); }
.nav-drop[open] > summary { background: var(--blue-soft); color: var(--primary); }
.nav-drop[open] > summary .chev .icon { transform: rotate(180deg); }
.nav-drop.current > summary { color: var(--primary); font-weight: 600; }
.nav-drop.current > summary > .icon { color: var(--blue); }
:root[data-theme="dark"] .nav-drop > summary:hover, :root[data-theme="dark"] .nav-drop[open] > summary, :root[data-theme="dark"] .nav-drop.current > summary { color: var(--blue-ink); }
.drop-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 60; width: 320px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .35); animation: drop-in .18s ease; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav .drop-menu a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; white-space: normal; }
.nav .drop-menu a::after { display: none; }
.nav .drop-menu a .icon { margin-top: 2px; }
.drop-menu a span { display: grid; gap: 1px; }
.drop-menu a b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.drop-menu a small { font-size: 12.5px; color: var(--muted); }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--blue-soft); }

/* hero deadline finder */
.hero-finder { position: relative; z-index: 1; display: grid; gap: 14px; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 24px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.hero .hero-finder .label { color: var(--blue-ink); }
.hero-finder h2 { font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: -6px; }
.hero-finder fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-finder legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.seg { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.seg:hover span { border-color: var(--blue); transform: translateY(-1px); }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
:root[data-theme="dark"] .seg input:checked + span { background: var(--primary); color: #fff; }

/* testimonials */
.card.quote { gap: 12px; margin: 0; }
.card.quote > .icon { width: 26px; height: 26px; color: var(--blue); }
.card.quote blockquote { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.55; }
.card.quote figcaption { display: grid; margin-top: auto; font-size: 13.5px; color: var(--muted); }
.card.quote figcaption b { color: var(--ink); font-size: 14.5px; }

/* search */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; margin-top: 8px; }
.search-form .input { flex: 1 1 260px; width: auto; }
.results { display: grid; gap: 12px; max-width: 860px; }

/* forms: live validation and steps */
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-soft); }
.input.valid, .select.valid { border-color: var(--ok); }
.field-error:empty { display: none; }
fieldset.step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.stepped fieldset.step[hidden] { display: none; }
.step-bar { display: grid; gap: 8px; }
.step-bar .track { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.step-bar .track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s ease; }
.step-nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* floating Help and WhatsApp buttons */
.fabs { position: fixed; z-index: 70; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; list-style: none; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none !important; box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .55); transition: transform .2s ease, box-shadow .2s ease; }
.fab::-webkit-details-marker { display: none; }
.fab .icon { width: 22px; height: 22px; }
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px -12px rgba(15, 23, 42, .6); }
.fab-navy { background: var(--primary); }
.fab-green { background: #128c4b; }
.fab-help { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.fab-pop { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; width: min(300px, calc(100vw - 36px)); display: grid; gap: 10px; padding: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45); animation: drop-in .18s ease; }
.fab-pop p { font-size: 14px; color: var(--ink-2); }
.fab-pop .btn { width: 100%; }
@media (max-width: 640px) { .fab span { display: none; } .fab { width: 50px; padding: 0; justify-content: center; } }
@media print { .fabs { display: none; } }
.footer { padding-bottom: 96px; }

@media (max-width: 1260px) {
  .nav-drop > summary { padding: 12px; width: 100%; }
  .drop-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 20px; animation: none; }
  [dir="rtl"] .drop-menu { padding: 0 20px 6px 0; }
}
@media (max-width: 900px) { .hero-finder { max-width: 460px; } }

/* ---- CRM dashboard and editor toolbar ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.kpi b { font-size: 36px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi.alert { border-color: var(--warn-line); background: var(--warn-soft); }
.kpi.alert b { color: var(--warn); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); text-decoration: none !important; padding: 4px 6px; border-radius: 8px; }
.bar-row:hover { background: var(--surface-2); }
.bar-row b { text-align: end; }
.bar-row progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.bar-row progress::-webkit-progress-bar { background: var(--surface-2); }
.bar-row progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
.bar-row progress::-moz-progress-bar { background: var(--primary); }
.md-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.md-bar button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.md-bar button:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); transform: translateY(-1px); }
.trusted .badge { white-space: normal; }
.trusted > * { min-width: 0; }
@media (max-width: 380px) { .top-actions [data-theme-toggle] { display: none; } .top-actions { gap: 6px; } }

/* ---------- CRM: contacts and email campaigns ---------- */
.crm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crm-filter .input.crm-tag { flex: 0 1 150px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.crm-progress { display: flex; align-items: center; gap: 12px; }
.crm-progress progress { flex: 1; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); accent-color: var(--blue); }
.crm-progress progress::-webkit-progress-bar { background: var(--surface-2); }
.crm-progress progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.crm-progress progress::-moz-progress-bar { background: var(--blue); }
.crm-progress b { font-variant-numeric: tabular-nums; min-width: 44px; text-align: end; }
.crm-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crm-mail { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface-2); overflow-wrap: anywhere; }
.crm-url { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
.input.crm-when { max-width: 280px; }
span.crm-count { cursor: default; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.crm-settings { max-width: 860px; }
.form-row.top { align-items: start; }

/* ---------- CRM: left-hand menu ---------- */
body.crm-app { --side: 256px; }
.crm-top-in { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 20px; }
.crm-area { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.crm-who { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); text-decoration: none !important; padding: 8px 10px; border-radius: 10px; max-width: 280px; }
.crm-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-who:hover { background: var(--surface-2); color: var(--ink); }
.crm-who .icon { width: 17px; height: 17px; flex: none; }
.crm-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); align-items: start; }
.crm-side { position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; padding: 18px 12px 24px; border-inline-end: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.crm-group { display: grid; gap: 2px; }
.crm-group-h { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.crm-side a, .nav-signout button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none !important; border: 0; background: none; width: 100%; font-family: inherit; cursor: pointer; text-align: start; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.crm-side a .icon, .nav-signout .icon { width: 18px; height: 18px; flex: none; color: var(--muted); transition: color .15s ease, transform .2s ease; }
.crm-side a:hover, .nav-signout button:hover { background: var(--surface-2); color: var(--ink); }
.crm-side a:hover .icon, .nav-signout button:hover .icon { color: var(--blue); transform: scale(1.12); }
.crm-side a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 3px 0 0 var(--blue); }
html[dir="rtl"] .crm-side a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--blue); }
.crm-side a[aria-current="page"] .icon { color: var(--blue); }
.crm-group-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-signout { display: none; }
body.crm-app .crm-main { padding: 8px 32px 64px; max-width: 1280px; width: 100%; }
/* Pages that show a grid use the whole width of the screen. */
body.crm-app .crm-main:has(.table-wrap) { max-width: none; }
body.crm-app .menu-btn { display: none; }
@media (max-width: 1000px) {
  .crm-shell { grid-template-columns: minmax(0, 1fr); }
  .crm-side { display: none; position: fixed; top: 68px; inset-inline: 0; bottom: 0; height: auto; z-index: 40; border: 0; box-shadow: var(--shadow); }
  body.nav-open .crm-side { display: flex; }
  body.crm-app .menu-btn { display: inline-grid; }
  body.crm-app .crm-main { padding: 8px 16px 56px; }
  .crm-out, .crm-who span { display: none; }
  .nav-signout { display: block; }
}
@media (max-width: 420px) { .crm-area { display: none; } }

/* ---------- CRM: live sending state ---------- */
.crm-state { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); margin-bottom: 14px; }
.crm-state.waiting { background: var(--warn-soft); color: var(--warn); }
.crm-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; animation: crm-pulse 1.6s ease-in-out infinite; }
.crm-state.waiting .crm-dot { animation: none; }
@keyframes crm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .crm-dot { animation: none; } }
.crm-sentline { margin: 10px 0 2px; font-size: 15px; }
.crm-sentline b { font-size: 20px; font-weight: 800; }
progress.crm-mini { display: block; width: 120px; height: 6px; margin-top: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); accent-color: var(--blue); }
progress.crm-mini::-webkit-progress-bar { background: var(--surface-2); }
progress.crm-mini::-webkit-progress-value { background: var(--blue); }
progress.crm-mini::-moz-progress-bar { background: var(--blue); }
.crm-rules { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }

/* ---------- CRM: website usage ---------- */
.viz-root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-grid: #e2e8f0; --viz-surface: var(--surface);
  --heat-0: #f1f5f9; --heat-1: #dbe8fa; --heat-2: #b3cff3; --heat-3: #7fadea; --heat-4: #4688dc; --heat-5: #1f5fb8; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .viz-root { --viz-1: #3987e5; --viz-2: #d95926; --viz-grid: #22304b;
  --heat-0: #17223a; --heat-1: #1b3152; --heat-2: #214576; --heat-3: #2a5d9f; --heat-4: #3b7fd0; --heat-5: #6aa6ee; } }
:root[data-theme="dark"] .viz-root { --viz-1: #3987e5; --viz-2: #d95926; --viz-grid: #22304b;
  --heat-0: #17223a; --heat-1: #1b3152; --heat-2: #214576; --heat-3: #2a5d9f; --heat-4: #3b7fd0; --heat-5: #6aa6ee; }
.u-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.u-bar .btn { margin-inline-start: auto; }
.u-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ok); }
.u-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1500px) { .u-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .u-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.u-tile { display: grid; gap: 4px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.u-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.u-tile b { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.u-delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; width: fit-content; padding: 2px 9px; border-radius: 999px; }
.u-delta.good { background: var(--ok-soft); color: var(--ok); }
.u-delta.bad { background: var(--bad-soft); color: var(--bad); }
.u-delta.flat { background: var(--surface-2); color: var(--muted); }
.u-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; }
.u-legend { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); }
.u-legend span { display: inline-flex; align-items: center; gap: 7px; }
.u-legend .k { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.u-legend .k.s1 { background: var(--viz-1); } .u-legend .k.s2 { background: var(--viz-2); }
.u-legend .cell { width: 14px; height: 14px; border-radius: 3px; display: inline-block; margin-inline: 1px; }
.u-chart { position: relative; margin-top: 10px; }
.u-chart svg { display: block; width: 100%; height: auto; overflow: visible; border-radius: 8px; }
.u-chart .grid { stroke: var(--viz-grid); stroke-width: 1; }
.u-chart .tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.u-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.u-chart .line.s1, .u-chart .end.s1, .u-chart .dot.s1 { stroke: var(--viz-1); } .u-chart .line.s2 { stroke: var(--viz-2); }
.u-chart .area.s2 { fill: var(--viz-2); opacity: .07; }
.u-chart .end, .u-chart .dot { stroke: var(--viz-surface); stroke-width: 2; }
.u-chart .end.s1, .u-chart .dot.s1 { fill: var(--viz-1); } .u-chart .end.s2, .u-chart .dot.s2 { fill: var(--viz-2); }
.u-chart .endlabel { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.u-chart .endvalue { fill: var(--ink); font-weight: 800; }
.u-chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.u-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; }
.u-tip b { font-size: 15px; }
.u-tip .t { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.u-tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.u-tip .r span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.u-tip .k { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.u-tip .k.s1 { background: var(--viz-1); } .u-tip .k.s2 { background: var(--viz-2); }
.u-float { position: fixed; z-index: 60; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 600; max-width: 320px; }
.u-table { margin-top: 12px; } .u-table summary { cursor: pointer; font-size: 13px; color: var(--blue-ink); width: fit-content; }
.u-heat-table th, .u-heat-table td { padding: 6px 7px !important; text-align: center; }
.u-bars, .u-funnel { display: grid; gap: 12px; }
.u-row, .u-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; border-radius: 8px; outline-offset: 4px; }
.u-step { grid-template-columns: minmax(0, 1fr); }
.u-step-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.u-num { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.u-num b { font-variant-numeric: tabular-nums; font-size: 15px; }
.u-step .u-num { flex-direction: column; align-items: flex-end; gap: 0; } .u-step .u-num b { font-size: 22px; font-weight: 800; }
.u-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.u-step .u-track { height: 12px; border-radius: 6px; }
.u-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--viz-1); transition: filter .15s ease; }
html[dir="rtl"] .u-fill { border-radius: 4px 0 0 4px; }
.u-row:hover .u-fill, .u-row:focus .u-fill, .u-step:hover .u-fill, .u-step:focus .u-fill { filter: brightness(1.18); }
.u-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.u-heat { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.u-heat .hh { font-size: 10.5px; color: var(--muted); text-align: start; font-variant-numeric: tabular-nums; }
.u-heat .dd { font-size: 12px; color: var(--muted); }
.u-heat .cell { display: block; aspect-ratio: 1.5; min-height: 16px; border-radius: 3px; }
.u-heat .cell:hover, .u-heat .cell:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-0 { background: var(--heat-0); } .heat-1 { background: var(--heat-1); } .heat-2 { background: var(--heat-2); } .heat-3 { background: var(--heat-3); } .heat-4 { background: var(--heat-4); } .heat-5 { background: var(--heat-5); }
@media (max-width: 700px) { .u-chart .endlabel { display: none; } .u-heat { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 1px; } .u-bar .btn { margin-inline-start: 0; } }
.pct-0{width:0%}.pct-1{width:1%}.pct-2{width:2%}.pct-3{width:3%}.pct-4{width:4%}.pct-5{width:5%}.pct-6{width:6%}.pct-7{width:7%}.pct-8{width:8%}.pct-9{width:9%}.pct-10{width:10%}.pct-11{width:11%}.pct-12{width:12%}.pct-13{width:13%}.pct-14{width:14%}.pct-15{width:15%}.pct-16{width:16%}.pct-17{width:17%}.pct-18{width:18%}.pct-19{width:19%}.pct-20{width:20%}.pct-21{width:21%}.pct-22{width:22%}.pct-23{width:23%}.pct-24{width:24%}.pct-25{width:25%}.pct-26{width:26%}.pct-27{width:27%}.pct-28{width:28%}.pct-29{width:29%}.pct-30{width:30%}.pct-31{width:31%}.pct-32{width:32%}.pct-33{width:33%}.pct-34{width:34%}.pct-35{width:35%}.pct-36{width:36%}.pct-37{width:37%}.pct-38{width:38%}.pct-39{width:39%}.pct-40{width:40%}.pct-41{width:41%}.pct-42{width:42%}.pct-43{width:43%}.pct-44{width:44%}.pct-45{width:45%}.pct-46{width:46%}.pct-47{width:47%}.pct-48{width:48%}.pct-49{width:49%}.pct-50{width:50%}.pct-51{width:51%}.pct-52{width:52%}.pct-53{width:53%}.pct-54{width:54%}.pct-55{width:55%}.pct-56{width:56%}.pct-57{width:57%}.pct-58{width:58%}.pct-59{width:59%}.pct-60{width:60%}.pct-61{width:61%}.pct-62{width:62%}.pct-63{width:63%}.pct-64{width:64%}.pct-65{width:65%}.pct-66{width:66%}.pct-67{width:67%}.pct-68{width:68%}.pct-69{width:69%}.pct-70{width:70%}.pct-71{width:71%}.pct-72{width:72%}.pct-73{width:73%}.pct-74{width:74%}.pct-75{width:75%}.pct-76{width:76%}.pct-77{width:77%}.pct-78{width:78%}.pct-79{width:79%}.pct-80{width:80%}.pct-81{width:81%}.pct-82{width:82%}.pct-83{width:83%}.pct-84{width:84%}.pct-85{width:85%}.pct-86{width:86%}.pct-87{width:87%}.pct-88{width:88%}.pct-89{width:89%}.pct-90{width:90%}.pct-91{width:91%}.pct-92{width:92%}.pct-93{width:93%}.pct-94{width:94%}.pct-95{width:95%}.pct-96{width:96%}.pct-97{width:97%}.pct-98{width:98%}.pct-99{width:99%}.pct-100{width:100%}
.crm-frame { display: block; width: 100%; height: 620px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; }
textarea.crm-source { min-height: 260px; font-size: 12.5px; margin-top: 10px; }
.select.crm-format { max-width: 420px; }

/* Email builder, pre-send checks */
.input[hidden], .md-bar[hidden] { display: none; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.builder { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 14px; }
.builder-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.builder-palette .fineprint { flex-basis: 100%; }
.builder-list { display: grid; gap: 10px; padding-top: 12px; min-height: 80px; max-width: 640px; margin-inline: auto; }
.builder-empty { color: var(--muted); text-align: center; padding: 22px 0; }
.builder-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 14px; display: grid; gap: 8px; }
.builder-block.dragging { opacity: .45; }
.builder-block.over { border-color: var(--blue); box-shadow: 0 -3px 0 var(--blue); }
.builder-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.builder-grip { cursor: grab; color: var(--muted); letter-spacing: -2px; padding: 4px 6px; user-select: none; }
.builder-tools { margin-inline-start: auto; display: flex; gap: 4px; }
.builder-tool { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.builder-tool:hover, .builder-tool:focus-visible { border-color: var(--blue); color: var(--blue-ink); }
.builder-field { display: grid; gap: 4px; }
.builder-field textarea.input { min-height: 0; font-family: inherit; }
.crm-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.crm-checks li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14.5px; overflow-wrap: anywhere; }
.crm-checks b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 0; border-radius: 6px; text-align: center; }
.chk-problem b { background: var(--bad-soft); color: var(--bad); } .chk-problem { border-color: color-mix(in srgb, var(--bad) 35%, transparent) !important; }
.chk-warning b { background: var(--warn-soft); color: var(--warn); }
.chk-passed b { background: var(--ok-soft); color: var(--ok); } .chk-passed span { color: var(--muted); }
.crm-growth { min-width: 140px; width: 30%; }

/* Sales: lead page, tasks, timeline, pipeline, quotes */
.crm-lead-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge.score-hot { background: var(--bad-soft); color: var(--bad); }
.badge.score-warm { background: var(--warn-soft); color: var(--warn); }
.badge.score-cold { background: var(--surface-2); color: var(--muted); }
.crm-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crm-tasks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.crm-tasks li.late { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); }
.crm-log { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; }
.crm-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.crm-timeline li { display: grid; grid-template-columns: 150px 96px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.crm-timeline .tl-when { color: var(--muted); font-size: 13px; }
.crm-timeline .crm-message { margin-top: 6px; }
@media (max-width: 760px) { .crm-timeline li { grid-template-columns: 1fr; gap: 4px; } .crm-log { grid-template-columns: 1fr; } }
.board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 180px; }
.board-col.over { outline: 2px solid var(--blue); outline-offset: -2px; }
.board-col > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 10px; font-size: 13px; }
.board-col > header span { color: var(--muted); font-size: 12px; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 13.5px; cursor: grab; display: grid; gap: 4px; }
.board-card.dragging { opacity: .4; }
.board-card .select { padding: 4px 8px; font-size: 12px; margin-top: 4px; }
.board-card form { display: flex; gap: 6px; }
.quote-sheet { background: #fff; color: #0f172a; max-width: 820px; margin: 0 auto; padding: 40px 44px; border: 1px solid var(--line); border-radius: var(--radius); }
.quote-sheet h2 { color: #123d67; } .quote-sheet .fineprint, .quote-sheet .muted { color: #64748b; }
.quote-sheet table { width: 100%; border-collapse: collapse; margin-top: 18px; } .quote-sheet th, .quote-sheet td { padding: 9px 8px; border-bottom: 1px solid #e2e8f0; text-align: start; font-size: 14px; }
.quote-sheet td.num, .quote-sheet th.num { text-align: end; font-variant-numeric: tabular-nums; }
.quote-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.quote-total td { font-weight: 800; font-size: 16px; border-bottom: 0; border-top: 2px solid #123d67; }
.quote-lines { display: grid; gap: 8px; } .quote-line { display: grid; grid-template-columns: 1fr 90px 130px; gap: 8px; }
@media print { .crm-side, .crm-top, .topbar, .no-print, .page-hero, footer { display: none !important; } .quote-sheet { border: 0; padding: 0; max-width: none; } body { background: #fff; } .crm-main, .crm-shell { display: block; padding: 0; margin: 0; } }
.crm-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.crm-views .pill { display: inline-flex; align-items: center; gap: 6px; }
.crm-views .pill form { display: inline; } .crm-views .pill button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 2px; }
.crm-saveview { display: flex; gap: 6px; margin-inline-start: auto; } .crm-saveview .input { width: 190px; padding: 8px 12px; }

/* =====================================================================================
   Glass layer. Loaded last so it restyles the components above without touching them.
   The page sits on a quiet field of blue light; panels, cards and the navigation are
   frosted sheets over it. Text fields stay close to solid so typing is always easy to read.
   Without backdrop-filter, or when the reader asks for less transparency, everything
   falls back to the solid surfaces defined at the top of this file.
   ===================================================================================== */
:root {
  --radius-xl: 20px; --radius-lg: 16px; --radius: 12px;
  --glass: color-mix(in srgb, var(--surface) 66%, transparent);
  --glass-chrome: color-mix(in srgb, var(--surface) 58%, transparent);
  --glass-solid: color-mix(in srgb, var(--surface) 90%, transparent);
  --glass-line: color-mix(in srgb, var(--ink) 9%, transparent);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .65);
  --glass-blur: saturate(170%) blur(18px);
  --shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 14px 34px -20px rgba(15, 23, 42, .28);
  --field-a: rgba(37, 99, 235, .16); --field-b: rgba(14, 165, 233, .13); --field-c: rgba(18, 61, 103, .10);
  --ai-a: #6d28d9; --ai-b: #2563eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .06); --glass-line: rgba(255, 255, 255, .09);
    --field-a: rgba(59, 130, 246, .22); --field-b: rgba(8, 145, 178, .16); --field-c: rgba(30, 64, 175, .18); --ai-a: #a78bfa; --ai-b: #60a5fa;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .75); }
}
:root[data-theme="dark"] { --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .06); --glass-line: rgba(255, 255, 255, .09);
  --field-a: rgba(59, 130, 246, .22); --field-b: rgba(8, 145, 178, .16); --field-c: rgba(30, 64, 175, .18); --ai-a: #a78bfa; --ai-b: #60a5fa;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .75); }

/* The light behind the glass. Fixed, so sheets slide over it as the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46vw 38vw at 8% -6%, var(--field-a), transparent 70%),
    radial-gradient(40vw 36vw at 96% 12%, var(--field-b), transparent 68%),
    radial-gradient(52vw 40vw at 62% 108%, var(--field-c), transparent 70%); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .crm-side, .panel:not(.panel-dark), .card, .crm-count, .u-tile, .table-wrap, .pill, .builder, .board-col, .hero-finder, .btn-ghost, .md-bar button, .builder-tool, .crm-tasks li, .crm-checks li {
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-line); }
  .topbar, .crm-side, .footer { background: var(--glass-chrome); }
  .panel:not(.panel-dark), .card, .crm-count, .u-tile, .table-wrap, .hero-finder, .board-col, .builder { background: var(--glass); box-shadow: var(--shadow), var(--glass-edge); }
  .pill, .btn-ghost, .md-bar button, .builder-tool, .crm-tasks li, .crm-checks li { background: var(--glass); box-shadow: var(--glass-edge); }
  .input, .select, textarea.input, .builder-block, .board-card { background: var(--glass-solid); border-color: var(--glass-line); }
  table.data th { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
  table.data td { border-bottom-color: var(--glass-line); }
  /* On the dark hero the finder needs more body than a pale page gives it. */
  .hero .hero-finder { background: color-mix(in srgb, var(--surface) 90%, transparent); }
  /* A sheet inside a sheet would blur twice and turn muddy: inner ones stay flat. */
  .panel .panel, .panel .table-wrap, .panel .card, .builder .builder-block, .panel .builder { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .panel .table-wrap, .panel .builder { background: color-mix(in srgb, var(--surface) 55%, transparent); box-shadow: none; }
}

/* Crisper edges and type */
.topbar { border-bottom-color: var(--glass-line); }
.crm-side { border-inline-end-color: var(--glass-line); }
.page-hero h1 { letter-spacing: -.028em; }
.page-hero .lede { color: var(--ink-2); max-width: 68ch; }
.label { letter-spacing: .09em; }
.btn { border-radius: 11px; letter-spacing: .05em; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-primary:hover { background: linear-gradient(180deg, var(--primary), var(--primary-hover)); }
.btn-ghost:hover, .pill:hover, .builder-tool:hover { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: color-mix(in srgb, var(--blue) 45%, var(--glass-line)); }
.input:focus, .select:focus { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); outline: 0; border-color: var(--blue); }
.card:hover, .u-tile:hover { box-shadow: 0 1px 1px rgba(15, 23, 42, .05), 0 22px 44px -22px rgba(15, 23, 42, .36), var(--glass-edge); }
.crm-count.on, .pill.on { background: color-mix(in srgb, var(--blue) 14%, var(--glass)); border-color: color-mix(in srgb, var(--blue) 60%, transparent); }
.crm-side a[aria-current="page"] { background: color-mix(in srgb, var(--blue) 13%, transparent); box-shadow: inset 3px 0 0 var(--blue), var(--glass-edge); }
.crm-side a:hover, .nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.badge { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.notice { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.notice.ok { background: color-mix(in srgb, var(--ok-soft) 78%, transparent); } .notice.info { background: color-mix(in srgb, var(--blue-soft) 78%, transparent); } .notice.bad { background: color-mix(in srgb, var(--bad-soft) 80%, transparent); }
.board-card { box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 8px 18px -14px rgba(15, 23, 42, .3); transition: transform .15s ease, box-shadow .2s ease; }
.board-card:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(15, 23, 42, .05), 0 16px 26px -16px rgba(15, 23, 42, .4); }
.crm-timeline li { border-top-color: var(--glass-line); }
.footer { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* AI: one accent, used only where the assistant acts, so its work is always recognisable. */
.ai-mark { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; margin-inline-end: 8px; background: linear-gradient(135deg, var(--ai-a), var(--ai-b));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4zM19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4zM19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ai-panel { position: relative; border-color: color-mix(in srgb, var(--ai-a) 30%, var(--glass-line)) !important;
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--ai-a) 9%, transparent), color-mix(in srgb, var(--ai-b) 7%, transparent) 55%, transparent) !important; }
.ai-panel > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ai-panel > summary::-webkit-details-marker { display: none; }
.ai-head { display: flex; align-items: center; gap: 2px; } .ai-head form { margin-inline-start: auto; }
.ai-check { margin-top: 26px; }
.btn-ai { color: #fff; border: 0; background: linear-gradient(135deg, var(--ai-a), var(--ai-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px color-mix(in srgb, var(--ai-a) 70%, transparent); }
.btn-ai:hover { filter: brightness(1.08); }
:root[data-theme="dark"] .btn-ai { color: #0b1120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ai { color: #0b1120; } }
.builder-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.builder-ai .select { width: auto; min-height: 0; padding: 5px 10px; font-size: 12.5px; border-color: color-mix(in srgb, var(--ai-a) 35%, var(--glass-line)); }

@media (prefers-reduced-transparency: reduce) {
  .topbar, .crm-side, .panel:not(.panel-dark), .card, .crm-count, .u-tile, .table-wrap, .pill, .builder, .board-col, .hero-finder, .btn-ghost, .notice, .footer, .input, .select, textarea.input {
    -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--surface); }
  body::before { display: none; }
}
@media print { body::before { display: none; } .panel, .table-wrap { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; box-shadow: none; } }

/* Bell, notifications */
.crm-bell { position: relative; display: inline-grid; place-items: center; text-decoration: none !important; }
.crm-bell .icon { width: 18px; height: 18px; }
.crm-bell b { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.crm-tasks li.fresh { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 9%, var(--glass)); }
.builder-cols { display: grid; gap: 16px; padding-top: 12px; }
.builder-cols .builder-list { padding-top: 0; max-width: none; margin: 0; }
.builder-preview { width: 100%; height: 520px; border: 1px solid var(--glass-line); border-radius: var(--radius); background: #fff; }
@media (min-width: 1180px) { .builder-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .builder-side { position: sticky; top: 84px; } .builder-preview { height: 620px; } }
.ai-list { margin: 10px 0 6px; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 15px; }
.crm-ask { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.crm-answer { white-space: pre-wrap; font-size: 16px; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* reCAPTCHA v3: the floating badge is hidden (it collides with the Help and WhatsApp buttons); the notice Google requires in its place sits under each form. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin: 0; }

/* Uploaded images in the CRM list never spill out of their card. */
.media-thumb { display: block; max-width: min(100%, 420px); height: auto; border-radius: 10px; }

/* A locked sequence email: the finished email only, at a readable width. */
.builder-locked { max-width: 640px; }
.builder-locked .builder-preview { width: 100%; min-height: 560px; }

/* ---- Large lists: pager, filter bar, status chips, image grid, capped board columns ---- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.pager-info { margin-inline-end: auto; font-variant-numeric: tabular-nums; }
.pager-links, .pager-size { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager a, .pager .on, .pager .off, .pager .gap { min-width: 34px; height: 34px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-variant-numeric: tabular-nums; text-decoration: none; }
.pager a { border: 1px solid var(--glass-line, var(--line)); background: var(--glass, var(--surface)); color: inherit; }
.pager a:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.pager .on { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.pager .off { opacity: .35; }
.pager-size { gap: 6px; }
.list-count { font-size: 14px; color: var(--muted); margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.crm-filter .btn { flex: 0 0 auto; }
.crm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.crm-chips a { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-line, var(--line)); background: var(--glass, var(--surface)); font-size: 14px; text-decoration: none; color: inherit; }
.crm-chips a b { font-variant-numeric: tabular-nums; }
.crm-chips a.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.crm-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.crm-images .panel { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.crm-images .media-thumb { width: 100%; max-width: none; height: 140px; object-fit: contain; background: rgba(15, 42, 82, .05); }
.crm-images .fineprint { margin: 0; overflow-wrap: anywhere; }
.board-more { display: block; text-align: center; padding: 10px; border-radius: 10px; border: 1px dashed var(--glass-line, var(--line)); font-size: 14px; text-decoration: none; }
tr.late td:first-child, .crm-tasks li.late { box-shadow: inset 3px 0 0 var(--bad); }

/* ================= Small visual pass: feature icons, footer icons, hero artwork ================= */
.card .ic { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease; }
.card:hover .ic { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.footer ul a { display: inline-flex; align-items: center; gap: 9px; transition: color .2s ease, transform .25s ease; }
.footer ul a .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.footer ul a:hover, .footer ul a:focus-visible { color: var(--blue-ink); transform: translateX(3px); }
html[dir="rtl"] .footer ul a:hover, html[dir="rtl"] .footer ul a:focus-visible { transform: translateX(-3px); }
.footer ul a:hover .icon, .footer ul a:focus-visible .icon { color: var(--blue); transform: scale(1.18) rotate(-6deg); }
.hero-split > :not(.hero-bg) { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: #93c5fd; pointer-events: none; z-index: 0; opacity: .55; }
html[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-bg .hb-line { fill: none; stroke: #60a5fa; stroke-opacity: .28; stroke-width: 2; stroke-linecap: round; }
.hero-bg .hb-line2 { stroke: #bae6fd; stroke-opacity: .85; stroke-width: 2.5; stroke-dasharray: 6 46; animation: hb-flow 5s linear infinite; }
.hero-bg .hb-nodes circle { fill: #0b1d3a; stroke: #60a5fa; stroke-width: 2; }
.hero-bg .hb-ring circle { fill: none; stroke: #7dd3fc; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hb-pulse 3.2s ease-out infinite; }
.hero-bg .hb-ring circle:nth-child(2) { animation-delay: 1.6s; }
.hero-bg .hb-doc rect { fill: #0f2a52; stroke: #93c5fd; stroke-width: 1.5; }
.hero-bg .hb-doc path { fill: none; stroke: #93c5fd; stroke-width: 1.6; stroke-linecap: round; }
@keyframes hb-flow { to { stroke-dashoffset: -104; } }
@keyframes hb-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@media (max-width: 720px) { .hero-bg { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hero-bg .hb-line2, .hero-bg .hb-ring circle { animation: none; } .footer ul a:hover, .card:hover .ic { transform: none; } }

/* Section calls to action, and the back-to-top button */
.section-cta { margin: 24px 0 0; text-align: center; }
.to-top { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(18, 61, 103, .35); cursor: pointer; transition: transform .2s, background .2s; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--blue); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.to-top .icon { width: 22px; height: 22px; }
@media print { .to-top { display: none; } }

/* Cookie banner and settings */
.cc-banner { position: fixed; inset-inline: 16px; inset-block-end: 16px; z-index: 60; max-width: 760px; margin-inline: auto; display: grid; gap: 14px; padding: 18px 20px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg, 14px); box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.cc-banner h2, .cc-dialog h2 { margin: 0 0 6px; font-size: 17px; }
.cc-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { flex: 1 1 140px; justify-content: center; }
.cc-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); color: var(--ink); }
.cc-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.cc-form { padding: 22px; display: grid; gap: 14px; }
.cc-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.cc-x { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.cc-row { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.cc-row p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cc-always { font-size: 12.5px; font-weight: 700; color: var(--blue-ink); white-space: nowrap; }
.cc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: background .2s; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + span { background: var(--blue); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
html[dir="rtl"] .cc-switch input:checked + span::after { transform: translateX(-20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.cc-gate { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; }
.cc-gate[hidden] { display: none; }
@media (max-width: 560px) { .cc-banner { inset-inline: 8px; inset-block-end: 8px; } .to-top { inset-block-end: 90px; } }
@media (prefers-reduced-motion: reduce) { .cc-switch span, .cc-switch span::after { transition: none; } }

/* Trust strip above the header */
.trust-strip { background: #0b2545; color: #e2e8f0; font-size: 13px; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; padding-block: 8px; }
.trust-strip strong { color: #fff; font-weight: 700; }
.trust-strip a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; color: inherit; text-decoration: none; }
.trust-strip a:hover .ts-item { color: #fff; }
.ts-item { display: inline-flex; align-items: center; gap: 6px; }
.ts-item .icon { width: 15px; height: 15px; color: #7dd3fc; }
.ts-mof { font-weight: 600; color: #fff; }
@media (max-width: 720px) { .trust-strip { font-size: 12px; } .trust-strip strong { display: none; } .trust-strip .wrap { padding-block: 6px; } }
@media print { .trust-strip { display: none; } }

/* Privacy notice: a readable column, centred, with room for the cookie table */
.privacy-doc { max-width: 880px; margin-inline: auto; font-size: 16px; }
.privacy-doc h3 { font-size: 18px; margin: 22px 0 6px; }
.privacy-doc .table-wrap { margin: 14px 0 18px; }
.privacy-doc td, .privacy-doc th { vertical-align: top; text-align: start; }

/* The menu now has Home too: fold it into the menu button a little earlier so the consultation button is never cut off */
@media (min-width: 1261px) and (max-width: 1400px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 16px; margin: 0; box-shadow: var(--shadow); }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-grid; }
  .top-actions .btn-ghost, .top-actions .login { display: none; }
  .nav-drop > summary { padding: 12px; width: 100%; }
  .drop-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 20px; animation: none; }
  [dir="rtl"] .drop-menu { padding: 0 20px 6px 0; }
}
.privacy-doc td:first-child { white-space: nowrap; }
.privacy-doc td:first-child code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.privacy-doc td:nth-child(3) { white-space: nowrap; }
@media (max-width: 720px) { .privacy-doc td:nth-child(3) { white-space: normal; } }

/* Small phones: a more compact header with room on both sides, and menu rows that stay on one line */
@media (max-width: 400px) {
  .topbar .wrap { padding-inline: 14px; gap: 8px; }
  .top-actions { gap: 6px; }
  .icon-btn { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .nav a, .nav-drop > summary { font-size: 14px; padding: 10px 12px; }
}

/* Photos of a scanned business card on the lead page: thumbnails that open full size when clicked. */
.card-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.card-photos img { display: block; max-width: 280px; max-height: 180px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line, #d0d7e2); }

/* Tag boxes: chips with a cross, and a list of tags already in use. */
.tagbox { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: text; }
.tagbox:focus-within { outline: 2px solid var(--brand, #2563eb); outline-offset: 1px; }
.tagbox-chips { display: contents; }
.tagbox-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .9em; }
.tagbox-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.15em; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.tagbox-x:hover, .tagbox-x:focus-visible { background: var(--line); color: var(--ink); }
.tagbox-input { flex: 1 1 120px; min-width: 100px; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 6px 2px; outline: none; }
.tagbox-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.tagbox-opt { padding: 9px 12px; cursor: pointer; }
.tagbox-opt:hover, .tagbox-opt.on { background: var(--surface-2); }
.qr-print { max-width: 280px; background: #fff; padding: 12px; border: 1px solid var(--line, #ddd); }
.qr-print svg { display: block; width: 100%; height: auto; }
