/* Bordaar landing page (index.html) — the "Editorial" look, in the Ink palette.
 *
 * Black and white, hairline rules instead of boxes, very large tight headlines, left-aligned
 * section heads, numbered steps and a pinch of red-orange (one orange phrase in each headline, the
 * dots beside a heading, the step numbers, the meters, the orange start buttons). Since 2026-10-16 three
 * near-black panels (the hero, "what your customers see", the closing panel; see --pnl* in theme.css)
 * give the page its rhythm. Chosen from five landing concepts
 * on a Design canvas ("Bordaar Mono Themes", concept 1) and ported here.
 *
 * Every colour is a token from theme.css, so light and dark both work. The orange is --spark,
 * NOT --accent: --accent is a neutral chip grey.
 *
 * Right-to-left is handled with logical properties everywhere, so Persian is a mirror image
 * with no second stylesheet. Persian text never gets letter-spacing (it breaks the joining of
 * letters) and never gets uppercase transforms. Loaded AFTER theme.css.
 */

/* ── landing-only tokens ────────────────────────────────── */
:root{
  --maxw:1180px;
  --s-sec:clamp(64px,7vw,104px);
  --s-head:clamp(36px,4.2vw,56px);
}
:root{--graph-edge:#C9C9C6}
:root[data-theme="dark"]{--graph-edge:#454545}
/* The near-black panel's tokens (--pnl*) live in theme.css, so every page shares them. Here it is used by the
   hero, "what your customers see" and the closing panel, and the popular plan borrows it. */

/* ── base ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
html[dir="rtl"] body{font-family:var(--font-fa);line-height:1.9}
html[dir="rtl"] .en-only{display:none}
html[lang="en"] .fa-only{display:none}

h1,h2,h3{margin:0;font-family:var(--font-display);font-weight:800;letter-spacing:-.025em;line-height:1.1;text-wrap:balance}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{font-family:var(--font-fa);letter-spacing:0;line-height:1.45}
p,.lede{text-wrap:pretty}
p{margin:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:32px}
section{position:relative}

/* ── header ─────────────────────────────────────────────── */
header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;gap:14px;height:76px}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--font-display);font-weight:800;font-size:22px;letter-spacing:-.02em}
html[dir="rtl"] .brand{font-family:var(--font-fa);letter-spacing:0}
.mark{width:34px;height:34px;flex:none;box-sizing:content-box;border:1px solid var(--mark-ring);border-radius:23%;background:url("bordaar-mark-ink.svg?v=1") no-repeat center/100% 100% border-box}
.nav-links{display:flex;gap:28px;margin-inline:auto;font-size:15px;color:var(--ink-2);font-weight:600}
.nav-links a{position:relative;padding-block:4px;transition:color .2s}
.nav-links a::after{content:"";position:absolute;inset-inline-start:0;bottom:0;height:2px;width:0;background:var(--spark);transition:width .25s}
.nav-links a:hover{color:var(--ink)}
.nav-links a:hover::after{width:100%}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:48px;padding-inline:26px;border-radius:999px;
  font-size:15.5px;font-weight:700;font-family:inherit;
  border:1.5px solid transparent;cursor:pointer;white-space:nowrap;
  transition:transform .18s cubic-bezier(.2,.8,.3,1),background .2s,color .2s,border-color .2s;
}
.btn svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"] .btn svg{transform:scaleX(-1)}
/* every "start" button is the orange pill with black text (white on this orange is only 3.8:1) */
.btn-primary{background:var(--spark);color:#111111;border-color:var(--spark)}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{background:transparent;border-color:var(--outline);color:var(--ink)}
.btn-ghost:hover{background:var(--card);transform:translateY(-2px)}
/* the outlined button on a near-black panel */
.btn-line{background:transparent;border-color:rgba(247,247,246,.45);color:var(--pnl-fg)}
.btn-line:hover{background:rgba(247,247,246,.1);transform:translateY(-2px)}
.btn-sm{height:42px;padding-inline:20px;font-size:14.5px}
.btn-lg{height:58px;padding-inline:32px;font-size:17px}
/* "Sign in" in the bar is a plain word, not a second button */
.nav-signin{border-color:transparent!important;background:none!important;padding-inline:10px}
.nav-signin:hover{transform:none!important;text-decoration:underline;text-underline-offset:5px}
.btn:focus-visible,.lang button:focus-visible,.theme button:focus-visible,summary:focus-visible,.textlink:focus-visible{outline:3px solid var(--kicker);outline-offset:3px}

/* a link with the orange rule under it: the quiet second action next to a button */
.textlink{
  display:inline-flex;align-items:center;gap:8px;font-size:15.5px;font-weight:700;color:var(--ink);
  text-decoration:underline;text-decoration-color:var(--spark);text-decoration-thickness:2px;text-underline-offset:5px;
  text-decoration-skip-ink:none;
}
.textlink svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"] .textlink svg{transform:scaleX(-1)}

.lang,.theme{
  display:inline-flex;align-items:center;padding:3px;gap:2px;
  border:1.5px solid var(--outline);background:var(--card);border-radius:999px;
}
.lang button{
  font-family:var(--font);font-size:13px;font-weight:700;
  height:30px;padding-inline:12px;border:0;border-radius:999px;cursor:pointer;
  background:transparent;color:var(--ink);transition:.2s;
}
.lang button.on{background:var(--brand-fill);color:var(--brand-fill-fg)}
.lang button:not(.on):hover{background:var(--line-soft)}
.theme button{
  width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:999px;
  background:transparent;color:var(--ink);cursor:pointer;transition:.2s;
}
.theme button:hover{background:var(--line-soft)}
.theme button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme .ic-moon{display:none}
:root[data-theme="light"] .theme .ic-sun{display:none}
:root[data-theme="light"] .theme .ic-moon{display:block}

/* ── the three near-black panels: hero, "what your customers see", closing ── */
.hero-inner,.ex-panel,.band{
  background:var(--pnl);color:var(--pnl-fg);border:1px solid var(--pnl-bd);border-radius:36px;box-shadow:none;
}

/* ── hero: a near-black panel. The promise on the left, the chat it produces on the right ── */
.hero{padding:20px 0 0}
.hero-inner{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:clamp(36px,5vw,56px);
  align-items:center;text-align:start;padding:clamp(32px,5vw,64px);
}
.hero-inner > *{grid-column:1}
.hero-visual{grid-column:2;grid-row:1 / span 5;margin:0;display:block}
.hero h1{font-size:clamp(38px,4.6vw,58px);line-height:1.0;letter-spacing:-.04em}
html[dir="rtl"] .hero h1{font-size:clamp(28px,3.4vw,42px);line-height:1.45;letter-spacing:0}
/* the emphasised phrase: orange, never boxed or underlined. Headlines only (large text): on the light page
   #EA4A1F is 3.6:1, which is enough for 30px and up, not for a sentence. */
.hl{padding:0;background:none;color:var(--spark);text-decoration:none}
.lede{margin-top:26px;font-size:19px;color:var(--pnl-mut);max-width:50ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:16px 14px;align-items:center;margin-top:34px}
.hero-note{margin-top:18px;font-size:14px;color:var(--pnl-mut)}
/* "invitation-only for now": sits ABOVE the buttons (on a phone the line under them is below the fold) and is brighter than the
   note, because it decides whether "Start free" works for the visitor */
.hero-invite{margin-top:20px;font-size:15px;font-weight:600;color:var(--pnl-fg);max-width:46ch}
.hero-invite + .hero-cta{margin-top:18px}
/* the file chips and the arrow of the old hero: the formats now sit in their own strip below */
.file-stack,.hero-arrow{display:none}

.chat-mock{
  width:100%;overflow:hidden;
  border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow-lg);
}
.cm-head{display:flex;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line)}
.cm-avatar{
  width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;
  background:var(--brand-fill);color:var(--brand-fill-fg);font-family:var(--font-display);font-weight:800;font-size:18px;line-height:1;
}
.cm-head b{display:block;font-size:15.5px;line-height:1.35}
.cm-head small{display:block;font-size:13px;color:var(--muted);line-height:1.4}
.cm-body{display:flex;flex-direction:column;gap:14px;padding:24px 22px 28px}
.cm-msg{max-width:88%;padding:13px 18px;border-radius:20px;font-size:15.5px;line-height:1.6}
.cm-q{align-self:flex-end;background:var(--brand-fill);color:var(--brand-fill-fg);font-weight:600;border-end-end-radius:6px}
.cm-a{align-self:flex-start;background:var(--line-soft);color:var(--ink);border-end-start-radius:6px}
.cm-input{display:flex;align-items:center;gap:12px;margin:0 22px;padding:6px;padding-inline-start:20px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:14.5px}
.cm-input span{flex:1;min-width:0}
.cm-send{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--brand-fill)}
.cm-send svg{width:17px;height:17px;stroke:var(--brand-fill-fg);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"] .cm-send svg{transform:scaleX(-1)}
.cm-foot{padding:12px 22px 16px;text-align:center;font-size:12.5px;color:var(--muted)}
/* On the panel the chat is always the light card, like the real chat page, in dark mode too (a dark card on a
   dark panel has no edge). The tokens are redefined here so every rule above keeps working unchanged. A little
   orange: the avatar and the send button, which is what an owner who picks the Orange chatbot colour gets. */
.hero-inner .chat-mock{
  --card:#FFFFFF;--ink:#111111;--line:#E2E2E0;--line-soft:#EDEDEB;--muted:#666666;--brand-fill:#111111;--brand-fill-fg:#FFFFFF;
  color:#111111;box-shadow:0 24px 50px -26px rgba(0,0,0,.6);
}
.hero-inner .cm-avatar{background:var(--spark);color:#111111}
.hero-inner .cm-send{background:var(--spark)}
.hero-inner .cm-send svg{stroke:#111111}

/* ── the strip under the hero: "bring what you already have" ── */
.strip{margin-top:56px;border-block:1px solid var(--line);background:var(--band2)}
.strip .wrap{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;padding-block:24px}
.strip-label{margin-inline-end:12px;font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
html[dir="rtl"] .strip-label{letter-spacing:0;text-transform:none;font-size:14px}

/* ── section heads: small label, big tight headline, left-aligned ── */
.sec{padding:var(--s-sec) 0}
.kicker{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
html[dir="rtl"] .kicker{letter-spacing:0;text-transform:none;font-size:14px}
/* a small orange dot in front of every label */
.kicker::before,.strip-label::before{content:"";display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:var(--spark)}
.strip-label{display:inline-flex;align-items:center;gap:10px}
.sec-head{max-width:760px;margin:0 0 var(--s-head);text-align:start}
.sec-head h2{font-size:clamp(30px,4vw,54px);line-height:1.04;letter-spacing:-.035em;margin-top:14px}
html[dir="rtl"] .sec-head h2{font-size:clamp(26px,3.2vw,40px);line-height:1.4;letter-spacing:0}
.sec-head p{margin-top:20px;font-size:18px;color:var(--ink-2);max-width:62ch}
.center{margin-inline:0;text-align:start}

/* ── cards become open columns with a hairline on top (features, products, under the hood) ── */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 48px}
.card{padding:28px 0 8px;background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
.ico{display:none}
.card h3,.step h3{font-size:21px;display:flex;align-items:center;gap:12px;letter-spacing:-.015em}
.card h3::before,.step h3::before{content:"";width:9px;height:9px;flex:none;border-radius:50%;background:var(--spark)}
.card p,.step p{margin-top:12px;font-size:15.5px;line-height:1.7;color:var(--ink-2)}

/* ── how it works: the heading on the left, four numbered rows on the right ── */
/* The heading sits on top and the four steps are two by two beneath it. (They used to be one tall column beside a short heading, which left half of the section empty.) */
#how .wrap{display:grid;grid-template-columns:minmax(0,1fr);row-gap:28px}
#how .sec-head{margin-bottom:0;max-width:760px}
.flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(40px,5vw,56px)}
.flow-step{
  display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:30px;align-items:baseline;
  padding:34px 0;background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;
}
.flow-num{
  grid-row:1 / span 2;min-width:1.7em;
  font-family:var(--font-display);font-weight:800;font-size:clamp(38px,4.4vw,58px);line-height:1;letter-spacing:-.03em;color:var(--spark);
}
html[dir="rtl"] .flow-num{font-family:var(--font-fa);letter-spacing:0}
.flow-step h3{font-size:24px;letter-spacing:-.015em;line-height:1.25}
.flow-step p{margin-top:10px;font-size:16.5px;line-height:1.7;color:var(--ink-2);max-width:56ch}

/* ── "what your customers see": the recording beside three checked points, on the second near-black panel ── */
.sec-tint,#under-the-hood{background:var(--band2);border-block:1px solid var(--line)}
#example{padding:0}
#example .ex-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(40px,6vw,64px);row-gap:0;align-items:center;padding:clamp(32px,5vw,64px)}
#example .kicker{color:var(--pnl-mut)}
#example .mem-row h3{color:var(--pnl-fg)}
#example .mem-row p{color:var(--pnl-mut)}
#example .demo-frame{border-color:var(--pnl-line)}
#example .sec-head{grid-column:1;grid-row:1;margin-bottom:34px;align-self:end}
#example .split{display:contents}
#example .mem{grid-column:1;grid-row:2;align-self:start}
#example .demo-frame{grid-column:2;grid-row:1 / span 2;width:100%;max-width:560px;justify-self:center}
.demo-frame{
  overflow:hidden;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow-lg);
}
.vc-bar{display:flex;align-items:center;gap:7px;padding:14px 18px;border-bottom:1px solid var(--line)}
.vc-bar i{width:10px;height:10px;border-radius:50%;background:var(--line);display:block}
.vc-bar span{margin-inline-start:8px;font-size:12.5px;color:var(--muted);letter-spacing:.02em;font-family:var(--font)}
.mem{display:grid;gap:26px}
.mem-row{display:flex;gap:16px;align-items:flex-start}
/* the three icons are replaced by one check, drawn in the page's ink */
.mem-row .ico{display:grid;place-items:center;width:30px;height:30px;margin:2px 0 0;flex:none;border-radius:50%;background:var(--spark)}
.mem-row .ico svg{width:16px;height:16px;stroke:#111111;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.mem-row h3{font-size:18px;letter-spacing:-.01em;line-height:1.35}
.mem-row p{margin-top:6px;font-size:16px;line-height:1.65;color:var(--ink-2)}

/* ── who it's for ───────────────────────────────────────── */
.pills{display:flex;flex-wrap:wrap;gap:12px}
.pill{
  padding:9px 18px;border:1px solid var(--line);border-radius:999px;background:var(--card);
  font-size:15px;font-weight:600;line-height:1.4;color:var(--ink-2);direction:ltr;
}
.pill-text{direction:inherit}
.pill-fmt{padding:6px 14px;font-size:13.5px}

/* ── products + insight example ─────────────────────────── */
.badge-live{
  display:inline-flex;align-items:center;gap:7px;padding:3px 11px;border-radius:999px;
  background:var(--ok-bg,#E3F4EE);color:var(--ok-ink,#0E7F5F);font-size:12px;font-weight:700;
}
.badge-live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ok-ink,#0E7F5F)}
:root[data-theme="dark"] .badge-live{background:#12261F;color:#5FE0B8}
:root[data-theme="dark"] .badge-live::before{background:#16A37B}
#products .cards{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:12px 56px}
#products .card h3{font-size:30px;line-height:1.1;letter-spacing:-.02em;margin-top:16px!important}
#products .card h3::before{display:none}
#products .card .btn-ghost{height:auto;padding:0;border:0;background:none;border-radius:0;font-size:15.5px;
  text-decoration:underline;text-decoration-color:var(--spark);text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-skip-ink:none}
.card p.card-lead{color:var(--ink);font-weight:700}
.ins-demo{max-width:none;margin:48px 0 0;background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-lg);overflow:hidden;text-align:start}
.ins-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 26px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.ins-bar b{color:var(--ink);font-weight:700}
.ins-tag{padding:4px 12px;border-radius:999px;background:var(--line-soft);color:var(--ink-2);font-size:12px;font-weight:700}
.ins-body{padding:26px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px}
.ins-body h4{margin:0 0 14px;font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
html[dir="rtl"] .ins-body h4{letter-spacing:0;text-transform:none;font-size:14px}
.ins-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;margin-bottom:16px;font-size:15px;color:var(--ink);font-weight:600}
.ins-row span:last-child{font-size:13.5px;color:var(--muted);font-weight:400}
.ins-meter{grid-column:1/-1;height:10px;border-radius:99px;background:var(--line-soft);overflow:hidden}
.ins-meter i{display:block;height:100%;border-radius:99px;background:var(--spark)}
.ins-body ul{margin:0;padding-inline-start:20px;font-size:15px;color:var(--ink-2);display:grid;gap:8px}
.ins-note{font-size:13px;color:var(--muted);margin-top:16px}

/* ── under the hood ─────────────────────────────────────── */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 36px}
.step{padding:28px 0 8px;background:none;border:0;border-top:1px solid var(--line);border-radius:0}
.step h3{font-size:20px}

/* the live knowledge-graph card */
.visual{position:relative}
.visual-card{position:relative;border-radius:24px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-lg);overflow:hidden}
.vc-bar .vc-stage{
  margin-inline-start:auto;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-2);background:var(--line-soft);padding:3px 9px;border-radius:999px;
}
html[dir="rtl"] .vc-bar .vc-stage{letter-spacing:0;text-transform:none;font-size:11.5px}
.vc-q{display:flex;align-items:center;gap:9px;padding:13px 18px;border-bottom:1px solid var(--line)}
.vc-q .mag{width:15px;height:15px;flex:none;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round}
.vc-q p{font-size:14px;font-weight:600;color:var(--ink);opacity:0;transform:translateY(4px);transition:.5s ease}
.vc-q.on p{opacity:1;transform:none}
.vc-q .caret{width:2px;height:15px;border-radius:1px;background:var(--spark);animation:blink 1.1s steps(2,end) infinite}
@keyframes blink{50%{opacity:0}}
.vc-graph{position:relative}
svg.graph{display:block;width:100%;height:auto}
.edge{stroke:var(--graph-edge);stroke-width:1.5;fill:none;transition:stroke .5s}
.ge.lit .edge{stroke:var(--line)}
.trail{stroke:url(#eg);stroke-width:2.6;fill:none;stroke-linecap:round}
.stop-a,.stop-b{stop-color:var(--spark)}
.el{font:700 8.4px var(--font);fill:var(--ink-2);letter-spacing:.07em;text-anchor:middle;
    paint-order:stroke;stroke:var(--card);stroke-width:3.4;stroke-linejoin:round;opacity:0;transition:opacity .45s .15s}
.ge.lit .el{opacity:1}
.node circle{fill:var(--card);stroke:var(--graph-edge);stroke-width:1.6;transition:stroke .45s,stroke-width .45s,filter .45s}
.node text{font:600 10.6px var(--font);fill:var(--muted);text-anchor:middle;transition:fill .45s}
.node .halo{fill:var(--accent-glow);stroke:none;opacity:0;transform-box:fill-box;transform-origin:center}
.node.hit circle{stroke:var(--spark);stroke-width:2.3;filter:drop-shadow(0 8px 16px var(--accent-glow))}
.node.hit text{fill:var(--ink)}
.node.hit .halo{animation:halo 2.8s ease-out infinite}
@keyframes halo{0%{opacity:.5;transform:scale(.7)}70%,100%{opacity:0;transform:scale(1.55)}}
.ans{
  position:absolute;inset-inline-end:16px;bottom:12px;display:flex;align-items:center;gap:10px;max-width:238px;
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:8px 13px;box-shadow:var(--shadow-lg);
  opacity:0;transform:translateY(10px);transition:.5s cubic-bezier(.3,0,.2,1)
}
.ans.on{opacity:1;transform:none}
.ans .tick{width:17px;height:17px;flex:none;border-radius:50%;background:var(--spark);display:grid;place-items:center}
.ans .tick svg{width:9px;height:9px;stroke:#111;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ans b{font-size:13px;font-weight:700;color:var(--ink);display:block;white-space:nowrap}
.ans small{display:block;font-size:11px;line-height:1.45;color:var(--muted)}
.vc-vec{display:grid;grid-template-columns:92px 1fr;gap:15px;align-items:center;padding:15px 18px;border-top:1px solid var(--line)}
.vspace{display:block;width:92px;height:92px;border:1px solid var(--line);border-radius:13px;background:var(--card-alt)}
.vdot{fill:var(--graph-edge);transition:fill .6s,opacity .6s}
.vc-vec.searching .vdot{opacity:.45}
.vhit{fill:var(--graph-edge);transition:fill .5s,r .5s,opacity .5s}
.vhit.on{fill:var(--spark);opacity:1}
.vq{fill:var(--ink)}
.vring{fill:none;stroke:var(--spark);stroke-width:1.1;stroke-dasharray:3 4;opacity:0}
.vc-vec.searching .vring{animation:ring 2.4s ease-out infinite}
@keyframes ring{0%{r:5;opacity:.85}100%{r:42;opacity:0}}
.vrows{display:grid;gap:9px;min-width:0}
.vrow{display:grid;grid-template-columns:1fr auto;gap:4px 10px;opacity:0;transform:translateY(6px);transition:.45s ease}
.vrow.on{opacity:1;transform:none}
.vrow small{font-size:11.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.vrow b{font-size:11px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.vbar{grid-column:1/-1;height:4px;border-radius:999px;background:var(--line-soft);overflow:hidden}
.vbar i{display:block;height:100%;width:0;border-radius:999px;background:var(--spark);transition:width .9s cubic-bezier(.35,0,.15,1)}
.vrow.on .vbar i{width:var(--w)}
.vc-foot{display:flex;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted);position:relative}

/* ── pricing: one outlined panel, the plans as columns (rendered by loadPlans() from /plans) ── */
#plans-grid{
  gap:0!important;margin-top:0!important;overflow:hidden;
  border:1px solid var(--line);border-radius:28px;background:var(--card);
}
.plan-card{
  position:relative;display:flex;flex-direction:column;text-align:start;
  padding:30px 28px;border-radius:0;
  /* a hairline on the top and start edge of every cell: the panel's overflow clips the outer ones */
  box-shadow:calc(var(--dir) * -1px) 0 0 var(--line),0 -1px 0 var(--line)!important;
}
.plan-card:hover{transform:none}
/* the popular plan is a small near-black panel, with an orange tag and an orange button */
.plan-card.popular{background:var(--pop);color:var(--pnl-fg)}
.plan-card.popular .plan-price-unit,.plan-card.popular .plan-meta{color:var(--pnl-mut)}
/* the tag sits on the name's line, out of the flow, so every plan's name starts at the same height */
.plan-badge{
  position:absolute;top:30px;inset-inline-end:22px;
  padding:3px 12px;border-radius:999px;
  background:var(--spark);color:#111;font-size:12px;font-weight:700;line-height:1.6;white-space:nowrap;
}
.plan-name{font-family:var(--font-display);font-size:20px;font-weight:800;line-height:1.4;letter-spacing:-.01em}
html[dir="rtl"] .plan-name{font-family:var(--font-fa);letter-spacing:0}
.plan-price{margin-top:14px;font-family:var(--font-display);font-size:clamp(34px,3.4vw,44px);font-weight:800;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
html[dir="rtl"] .plan-price{font-family:var(--font-fa);font-size:32px;letter-spacing:0}
.plan-price-unit{margin-top:2px;font-size:13.5px;color:var(--muted)}
.plan-meta{margin-top:12px;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
/* the auto margin pins every button to one baseline across the row */
.plan-card .btn{margin-top:auto;width:100%}
.plan-card .plan-meta:last-of-type{margin-bottom:26px}
.plan-card .btn-primary{background:transparent;color:var(--ink);border-color:var(--outline)}
.plan-card.popular .btn-primary{background:var(--spark);color:#111111;border-color:var(--spark)}
/* the custom setup: one full-width strip under the plan panel, not a fifth column (it has no price, no limit and no payment) */
.plan-custom{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-top:20px;padding:28px 30px;border:1px solid var(--line);border-radius:28px;background:var(--card)}
.plan-custom-text{flex:1;min-width:0}
.plan-custom .plan-meta{margin-top:6px;max-width:52em}
.plan-custom-list{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
/* a drawn dot, not a typed bullet: it sits on the same line whatever the font */
.plan-custom-list li{position:relative;padding-inline-start:20px}
.plan-custom-list li::before{content:"";position:absolute;inset-inline-start:0;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--spark)}
.plan-custom .btn{flex:none;white-space:nowrap}
@media (max-width:820px){
  .plan-custom{flex-direction:column;align-items:stretch;gap:22px;padding:24px 22px;border-radius:22px}
  .plan-custom-list{grid-template-columns:1fr}
  .plan-custom .btn{width:100%}
}
.plan-shared{max-width:none;margin:26px 0 0;padding:0;border:0;border-radius:0;background:none;text-align:start;font-size:14.5px;color:var(--muted)}


/* ── FAQ: two open columns separated by hairlines ───────── */
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 56px;align-items:start}
.faq details{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:0}
.faq summary{
  list-style:none;cursor:pointer;padding:24px 0;font-size:17.5px;font-weight:800;line-height:1.4;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.faq summary::-webkit-details-marker{display:none}
/* The plus and the minus are DRAWN (a "+" / "–" character sits low in its line box and the two never match); an open item just loses the vertical bar. */
.faq summary::after{content:"";flex:none;width:14px;height:14px;color:var(--muted);
  background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat}
.faq details[open] summary::after{color:var(--spark);background-size:100% 2px,0 0}
.faq details p{margin:-6px 0 0;padding-bottom:26px;font-size:15.5px;line-height:1.7;color:var(--ink-2);max-width:60ch}

/* ── final call to action: the original near-black panel. Its look now lives in the shared --pnl tokens
   above (near-black in BOTH modes, so the orange on it is the same bright orange as everywhere else and the
   button keeps black text; it once flipped to off-white in dark mode, which turned the orange muddy). ── */
#start .wrap{padding-bottom:0}
.band{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 40px;align-items:center;text-align:start;
  padding:clamp(40px,6vw,80px);
}
.band h2{grid-column:1;font-size:clamp(34px,4.6vw,60px);line-height:1.03;letter-spacing:-.035em;max-width:none}
html[dir="rtl"] .band h2{font-size:clamp(28px,3.6vw,44px);line-height:1.4;letter-spacing:0}
.hl-navy{padding:0;background:none;color:var(--spark)}
.band p{grid-column:1;margin:0;font-size:17px;line-height:1.65;max-width:52ch;color:var(--pnl-mut)}
.band .hero-cta{grid-column:2;grid-row:1 / span 2;margin:0;justify-content:flex-start}

/* ── footer ─────────────────────────────────────────────── */
footer{border-top:1px solid var(--line);margin-top:96px;padding:44px 0 52px}
.foot{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.foot p{font-size:14px;color:var(--muted)}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;font-size:14.5px;font-weight:600;color:var(--ink-2)}
.foot-links a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}

/* ── reveal on scroll ───────────────────────────────────── */
.rv{
  opacity:0;transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1);
  transition-delay:calc(var(--rv-i,0) * 55ms);
}
.rv.in{opacity:1;transform:none}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width:980px){
  .nav-links{display:none}
  .brand{margin-inline-end:auto}
  .hero-inner{grid-template-columns:1fr;row-gap:0}
  .hero-visual{grid-column:1;grid-row:auto;margin-top:52px}
  #how .wrap{row-gap:36px}
  .flow{grid-template-columns:1fr;border-bottom:1px solid var(--line)}
  #example .ex-panel{grid-template-columns:1fr}
  #example .sec-head,#example .mem,#example .demo-frame{grid-column:1;grid-row:auto}
  #example .demo-frame{margin-bottom:34px;order:2}
  #example .sec-head{order:1}
  #example .mem{order:3}
  .cards,.steps{grid-template-columns:repeat(2,1fr)}
  .band{grid-template-columns:1fr}
  .band .hero-cta{grid-column:1;grid-row:auto;margin-top:12px}
}
@media (max-width:860px){
  .faq{grid-template-columns:1fr}
}
@media (max-width:620px){
  body{font-size:16px}
  .wrap{padding-inline:20px}
  .cards,.steps{grid-template-columns:1fr}
  .flow-step{column-gap:20px;padding:26px 0}
  .hero-cta{flex-direction:column;align-items:stretch;width:100%}
  .hero-cta .textlink{justify-content:center}
  .cm-body,.cm-head,.cm-foot{padding-inline:18px}
  .cm-input{margin-inline:18px}
  .hero-inner,.ex-panel,.band{border-radius:26px}
  .hero-inner,#example .ex-panel{padding:30px 22px}
  .band{padding:34px 24px}
  .band .hero-cta{align-items:stretch}
  .nav-signin{display:none}
  .nav{gap:8px}
  #plans-grid{border-radius:22px}
}
@media (max-width:420px){
  .wrap{padding-inline:16px}
  .brand span:last-child{display:none}
  .nav-cta.btn-sm{padding-inline:14px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
}

/* "Free demo with your file" dialog: a light card on both themes' pages, like the hero's chat card */
.demo-dialog{border:1px solid var(--panel-bd);border-radius:20px;padding:26px 26px 22px;width:min(460px,calc(100vw - 32px));background:var(--card);color:var(--ink);box-shadow:var(--hard-lg,0 24px 60px rgba(0,0,0,.25))}
.demo-dialog::backdrop{background:rgba(0,0,0,.55)}
.demo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.demo-head h2{margin:0;font-size:22px;line-height:1.3}
.demo-x{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--outline);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}
.demo-x:hover{background:var(--card-alt)}
.demo-x svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.demo-dialog p{margin:12px 0 18px;color:var(--muted);font-size:15px;line-height:1.7}
.demo-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--panel-bd)}
.demo-what{display:flex;flex-direction:column;gap:4px;min-width:0;align-items:flex-start}
.demo-what small{color:var(--muted);font-size:13px}
.demo-val{font-size:18px;font-weight:700;user-select:all;overflow-wrap:anywhere}
.demo-acts{display:flex;gap:8px;flex:none}
.demo-dialog .btn:focus-visible,.demo-x:focus-visible{outline:3px solid var(--kicker);outline-offset:3px}
@media (max-width:420px){
  .demo-row{flex-direction:column;align-items:stretch}
  .demo-acts .btn{flex:1}
}
.demo-form{display:flex;flex-direction:column;gap:12px;margin-bottom:6px}
.demo-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2)}
.demo-field input,.demo-field textarea{font:inherit;font-size:15px;font-weight:500;color:var(--ink);background:var(--card);border:1.5px solid var(--outline);border-radius:12px;padding:10px 12px;width:100%;box-sizing:border-box}
.demo-field textarea{resize:vertical;min-height:64px}
.demo-field input:focus,.demo-field textarea:focus{outline:none;border-color:var(--kicker);box-shadow:0 0 0 4px var(--accent-glow)}
.demo-hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.demo-dialog .demo-err{margin:0;padding:10px 12px;border-radius:12px;background:var(--danger-soft);border:1.5px solid var(--danger-soft-border);color:var(--danger-ink);font-size:14px}
.demo-form .btn{align-self:flex-start}
.demo-dialog .demo-fine{margin:0;font-size:12.5px;line-height:1.6}
.demo-done{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:14px;background:var(--accent-soft);border:1.5px solid var(--outline);margin:6px 0 4px}
.demo-done[hidden],.demo-err[hidden],.demo-form[hidden],.demo-lead[hidden]{display:none}
.demo-dialog .demo-row:first-of-type{margin-top:0}
