/* SVENEX site. One dark theme.
   Base #121417, panel #1A1D21, raised #22262B, line #2E333A / #3D434B,
   text #F2F3F5 / #B4BAC2 / #7E858E, blue #4C8DFF, and green #3FCF8E,
   yellow #F2C14E, red #F0645A for status. The environment section adds a
   deep green surface (#121C17) so it reads differently from the rest. */

@font-face { font-family: "Svx Sans"; src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }
@font-face { font-family: "Svx Sans"; src: url("/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }
@font-face { font-family: "Svx Sans"; src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }
@font-face { font-family: "Svx Sans"; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Svx Sans"; 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+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Svx Sans"; src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Svx Display"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Svx Display"; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Svx Mono"; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Svx Mono"; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #121417; --panel: #1A1D21; --raised: #22262B; --line: #2E333A; --line-2: #3D434B;
  --white: #F2F3F5; --grey: #B4BAC2; --muted: #7E858E;
  --blue: #4C8DFF; --blue-tint: #1C2840; --on-blue: #0B0F17;
  --green: #3FCF8E; --yellow: #F2C14E; --red: #F0645A;
  --earth: #121C17; --earth-line: #22362B;
  --sans: "Svx Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Svx Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1180px; --gutter: clamp(16px, 4vw, 40px); --r: 6px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--grey); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--white); margin: 0; font-weight: 500; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; font-weight: 600; }
html[lang="ar"] body { line-height: 1.8; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--on-blue); padding: 8px 14px; border-radius: var(--r); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 23, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.wordmark { font: 600 17px/1 var(--sans); letter-spacing: .14em; color: var(--white); text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.menu { position: relative; }
.menu > button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; background: none; border: 0; border-radius: var(--r); color: var(--grey); font: 500 14px/1 var(--sans); cursor: var(--pointer, pointer); }
.menu > button:hover, .menu > button[aria-expanded="true"] { color: var(--white); background: var(--raised); }
.menu > button svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-list { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 250px; padding: 6px; margin: 0; list-style: none;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s var(--ease); }
.menu-list.open { opacity: 1; transform: none; pointer-events: auto; }
/* An invisible bridge over the gap, so moving down to the menu doesn't close it. */
.menu-list::before { content: ""; position: absolute; left: -12px; right: -12px; top: -18px; height: 18px; }
.menu-list a { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: var(--r); text-decoration: none; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--raised); }
.menu-list .mi { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--white); }
.menu-list .mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-list b { font-weight: 500; color: var(--white); font-size: 14px; }
.menu-list small { color: var(--muted); font-size: 12.5px; }

.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 108px; height: 34px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); cursor: var(--pointer, pointer); direction: ltr; font: 500 13px/1 var(--sans); }
.lang-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 4px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .38s var(--ease); }
.lang[aria-checked="true"] .lang-thumb { transform: translateX(100%); }
.lang-opt { position: relative; text-align: center; color: var(--muted); transition: color .25s; }
.lang[aria-checked="false"] .lang-opt[data-opt="en"], .lang[aria-checked="true"] .lang-opt[data-opt="ar"] { color: var(--white); }
.lang:hover { border-color: var(--muted); }
.lang.rolling .lang-opt { animation: roll .42s var(--ease); }
@keyframes roll { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-8px); opacity: 0; } 55% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid transparent; font: 500 14.5px/1 var(--sans); text-decoration: none; cursor: var(--pointer, pointer); transition: background-color .15s, border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--white); color: #111316; }
.btn.primary:hover { background: #ffffff; box-shadow: 0 6px 20px rgba(242, 243, 245, .12); }
.btn.quiet { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn.quiet:hover { background: var(--raised); border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 112px) 0; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.04; max-width: 17ch; text-wrap: balance; }
html[lang="ar"] .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.25; }
.hero .lede { margin-top: 20px; font-size: 1.15rem; max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* The app preview: a window you can click around in but not use. */
.window { margin: clamp(40px, 6vw, 72px) auto 0; max-width: calc(var(--max) + 2 * var(--gutter)); padding-inline: var(--gutter); }
/* The window sits on a backdrop of its own instead of filling the page. */
.win-stage { position: relative; padding: clamp(18px, 4.5vw, 64px) clamp(14px, 5vw, 72px) clamp(14px, 3vw, 36px); border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 18% 8%, rgba(76, 141, 255, .22), transparent 70%),
    radial-gradient(55% 60% at 88% 92%, rgba(63, 207, 142, .16), transparent 70%),
    linear-gradient(180deg, #171A1F, #121417);
  overflow: hidden; isolation: isolate; }
.win-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); }
.stage-hint { margin-top: 14px; text-align: center; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.win { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; direction: ltr; }
html[lang="ar"] .win-body { direction: rtl; }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #17191D; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3A3E44; }
.win:hover .lights i:nth-child(1) { background: #FF5F57; } .win:hover .lights i:nth-child(2) { background: #FEBC2E; } .win:hover .lights i:nth-child(3) { background: #28C840; }
.addr { font: 400 12.5px/1 var(--mono); color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.win-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); height: 600px; }
.app-side { border-inline-end: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #17191D; }
.app-brand { font: 600 12.5px/1 var(--sans); letter-spacing: .14em; color: var(--white); padding: 6px 10px 16px; }
.app-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r); background: none; color: var(--grey); font: 500 13.5px/1.2 var(--sans); cursor: var(--pointer, pointer); text-align: start; }
.app-tab svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-tab:hover { background: var(--raised); color: var(--white); }
.app-tab[aria-selected="true"] { background: var(--raised); color: var(--white); box-shadow: inset 2px 0 0 var(--blue); }
html[lang="ar"] .app-tab[aria-selected="true"] { box-shadow: inset -2px 0 0 var(--blue); }
.app-tab .count { margin-inline-start: auto; font: 500 11px/1 var(--mono); color: var(--muted); }
.app-side .who { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.app-side .who i { width: 22px; height: 22px; border-radius: 50%; background: #2B3A55; display: grid; place-items: center; color: var(--white); font: 600 10px/1 var(--sans); font-style: normal; }
.app-main { position: relative; overflow: hidden; user-select: none; }
.app-main button { font: inherit; color: inherit; cursor: var(--pointer, pointer); text-align: start; }
/* While the preview plays by itself, the active tab shows how long until the next. */
.app-tab { position: relative; overflow: hidden; }
.app-tab .prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--blue); transform-origin: left; transform: scaleX(0); opacity: .7; }
html[lang="ar"] .app-tab .prog { transform-origin: right; }
.win.auto .app-tab[aria-selected="true"] .prog { animation: tabProg var(--auto-ms, 5200ms) linear forwards; }
@keyframes tabProg { to { transform: scaleX(1); } }
.screen { position: absolute; inset: 0; display: none; }
.screen.on { display: block; animation: screenIn .3s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.scr-head h3 { font-size: 15px; letter-spacing: -.01em; }
.scr-head .hint { font: 400 11.5px/1 var(--mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font: 500 11.5px/1 var(--sans); border: 1px solid var(--line-2); color: var(--grey); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.chip.saved { color: var(--green); border-color: #1F4734; } .chip.saved::before { background: var(--green); }
.chip.ai { color: #8DB4FF; border-color: #2A3B5C; } .chip.ai::before { background: var(--blue); }
.chip.you { color: var(--yellow); border-color: #4D3F1C; } .chip.you::before { background: var(--yellow); }
.chip.auto { color: var(--grey); }

/* Inbox */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100% - 54px); }
.threads { border-inline-end: 1px solid var(--line); overflow: hidden; }
.thread { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; transition: background-color .15s; }
.thread:hover { background: #1E2126; }
.thread.sel { background: var(--raised); box-shadow: inset 2px 0 0 var(--blue); }
html[lang="ar"] .thread.sel { box-shadow: inset -2px 0 0 var(--blue); }
.convo[hidden], .qa[hidden] { display: none; }
.thread .av { grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--sans); color: var(--white); background: #333944; }
.thread b { color: var(--white); font-weight: 500; font-size: 13.5px; }
.thread time { font: 400 11px/1.6 var(--mono); color: var(--muted); }
.thread p { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .chip { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
.convo { display: flex; flex-direction: column; height: 100%; }
.convo-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.convo-head b { color: var(--white); font-weight: 500; }
.convo-head .src { font: 400 11.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 4px 6px; border-radius: 4px; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; overflow: hidden; }
.bub { max-width: 74%; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: var(--white); }
.bub.c { align-self: flex-start; background: var(--raised); }
.bub.s { align-self: flex-end; background: var(--blue-tint); border: 1px solid #2A3B5C; }
.note-line { align-self: flex-end; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.composer { margin: 0 20px 16px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 13px; }

/* Contacts */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: start; font: 500 11.5px/1 var(--sans); color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--grey); }
.table td:first-child { color: var(--white); }
.table tbody tr { cursor: var(--pointer, pointer); transition: background-color .15s; }
.table tbody tr:hover { background: #1E2126; }
.table tbody tr.sel { background: var(--raised); }
.stage { font: 500 11.5px/1 var(--sans); padding: 4px 7px; border-radius: 4px; background: var(--raised); color: var(--grey); }
.stage.hot { color: var(--green); background: #16261E; }

/* Deals */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; }
.col h4 { margin: 0 0 10px; font: 500 12px/1 var(--sans); color: var(--muted); display: flex; justify-content: space-between; }
.card { display: block; width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; transition: border-color .15s, transform .2s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card.moved { animation: cardIn .35s var(--ease); border-color: var(--blue); }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px); } }
.col:last-child .card { border-color: #1F4734; }
.card b { display: block; color: var(--white); font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.card span { font: 400 11.5px/1 var(--mono); color: var(--muted); }

/* Automations */
.rules { padding: 14px 20px; display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.rule b { color: var(--white); font-weight: 500; font-size: 13.5px; }
.rule p { font-size: 12.5px; color: var(--muted); }
.rule .tog { grid-row: span 2; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 10px; background: var(--green); position: relative; transition: background-color .2s; }
.rule .tog::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: #0E1A14; transition: inset .2s var(--ease); }
.rule .tog.off { background: var(--line-2); } .rule .tog.off::after { inset-inline-end: auto; inset-inline-start: 2px; background: var(--muted); }
.rule .runs { font: 400 11.5px/1.6 var(--mono); color: var(--muted); }

/* Insights */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 0; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--bg); }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { display: block; margin-top: 6px; font: 500 24px/1 var(--sans); letter-spacing: -.02em; color: var(--white); }
.kpi.green strong { color: var(--green); }
.chart { margin: 14px 20px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.chart-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey); margin-bottom: 10px; }
.chart-head .legend { display: flex; gap: 14px; color: var(--muted); }
.chart-head .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; background: var(--green); vertical-align: 0; }
.chart-head .legend span.b::before { background: var(--blue); }
.chart-head .legend span.g::before { background: #1F9D68; }
.chart-head .legend span.o::before { background: #C8762A; }
.scr-head .period { width: 230px; height: 30px; }
.chart { position: relative; }
.bars div { cursor: var(--pointer, pointer); border-radius: 3px; }
.bars div:hover i { filter: brightness(1.18); }
.bars i.g { background: #1F9D68; } .bars i.o { background: #C8762A; } .bars i.b { background: #4C8DFF; }
.bars i { transition: height .45s var(--ease); }
.bar-tip { position: absolute; top: 46px; padding: 8px 10px; border-radius: 6px; background: #0C0E10; border: 1px solid var(--line-2); font: 400 11.5px/1.5 var(--mono); color: var(--grey); white-space: nowrap; pointer-events: none; z-index: 3; transform: translateX(-50%); }
.bar-tip b { color: var(--white); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(var(--n, 12), 1fr); gap: 8px; align-items: end; height: 330px; }
.bars div { display: flex; flex-direction: column-reverse; height: 100%; }
.bars i { display: block; width: 100%; border-radius: 2px 2px 0 0; }
.bars i.s { background: var(--green); } .bars i.a { background: var(--blue); opacity: .75; border-radius: 2px 2px 0 0; margin-bottom: 2px; }
.example { position: absolute; inset-inline-end: 16px; bottom: 12px; font: 400 11px/1 var(--mono); color: var(--muted); }

/* Calendar */
.cal { display: flex; flex-direction: column; height: calc(100% - 54px); padding: 0 20px 14px; }
.cal-staff { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0 10px; font-size: 12.5px; }
.cal-staff b { color: var(--white); font-weight: 500; }
.cal-grid { flex: 1; display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 12.5%); }
.cal-hours { display: grid; grid-template-rows: repeat(8, 1fr); font: 400 11px/1 var(--mono); color: var(--muted); }
.cal-hours span { padding-top: 4px; }
.cal-col { position: relative; }
.appt { position: absolute; inset-inline: 0; width: auto; transition: box-shadow .15s, transform .2s var(--ease); padding: 7px 9px; border-radius: 6px; background: #20252C; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--grey); overflow: hidden; }
.appt b { display: block; color: var(--white); font-weight: 500; font-size: 12.5px; line-height: 1.25; }
.appt span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt i { font-style: normal; }
.appt:hover { transform: translateY(-1px); }
.appt.sel { box-shadow: 0 0 0 1px var(--white), 0 10px 24px rgba(0, 0, 0, .4); z-index: 2; }
.appt.ai { border-inline-start-color: var(--blue); background: #1A2232; }
.appt.page { border-inline-start-color: var(--green); background: #17241E; }
.off-time { position: absolute; inset-inline: 0; border-radius: 6px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .03) 6px 12px); border: 1px dashed var(--line); display: grid; place-items: center; font-size: 11.5px; color: var(--muted); }
.cal-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }

/* Email */
.mail { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: calc(100% - 54px); }
.boxes-col { border-inline-end: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mbox { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--muted); }
.mbox b { color: var(--white); font-weight: 500; font-size: 13px; }
.mbox .chip { justify-self: start; margin-top: 4px; height: auto; min-height: 22px; padding-block: 4px; white-space: normal; line-height: 1.35; }
.auto-mails { margin-top: 6px; padding: 12px; border: 1px solid #1F4734; border-radius: 8px; background: #141F19; }
.auto-mails small, .lbl { display: block; font: 500 11.5px/1 var(--sans); color: var(--muted); margin-bottom: 8px; }
.auto-mails p { font-size: 12.5px; color: var(--white); padding: 5px 0 5px 14px; position: relative; }
html[lang="ar"] .auto-mails p { padding: 5px 14px 5px 0; }
.auto-mails p::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--green); }
.compose { display: flex; flex-direction: column; padding: 14px 20px 16px; min-width: 0; }
.cf { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--white); }
.cf small { width: 56px; flex: none; color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 4px; background: var(--blue-tint); border: 1px solid #2A3B5C; color: #A9C6FF; font-size: 12.5px; }
.body-lines { flex: 1; padding: 16px 0; display: grid; align-content: start; gap: 10px; font-size: 13.5px; color: var(--grey); line-height: 1.6; }
.send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted-s { font-size: 12px; color: var(--muted); }
.pill svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.app-main .fake-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--white); color: #111316; font: 500 13px/1 var(--sans); transition: background-color .2s; }
.app-main .fake-btn.done { background: #16261E; color: var(--green); box-shadow: inset 0 0 0 1px #1F4734; }

/* AI agent */
.agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: calc(100% - 54px); }
.agent-info { padding: 16px 20px; border-inline-end: 1px solid var(--line); }
.facts-mini { display: grid; gap: 10px; margin-bottom: 18px; }
.facts-mini div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.facts-mini small { display: block; font-size: 11.5px; color: var(--muted); }
.facts-mini b { display: block; margin-top: 4px; color: var(--white); font-weight: 500; font-size: 13.5px; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.src-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--white); }
.src-list em { font: normal 400 11.5px/1.6 var(--mono); color: var(--muted); }
.agent-test { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.qs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.app-main .q { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: none; color: var(--grey); font-size: 12px; transition: background-color .15s, color .15s; }
.app-main .q:hover { color: var(--white); background: var(--raised); }
.app-main .q.on { color: var(--white); background: var(--blue-tint); border-color: #2A3B5C; }
.qa { display: flex; flex-direction: column; gap: 10px; animation: screenIn .3s var(--ease); }
.mini-form { margin-top: 2px; align-self: stretch; display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.mini-form b { color: var(--white); font-weight: 500; font-size: 12.5px; margin-bottom: 2px; }
.mini-form span { height: 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.mini-form span.half { width: 45%; background: var(--blue); border-color: var(--blue); opacity: .85; }

/* Booking page */
.bp { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: calc(100% - 54px); }
.bp-controls { padding: 16px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; }
.bp-controls .lbl { margin: 12px 0 8px; } .bp-controls .lbl:first-child { margin-top: 0; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--panel); transition: transform .15s; }
.swatches button:hover { transform: scale(1.08); }
.swatches button.on { border-color: var(--white); }
.bp-sel, .seg { height: 32px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font-size: 12.5px; color: var(--white); }
.bp-sel { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 10px; }
.bp-sel::after { content: "⇅"; color: var(--muted); font-size: 11px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; gap: 2px; }
.seg button { display: grid; place-items: center; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12px; text-align: center; }
.seg button:hover { color: var(--white); }
.seg button.on { background: var(--raised); color: var(--white); }
.tg { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--grey); }
.tg .tog { flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--green); position: relative; transition: background-color .2s; }
.tg .tog::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; border-radius: 50%; background: #0E1A14; transition: inset .2s var(--ease); }
.tg[aria-checked="false"] .tog, .rule .tog.off { background: var(--line-2); }
.tg[aria-checked="false"] .tog::after { inset-inline-end: 12px; background: var(--muted); }
.bp-preview { display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #1E2A28, transparent 70%); }
.phone { --bp: #0F766E; --bpr: 9px; --bpf: var(--sans); width: 250px; font-family: var(--bpf); transition: border-radius .2s; padding: 18px 16px; border-radius: 22px; background: #F7F7F5; color: #1B1D21; border: 6px solid #0C0E10; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 9px; }
.bp-biz { font: 600 11.5px/1 var(--bpf); color: var(--bp); letter-spacing: .02em; }
.phone h4 { margin: 0 0 2px; font: 600 17px/1.2 var(--bpf); color: #1B1D21; }
.bp-svc { display: flex; justify-content: space-between; padding: 9px 10px; border: 1px solid #E3E3DF; border-radius: var(--bpr); background: #fff; font-size: 12px; }
.bp-svc.on { border-color: var(--bp); box-shadow: 0 0 0 1px var(--bp) inset; }
.bp-svc em { font-style: normal; font-weight: 600; }
.bp-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.bp-days i, .bp-times i { font-style: normal; text-align: center; border: 1px solid #E3E3DF; border-radius: calc(var(--bpr) - 1px); background: #fff; font-size: 10.5px; color: #6A6F78; padding: 5px 0; }
.bp-days b { display: block; font-size: 14px; color: #1B1D21; }
.bp-days i.on, .bp-times i.on { background: var(--bp); border-color: var(--bp); color: #fff; }
.bp-days i.on b { color: #fff; }
.bp-staff { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6A6F78; }
.bp-staff[hidden] { display: none; }
.bp-staff b { font-weight: 500; padding: 4px 7px; border: 1px solid #E3E3DF; border-radius: calc(var(--bpr) - 2px); background: #fff; color: #1B1D21; }
.bp-staff b.on { border-color: var(--bp); color: var(--bp); }
.bp-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.bp-times i { font-size: 11.5px; color: #1B1D21; padding: 6px 0; }
.bp-btn { display: grid; place-items: center; height: 34px; border-radius: var(--bpr); background: var(--bp); transition: background-color .2s; color: #fff; font: 600 12.5px/1 var(--sans); margin-top: 2px; }

/* ---------- Environment (home section) ---------- */
.earth { margin-top: clamp(80px, 11vw, 140px); background: var(--earth); border-block: 1px solid var(--earth-line); position: relative; overflow: hidden; }
.earth::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(circle at 85% 30%, transparent 0 38px, rgba(63, 207, 142, .06) 38px 39px); }
.earth-in { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.earth h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; max-width: 16ch; }
.earth .lede { margin-top: 18px; font-size: 1.05rem; max-width: 36em; color: #B9C6BE; }
.stat { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--earth-line); border-radius: 8px; background: rgba(0, 0, 0, .18);
  display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; align-items: end; }
.stat strong { font-variant-numeric: tabular-nums; }
/* The tree comes back to life as the section scrolls into view (site.js sets --life 0..1). */
.tree { --life: 0; width: 170px; height: 170px; margin-bottom: -6px; overflow: visible; }
.tree-ground path { stroke: #2C3F34; stroke-width: 2; stroke-linecap: round; fill: none; }
.tree-wood path { fill: none; stroke-linecap: round; stroke: var(--wood, #4A453F); transition: stroke .2s linear; }
.tree-wood .w7 { stroke-width: 7; } .tree-wood .w4 { stroke-width: 4; } .tree-wood .w2 { stroke-width: 2.4; } .tree-wood .w1 { stroke-width: 1.8; }
.tree-leaves ellipse { transform-box: fill-box; transform-origin: center; }
.tree-leaves .grass { stroke: #3FCF8E; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.stat strong { display: block; font: 500 clamp(2rem, 4vw, 2.8rem)/1 var(--sans); letter-spacing: -.02em; color: var(--white); }
.stat p { margin-top: 8px; font-size: 14.5px; color: #B9C6BE; }
.stat cite { display: block; margin-top: 8px; font: normal 400 12px/1.4 var(--mono); color: #7F9488; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 26px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 2px; width: 1px; background: var(--earth-line); }
.flow li:last-child::before { display: none; }
.flow .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #2E5A44; color: var(--green); background: var(--earth); }
.flow .n svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow h3 { font-size: 1.02rem; margin-top: 8px; }
.flow p { margin-top: 4px; font-size: 14.5px; color: #B9C6BE; max-width: 40ch; }
.earth .more { margin-top: 28px; }
.btn.earthy { border-color: #2E5A44; color: var(--white); background: transparent; }
.btn.earthy:hover { background: #18271F; border-color: var(--green); }

/* ---------- Forecast your own curve ---------- */
.forecast { padding-block: clamp(80px, 11vw, 140px) 0; }
.fc-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
.fc-head .lede { margin-top: 14px; max-width: 40em; font-size: 1.05rem; }
.fc-body { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.fc-controls, .fc-chart { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 22px; }
.fc-label { display: block; font-size: 13.5px; color: var(--muted); }
.fc-volume { display: block; margin-top: 4px; font: 500 clamp(2.2rem, 4vw, 3rem)/1.1 var(--sans); letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; }
/* A volume-style bar: bars grow left to right; the lit ones are your level. The range input on top does the work. */
.meter { position: relative; margin-top: 16px; height: 56px; }
.meter-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; direction: ltr; }
.meter-bars i { flex: 1; border-radius: 2px; background: var(--line-2); transition: background-color .12s, transform .25s var(--ease); transform-origin: bottom; }
.meter-bars i.on { background: linear-gradient(180deg, #7BE3B2, var(--green)); }
.meter-bars i.tip { transform: scaleY(1.08); background: var(--white); }
.meter input { position: absolute; inset: -6px 0; width: 100%; height: calc(100% + 12px); margin: 0; opacity: 0; cursor: ew-resize; direction: ltr; }
.meter:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 4px; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11.5px/1 var(--mono); color: var(--muted); direction: ltr; }
.fc-stats { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.fc-stats dt { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fc-stats dd { margin: 6px 0 0; font: 500 1.35rem/1.1 var(--sans); color: var(--white); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fc-stats div:first-child dd { color: var(--green); }
.fc-chart { display: flex; flex-direction: column; }
.fc-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--grey); margin-bottom: 14px; }
.fc-chart .legend { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.fc-chart .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; }
.fc-chart .legend .g::before { background: var(--green); } .fc-chart .legend .b::before { background: var(--blue); }
.fc-chart svg { flex: 1; width: 100%; min-height: 240px; display: block; direction: ltr; }
.fc-chart svg rect { transition: y .4s var(--ease), height .4s var(--ease); }
.fc-months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 8px; font: 400 11px/1 var(--mono); color: var(--muted); text-align: center; direction: ltr; }
html[lang="ar"] .fc-chart svg { transform: scaleX(-1); }
html[lang="ar"] .fc-months { direction: rtl; }
.fc-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 60em; }

/* ---------- Try SVENEX now ---------- */
.try { text-align: center; padding-block: clamp(80px, 12vw, 150px); }
/* Same space above and below the button. */
.try h2 { font: 400 clamp(2.4rem, 5vw, 3.75rem)/1 "Svx Display", var(--sans); letter-spacing: -.035em; }
html[lang="ar"] .try h2 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.try .actions { justify-content: center; margin-top: 32px; }
.try .note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.06; max-width: 18ch; }
.page-head p { margin-top: 16px; font-size: 1.1rem; max-width: 40em; }
.group { padding-block: 28px 8px; }
.group h2 { font-size: 1.05rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.box { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), border-color .25s, background-color .25s; }
.box.moving { transition: transform .12s linear, border-color .25s, background-color .25s; }
.box:hover { border-color: var(--line-2); background: #1C1F24; }
.box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 255, 255, .045), transparent 60%); }
.box:hover::after { opacity: 1; }
.box .bi { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); margin-bottom: 18px; }
.box .bi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.box:hover .bi svg { transform: scale(1.08); }
.box h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.box p { margin-top: 6px; font-size: 14.5px; }
.box.wide { grid-column: span 2; }
.box .soon { position: absolute; top: 18px; inset-inline-end: 18px; font: 500 11px/1 var(--sans); color: var(--yellow); border: 1px solid #4D3F1C; padding: 4px 7px; border-radius: 4px; }
.cta-strip { margin: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); padding: 28px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); }
.cta-strip h2 { font-size: 1.4rem; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose p { font-size: 16.5px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-inline-start: 20px; display: grid; gap: 8px; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.fact { padding: 20px; border: 1px solid var(--earth-line); border-radius: 10px; background: var(--earth); }
.fact strong { display: block; font: 500 1.9rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--white); }
.fact p { margin-top: 8px; font-size: 14.5px; color: #B9C6BE; }
.sources { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.sources ol { padding-inline-start: 20px; }
.sources a { color: var(--grey); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--white); }

/* ---------- Legal pages ---------- */
.legal main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 64px; }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1.1; }
.legal .rule { height: 1px; background: var(--line); margin: 22px 0; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.legal h2 { font-size: 1.15rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-inline-start: 20px; margin: 10px 0; display: grid; gap: 8px; }
.legal strong { color: var(--white); font-weight: 600; }
.legal a { color: var(--blue); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .earth-in { grid-template-columns: 1fr; }
  .fc-body { grid-template-columns: 1fr; }
  .win-stage { border-radius: 14px; }
  .boxes { grid-template-columns: 1fr 1fr; }
  .win-body { grid-template-columns: 64px minmax(0, 1fr); }
  .app-tab span:not(.count), .app-brand, .app-side .who span { display: none; }
  .app-tab { justify-content: center; padding: 10px 0; }
  .app-tab .count { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .convo { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .bars { height: 220px; }
  .board { grid-template-columns: 1fr 1fr; }
  .mail, .bp { grid-template-columns: minmax(0, 1fr); }
  .boxes-col { display: none; }
  .bp { grid-template-rows: auto minmax(0, 1fr); }
  .bp-controls { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .bp-controls .lbl, .bp-controls .bp-sel, .bp-controls .tg { display: none; }
  .bp-controls .seg { flex: 1; min-width: 150px; }
  .bp-preview { padding: 8px; overflow: hidden; }
  .bp-preview { min-width: 0; }
  .phone { width: 100%; max-width: 250px; min-width: 0; padding: 14px 12px; border-width: 5px; gap: 7px; grid-template-columns: minmax(0, 1fr); }
  .bp-svc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bp-staff { overflow: hidden; } .bp-staff b:last-child { display: none; }
  .bp-times { grid-template-columns: repeat(2, 1fr); } .bp-times i:nth-child(n+5) { display: none; }
  .bp-days { grid-template-columns: repeat(3, 1fr); } .bp-days i:last-child { display: none; }
  .bp-days, .bp-times { gap: 4px; }
  .agent { grid-template-columns: minmax(0, 1fr); }
  .agent-info { display: none; }
}
@media (max-width: 640px) {
  .top-in { gap: 10px; }
  .nav { gap: 0; }
  .menu > button { padding: 0 8px; }
  .menu-list { position: fixed; top: 58px; left: 12px; right: 12px; min-width: 0; }
  .lang { width: 92px; }
  .boxes, .facts { grid-template-columns: 1fr; }
  .box.wide { grid-column: auto; }
  .win-body { height: 520px; }
  .actions .btn { flex: 1 1 auto; }
  .table th:nth-child(n+3), .table td:nth-child(n+3) { display: none; }
  .bars { height: 150px; }
  .fc-stats { grid-template-columns: 1fr; }
  .scr-head .period { width: 170px; }
  .stage-hint { display: none; }
  .win-stage { padding: 10px 8px 8px; }
  .bp-svc em { white-space: nowrap; }
  .cal-staff, .cal-grid { grid-template-columns: 44px repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cal-staff b:nth-child(4), .cal-grid .cal-col:nth-child(4) { display: none; }
  .appt { padding: 5px 7px; } .appt span { display: none; }
  .scr-head .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .cal-foot .chip:last-child { display: none; }
  .stat { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
  .tree { width: 110px; height: 110px; }
}
/* ---------- Ticker under the header ---------- */
.ticker { height: 30px; border-top: 1px solid var(--line); overflow: hidden; direction: ltr; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tk-track { display: flex; width: max-content; height: 100%; animation: tk 80s linear infinite; }
.ticker:hover .tk-track, .paused .tk-track, .ticker.off .tk-track { animation-play-state: paused; }
.tk-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.tk-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font: 400 12px/30px var(--mono); color: var(--muted); white-space: nowrap; border-inline-end: 1px solid var(--line); }
.tk-name { color: var(--grey); } .tk-item:first-child .tk-name { color: var(--white); letter-spacing: .06em; }
.tk-dir { font-size: 9px; } .tk-dir.up, .tk-dir.down { color: var(--green); }
.tk-val { color: var(--white); }
.tk-note { color: var(--muted); font-style: italic; }
html[lang="ar"] .tk-item { font-family: var(--sans); font-size: 12.5px; }
@keyframes tk { to { transform: translateX(-50%); } }

/* ---------- Scroll reveal: sections fade in, and out again when they leave ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .seen[data-reveal], .js .seen[data-reveal-group] > * { opacity: 1; transform: none; }
.js .seen[data-reveal-group] > *:nth-child(2) { transition-delay: .06s; }
.js .seen[data-reveal-group] > *:nth-child(3) { transition-delay: .12s; }
.js .seen[data-reveal-group] > *:nth-child(n+4) { transition-delay: .18s; }
/* Text: the gentlest hover. */
.hero .lede, .earth .lede, .fc-head .lede, .flow p, .stat p, .try .note, .fact p, .box p { transition: color .25s ease; }
.hero .lede:hover, .earth .lede:hover, .fc-head .lede:hover, .flow p:hover, .stat p:hover, .try .note:hover, .fact p:hover, .box p:hover { color: #D3D8DE; }
.hero h1, .earth h2, .fc-head h2, .try h2, .flow h3 { transition: color .25s ease, letter-spacing .35s var(--ease); }
.hero h1:hover, .earth h2:hover, .fc-head h2:hover, .flow h3:hover { color: #FFFFFF; }

/* The preview's backdrop drifts slowly (paused when off screen or hidden). */
.win-stage::after { content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(30% 35% at 20% 15%, rgba(76, 141, 255, .20), transparent 70%),
    radial-gradient(28% 32% at 82% 85%, rgba(63, 207, 142, .15), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate; }
.win-stage::before { animation: gridDrift 40s linear infinite; }
.win-stage.off::after, .win-stage.off::before, .paused .win-stage::after, .paused .win-stage::before { animation-play-state: paused; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 4%) scale(1.06); } 100% { transform: translate(-5%, 6%) scale(1.02); } }
@keyframes gridDrift { to { background-position: 44px 44px, 44px 44px; } }

/* ---------- Early access form (its own window, the chat's look) ---------- */
.sx-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 11, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .14s ease-out; }
.sx-modal.closing { animation: fadeOut .15s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.sx-panel.sx-access { width: min(420px, 100%); height: auto; max-height: calc(100dvh - 32px); will-change: transform, opacity; }
.sx-access-body { padding: 16px 16px 18px; overflow-y: auto; }
.sx-access-body .sx-human { padding: 0; }
.sx-modal-open body { overflow: hidden; }
.foot-light { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); opacity: .8; }
@media (max-width: 640px) { .tk-item { padding: 0 14px; } .ticker { height: 28px; } .tk-item { line-height: 28px; } }

/* ---------- Falling leaves and the leaf cursor ---------- */
/* Leaves drift behind the headline (site.js draws them on a canvas); faint
   on purpose, paused off screen and for people who turn motion off. */
.hero { position: relative; isolation: isolate; }
.hero > :not(.leaves) { position: relative; z-index: 1; }
.leaves { position: absolute; z-index: 0; inset: -24px -16px -40px; width: calc(100% + 32px); height: calc(100% + 64px); pointer-events: none; }
.js [data-reveal-group] > .leaves { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  :root { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 3C14 3 24 9 22.5 22.5C9 24 3 14 3 3Z' fill='%236FBF73' stroke='%230d1f12' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M4.5 4.5L21 21M21 21L25.5 25.5' fill='none' stroke='%230d1f12' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M9 9L13.5 6.8M13 13L18.5 10.6M9 9L7.2 13.4M13 13L11 18.2' fill='none' stroke='%230d1f12' stroke-width='.9' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") 3 3; --pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 3C14 3 24 9 22.5 22.5C9 24 3 14 3 3Z' fill='%239BE08F' stroke='%230d1f12' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M4.5 4.5L21 21M21 21L25.5 25.5' fill='none' stroke='%230d1f12' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M9 9L13.5 6.8M13 13L18.5 10.6M9 9L7.2 13.4M13 13L11 18.2' fill='none' stroke='%230d1f12' stroke-width='.9' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") 3 3, pointer; }
  html { cursor: var(--leaf), auto; }
  a, button, [role="button"], [role="switch"], [role="tab"], label, summary, select { cursor: var(--pointer); }
  input, textarea, [contenteditable="true"] { cursor: text; }
  :disabled { cursor: not-allowed; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .box { transform: none !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .tk-track { animation: none !important; }
}

/* ---------- Sales chat ---------- */
.sx-chat { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; font-family: var(--sans); color: var(--grey); }
.sx-launch { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--white); background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); cursor: var(--pointer, pointer); transition: border-color .2s, transform .2s var(--ease); }
.sx-launch svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sx-launch:hover { border-color: var(--muted); transform: translateY(-2px); }
.sx-launch .dots circle { fill: currentColor; stroke: none; }
.sx-launch:hover .dots circle { animation: typing 1s ease-in-out infinite; }
.sx-launch .dots circle:nth-child(2) { animation-delay: .15s; } .sx-launch .dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2px); } }
.sx-panel { width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55); overflow: hidden; }
.sx-panel[hidden], .sx-launch[hidden], .sx-lead[hidden], .sx-form[hidden], .sx-details[hidden], .sx-foot[hidden] { display: none; }
.sx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sx-head b { color: var(--white); font: 600 15px/1 var(--sans); }
.sx-close { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: var(--r); color: var(--grey); font-size: 17px; cursor: var(--pointer, pointer); }
.sx-close:hover { color: var(--white); border-color: var(--line-2); }
.sx-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; }
.sx-msg { max-width: 86%; padding: 9px 12px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--white); }
.sx-msg.them { align-self: flex-start; background: var(--raised); }
.sx-msg.me { align-self: flex-end; background: var(--blue-tint); border: 1px solid #2A3B5C; }
.sx-typing { color: var(--muted); }
.sx-note { align-self: stretch; padding: 9px 12px; border: 1px solid var(--line); border-inline-start: 3px solid var(--yellow); border-radius: 6px; font-size: 13.5px; color: var(--grey); background: var(--bg); }
.sx-human:empty { display: none; }
.sx-human { padding: 0 14px 10px; }
.sx-lead { padding: 14px; overflow-y: auto; border-top: 1px solid var(--line); background: var(--bg); }
.sx-leadform { display: flex; flex-direction: column; gap: 10px; }
.sx-leadtitle { font-size: 14px; color: var(--grey); }
.sx-leadform label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.sx-leadform input, .sx-form textarea { font: 15px/1.4 var(--sans); padding: 10px 11px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--white); background: var(--panel); width: 100%; }
.sx-leadform input:focus, .sx-form textarea:focus { outline: none; border-color: var(--blue); }
.sx-err { color: var(--red); font-size: 12.5px; }
.sx-err:empty { display: none; }
.sx-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sx-thanks { padding: 11px 13px; border: 1px solid var(--line); border-inline-start: 3px solid var(--green); border-radius: 6px; color: var(--white); font-size: 15px; background: var(--panel); }
.sx-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: grid; gap: 10px; }
.sx-form { display: flex; gap: 8px; align-items: flex-end; }
.sx-form textarea { flex: 1; resize: none; }
.sx-send { min-height: 42px; border: 0; border-radius: var(--r); padding: 0 16px; font: 500 14px var(--sans); background: var(--white); color: #111316; cursor: var(--pointer, pointer); }
.sx-send:disabled { opacity: .5; cursor: default; }
.sx-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sx-left { margin: 0; font: 400 12px/1 var(--mono); color: var(--muted); }
html[lang="ar"] .sx-left { font-family: var(--sans); font-size: 12.5px; }
.sx-details { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--white); font: 500 13px var(--sans); cursor: var(--pointer, pointer); }
.sx-details:hover { background: var(--raised); border-color: var(--muted); }
@media (max-width: 480px) { .sx-chat { inset-inline-end: 12px; bottom: 12px; } .sx-panel { height: calc(100dvh - 24px); } }
.facts.one { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.app-main .tg, .app-main .bp-sel { font-size: 12.5px; }
.wordmark.logo { display: inline-flex; align-items: center; letter-spacing: 0; }
.wordmark.logo img { display: block; height: 26px; width: auto; }
footer .wordmark.logo img, .foot .wordmark.logo img { height: 20px; }
@media (max-width: 560px) { .top .wordmark.logo img, header .wordmark.logo img { height: 19px; } }
.sx-starters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.sx-starter { min-height: 30px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--white); font: 400 12.5px var(--sans); text-align: start; cursor: var(--pointer, pointer); transition: background-color .15s, border-color .15s; }
.sx-starter:hover { background: var(--raised); border-color: var(--muted); }
