/* zaki-solutions.com. Brass & Ink (dark, default) and product light, from
   static/css/dashboard.css. Brass is reserved for the mark, the primary
   button and the focus ring; everything else is ink, paper and line. */

:root {
  --bg: #17140f;
  --raised: #201b14;
  --sunk: #120f0b;
  --ink: #efebe3;
  --muted: #b3ab9d;
  --line: #2e2820;
  --brass: #c99a45;
  --brass-text: #d6ab5c;
  --on-brass: #17140f;
  --mark-fill: #f7f4ec;
  --shot-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 0, 0, .8);
  --maxw: 1600px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbfa;
  --raised: #ffffff;
  --sunk: #f2f2ef;
  --ink: #16181d;
  --muted: #565a63;
  --line: #e3e4e7;
  --brass: #b88a3b;
  --brass-text: #8a6424;
  --on-brass: #16181d;
  --mark-fill: #16181d;
  --shot-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -44px rgba(22, 24, 29, .35);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fbfbfa;
    --raised: #ffffff;
    --sunk: #f2f2ef;
    --ink: #16181d;
    --muted: #565a63;
    --line: #e3e4e7;
    --brass: #b88a3b;
    --brass-text: #8a6424;
    --on-brass: #16181d;
    --mark-fill: #16181d;
    --shot-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -44px rgba(22, 24, 29, .35);
    color-scheme: light;
  }
}

@media (min-width: 760px) {
  :root { --gutter: clamp(32px, 4vw, 80px); }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body, body:lang(ar) {
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 50; inset-block-start: 10px; inset-inline-start: 10px; padding: 10px 16px; border-radius: 999px; background: var(--brass); color: var(--on-brass); font-weight: 700; text-decoration: none; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── type ─────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; font-weight: 800; color: var(--ink); text-wrap: balance; }

h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6.75rem);
  line-height: .95;
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 760; }

:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
:lang(ar) h1 { font-size: clamp(2.6rem, 1.5rem + 4.8vw, 5.5rem); line-height: 1.2; }
:lang(ar) h2 { line-height: 1.3; }

p { margin: 0; }

.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 34em; }

.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.45em;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-brass {
  background: var(--brass); color: var(--on-brass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset;
}

.btn-brass:hover { background: color-mix(in srgb, var(--brass) 88%, #fff); }

.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--muted); }

.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ── header ───────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid transparent;
}

.site-head.scrolled { border-block-end-color: var(--line); }

.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; white-space: nowrap; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

.mark { width: 30px; height: auto; flex: none; }
.mark .m-fill { fill: var(--mark-fill); stroke: var(--brass); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }

.nav a.link, .head-tools a.link {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: color 140ms var(--ease);
}

.nav a.link:hover, .nav a.link[aria-current="page"], .head-tools a.link:hover { color: var(--ink); }

.head-tools { display: flex; align-items: center; gap: 6px; }
.head-tools .btn { min-height: 42px; padding: .55em 1.15em; margin-inline-start: 6px; font-size: .95rem; }
.nav .nav-try { display: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}

.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--muted); }

.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

.menu-btn { display: none; }

@media (max-width: 759px) {
  .menu-btn { display: inline-grid; }
  .head-row { gap: 8px; }
  .head-tools { margin-inline-start: auto; gap: 4px; }
  .head-tools a.link { padding: 8px 6px; }
  .head-tools .head-try { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 19;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-block-end: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s 220ms;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
  .nav a.link { padding: 14px 4px; font-size: 1.05rem; border-block-end: 1px solid var(--line); border-radius: 0; }
  .nav .nav-try { display: inline-flex; margin-block-start: 14px; min-height: 48px; }
}

/* ── hero (split: words at the start, the product bleeding off the end) ── */

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 120px); overflow-x: clip; }

.hero-grid { display: grid; gap: 48px; align-items: center; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .hero .bleed { margin-inline-end: calc(-1 * max(var(--gutter), (100vw - var(--maxw)) / 2)); }
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 6px; padding-inline: 8px 14px; margin-block-end: 26px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
}

.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); margin-inline-start: 4px; }

.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }

/* ── the email form ──────────────────────────────────────────────── */

.start-form { max-width: 520px; }

.field {
  display: flex; gap: 6px; padding: 6px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 140ms var(--ease);
}

.field:focus-within { border-color: var(--brass); }

.field input[type="email"] {
  flex: 1; min-width: 0; padding: 0 16px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1rem; outline: none;
}

.field input::placeholder { color: var(--muted); opacity: .8; }

.field .btn { min-height: 46px; }

.start-form .small { margin-top: 12px; padding-inline: 18px; }

.errors { margin-top: 12px; padding: 12px 18px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); }
.errors p { color: var(--ink); font-weight: 600; font-size: .95rem; }

@media (max-width: 519px) {
  .field { flex-direction: column; border-radius: 22px; }
  .field input[type="email"] { min-height: 48px; }
  .field .btn { width: 100%; }
}

/* ── product shots ───────────────────────────────────────────────── */

.shot {
  position: relative; margin: 0;
  border-radius: 20px; border: 1px solid var(--line);
  background: var(--raised); box-shadow: var(--shot-shadow);
  overflow: hidden;
}

.shot.laptop { aspect-ratio: 16 / 10; }
.shot.phone { aspect-ratio: 9 / 19; max-width: 250px; border-radius: 32px; }
@media (max-width: 759px) { .shot.phone { max-width: 210px; } }

.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.shot .theme-dark { display: block; }
.shot .theme-light { display: none; }
:root[data-theme="light"] .shot .theme-dark { display: none; }
:root[data-theme="light"] .shot .theme-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .shot .theme-dark { display: none; }
  :root:not([data-theme]) .shot .theme-light { display: block; }
}

.shot.empty { display: grid; place-items: center; background: linear-gradient(var(--raised), var(--sunk)); }
.shot.empty .mark { width: 44px; opacity: .22; }

/* ── sections ────────────────────────────────────────────────────── */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-block-start: 1px solid var(--line); }

.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + p { margin-top: 16px; }

/* alternating rows: words and a screen, swapping sides */
.rows { display: grid; gap: clamp(64px, 9vw, 120px); }

.row { display: grid; gap: 32px; align-items: center; }

@media (min-width: 860px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .row.flip > :first-child { order: 2; }
  .row.has-phone { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .row.has-phone.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

.row .shot.phone { margin-inline: auto; width: 100%; }

.row-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.025em; margin-bottom: 14px; }
:lang(ar) .row-text h3 { letter-spacing: 0; }
.row-text p { color: var(--muted); max-width: 30em; }

/* a dot-marked list: the dot from the mark */
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dots li { position: relative; padding-inline-start: 22px; }
.dots li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
}

/* features 4–9: a tight two-column list of short entries, hairline-separated */
.more { display: grid; margin-top: clamp(56px, 7vw, 96px); border-block-start: 1px solid var(--line); }

.more > div { padding-block: 26px; border-block-end: 1px solid var(--line); }
.more h3 { font-size: 1.12rem; margin-bottom: 6px; }
.more p { color: var(--muted); font-size: .98rem; max-width: 34em; }

@media (min-width: 760px) {
  .more { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* all features */
details.all { border: 1px solid var(--line); border-radius: 22px; background: var(--raised); margin-top: 48px; }

details.all > summary, .faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700;
}

details.all > summary { padding: 22px 26px; font-size: 1.1rem; }

details.all > summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }

.chev { width: 18px; height: 18px; flex: none; transition: transform 220ms var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }

.groups { display: grid; gap: 36px; padding: 6px 26px 30px; }
.groups h3 { font-size: 1rem; margin-bottom: 14px; }
.groups li { font-size: .97rem; color: var(--muted); }

@media (min-width: 860px) {
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* plans: one surface split three ways, so they read as a comparison */
.plans {
  display: grid; border: 1px solid var(--line); border-radius: 24px; background: var(--raised); overflow: hidden;
}

.plan { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.plan + .plan { border-block-start: 1px solid var(--line); }

@media (min-width: 860px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan + .plan { border-block-start: 0; border-inline-start: 1px solid var(--line); }
}

.plan h3 { font-size: 1.5rem; }
.plan .for { color: var(--muted); font-size: .95rem; margin-top: -10px; }
.plan .dots { font-size: .96rem; }
.plan .dots li.lead { padding-inline-start: 0; font-weight: 700; color: var(--ink); }
.plan .dots li.lead::before { display: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }

.plans-note { margin-top: 20px; color: var(--muted); }

/* how it starts: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }

.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); font-weight: 800; color: var(--ink);
}
.steps h3 { font-size: 1.15rem; align-self: center; }
.steps p { color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* faq */
.faq { border-block-start: 1px solid var(--line); max-width: 48rem; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { padding: 22px 0; font-size: 1.08rem; }
.faq details p { padding-block-end: 24px; color: var(--muted); max-width: 40em; }

/* the closing band */
.closing { padding-block: clamp(72px, 10vw, 136px); border-block-start: 1px solid var(--line); background: var(--sunk); }
.closing-grid { display: grid; gap: 36px; align-items: end; }
.closing h2 { max-width: 14em; }
.closing .lede { margin-top: 16px; }
.closing .start-form { margin-top: 32px; }
.closing .or { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: .95rem; flex-wrap: wrap; }

/* products */
.flagship { display: grid; border: 1px solid var(--line); border-radius: 28px; background: var(--raised); overflow: hidden; }
.flagship-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.flagship-text .tag { font-size: .9rem; font-weight: 700; color: var(--brass-text); }
.flagship-text h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.flagship-text p { color: var(--muted); max-width: 26em; }
.flagship .shot { border-radius: 16px; margin: 0 clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px); }

@media (min-width: 960px) {
  .flagship { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .flagship .shot { margin: 32px; margin-inline-start: 0; }
}

.soon { margin-top: 20px; padding: 28px clamp(28px, 4vw, 48px); border: 1px dashed var(--line); border-radius: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.soon h3 { font-size: 1.15rem; }
.soon p { color: var(--muted); }

.custom { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.custom p { font-size: 1.15rem; max-width: 32em; }

/* about: a story told in four short blocks down one column */
.story { display: grid; gap: clamp(48px, 7vw, 88px); max-width: 46rem; }
.story h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 16px; }
.story p { font-size: 1.12rem; color: var(--muted); }
.story p + p { margin-top: 14px; }
.story .quote { color: var(--ink); font-weight: 600; }

/* contact */
.channels { display: grid; border-block-start: 1px solid var(--line); max-width: 46rem; }
.channels a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 18px; align-items: center;
  padding-block: 22px; border-block-end: 1px solid var(--line); text-decoration: none;
}
.channels .ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.channels .ic svg { width: 20px; height: 20px; }
.channels strong { font-size: 1.1rem; }
.channels span:not(.ic) { color: var(--muted); font-size: .95rem; }
.channels a:hover strong { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* page heads for inner pages */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); }
.page-head .lede { margin-top: 22px; }

/* simple pages: sent, 404 */
.simple { padding-block: clamp(72px, 12vw, 160px); display: grid; gap: 22px; justify-items: start; max-width: 40rem; }
.simple h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.simple .robot { width: 120px; height: auto; margin-bottom: 8px; }

/* footer */
.site-foot { border-block-start: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-links a[aria-current="page"] { color: var(--ink); }

/* legal pages: the old pages' fragments, restyled only through these rules */
.legal { max-width: 760px; padding-block: 48px 72px; line-height: 1.7; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin-block-end: 6px; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-block-end: 28px; }
.legal h2 { font-size: 1.15rem; margin-block: 28px 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-block: 0 10px; }
.legal ul, .legal ol { padding-inline-start: 20px; margin-block: 0 10px; }
.legal li { margin-block-end: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--brass-text); }
.legal .card { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-block: 16px; }
.legal .card h2 { margin-block-start: 0; }
.legal footer { margin-block-start: 40px; padding-block-start: 18px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.page-head + .section { padding-top: 0; }
.more-link { margin-top: clamp(48px, 6vw, 80px); font-weight: 700; }
.more-link a { text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
[dir="rtl"] .field input[type="email"]:placeholder-shown { text-align: right; }

/* ── landing: one screen, then the footer ─────────────────────────── */

.landing { position: relative; isolation: isolate; display: grid; align-items: center; padding-block: clamp(20px, 3vw, 48px); overflow-x: clip; }
@media (min-width: 960px) { .landing { min-height: calc(100svh - 68px); } }

.landing h1 { font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.4rem); margin-bottom: 20px; }
.landing h1 .pn { margin-inline-start: -.1em; }
:lang(ar) .landing h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.8rem); }
.landing .pill { margin-block-end: 18px; }
.landing .lede { font-size: clamp(1.05rem, .95rem + .3vw, 1.2rem); margin-bottom: 26px; }

.company { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-block-end: 8px; font-size: 1.02rem; }
.company strong { font-weight: 800; color: var(--ink); }
.company .sep { color: var(--brass); font-weight: 800; }
.company span:last-child { color: var(--ink); font-weight: 600; }
.company-line { color: var(--muted); font-size: .98rem; max-width: 34em; margin-block-end: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; max-width: 720px; }
.actions .start-form { flex: 1 1 300px; min-width: 0; }
.actions .btn-go { flex: none; min-height: 58px; }
.btn-go .arrow { display: inline-block; transition: transform 220ms var(--ease); }
.btn-go:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn-go:hover .arrow { transform: translateX(-4px); }

/* the film's frame; a soft brass glow drifts behind it */
.landing .bleed { position: relative; }
.landing .bleed::before {
  content: ""; position: absolute; z-index: -1; inset-block: -14%; inset-inline: -18% -6%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brass) 24%, transparent), transparent 72%);
  filter: blur(28px); animation: drift 16s ease-in-out infinite alternate;
}
.hero-video {
  position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shot-shadow);
  background: linear-gradient(var(--raised), var(--sunk));
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video.empty { display: grid; place-items: center; }
.hero-video.empty .mark { width: 64px; animation: glow 3.4s ease-in-out infinite alternate; }

@keyframes glow {
  from { opacity: .22; filter: drop-shadow(0 0 0 transparent); }
  to { opacity: .7; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--brass) 70%, transparent)); }
}
@keyframes drift { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }

/* entrance: lines rise one after another, the frame slides in from the end side */
.rise { animation: rise 720ms var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
.d0 { --i: 0; } .d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.slide-in { animation: slide-in 900ms var(--ease) 260ms both; }
[dir="rtl"] .slide-in { animation-name: slide-in-rtl; }
@keyframes slide-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes slide-in-rtl { from { opacity: 0; transform: translateX(-48px); } }

/* ── Zaki Ops: the feature bar and the tour ──────────────────────── */
.featbar {
  position: sticky; top: 68px; z-index: 15;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block: 1px solid var(--line);
}
.featbar-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.featbar-row::-webkit-scrollbar { display: none; }
.featbar a {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.featbar a:hover { color: var(--ink); }
.featbar a[aria-current="true"] { color: var(--ink); background: var(--raised); border-color: var(--line); }
.tour-group { scroll-margin-top: 130px; }
.eyebrow { font-size: .9rem; font-weight: 700; color: var(--brass-text); margin-bottom: 10px; letter-spacing: .02em; }

/* ── scroll reveal and tour depth ────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.tour .row > .shot { transform: translateY(var(--py, 0px)); will-change: transform; }

/* ── reduced motion: nothing moves ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .tour .row > .shot { transform: none; }
}

/* ── Ask Zaki button (the panel is static/site/ask-zaki.css, loaded on click) ── */
.ask-zaki-btn { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--brass); color: var(--on-brass);
  font: inherit; font-weight: 700; box-shadow: 0 10px 30px rgb(0 0 0 / .25); cursor: pointer; }
.ask-zaki-btn svg { width: 22px; height: 22px; }
.ask-zaki-btn svg .m-fill { fill: currentColor; stroke: currentColor; }
.ask-zaki-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.ask-zaki-btn:focus-visible { outline: 3px solid var(--brass-text); outline-offset: 3px; }
@media (max-width: 759px) { .ask-zaki-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .ask-zaki-btn { padding: 0 14px; }
  /* the sheet covers the bottom of a phone: the launcher would show through its Send button */
  .ask-zaki-btn[aria-expanded="true"] { visibility: hidden; } }
