/* AiShop site — design tokens derived from branding/aishop (indigo #6366F1 → cyan #06B6D4).
   Text colors are AA-checked: --brand-ink (#4338CA) 7.9:1 on white; --muted 4.8:1 on --paper. Cyan is decorative only. */
:root {
  --paper: #FFFFFF;
  --surface: #F5F6FB;
  --surface-2: #ECEEF8;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #5B6476;
  --line: #E2E5F0;
  --brand: #6366F1;
  --brand-ink: #4338CA;
  --cyan: #06B6D4;
  --grad: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --on-brand: #FFFFFF;
  --ok: #047857;
  --ok-bg: #E7F6EF;
  --dark: #0B1024;
  --on-dark: #E8EAF6;
  --on-dark-s: #A6ADCB;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 18px 40px -24px rgba(49,46,129,.45);
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1024; --surface: #121933; --surface-2: #1A2242; --ink: #EEF0FA; --ink-soft: #C6CBE0;
    --muted: #9CA3C2; --line: #263055; --brand-ink: #A5B4FC; --ok: #6EE7B7; --ok-bg: #0F2E26;
    --dark: #060918; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -24px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1024; --surface: #121933; --surface-2: #1A2242; --ink: #EEF0FA; --ink-soft: #C6CBE0;
  --muted: #9CA3C2; --line: #263055; --brand-ink: #A5B4FC; --ok: #6EE7B7; --ok-bg: #0F2E26;
  --dark: #060918; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 "Heebo", "Segoe UI", Arial, sans-serif; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; }
.logo img { width: 36px; height: 36px; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-inline-start: 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand-ink); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: #4F46E5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #4F46E5; } }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 16px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(99,102,241,.22), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(6,182,212,.18), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 36px; }
@media (min-width: 960px) { .hero { padding: 88px 0 72px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .9rem; color: var(--brand-ink); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.proof li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* hero visual: hub */
.hub { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; width: 100%; }
.hub .core { position: absolute; inset: 34%; border-radius: 28%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 20px 50px -18px rgba(79,70,229,.7); }
.hub .core img { width: 62%; }
.hub ul { list-style: none; margin: 0; padding: 0; }
.hub li { position: absolute; transform: translate(50%, -50%); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.hub svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.rings circle { fill: none; stroke: var(--line); stroke-dasharray: 4 6; }

/* sections */
.band { padding: 64px 0; }
.band.alt { background: var(--surface); }
.band.dark { background: var(--dark); color: var(--on-dark); }
.band.dark .lede, .band.dark p { color: var(--on-dark-s); }
.band.dark a:not(.btn) { color: #C7D2FE; }
.sec { max-width: 720px; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.band.alt .card { background: var(--paper); }
.card p { color: var(--ink-soft); margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; }

/* integrations grid */
.int { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.int:hover { transform: translateY(-2px); border-color: var(--brand); }
.int .names { font-size: .9rem; color: var(--muted); }
.int .more { margin-top: auto; padding-top: 8px; color: var(--brand-ink); font-weight: 700; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); width: fit-content; }
.tag.code { background: var(--surface-2); color: var(--ink-soft); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 0 60%, transparent 61%); }
.checks li::after { content: ""; position: absolute; inset-inline-start: 5px; top: .78em; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* plans */
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .name { font-size: 1.4rem; font-weight: 800; }
.plan .who { color: var(--muted); }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured::before { content: "הכי נבחרת"; position: absolute; top: -13px; inset-inline-start: 20px; background: var(--brand-ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.plan .btn { margin-top: auto; }

/* showcase */
.show { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.show .dom { direction: ltr; text-align: end; color: var(--brand-ink); font-weight: 700; font-size: .95rem; }

/* lead form */
.lead { display: grid; gap: 28px; }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1fr; align-items: start; } }
form.lf { display: grid; gap: 14px; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.lf label { display: grid; gap: 6px; font-weight: 600; }
.lf input, .lf select, .lf textarea { font: inherit; min-height: 48px; padding: 10px 14px; border: 1.5px solid #8A93AB; border-radius: 12px; background: var(--paper); color: var(--ink); }
.lf textarea { min-height: 96px; resize: vertical; }
.lf input:focus, .lf select:focus, .lf textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.lf .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf .msg { min-height: 1.5em; margin: 0; font-weight: 600; color: var(--ink-soft); }
.lf .done { font-size: 1.2rem; font-weight: 700; color: var(--ok); margin: 0; }
.lf .opt { font-weight: 400; color: var(--muted); }
.contact-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.band.dark .btn-ghost { color: var(--on-dark); border-color: #3B4470; }

/* page hero (integration pages) */
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.phero { padding: 44px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.two { display: grid; gap: 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1.3fr .7fr; } }
.aside { position: sticky; top: 84px; }
.aside .btn { width: 100%; margin-top: 10px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.related a:hover { border-color: var(--brand); }

/* footer */
footer.foot { background: var(--dark); color: var(--on-dark-s); padding: 48px 0 32px; font-size: .95rem; }
.foot .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h2 { font-size: 1rem; color: var(--on-dark); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--on-dark-s); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .logo { color: #fff; }
.foot .fine { border-top: 1px solid #222A4A; margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* review fixes: anchors clear the sticky header; compact hub on phones */
section[id], [id="main"] { scroll-margin-top: 76px; }
@media (max-width: 959px) { .hub { max-width: 300px; } .hub li { font-size: .75rem; padding: 4px 9px; } }
/* critique/a11y pass 2 */
h1, h2 { text-wrap: balance; }
.lede { text-wrap: pretty; }
.mnav { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 6px; scrollbar-width: none; }
.mnav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
@media (min-width: 900px) { .mnav { display: none; } }
.foot ul a, .crumbs a, .fine a, .related a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { line-height: 2; }
.plan.featured::before { content: "הכי משתלם לעסק עם קופה"; }
.hero .wrap > div:first-child { min-width: 0; }
.lf [aria-invalid="true"] { border-color: #B91C1C; outline: 2px solid #B91C1C; }
/* a11y: the lead form is a light surface inside the dark band — reset text/link colors (was 2.2:1 / 1.5:1) */
.band.dark .lf p { color: var(--ink-soft); }
.band.dark .lf .opt { color: var(--muted); }
.band.dark .lf a:not(.btn) { color: var(--brand-ink); }
.band.dark .lf .done { color: var(--ok); }
.logo { min-height: 44px; }
/* showcase cards */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.show .thumb { width: calc(100% + 44px); max-width: none; margin: -22px -22px 10px; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.show .more { margin-top: auto; padding-top: 8px; color: var(--brand-ink); font-weight: 700; }
.show { transition: transform .15s, border-color .15s; }
.show:hover { transform: translateY(-2px); border-color: var(--brand); }
.show:hover .thumb { filter: brightness(1.03); }
