/* Vision CIT website - design system.
   Logical properties everywhere (margin-inline, inset-inline...) so Arabic/RTL mirrors without a second stylesheet.
   Dark navy hero + light/dark content theme; brand = indigo -> teal gradient with a warm amber accent. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --ink: #0b1220;
  --ink-2: #4a5568;
  --ink-3: #7b8799;
  --line: #e4e8f1;
  --brand: #2458b8;
  --brand-ink: #17346a;
  --brand-2: #3fa9f5;
  --logo: #17346a;
  --warm: #ffb454;
  --danger: #e5484d;
  --ok: #12a37a;
  --grad: linear-gradient(120deg, #17346a 0%, #2f74e0 100%);
  --hero-bg: #061230;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 3px rgba(11, 18, 32, .06);
  --shadow: 0 10px 30px -12px rgba(23, 33, 74, .25);
  --shadow-lg: 0 30px 60px -24px rgba(23, 33, 74, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b16;
  --bg-soft: #0b1120;
  --card: #0f1730;
  --ink: #eaf0ff;
  --ink-2: #a3afc9;
  --ink-3: #7384a3;
  --line: #1c2745;
  --brand: #6f9bff;
  --brand-ink: #9db9ff;
  --logo: #ffffff;
  --grad: linear-gradient(120deg, #2458b8 0%, #4a90f5 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b16; --bg-soft: #0b1120; --card: #0f1730; --ink: #eaf0ff; --ink-2: #a3afc9; --ink-3: #7384a3; --line: #1c2745; --brand: #6f9bff; --brand-ink: #9db9ff; --logo: #ffffff; --grad: linear-gradient(120deg, #2458b8 0%, #4a90f5 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--ink-2); font-size: 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(36, 88, 184, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(36, 88, 184, .8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-light { background: #fff; color: #0b1220; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(255, 255, 255, .5); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; color: #fff; }
.nav.solid, .nav.always-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: inherit; letter-spacing: -.02em; text-decoration: none !important; }
.brand .mark { width: 38px; height: 28px; color: #fff; flex: none; }
.nav.solid .brand .mark, .nav.always-solid .brand .mark { color: var(--logo); }
.footer .brand .mark { color: #fff; }
.wordmark { font-family: "Poppins", var(--font); font-weight: 800; letter-spacing: .02em; font-size: 22px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 8px; flex: 1; }
.nav-links a { color: inherit; opacity: .85; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none !important; }
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(127, 140, 170, .16); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(127, 140, 170, .35); background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.icon-btn:hover { background: rgba(127, 140, 170, .18); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; } :root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sun { display: block; } :root:not([data-theme="light"]) .moon { display: none; } }
@media (max-width: 960px) {
  .burger { display: inline-grid; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; background: var(--bg); color: var(--ink); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-radius: 8px; font-size: 17px; }
  .nav-actions .btn-trial { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--hero-bg); color: #fff; padding: calc(var(--nav-h) + 56px) 0 96px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 500px at 15% 10%, rgba(47, 116, 224, .45), transparent 60%),
  radial-gradient(700px 480px at 90% 30%, rgba(63, 169, 245, .28), transparent 60%),
  radial-gradient(600px 400px at 60% 100%, rgba(255, 180, 84, .16), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: rgba(234, 240, 255, .78); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(234, 240, 255, .7); font-size: 14px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--brand-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(20, 200, 184, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(20, 200, 184, 0); } }
.page-hero { background: var(--hero-bg); color: #fff; padding: calc(var(--nav-h) + 48px) 0 56px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 20% 0%, rgba(47, 116, 224, .45), transparent 60%), radial-gradient(600px 360px at 85% 20%, rgba(63, 169, 245, .26), transparent 60%); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); }
.page-hero p { color: rgba(234, 240, 255, .78); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* hero product mock (pure CSS - no stock imagery) */
.mock { position: relative; perspective: 1400px; }
.mock-win { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 16px; backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotateY(-8deg) rotateX(4deg); transition: transform .4s ease; }
[dir="rtl"] .mock-win { transform: rotateY(8deg) rotateX(4deg); }
.mock:hover .mock-win { transform: none; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock-bar b { margin-inline-start: auto; font-size: 11px; font-weight: 600; opacity: .6; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; }
.kpi small { display: block; font-size: 11px; opacity: .65; }
.kpi strong { font-size: 20px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11px; color: var(--brand-2); margin-inline-start: 4px; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.mock-chart { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.mock-chart span:nth-child(odd) { opacity: .75; }
@keyframes grow { from { transform: scaleY(0); } }
.mock-donut { background: rgba(255, 255, 255, .07); border-radius: 12px; display: grid; place-items: center; }
.donut { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--brand) 0 46%, var(--brand-2) 0 78%, var(--warm) 0 100%); display: grid; place-items: center; animation: spin-in 1.4s ease both; }
.donut::after { content: ""; width: 60px; height: 60px; background: #0c1330; border-radius: 50%; }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
.mock-list { margin-top: 10px; display: grid; gap: 6px; }
.mock-list div { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .05); padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chip.ok { background: rgba(20, 200, 184, .18); color: #4be3d5; }
.chip.warn { background: rgba(255, 180, 84, .18); color: #ffc680; }
.float { position: absolute; background: #fff; color: #0b1220; border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); display: flex; align-items: center; gap: 10px; animation: bob 5s ease-in-out infinite; }
.float svg { width: 20px; height: 20px; }
.float.a { top: -14px; inset-inline-end: -10px; }
.float.b { bottom: 24px; inset-inline-start: -26px; animation-delay: -2s; }
.float .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(20, 200, 184, .16); color: #0a8a7d; }
.float .dot.v { background: rgba(79, 91, 255, .14); color: var(--brand-ink); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { max-width: 560px; margin-inline: auto; }
  .float.b { inset-inline-start: 0; }
}

/* ---------- trust strip ---------- */
.trust { padding: 36px 0; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; color: var(--ink-3); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
html[lang="ar"] .trust p { letter-spacing: 0; text-transform: none; font-size: 14px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.logo-chip { font-weight: 800; font-size: 18px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; opacity: .85; transition: .2s; }
.logo-chip:hover { color: var(--ink); opacity: 1; }
.logo-chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent); color: var(--accent, var(--brand)); }
.ico svg { width: 24px; height: 24px; }
.product-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; color: inherit; position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--accent); }
.product-card .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent); color: var(--accent, var(--brand)); }
.tag.soon { background: rgba(255, 180, 84, .18); color: #b86e00; }
:root[data-theme="dark"] .tag.soon { color: #ffc680; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 800; }
.stat span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* module explorer (tabs) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 10px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; transition: .2s; }
.tab:hover { border-color: var(--brand); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(36, 88, 184, .7); }
.panel { display: none; }
.panel.active { display: grid; animation: fadeUp .4s ease both; }
.explorer { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.explorer h3 { font-size: 28px; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.7 7.7l-5.5 5.5a1 1 0 01-1.4 0L5.3 10.7a1 1 0 111.4-1.4l1.8 1.8 4.8-4.8a1 1 0 111.4 1.4z'/%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 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.7 7.7l-5.5 5.5a1 1 0 01-1.4 0L5.3 10.7a1 1 0 111.4-1.4l1.8 1.8 4.8-4.8a1 1 0 111.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.module-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.module { padding: 10px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; transition: .2s; }
.module::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--brand)); }
.module:hover { transform: translateY(-2px); border-color: var(--accent, var(--brand)); }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-inline-start: 0; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px; box-shadow: 0 10px 22px -10px rgba(36, 88, 184, .8); }

/* testimonial */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; font-weight: 600; margin: 0 0 24px; letter-spacing: -.01em; }
.quote cite { font-style: normal; color: var(--ink-2); }
.quote cite b { color: var(--ink); display: block; }

/* CTA band */
.cta-band { background: var(--hero-bg); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 20% 0%, rgba(47, 116, 224, .55), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(63, 169, 245, .35), transparent 60%); }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: rgba(234, 240, 255, .78); max-width: 560px; margin: 0 auto 24px; font-size: 18px; }

/* ---------- pricing ---------- */
.switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.switch button { border: 0; background: transparent; color: var(--ink-2); padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: .2s; }
.switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.cycle-pill { display: inline-block; padding: 9px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: .2s; }
input:checked + .cycle-pill { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
input:focus-visible + .cycle-pill { outline: 3px solid var(--brand); outline-offset: 2px; }
.save { color: var(--ok); font-size: 12px; font-weight: 700; margin-inline-start: 6px; }
.price-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-bottom: 36px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: .25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan.match { box-shadow: 0 0 0 3px var(--brand-2), var(--shadow); transform: translateY(-6px); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .sub { color: var(--ink-2); font-size: 14px; min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price strong { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-2); }
.price-note { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; min-height: 20px; }
.plan .checks { margin: 6px 0 26px; flex: 1; }
.contact-price { font-size: 30px; font-weight: 800; margin: 14px 0 4px; }
.finder { max-width: 760px; margin: 0 auto 44px; padding: 24px 28px; border: 1px dashed var(--brand); border-radius: 18px; background: color-mix(in srgb, var(--brand) 5%, var(--card)); display: grid; gap: 10px; }
.finder label { font-weight: 700; display: flex; justify-content: space-between; }
.finder output { color: var(--brand-ink); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.finder .hint { color: var(--ink-2); font-size: 14px; margin: 0; min-height: 22px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--bg-soft); font-weight: 700; }
.compare td.y { color: var(--ok); font-weight: 700; } .compare td.n { color: var(--ink-3); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: .2s; }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* ---------- forms ---------- */
.form-shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.input { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
.field-error, .field .input.input-validation-error + .field-error { color: var(--danger); font-size: 13px; }
.input.input-validation-error { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.alert.err { background: color-mix(in srgb, var(--danger) 10%, var(--card)); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--danger); }
.alert.ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.alert.info { background: color-mix(in srgb, var(--brand) 8%, var(--card)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); color: var(--ink); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 64px; }
.pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand-ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 8px; }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.meter-label { font-size: 12px; color: var(--ink-3); min-height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.summary h3 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 12px; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row span { color: var(--ink-2); }
.sum-total { font-size: 28px; font-weight: 800; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; margin-top: 14px; }
.secure svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* payment method tiles */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay label { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: .2s; font-weight: 700; height: 100%; }
.pay label small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.pay input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.pay input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.pay.disabled label { opacity: .45; }

/* ---------- account ---------- */
.acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .acct-grid { grid-template-columns: 1fr; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.status.trial { background: rgba(255, 180, 84, .18); color: #a85f00; } .status.active { background: rgba(18, 163, 122, .16); color: var(--ok); } .status.expired, .status.cancelled { background: rgba(229, 72, 77, .14); color: var(--danger); }
:root[data-theme="dark"] .status.trial { color: #ffc680; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.app-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.app-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; color: var(--ink); background: var(--bg); font-weight: 700; transition: .2s; }
.app-link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.app-link.off { opacity: .45; pointer-events: none; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 10px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--ink-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .data-table th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.center-box { max-width: 480px; margin: 0 auto; text-align: center; }
.big-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; }
.big-ico svg { width: 40px; height: 40px; }
.big-ico.ok { background: rgba(18, 163, 122, .14); color: var(--ok); } .big-ico.bad { background: rgba(229, 72, 77, .14); color: var(--danger); } .big-ico.wait { background: rgba(255, 180, 84, .18); color: #b86e00; }
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--hero-bg); color: rgba(234, 240, 255, .75); padding: 64px 0 28px; }
.footer a { color: rgba(234, 240, 255, .75); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }
.dir-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media print { .nav, .footer, .wa { display: none; } }

/* transparent nav sits on the dark hero: ghost button must be light until the nav turns solid */
.nav:not(.solid):not(.always-solid) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.nav:not(.solid):not(.always-solid) .btn-ghost:hover { border-color: #fff; color: #fff; }
.nav .btn-ghost { padding: 9px 18px; }
.nav .btn-primary { padding: 9px 20px; }

/* the brand gradient starts at logo navy, which vanishes on the navy hero - use a lighter ramp on dark surfaces */
.hero .grad-text, .page-hero .grad-text, .cta-band .grad-text { background-image: linear-gradient(120deg, #9cc2ff 0%, #5fd0ff 100%); }
.mock-chart span { background: linear-gradient(180deg, #7db1ff, #2f74e0); }
.donut { background: conic-gradient(#4a90f5 0 46%, #5fd0ff 0 78%, #ffb454 0 100%); }
.pill i { background: #5fd0ff; box-shadow: 0 0 0 4px rgba(95, 208, 255, .25); }
.hero-badges svg { color: #5fd0ff; }


/* =====================================================================================================================
   v2 (Arabic-first redesign). Typeface: IBM Plex Sans Arabic (enterprise-grade, Latin glyphs designed to match). One accent (brand blue),
   one radius scale (16 cards / 10 controls / pill buttons). Real product screenshots instead of drawn mock-ups.
   ===================================================================================================================== */
body { font-feature-settings: "kern", "liga"; }
html[lang="ar"] body { line-height: 1.9; font-size: 17px; }
html[lang="ar"] h1 { font-weight: 700; line-height: 1.32; }
html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.4; }
.wordmark { font-family: "Poppins", var(--font); }
.announce { background: var(--brand-ink); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; position: relative; z-index: 101; }
.announce a { color: #fff; text-decoration: underline; margin-inline-start: 10px; font-weight: 600; }

/* hero */
.hero2 { padding-bottom: 72px; }
.hero2 .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; }
.hero2 h1 { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 18px; }
.hero2 .lead { max-width: 520px; }
.shots { position: relative; padding-bottom: 36px; }
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12); }
.browser-bar { display: flex; align-items: center; padding: 9px 14px; background: #eef1f7; color: #5b6578; font-size: 12px; direction: ltr; }
.browser-bar b { font-weight: 600; margin-inline: auto; }
.browser img { display: block; width: 100%; height: auto; }
.shots .browser.back { position: absolute; width: 56%; inset-inline-end: -4%; bottom: 0; transform: translateY(8px); border-radius: 12px; }
.shots .browser.main { width: 88%; }
[dir="rtl"] .shots .browser.main { margin-inline-start: auto; }
@media (max-width: 960px) { .hero2 .hero-grid { grid-template-columns: 1fr; } .shots { max-width: 640px; margin-inline: auto; } }
@media (max-width: 560px) { .shots .browser.back { display: none; } .shots .browser.main { width: 100%; } }

/* proof strip */
.proof { padding: 28px 0 8px; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip2 { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin-top: 26px; }
.logo-wall span { font-weight: 700; font-size: 19px; color: var(--ink-3); transition: color .2s; }
.logo-wall span:hover { color: var(--ink); }
.logo-wall img { height: 34px; width: auto; opacity: .7; filter: grayscale(1); }

/* bento products */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent, var(--brand)) 45%, var(--line)); }
.tile h3 { font-size: 22px; margin: 8px 0 2px; }
.tile p { color: var(--ink-2); margin: 0; font-size: 15px; }
.tile .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--accent, var(--brand-ink)); display: inline-flex; gap: 6px; align-items: center; }
.tile.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card) 60%); }
.tile.wide { grid-column: span 2; }
.tile.dark { background: var(--hero-bg); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(234, 240, 255, .78); } .tile.dark .more { color: #fff; }
.tile .shot { margin-top: 14px; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; margin-bottom: -26px; box-shadow: var(--shadow-sm); }
.tile .shot img { width: 100%; height: auto; display: block; }
.tile.big .shot { margin-top: auto; }
.pico { width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pico img { width: 36px; height: 36px; object-fit: contain; }
.pico svg { width: 26px; height: 26px; color: var(--accent, var(--brand)); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.big, .tile.wide { grid-column: auto; } }

/* why (sticky statement + ruled list) */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-lead { position: sticky; top: calc(var(--nav-h) + 24px); }
.why-lead h2 { font-size: clamp(28px, 3.4vw, 42px); }
.why-list { display: grid; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-item h3 { font-size: 20px; margin-bottom: 6px; } .why-item p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 28px; } .why-lead { position: static; } }

/* showcase */
.showcase-frame { max-width: 1040px; margin: 0 auto; }
.showcase-frame .browser { box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.showcase-meta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 22px; }
@media (max-width: 700px) { .showcase-meta { grid-template-columns: 1fr; } }
.panel.show { display: none; } .panel.show.active { display: block; animation: fadeUp .4s ease both; }

/* industries */
.ind { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.ind-item { padding: 30px 8px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ind-item:nth-child(odd) { padding-inline-end: 40px; border-inline-end: 1px solid var(--line); }
.ind-item:nth-child(even) { padding-inline-start: 40px; }
.ind-item h3 { font-size: 22px; margin: 0; } .ind-item p { color: var(--ink-2); margin: 0; }
.ind-item .use { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 760px) { .ind { grid-template-columns: 1fr; } .ind-item:nth-child(odd), .ind-item:nth-child(even) { padding-inline: 0; border-inline-end: 0; } }

/* timeline */
.timeline { max-width: 760px; margin-inline: auto; position: relative; display: grid; gap: 34px; counter-reset: t; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 12%, transparent)); }
.tstep { position: relative; padding-inline-start: 70px; }
.tstep::before { counter-increment: t; content: counter(t); position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 6px var(--bg); }
.section.soft .tstep::before { box-shadow: 0 0 0 6px var(--bg-soft); }
.tstep h3 { font-size: 21px; margin-bottom: 4px; } .tstep p { color: var(--ink-2); margin: 0; }

/* price rows (home) */
.price-rows { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 64px 1.1fr 1.4fr auto; gap: 22px; align-items: center; padding: 24px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none !important; transition: background .2s; }
.prow:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.prow h3 { margin: 0; font-size: 20px; } .prow p { margin: 0; color: var(--ink-2); font-size: 15px; }
.prow .from { font-size: 14px; color: var(--ink-3); } .prow .from b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .prow { grid-template-columns: 56px 1fr; } .prow .from { grid-column: 2; } .prow .btn { grid-column: 2; justify-self: start; } .prow > p { grid-column: 2; } }

/* quote */
.quote-big { max-width: 880px; margin-inline: auto; }
.quote-big blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.6; font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] .quote-big blockquote { line-height: 1.85; letter-spacing: 0; }
.quote-big figcaption { margin-top: 22px; color: var(--ink-2); } .quote-big figcaption b { color: var(--ink); display: block; }

/* pay + trust */
.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pay-strip .chip2 { background: var(--bg-soft); }

/* consent + social + footer bits */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin-inline: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; } .consent div { display: flex; gap: 8px; }
.consent .btn { padding: 8px 18px; }
.footer .social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.footer-note { font-size: 13px; opacity: .8; }
.footer-bottom span a + a { margin-inline-start: 16px; }
.left-align { text-align: start; }
.product-hero-shot { max-width: 980px; margin: 40px auto 0; }
.product-hero-shot .browser { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }

/* ---- billing period dropdown + coupon (plan cards, signup, checkout) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.period-select { font-weight: 600; padding-inline: 12px; margin: 4px 0 6px; cursor: pointer; text-overflow: ellipsis; }
.plan .price { margin-top: 10px; }
.plan .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; min-height: 26px; }
.save-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: color-mix(in srgb, #ffb454 22%, var(--card)); color: #8a5300; }
:root[data-theme="dark"] .save-badge { color: #ffd08c; }
.save-badge[hidden] { display: none; }
.coupon-badge { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
.trust-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); }
.coupon { display: flex; gap: 8px; align-items: stretch; }
.coupon .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.coupon .input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon .btn { padding: 10px 18px; flex: none; }
.coupon-msg { min-height: 20px; margin: 6px 0 12px; }
.coupon-msg.ok { color: var(--ok); } .coupon-msg.bad { color: var(--danger); }
.plan .checks { margin-bottom: 14px; }
.plan .btn-block { margin-top: auto; }
.sum-row b.good { color: var(--ok); }
.sum-row[hidden] { display: none; }
.sum-row b { white-space: nowrap; flex: none; }
.sum-row [data-s=creditdays] { display: block; color: var(--ink-3, var(--ink-2)); font-size: 12px; }
.sum-row span { min-width: 0; }
@media (max-width: 480px) { .summary-inline .sum-total { font-size: 22px; } }
.summary-inline.is-refused .sum-row, .summary-inline.is-refused .charge-note { display: none; }
.summary-inline [data-s=refuse] { margin: 10px 0; }
.summary-inline { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; margin: 4px 0 16px; background: var(--bg-soft); }

/* ---------- plan usage meters (account page) ---------- */
.usage-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.usage-name { font-weight: 600; flex: 1 1 0; min-width: 0; }
.usage-num { font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
@media (max-width: 480px) { .usage-name small { display: block; font-weight: 400; } .usage-dot { display: none; } }
.usage-meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.usage-meter i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.usage-meter.warn i { background: #d9890b; }
.usage-meter.bad i { background: var(--danger); }
.usage-msg { margin: 4px 0 0; font-weight: 600; }
.usage-msg.warn { color: #a85f00; } .usage-msg.bad { color: var(--danger); }
:root[data-theme="dark"] .usage-msg.warn { color: #ffc680; }

/* ---- country selector (header) + charge-currency note ---- */
.country-form { margin: 0; display: inline-flex; }
.country-sel { appearance: none; -webkit-appearance: none; height: 40px; min-width: 76px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(127, 140, 170, .35); background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; text-align-last: center; direction: ltr; }
.country-sel:hover { background: rgba(127, 140, 170, .18); }
.country-sel:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.country-sel option { color: var(--ink); background: var(--card); }
.charge-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--card)); color: var(--ink-2); line-height: 1.5; }
.usage-enf { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.usage-enf svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .nav-actions { gap: 6px; } .country-sel { min-width: 64px; padding: 0 8px; } }
.acct-grid > * { min-width: 0; }
.acct-grid > .grid { grid-template-columns: minmax(0, 1fr); } .table-wrap { overflow-x: auto; max-width: 100%; }
@media (max-width: 480px) { .nav .container { gap: 8px; } .nav-actions { gap: 4px; } .nav-actions .icon-btn { width: 34px; height: 34px; } .nav-actions .btn { padding: 8px 10px; font-size: 13px; } .country-sel { height: 34px; min-width: 56px; font-size: 12px; padding: 0 6px; } .nav .brand .wordmark { display: none; } }

/* ---- services marketplace + "my services" (spec 03) ---- */
.plan[hidden], .svc-card[hidden] { display: none; }
[data-filter-empty][hidden] { display: none; }
.price-tools { flex-direction: column; gap: 14px; }
.price-tools .tabs { margin-bottom: 0; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.svc-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand-ink); }
.svc-tag.alt { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.svc-desc { margin: 0 0 10px; }
.svc-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.svc-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.my-svc { display: grid; gap: 14px; margin-top: 14px; }
.my-svc-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg); }
.my-svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.my-svc-head h4 { margin: 0; font-size: 16px; }
.my-svc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 2px; }
.my-svc-tickets { margin-top: 10px; font-size: 14px; }
.my-svc-tickets summary { cursor: pointer; font-weight: 600; }
.my-svc-tickets ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.my-svc-tickets li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 6px; }
.tk-st { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.tk-st.done { background: rgba(18, 163, 122, .16); color: var(--ok); } .tk-st.open { background: rgba(255, 180, 84, .2); color: #a85f00; } .tk-st.inprogress { background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand-ink); }
:root[data-theme="dark"] .tk-st.open { color: #ffc680; }
.add-svc { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.add-svc > summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.add-svc form { margin-top: 14px; }
@media (max-width: 480px) { .my-svc-head { flex-direction: column; } }
.svc-card .contact-price { font-size: 22px; }
.svc-card .contact-price + .price-note { margin-bottom: 14px; }
.verify-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.verify-banner .small { display: block; margin-top: 4px; }
.sso-open { margin-top: 14px; }

/* draft banner on Terms / Privacy */
.legal-draft { margin: 18px 0 8px; }
.legal-draft .small { display: block; margin-top: 4px; }

/* Phones: the floating WhatsApp button must not sit on top of footer text or the last form field. */
@media (max-width: 640px) {
  .wa { width: 48px; height: 48px; inset-inline-end: 14px; bottom: 14px; }
  .footer { padding-bottom: 88px; }
  .plan select, .plan-period select { text-overflow: ellipsis; }
}

/* Header: on phones .nav-links leaves the flow (it becomes the slide-down menu), so the actions must push themselves to the end of the row (right in LTR, left in RTL). */
.nav-actions { margin-inline-start: auto; }
