/* Nava 2.0 — public site design system.
   RTL-first, no external CDN, no framework. Compatible with Safari/iPadOS 15:
   no :has(), no container queries, no color-mix(), no dvh, prefixed backdrop-filter. */

/* IBM Plex Sans Arabic (SIL OFL 1.1, fonts/LICENSE-IBM-Plex.txt), subset to Persian and basic Latin in two weights:
   500 falls back to 400, so nothing is synthesised. Both Persian weights are preloaded to keep text from reflowing. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-fa-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+2010-2011, U+2039-203A, U+FD3E-FD3F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-en-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-fa-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+2010-2011, U+2039-203A, U+FD3E-FD3F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-en-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }

:root {
  --navy: #071426;
  --navy-2: #0D1F38;
  --navy-3: #16304F;
  --primary: #315EFB;
  --primary-hover: #2449D6;
  --primary-soft: #E8EEFF;
  --teal: #2BC6CC;
  --teal-ink: #0B7A80;
  --teal-soft: #E3F7F8;
  --gold: #D8B777;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ink: #122036;
  --ink-2: #33415A;
  --muted: #52607A;
  --line: #DCE3EE;
  --line-strong: #C5CFDE;
  --on-dark: #EEF3FB;
  --on-dark-muted: #A9B7CF;
  --success: #0F7A4F;
  --success-soft: #E4F5EC;
  --warning: #8A5A00;
  --warning-soft: #FFF3D6;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(7, 20, 38, .06), 0 1px 1px rgba(7, 20, 38, .04);
  --shadow-2: 0 10px 30px -12px rgba(7, 20, 38, .22);
  --shadow-3: 0 24px 60px -24px rgba(7, 20, 38, .35);
  --font: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-en: "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.7; }
img, svg, video, audio, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: 0; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: clamp(30px, 2.6vw + 16px, 50px); }
h2 { font-size: clamp(26px, 1.4vw + 18px, 36px); }
h3 { font-size: clamp(19px, .4vw + 17px, 22px); font-weight: 700; }
p { margin: 0 0 1em; }
.ltr, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
/* No tabular figures: they also widen the Persian thousands separator (٬). */
.num { font-variant-numeric: normal; white-space: nowrap; }
.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; }

/* Focus: visible on keyboard; Safari < 15.4 keeps the plain :focus outline. */
:focus { outline: 3px solid rgba(49, 94, 251, .45); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 6vw, 104px); }
.section--tight { padding-block: clamp(40px, 4vw, 64px); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--teal-ink);
  margin-bottom: 14px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--teal); }
.lead { font-size: clamp(17px, .4vw + 15px, 19px); color: var(--muted); max-width: 64ch; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons: 44px minimum touch target; the primary action colour never changes. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(49, 94, 251, .8); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost-dark { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header: brand, five calm links in the middle, sign-in and one action at the end. */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(197, 207, 222, .55);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .site-header { background: #fff; } }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 36px; height: 36px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name strong { font-size: 21px; font-weight: 700; }
.brand__name small { font-size: 12px; color: var(--muted); font-family: var(--font-en); letter-spacing: .04em; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__menu > summary {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer;
  transition: color .2s var(--ease);
}
.nav__link::after, .nav__menu > summary::before {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__menu > summary:hover, .nav__menu[open] > summary { color: var(--ink); }
.nav__link[aria-current="page"], .nav__menu > summary[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav__link[aria-current="page"]::after, .nav__menu > summary[aria-current="page"]::before { transform: scaleX(1); }
.nav__menu { position: relative; }
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .2s var(--ease); }
.nav__menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; transform: translateX(50%); z-index: 60;
  width: max-content; min-width: 300px; max-width: 600px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); padding: 10px;
}
[dir="ltr"] .nav__dropdown { transform: translateX(-50%); }
.nav__dropdown--wide { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 2px; }
.nav__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.nav__item:hover, .nav__item[aria-current="page"] { background: var(--bg); color: var(--ink); }
.nav__item b { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.nav__item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 2px; }
.nav__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.nav__icon svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; }
.header-login:hover { color: var(--primary); }
.header-actions .btn--primary { min-height: 42px; padding: 8px 18px; font-size: 15px; border-radius: 10px; box-shadow: none; }
.lang-link { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: inherit; text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav, .header-login { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-inline-start: auto; gap: 8px; }
  .nav-toggle > summary {
    list-style: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; background: #fff; color: var(--ink);
  }
  .nav-toggle > summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] > summary .icon--open, .nav-toggle:not([open]) > summary .icon--close { display: none; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .nav-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
  .nav-group > summary::-webkit-details-marker { display: none; }
  .nav-group > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .55; transition: transform .2s var(--ease); }
  .nav-group[open] > summary::after { transform: rotate(-135deg); }
  .nav-toggle__panel .nav-group > a:not(.btn) { padding-inline-start: 16px; font-size: 15px; color: var(--ink-2); }
  .nav-toggle__panel {
    position: absolute; inset-inline: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); padding: 8px var(--gutter) 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-toggle__panel a:not(.btn) { display: flex; align-items: center; min-height: 50px; padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
  .nav-toggle__panel .group-title { font-size: 13px; color: var(--muted); margin: 18px 0 2px; font-weight: 700; }
  .nav-toggle__panel .btn { margin-top: 18px; }
  .nav-toggle__panel .lang-link { justify-content: center; border-bottom: 0; color: var(--muted); }
}
@media (min-width: 1081px) { .nav-toggle { display: none !important; } }
@media (max-width: 420px) { .header-actions .btn--primary { padding-inline: 14px; } }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(49, 94, 251, .28), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(43, 198, 204, .14), transparent 60%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding-block: clamp(40px, 6vw, 88px);
}
@media (min-width: 992px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal); }
.hero__lead { font-size: 18px; color: var(--on-dark-muted); max-width: 58ch; margin-bottom: 26px; }
.hero__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
@media (max-width: 559px) { .hero__points { display: none; } } /* the scenario right below shows the same points */
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); font-size: 16px; }
.hero__points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: rgba(43, 198, 204, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232BC6CC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn--secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero__note { font-size: 13.5px; color: var(--on-dark-muted); margin-top: 12px; }

/* Scenario preview (animated explanation of the product loop). Fully readable without motion. */
.scenario { position: relative; -webkit-perspective: 1400px; perspective: 1400px; }
.scenario__stage {
  position: relative; border-radius: var(--radius-lg); padding: 18px;
  background: linear-gradient(180deg, rgba(22, 48, 79, .92), rgba(13, 31, 56, .96));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-3);
  -webkit-transform: rotateY(-6deg) rotateX(3deg); transform: rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
html[dir="ltr"] .scenario__stage { -webkit-transform: rotateY(6deg) rotateX(3deg); transform: rotateY(6deg) rotateX(3deg); }
.scenario:hover .scenario__stage { -webkit-transform: rotateY(0) rotateX(0); transform: rotateY(0) rotateX(0); }
.scenario__label { position: absolute; top: -12px; inset-inline-start: 18px; z-index: 2; font-size: 13px; font-weight: 700; background: var(--teal); color: var(--navy); border-radius: 999px; padding: 3px 12px; }
.scenario__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--on-dark-muted); font-size: 13px; margin-bottom: 14px; }
.scenario__dots { display: flex; gap: 6px; direction: ltr; }
.scenario__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.scenario__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .scenario__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.s-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 14px; color: var(--on-dark); }
.s-card h4 { color: #fff; font-size: 14px; margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.s-card p, .s-card li { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.8; margin: 0; }
.s-call { display: flex; align-items: center; gap: 12px; }
.s-call__ring { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(43, 198, 204, .16); display: grid; place-items: center; }
.s-call__ring svg { width: 22px; height: 22px; color: var(--teal); }
.s-call__ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(43, 198, 204, .5); opacity: 0; }
.s-wave { display: flex; align-items: center; gap: 3px; height: 26px; direction: ltr; margin-top: 10px; }
.s-wave i { width: 3px; border-radius: 3px; background: var(--teal); height: 30%; opacity: .85; }
.s-record dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.s-record dt { color: var(--on-dark-muted); }
.s-record dd { margin: 0; color: #fff; }
.s-summary li { position: relative; padding-inline-start: 16px; }
.s-summary li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.s-summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.s-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-task b { color: #fff; font-size: 14px; }
.s-chip { font-size: 13px; border-radius: 999px; padding: 2px 10px; background: rgba(49, 94, 251, .25); color: #DCE5FF; white-space: nowrap; }
.scenario__caption { font-size: 13px; color: var(--on-dark-muted); margin-top: 14px; text-align: center; }

/* Every card is always visible; motion only moves the highlight through the four steps (12 s loop). */
.s-card { transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.s-card.is-active { border-color: rgba(43, 198, 204, .65); box-shadow: 0 0 0 1px rgba(43, 198, 204, .35), 0 12px 30px -16px rgba(43, 198, 204, .55); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.s-card h4::before { content: attr(data-n); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-family: var(--font-en); background: rgba(255, 255, 255, .1); color: var(--on-dark-muted); }
.s-card.is-active h4::before { background: var(--teal); color: var(--navy); }
.scenario__progress { display: flex; gap: 6px; margin-top: 14px; }
.scenario__progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.scenario__progress i.done { background: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .scenario.is-playing .s-call__ring::after { -webkit-animation: ring 1.6s var(--ease) infinite; animation: ring 1.6s var(--ease) infinite; }
  .scenario.is-playing .s-wave i { -webkit-animation: wave 1.1s ease-in-out infinite; animation: wave 1.1s ease-in-out infinite; }
  .scenario.is-playing .s-wave i:nth-child(2n) { -webkit-animation-delay: -.3s; animation-delay: -.3s; }
  .scenario.is-playing .s-wave i:nth-child(3n) { -webkit-animation-delay: -.6s; animation-delay: -.6s; }
  .scenario.is-paused * { -webkit-animation-play-state: paused !important; animation-play-state: paused !important; }
}
@keyframes ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }
@-webkit-keyframes ring { 0% { opacity: .9; -webkit-transform: scale(.9); } 100% { opacity: 0; -webkit-transform: scale(1.35); } }
@-webkit-keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }

/* Generic grids and cards */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2vw, 28px);
  box-shadow: var(--shadow-1); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { border-color: rgba(49, 94, 251, .45); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }
.card__icon--teal { background: var(--teal-soft); color: var(--teal-ink); }
.card__more { display: inline-flex; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--primary); }
.card__output { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.card__output b { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; line-height: 1.6; }
.badge--ready { background: var(--success-soft); color: var(--success); }
.badge--prereq { background: var(--warning-soft); color: var(--warning); }
.badge--roadmap { background: #EEF0F6; color: var(--muted); }
.badge--info { background: var(--primary-soft); color: var(--primary); }
.badge--preview { background: #FBF4E4; color: #7A5A12; }

.integ-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .integ-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .integ-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.integ-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.integ-list b { flex: 1; min-width: 0; font-size: 16px; }
.integ-list__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.integ-list__icon svg { width: 20px; height: 20px; }
.more-link { margin: 20px 0 0; font-weight: 700; }
/* Demo form: the four product choices sit two across on phones too, titles only. */
@media (max-width: 639px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .choice-grid .card { padding: 12px !important; font-size: 15px; line-height: 1.6; }
  .choice-grid small, .choice-grid br { display: none; }
}
/* Optional fields folded under one line (contact form). */
.optional-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.optional-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 700; color: var(--ink-2); }
.optional-group > summary::-webkit-details-marker { display: none; }
.optional-group > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; transition: transform .2s var(--ease); }
.optional-group[open] > summary::after { transform: rotate(-135deg); }
.optional-group > .form { padding: 0 16px 14px; }
.cta-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hero .cta-note, .cta-band .cta-note { color: var(--on-dark-muted); }

/* Product loop (call -> record -> summary -> task) */
.flow { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: flow; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow__step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: flow; }
.flow__step::before { content: counter(flow); position: absolute; top: 18px; inset-inline-end: 18px; font-family: var(--font-en); font-weight: 800; font-size: 13px; color: var(--primary); background: var(--primary-soft); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.flow__step h3 { font-size: 18px; margin-bottom: 6px; padding-inline-end: 36px; }
.flow__step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.flow__out { margin-top: 14px; font-size: 13.5px; background: var(--bg); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 767px) { .flow__step { padding: 18px; } .flow__out { margin-top: 10px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 700; color: var(--teal-ink); } }

/* Audio sample */
.audio-block { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .audio-block { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; } }
.audio-cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: radial-gradient(70% 70% at 50% 40%, var(--navy-3), var(--navy)); display: grid; place-items: center; }
.audio-cover img { width: 100%; height: 100%; object-fit: cover; }
.audio-cover__mark { width: 46%; max-width: 220px; }
.audio-player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }
.audio-player audio { width: 100%; height: 44px; }
.audio-wave { display: flex; align-items: center; gap: 4px; height: 40px; direction: ltr; margin: 12px 0 4px; }
.audio-wave i { flex: 1; max-width: 6px; border-radius: 4px; background: var(--line-strong); height: 30%; transition: background-color .3s; }
.audio-player.is-playing .audio-wave i { background: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .audio-player.is-playing .audio-wave i { -webkit-animation: wave 1.2s ease-in-out infinite; animation: wave 1.2s ease-in-out infinite; }
  .audio-player.is-playing .audio-wave i:nth-child(3n) { -webkit-animation-delay: -.4s; animation-delay: -.4s; }
  .audio-player.is-playing .audio-wave i:nth-child(4n) { -webkit-animation-delay: -.8s; animation-delay: -.8s; }
}
.transcript { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--primary); min-height: 44px; display: flex; align-items: center; }
.transcript__body { white-space: pre-line; font-size: 15.5px; color: var(--ink-2); background: var(--bg); padding: 14px; border-radius: 10px; }
.outcome { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); font-size: 15px; }
.outcome b { color: var(--teal-ink); }

/* Product screenshot frame */
.shot { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.shot__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFD; font-size: 13px; color: var(--muted); }
.shot img { width: 100%; }
.shot__fallback { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: linear-gradient(135deg, #F3F6FB, #EAF0FA); }

/* Integration status table */
.integration { display: flex; flex-direction: column; gap: 10px; }
.integration__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.integration__head h3 { margin: 0; font-size: 18px; }
.integration p { margin: 0; }
.integration .req { font-size: 14px; color: var(--ink-2); }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card__amount { font-size: 28px; font-weight: 850; color: var(--ink); }
.price-card__amount small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.price-card li { position: relative; padding-inline-start: 22px; }
.price-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 10px; height: 6px; border: solid var(--teal-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }
.price-pending { font-size: 15px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px; }
.axis { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .axis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.axis__item { border-inline-start: 3px solid var(--primary); padding-inline-start: 16px; }
.axis__item h3 { font-size: 17px; margin-bottom: 4px; }
.axis__item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-en); font-size: 22px; color: var(--primary); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); padding: clamp(28px, 4vw, 56px); display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(49, 94, 251, .35), transparent 70%); pointer-events: none; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }

/* Page hero (inner pages) */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px); }
.page-hero .lead { margin-bottom: 0; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--primary); }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 28px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 10px; width: 12px; height: 7px; border: solid var(--teal-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.two-col { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.example { background: var(--bg); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.example h3 { font-size: 15px; color: var(--teal-ink); margin-bottom: 8px; }
.example p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; align-content: start; }
.form-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); }
.req-mark { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2352607A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 12px center; padding-left: 40px; }
html[dir="ltr"] .select { background-position: right 12px center; padding-left: 14px; padding-right: 40px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49, 94, 251, .15); outline: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input.ltr { text-align: left; direction: ltr; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); min-height: 44px; }
.checkbox input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--primary); }
.otp-input { letter-spacing: .5em; text-align: center; font-family: var(--font-en); font-size: 24px; font-weight: 700; direction: ltr; }

/* Visually hidden honeypot that cannot create horizontal scroll in RTL */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.alert { border-radius: 12px; padding: 14px 16px; font-size: 15.5px; border: 1px solid; }
.alert--error { background: var(--danger-soft); border-color: #F5C2BD; color: #7A1A12; }
.alert--success { background: var(--success-soft); border-color: #B8E3CB; color: #0B5A3A; }
.alert--info { background: var(--primary-soft); border-color: #C8D5FF; color: #1D3BA8; }
.alert--warning { background: var(--warning-soft); border-color: #F2DCA6; color: #6B4600; }
.alert:empty { display: none; }

/* The [hidden] attribute must always win over component display rules (audit item 5). */
[hidden] { display: none !important; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: st; flex-wrap: wrap; }
.stepper li { counter-increment: st; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.stepper li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EEF1F7; font-family: var(--font-en); font-weight: 800; font-size: 13px; }
html[lang="fa"] .flow__step::before { content: counter(flow, persian); font-family: var(--font); }
html[lang="fa"] .stepper li::before { content: counter(st, persian); font-family: var(--font); }
html[lang="fa"] .s-card h4::before { font-family: var(--font); }
html[lang="fa"] ol { list-style-type: persian; }
.stepper li[aria-current="step"] { color: var(--ink); }
.stepper li[aria-current="step"]::before { background: var(--primary); color: #fff; }
.stepper li.done::before { background: var(--success); color: #fff; }

/* Article / prose (also styles migrated legacy guides) */
.prose { font-size: 17.5px; line-height: 2; color: var(--ink-2); }
html[lang="en"] .prose { line-height: 1.8; }
.prose h2 { font-size: clamp(23px, 1vw + 18px, 28px); margin-top: 1.8em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin-top: 1.5em; color: var(--ink); scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-inline-start: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--bg); }
.prose code { font-family: Consolas, monospace; font-size: .9em; background: #EEF1F7; padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.article-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px); }
.article-hero h1 { font-size: clamp(28px, 2vw + 16px, 42px); max-width: 30ch; }
.article-hero .eyebrow { display: inline-flex; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.article-section { padding-block: clamp(32px, 4vw, 64px); }
.article-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 280px minmax(0, 1fr); } .article-toc { position: -webkit-sticky; position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.article-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 14.5px; }
.article-toc ol { padding-inline-start: 1.2em; margin: 10px 0 0; }
.article-toc a { color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--primary); }
.article-content { min-width: 0; font-size: 17.5px; line-height: 2; color: var(--ink-2); }
.article-content h2 { font-size: clamp(23px, 1vw + 18px, 28px); margin-top: 1.8em; scroll-margin-top: 90px; }
.article-content h3 { font-size: 20px; margin-top: 1.4em; scroll-margin-top: 90px; }
.article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.article-related { margin-top: 40px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reveal { opacity: 1 !important; transform: none !important; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-top: clamp(48px, 5vw, 72px); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); } }
.site-footer h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 42ch; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: var(--on-dark-muted); font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
.sticky-cta[hidden] { display: none !important; }
@media (max-width: 767px) {
  .sticky-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* Team */
.team { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member { text-align: center; }
.member__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 34px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 18px; margin-bottom: 2px; }
.member p { color: var(--muted); font-size: 15px; margin: 0; }

.testimonial blockquote { margin: 0 0 14px; font-size: 17px; color: var(--ink); line-height: 1.95; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.testimonial cite small { display: block; font-weight: 500; color: var(--muted); }

.kb-list { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .kb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.error-page .code { font-family: var(--font-en); font-size: 64px; font-weight: 800; color: var(--primary); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { -webkit-animation: none !important; animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scenario__stage { -webkit-transform: none !important; transform: none !important; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .btn { display: none !important; }
  body { background: #fff; }
}
