/* Mamentis website — tokens follow the Mamentis design system (tokens.json). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fafafa;
  --surface: #ffffff;
  --surface-container: #f2f2f4;
  --surface-container-high: #e9e8ec;
  --surface-overlay: rgba(250, 250, 250, 0.8);
  --on-surface: #1c1b1f;
  --on-surface-variant: #4a4650;
  --on-surface-muted: #6c6872;
  --outline: #79767d;
  --outline-variant: #e4e2e7;
  --state-hover: rgba(28, 27, 31, 0.05);
  --state-selected: rgba(28, 27, 31, 0.08);
  --primary: #4b39ef;
  --on-primary: #ffffff;
  --primary-text: #4b39ef;
  --primary-container: #eeecfd;
  --focus-ring: #4b39ef;
  --danger: #b3261e;
  --warning: #8a5300;
  --chart-2: #8e8b96;
  --chart-3: #b9b7bf;
  --chart-4: #dddbe1;
  /* The inverted band uses the dark theme's surfaces in both themes. */
  --band: #0b0b0f;
  --on-band: #e4e1e7;
  --on-band-variant: #c7c4d9;
  --on-band-muted: #918fa2;
  --band-outline: #2e2d33;
  --band-accent: #8f83f5;

  --font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xs: 4px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);

  --content: 1180px;
  --gutter: 24px;
  --header-h: 64px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0b0f;
  --surface: #131317;
  --surface-container: #1f1f23;
  --surface-container-high: #2a292e;
  --surface-overlay: rgba(19, 19, 23, 0.8);
  --on-surface: #e4e1e7;
  --on-surface-variant: #c7c4d9;
  --on-surface-muted: #918fa2;
  --outline: #918fa2;
  --outline-variant: #2e2d33;
  --state-hover: rgba(228, 225, 231, 0.05);
  --state-selected: rgba(228, 225, 231, 0.1);
  --primary-text: #8f83f5;
  --primary-container: #221d48;
  --focus-ring: #8f83f5;
  --danger: #ffb4ab;
  --warning: #f2c36b;
  --chart-2: #8a8796;
  --chart-3: #5d5b66;
  --chart-4: #3d3c44;
  --band: #000000;
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins, even over a component's own display rule. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-xs); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; color: var(--on-surface); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-lg); }
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

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

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--surface-overlay);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--outline-variant); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--on-surface); }
.brand:hover { text-decoration: none; }
.brand svg { height: 22px; width: auto; aspect-ratio: 82.739 / 17.833; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  color: var(--on-surface-variant); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--radius-lg);
}
.nav a:hover { background: var(--state-hover); color: var(--on-surface); text-decoration: none; }
.nav a[aria-current="true"] { color: var(--primary-text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; background: transparent; color: var(--on-surface-variant);
  border-radius: var(--radius-lg); cursor: pointer;
}
.icon-btn:hover { background: var(--state-hover); color: var(--on-surface); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-lg);
  font: 500 15px/1 var(--font-ui); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--outline-variant); background: var(--surface); color: var(--on-surface);
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: var(--surface-container); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #3f2ed8; border-color: #3f2ed8; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--on-surface-variant); }
.btn-quiet:hover { background: var(--state-hover); color: var(--on-surface); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }

/* ---------- Side rail ---------- */
.rail {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 2px;
}
.rail a {
  position: relative; display: flex; align-items: center; height: 18px; width: 28px;
  color: var(--on-surface-muted);
}
.rail a::before {
  content: ""; display: block; height: 1.5px; width: 14px; background: var(--outline);
  opacity: .45; transition: width .2s, opacity .2s, background .2s;
}
.rail a span {
  position: absolute; left: 34px; white-space: nowrap; font-size: 12px; font-weight: 500;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--outline-variant); color: var(--on-surface-variant);
  opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.rail a:hover::before, .rail a:focus-visible::before { width: 22px; opacity: 1; background: var(--on-surface); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a[aria-current="true"]::before { width: 26px; opacity: 1; background: var(--primary); }
@media (min-width: 1320px) { .rail { display: flex; } }

/* ---------- Sections ---------- */
section { padding: 112px 0; }
section + section { border-top: 1px solid var(--outline-variant); }
section.flush { padding-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-surface-muted); margin-bottom: 16px;
}
.eyebrow .num { font-family: var(--font-mono); letter-spacing: 0; }
.h-display { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; }
.h-section { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; max-width: 880px; }
.h-sub { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 500; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--on-surface-variant); font-weight: 300; max-width: 720px; margin-top: 18px; }
.muted { color: var(--on-surface-muted); }
.section-head { margin-bottom: 48px; }
.block { margin-top: 88px; }
.block-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 760px; }
.block-head p { color: var(--on-surface-variant); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-full); background: var(--surface-container); color: var(--on-surface-variant); font-size: 12px; font-weight: 500; vertical-align: middle; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-2xl);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--on-surface-variant); font-size: 15.5px; }
.card .icon { color: var(--on-surface-variant); width: 24px; height: 24px; margin-bottom: 6px; }
.card .num { font-family: var(--font-mono); font-size: 13px; color: var(--on-surface-muted); }
.card.emph { border: 1.5px solid var(--on-surface); }
.card-quiet { background: var(--surface-container); border-color: transparent; }

.rows { display: grid; gap: 0; }
.row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--outline-variant); }
.row:last-child { border-bottom: 1px solid var(--outline-variant); }
.row .icon { color: var(--on-surface-variant); margin-top: 3px; width: 22px; height: 22px; }
.row h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.row p { color: var(--on-surface-variant); font-size: 15.5px; margin-top: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.callout { font-size: 19px; color: var(--on-surface-variant); margin-top: 28px; }
.callout strong { color: var(--on-surface); font-weight: 500; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-surface); }
.check-list .icon { color: var(--on-surface-variant); width: 18px; height: 18px; margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero .tagline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-surface-variant); margin-bottom: 24px; }
.hero .tagline svg { width: 18px; height: 18px; }
.hero .lead { margin-top: 22px; }
.audiences { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.audiences a {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-full); border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant); font-size: 14px; font-weight: 500; background: var(--surface);
}
.audiences a:hover { text-decoration: none; background: var(--surface-container); color: var(--on-surface); }

/* Product shell mock (synthetic demo data) */
.shell {
  border: 1px solid var(--outline-variant); border-radius: var(--radius-2xl); background: var(--background);
  box-shadow: var(--shadow-2xl); overflow: hidden; font-size: 12px; line-height: 1.45;
  display: grid; grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.05fr); min-height: 420px;
  user-select: none;
}
.shell-side { background: var(--surface-container); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.shell-side .s-brand { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; margin-bottom: 10px; color: var(--on-surface); }
.shell-side .s-brand svg { width: 16px; height: 16px; }
.shell-side .s-label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-muted); margin: 8px 4px 2px; font-weight: 500; }
.shell-side .s-item { padding: 5px 7px; border-radius: 7px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-side .s-item.on { background: var(--surface-container-high); color: var(--on-surface); font-weight: 500; }
.shell-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.msg-user { align-self: flex-end; background: var(--surface-container); padding: 8px 11px; border-radius: 12px; max-width: 85%; color: var(--on-surface); }
.msg-partner { color: var(--on-surface); display: flex; flex-direction: column; gap: 6px; }
.msg-partner .who { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 11.5px; color: var(--on-surface-variant); }
.msg-partner .who svg { width: 13px; height: 13px; animation: breathe 3.2s ease-in-out infinite; }
.msg-partner ul { display: grid; gap: 3px; padding-left: 14px; list-style: disc; color: var(--on-surface-variant); }
.msg-partner .status { color: var(--primary-text); font-size: 11.5px; }
.composer { margin-top: auto; border: 1px solid var(--outline-variant); border-radius: 14px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; color: var(--on-surface-muted); }
.composer .send { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; }
.composer .send svg { width: 13px; height: 13px; }
.shell-room { border-left: 1px solid var(--outline-variant); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.room-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--outline-variant); padding-bottom: 8px; }
.room-tabs span { padding: 3px 7px; border-radius: 6px; color: var(--on-surface-muted); }
.room-tabs span.on { color: var(--primary-text); background: var(--state-selected); font-weight: 500; }
.room-title { font-weight: 600; font-size: 12.5px; }
.vt { width: 100%; border-collapse: collapse; font-size: 11px; }
.vt th { text-align: left; font-weight: 500; color: var(--on-surface-muted); padding: 4px 4px; border-bottom: 1px solid var(--outline-variant); }
.vt td { padding: 5px 4px; border-bottom: 1px solid var(--outline-variant); color: var(--on-surface-variant); }
.vt td:last-child, .vt th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.vt tr.total td { color: var(--on-surface); font-weight: 600; border-bottom: 0; }
.bars { display: grid; gap: 6px; margin-top: 2px; }
.bar { display: grid; grid-template-columns: 74px 1fr 42px; align-items: center; gap: 8px; color: var(--on-surface-variant); font-size: 10.5px; }
.bar i { display: block; height: 8px; border-radius: 3px; background: var(--chart-3); }
.bar i.hi { background: var(--primary); }
.bar b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--on-surface); }
.demo-note { font-size: 12px; color: var(--on-surface-muted); margin-top: 12px; text-align: right; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .8; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--on-surface-muted); padding-top: 3px; }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { color: var(--on-surface-variant); margin-top: 2px; }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 40px) / 3));
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 8px; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; min-height: 270px; }
.slide .visual {
  height: 112px; border-radius: var(--radius-xl); background: var(--surface-container);
  margin: -8px -8px 10px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden;
}
.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--outline-variant); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--on-surface); width: 20px; border-radius: var(--radius-full); }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--outline-variant); background: var(--surface); color: var(--on-surface); display: grid; place-items: center; cursor: pointer; }
.slider-arrows button:hover { background: var(--surface-container); }
.slider-arrows button:disabled { opacity: .4; cursor: default; }

/* Small visuals inside slides (synthetic) */
.mini-line { height: 7px; border-radius: 3px; background: var(--chart-4); }
.mini-line.w60 { width: 60%; } .mini-line.w80 { width: 80%; } .mini-line.w40 { width: 40%; }
.mini-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--outline-variant); font-size: 11px; color: var(--on-surface-variant); }
.mini-chip svg { width: 13px; height: 13px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--chart-3); }
.mini-bars i.hi { background: var(--primary); }

/* ---------- Bands ---------- */
.band { background: var(--band); color: var(--on-band); border-top: 0; }
.band + section { border-top: 0; }
.band h2, .band h3 { color: var(--on-band); }
.band .eyebrow { color: var(--on-band-muted); }
.band .lead, .band p { color: var(--on-band-variant); }
.band .accent { color: var(--band-accent); }
.band .row, .band .row:last-child { border-color: var(--band-outline); }
.band .row .icon { color: var(--on-band-variant); }
.band-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 48px; }
.band-cols > div { border-top: 1px solid var(--band-outline); padding: 24px 0; }
.band-cols h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--outline-variant); border-radius: var(--radius-2xl); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--outline-variant); }
table.data thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-surface-muted); font-weight: 500; background: var(--surface-container); }
table.data tbody th { font-weight: 600; color: var(--on-surface); }
table.data td { color: var(--on-surface-variant); }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.card .price, .price { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; color: var(--on-surface); line-height: 1.1; margin-top: 4px; }
.price small { font-size: 15px; font-weight: 400; color: var(--on-surface-muted); letter-spacing: 0; }
.plan { gap: 14px; }
.plan .check-list { font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.card .plan-label, .plan-label { font-size: 13px; font-weight: 500; color: var(--on-surface-muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 24px 0; border-top: 1px solid var(--outline-variant); }
.stat .v { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.stat p { color: var(--on-surface-variant); margin-top: 10px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-2xl); padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--on-surface); }
.field input, .field select, .field textarea {
  font: 400 15px/1.4 var(--font-ui); color: var(--on-surface); background: var(--surface);
  border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 10px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--on-surface-variant); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { font-size: 14px; color: var(--on-surface-variant); min-height: 20px; display: flex; gap: 8px; align-items: center; }
.form-status.error { color: var(--danger); }
.card .fineprint, .fineprint { font-size: 13px; color: var(--on-surface-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--outline-variant); padding: 56px 0 40px; background: var(--background); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .brand svg { height: 24px; }
.footer h4 { font-size: 13px; font-weight: 500; color: var(--on-surface-muted); margin-bottom: 12px; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--on-surface-variant); font-size: 15px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: 13px; color: var(--on-surface-muted); flex-wrap: wrap; }

/* ---------- Mobile menu ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 45;
  background: var(--surface); border-bottom: 1px solid var(--outline-variant); box-shadow: var(--shadow-xl);
  padding: 8px var(--gutter) 20px; transform: translateY(-110%); transition: transform .25s ease; visibility: hidden;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav a { display: block; padding: 12px 4px; font-size: 17px; color: var(--on-surface); border-bottom: 1px solid var(--outline-variant); }
.mobile-nav .actions { margin-top: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 6px 7px; }
}
@media (max-width: 960px) {
  .nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider-track { grid-auto-columns: minmax(260px, calc((100% - 20px) / 2)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  section { padding: 80px 0; }
  .hero { padding: 48px 0 72px; }
  .g2, .g3, .g4, .stats, .band-cols, .field-row { grid-template-columns: 1fr; }
  .slider-track { grid-auto-columns: 86%; }
  .shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .shell-side, .shell-main { display: none; }
  .shell-room { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .block { margin-top: 64px; }
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.plans .card { padding: 24px; }
.plans .card p { font-size: 14.5px; }
.card .per { font-size: 13px; color: var(--on-surface-muted); margin-top: -6px; min-height: 36px; }
.plans .check-list { font-size: 14px; gap: 8px; }
.plans .check-list li { color: var(--on-surface-variant); }
.billing { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-full); background: var(--surface-container); margin-bottom: 24px; }
.billing button { font: 500 14px/1 var(--font-ui); border: 0; background: transparent; color: var(--on-surface-variant); height: 34px; padding: 0 16px; border-radius: var(--radius-full); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--on-surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.billing .save { font-size: 12px; color: var(--primary-text); }
table.compare td, table.compare th { font-size: 14px; }
table.compare tbody th { white-space: nowrap; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } .card .per { min-height: 0; } }
.plans .card .price { font-size: 32px; line-height: 1.1; }
.plans .card .per { font-size: 13px; }
table.compare { table-layout: fixed; min-width: 820px; }
table.compare th:first-child { width: 20%; }
table.compare tbody th { white-space: normal; }

/* ---------- Product screenshots ---------- */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-2xl); border: 1px solid var(--outline-variant); box-shadow: var(--shadow-2xl); background: var(--surface); }
.shot figcaption { margin-top: 12px; }


/* ---------- Arabic ---------- */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 300 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:lang(ar) { --font-ui: "Outfit", "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
:lang(ar) body { line-height: 1.7; }
:lang(ar) .eyebrow, :lang(ar) .plan-label, :lang(ar) table.data thead th { letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; }

/* ---------- Right-to-left ---------- */
[dir="rtl"] .rail { left: auto; right: 20px; }
[dir="rtl"] .rail a span { left: auto; right: 34px; transform: translateX(4px); }
[dir="rtl"] .rail a:hover span, [dir="rtl"] .rail a:focus-visible span { transform: none; }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .demo-note { text-align: left; }
[dir="rtl"] table.data th, [dir="rtl"] table.data td { text-align: right; }
[dir="rtl"] .btn .icon-sm { transform: scaleX(-1); }
[dir="rtl"] .slider-track { direction: ltr; }
[dir="rtl"] .slider-track .slide { direction: rtl; }
[dir="rtl"] .slider-arrows, [dir="rtl"] .dots { direction: ltr; }
[dir="rtl"] .shot img { direction: ltr; }

/* ---------- Language menu ---------- */
.lang { position: relative; display: inline-flex; margin: 0; gap: 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border: 0; background: transparent; border-radius: var(--radius-lg); color: var(--on-surface-variant); font: 500 13px/1 var(--font-ui); letter-spacing: .03em; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--state-hover); color: var(--on-surface); }
.lang-btn .icon-sm { width: 16px; height: 16px; }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 160px; padding: 6px; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); z-index: 60; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-lg); color: var(--on-surface); font-size: 14px; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--state-hover); text-decoration: none; }
.lang-menu a[aria-current="true"] { font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-surface); }
.lang-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.lang-list a { border: 0; font-size: 15px; padding: 6px 10px; border-radius: var(--radius-lg); color: var(--on-surface-variant); display: inline-block; }
.lang-list a[aria-current="true"] { background: var(--surface-container); color: var(--on-surface); }
@media (max-width: 960px) { .header-actions > .lang { display: none; } }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; z-index: 70; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 380px; padding: 18px 18px 16px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); }
.consent p { font-size: 14px; color: var(--on-surface-variant); }
.consent .consent-title { font-weight: 600; color: var(--on-surface); font-size: 15px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 520px) { .consent { inset-inline: 12px; max-width: none; } }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-size: 15px; color: var(--on-surface-variant); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.social { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.social a { color: var(--on-surface-muted); }
.turnstile { min-height: 65px; }
