/* ==========================================================================
   ON Flow v3 — corporate theme layer (owner design, Nov 2026).
   Loaded after onflow.css. The binary ribbon keeps its own colours (primary / ink / sky / ice);
   v3 adds an action blue for buttons and links, a white ruled header with dropdowns,
   Cairo for Arabic, a trust bar and a sticky demo dock.
   ========================================================================== */

body {
	--of-accent: var(--e-global-color-ofaccent, #2F5BFF);
	--of-line: var(--e-global-color-ofline, #DDE3EF);
	--of-line-strong: #C9D2E6;
	--of-r: 10px;
	--of-r-lg: 16px;
	--of-header-h: 72px;
	--of-shadow-sm: 0 1px 2px rgb(11 27 58 / .05), 0 4px 12px -4px rgb(11 27 58 / .10);
	--of-shadow: 0 1px 2px rgb(11 27 58 / .05), 0 20px 50px -18px rgb(11 27 58 / .18);
}

/* Arabic pages: Cairo (owner design). English keeps the kit fonts. */
html:lang(ar) body {
	--of-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
	--of-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
html:lang(ar) .of-hero__title, html:lang(ar) .of-phero__title, html:lang(ar) .of-h2 { font-weight: 800; }

/* -------------------------------------------------------------- Header: white, ruled */
.of-header,
.of-header.is-scrolled {
	background: var(--of-white);
	box-shadow: 0 1px 0 var(--of-line);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.of-header.is-scrolled { box-shadow: 0 1px 0 var(--of-line), 0 8px 24px -16px rgb(11 27 58 / .25); }
.of-header__bar { height: var(--of-header-h); }

.of-nav__list { gap: clamp(4px, 1.2vw, 18px); align-items: center; }
.of-nav__item { position: relative; }
.of-nav__list a,
.of-nav__toggle {
	display: inline-flex; align-items: center; gap: 4px;
	min-height: 44px; padding: 0 10px; border-radius: 8px;
	color: var(--of-navy); font: 600 .97rem/1 var(--of-body); text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.of-nav__list a::after { display: none; }
.of-nav__list a:hover, .of-nav__toggle:hover, .of-nav__item.is-open > .of-nav__toggle { background: var(--of-fog); }
.of-nav__list .current-menu-item > a, .of-nav__item.is-current > .of-nav__toggle { color: var(--of-accent); }
.of-nav__chev { width: 16px; height: 16px; transition: rotate .25s var(--of-ease); }
.of-nav__item.is-open .of-nav__chev { rotate: 180deg; }

.of-sub {
	position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: -8px; z-index: 60;
	min-width: 236px; margin: 0; padding: 8px; list-style: none;
	background: var(--of-white); border: 1px solid var(--of-line); border-radius: 14px;
	box-shadow: 0 18px 40px -16px rgb(11 27 58 / .28);
	opacity: 0; visibility: hidden; translate: 0 -6px;
	transition: opacity .18s ease, translate .22s var(--of-ease), visibility 0s .22s;
}
.of-sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; } /* hover bridge */
.of-nav__item.is-open > .of-sub { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .18s ease, translate .22s var(--of-ease), visibility 0s; }
.of-sub a { display: flex; width: 100%; min-height: 42px; padding: 0 12px; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.of-sub a:hover, .of-sub a[aria-current="page"] { background: var(--of-fog); color: var(--of-accent); }

.of-lang { border: 1px solid var(--of-line-strong); border-radius: var(--of-r); min-height: 44px; }
.of-lang:hover { background: var(--of-fog); }

/* Mobile drawer: two levels as an accordion. */
.of-drawer { background: var(--of-white); }
.of-drawer__list { list-style: none; margin: 0; padding: 0; }
.of-drawer__list > li { border-bottom: 1px solid var(--of-line); }
.of-drawer .of-drawer__list a, .of-drawer .of-drawer__list .of-nav__toggle {
	display: flex; width: 100%; align-items: center; justify-content: space-between;
	min-height: 56px; padding: 0; color: var(--of-navy); text-decoration: none;
	font: 700 1.3rem/1.3 var(--of-display); background: none;
}
.of-drawer .of-drawer__list .of-nav__toggle:hover, .of-drawer .of-drawer__list .is-open > .of-nav__toggle { background: none; }
.of-drawer__list .of-nav__chev { width: 22px; height: 22px; }
.of-drawer__list .of-sub {
	position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; border-radius: 0;
	opacity: 1; visibility: visible; translate: none; display: none; transition: none;
}
.of-drawer__list .of-sub::before { display: none; }
.of-drawer__list .is-open > .of-sub { display: block; }
.of-drawer .of-drawer__list .of-sub a { min-height: 46px; padding-inline: 12px; font: 600 1.05rem/1.3 var(--of-body); color: var(--of-text); }
.of-drawer ul a { border-bottom: 0; }

/* -------------------------------------------------------------- Buttons & links */
.of-btn { --bg: var(--of-accent); --fg: var(--of-white); --sweep: var(--of-navy); border-radius: var(--of-r); font-weight: 700; box-shadow: none; }
.of-btn--primary { --bg: var(--of-accent); --sweep: var(--of-navy); }
.of-btn--ghost { --bg: var(--of-white); --fg: var(--of-navy); --sweep: var(--of-fog); box-shadow: inset 0 0 0 1px var(--of-line-strong); }
.of-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--of-navy); }
.of-btn--light { --bg: var(--of-accent); --fg: var(--of-white); --sweep: #2449D6; }
.of-btn--line { --bg: var(--of-white); --fg: var(--of-navy); --sweep: var(--of-fog); box-shadow: none; }
.of-plan.is-featured .of-btn--primary { --bg: var(--of-accent); --fg: var(--of-white); --sweep: var(--of-navy); }
.of-link { color: var(--of-accent); text-decoration-color: color-mix(in oklab, var(--of-accent) 30%, transparent); }
:focus-visible { outline-color: var(--of-accent); }
.of-field label i { color: var(--of-accent); }

/* Cards: flat white with a hairline border, per the design. */
.of-formcard { box-shadow: 0 0 0 1px var(--of-line); }

/* Product screens: an honest "sample data" tag in the window bar. */
.of-dash__sample {
	flex: none; padding: 2px 8px; border-radius: 99px;
	border: 1px dashed color-mix(in oklab, var(--of-accent) 55%, transparent);
	color: var(--of-accent); font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap;
}

/* -------------------------------------------------------------- Form: four fields first */
.of-more-fields { border: 1px solid var(--of-line); border-radius: var(--of-r); background: var(--of-fog); }
.of-more-fields > summary {
	display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px;
	font-weight: 700; color: var(--of-navy); cursor: pointer; list-style: none;
}
.of-more-fields > summary::-webkit-details-marker { display: none; }
.of-more-fields > summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; color: var(--of-accent); transition: rotate .25s var(--of-ease); }
.of-more-fields[open] > summary::after { rotate: 45deg; }
.of-more-fields__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: 4px 16px 18px; }
.of-more-fields__grid .of-field--wide { grid-column: 1 / -1; }
.of-captcha { min-height: 66px; }
@media (max-width: 760px) { .of-more-fields__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Trust bar */
.of-trust { padding-block: 26px; border-block: 1px solid var(--of-line); background: var(--of-white); }
.of-trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.of-trust__list li {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--of-line-strong); border-radius: 99px; background: var(--of-white);
	color: var(--of-navy); font-weight: 600; font-size: .95rem;
}
.of-trust__list .of-icon { width: 18px; height: 18px; color: var(--of-accent); }

/* -------------------------------------------------------------- Sticky dock: demo + WhatsApp */
.of-dock {
	position: fixed; z-index: 40; inset-inline-end: 20px; bottom: 20px;
	display: flex; align-items: center; gap: 10px;
	opacity: 0; translate: 0 16px; pointer-events: none;
	transition: opacity .3s ease, translate .45s var(--of-ease);
}
html.of-dock-on .of-dock { opacity: 1; translate: 0 0; pointer-events: auto; }
html.of-wa-off .of-dock { opacity: 0; translate: 0 16px; pointer-events: none; }
.of-dock .of-wa { position: static; inset: auto; }
html.of-wa-off .of-dock .of-wa { opacity: 1; translate: none; }
.of-dock .of-wa { background: #128C4B; }
.of-dock .of-wa .of-icon { color: var(--of-white); }
.of-dock .of-wa:hover { background: #0E7A41; }
.of-dock__demo { min-height: 56px; box-shadow: 0 14px 30px -12px rgb(47 91 255 / .65); }
@media (max-width: 760px) {
	.of-dock { inset-inline: 12px; bottom: 12px; }
	.of-dock__demo { flex: 1; }
	.of-dock .of-wa { flex: none; }
}

/* -------------------------------------------------------------- Thank-you page */
.of-thanks { padding-block: calc(var(--of-header-h) + clamp(56px, 8vw, 112px)) clamp(72px, 9vw, 128px); }
.of-thanks__inner { display: grid; gap: 22px; justify-items: start; }
.of-thanks .of-done-check path { animation: of-draw .5s .2s var(--of-ease) forwards; }
.of-thanks__steps { display: grid; gap: 0; width: 100%; margin: 8px 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--of-line); }
.of-thanks__steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--of-line); }
.of-thanks__steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--of-fog); color: var(--of-accent); font-weight: 800; }
.of-thanks__steps b { color: var(--of-navy); }
.of-thanks__steps span { color: var(--of-muted); }

@media (prefers-reduced-motion: reduce) {
	.of-sub, .of-dock, .of-nav__chev { transition: none; }
}

/* -------------------------------------------------------------- Pricing (design: white cards, featured = blue outline) */
/* .of-plans is also the pricing hero art's class; that rule's fixed height must not reach the real plan grid. */
.of-pricing .of-plans { height: auto; perspective: none; }
.of-plan { box-shadow: inset 0 0 0 1px var(--of-line); }
.of-plan.is-featured { background: var(--of-white); color: var(--of-text); box-shadow: inset 0 0 0 2px var(--of-accent), var(--of-shadow); }
.of-plan.is-featured h3, .of-plan.is-featured .of-plan__price, .of-plan.is-featured .of-plan__rows dd { color: var(--of-navy); }
.of-plan.is-featured .of-plan__for, .of-plan.is-featured .of-plan__rows dt, .of-plan.is-featured .of-plan__price small { color: var(--of-muted); }
.of-plan.is-featured .of-plan__rows div { border-color: var(--of-line); }
.of-plan__badge { background: var(--of-accent); color: var(--of-white); }
.of-plan .of-btn--ghost { box-shadow: inset 0 0 0 1px var(--of-line-strong); }

/* English hero: the Alexandria headline ran under the product window at desktop widths (pre-v3 bug). */
html:lang(en) .of-hero__title { font-size: clamp(2.4rem, 4.3vw, 4rem); }

/* Numbers band: no moving binary digits behind the figures (owner, 2026-11-16). The ribbon keeps its digits. */
.of-stats::before { content: none; display: none; animation: none; }
