/* ARIA — site styles. Logical properties throughout so RTL and LTR share one sheet. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #04070D;
  --panel: #070D18;
  --panel-2: #04080F;
  --text: #FFFFFF;
  --text-2: #A9BDCE;
  --muted: #8EA3BA;
  --accent: #2ED3A7;
  --accent-hi: #5BE6C2;
  --amber: #F0A63C;
  --blue: #56A8F5;
  --line: rgba(140, 180, 200, .14);
  --line-2: rgba(140, 180, 200, .26);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3vw, 34px);
  --section: clamp(72px, 9vw, 128px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Rubik, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }

/* Background: the ARIA grid and glow */
.bg-grid {
  position: fixed; inset: -90px 0 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(125,147,172,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(125,147,172,.05) 1px, transparent 1px);
  background-size: 90px 90px;
  animation: drift 26s linear infinite;
}
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(110% 60% at 50% 100%, rgba(46,211,167,.11), transparent 65%); }
@keyframes drift { to { transform: translateY(-90px); } }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.mark { position: relative; width: 16px; height: 16px; border: 1.5px solid var(--accent); display: inline-block; flex: none; }
.mark::after { content: ""; position: absolute; inset: 3.5px; background: var(--accent); }
.mark-lg { width: 44px; height: 44px; box-shadow: 0 0 30px -6px rgba(46,211,167,.7); }
.mark-lg::after { inset: 13px; }
.wordmark { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: .3em; color: var(--text); }

/* Skip link */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--bg); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(4,7,13,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 10px clamp(14px, 2vw, 28px); min-height: 68px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: wrap; }
.site-nav a { font-size: 14.5px; font-weight: 500; padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-nav .lang-switch { margin-inline-start: 8px; border: 1px solid var(--line-2); padding: 6px 12px; font-size: 13.5px; }
.site-nav .lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .js .menu-toggle {
    display: inline-flex; margin-inline-start: auto; background: transparent; color: var(--text); border: 1px solid var(--line-2);
    padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer;
  }
  .js .site-nav { display: none; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 14px; margin: 0; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .js .site-nav .lang-switch { margin: 10px 0 0; align-self: flex-start; border: 1px solid var(--line-2); }
  .header-cta { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 24px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; border: 1px solid transparent; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 40px -12px rgba(46,211,167,.8); }
.btn-primary:hover { background: var(--accent-hi); color: var(--bg); }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 10px 17px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 28px; color: var(--accent); font-weight: 600; }
.text-link:hover { color: var(--accent-hi); }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.section-title { margin-top: 16px; font-size: clamp(29px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; max-width: 22em; text-wrap: balance; }
.section-sub { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); max-width: 46em; }
.lead { margin-top: 18px; font-size: 17.5px; color: var(--text-2); max-width: 34em; }
.note { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 52em; }
.note.small { font-size: 13.5px; margin-top: 14px; }
[lang="he"] .section-title, [lang="he"] h1 { letter-spacing: -.01em; }

/* Sections */
.section { padding-top: var(--section); }
.section-tight { padding-top: clamp(36px, 5vw, 60px); }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 128px); }
.hero h1 { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(38px, 6.6vw, 86px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; max-width: 15em; text-wrap: balance; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(26px, 4vw, 44px); align-items: end; }
.hero-sub { font-size: clamp(17.5px, 1.5vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 36em; }
.hero-reassure { margin-top: 18px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); color: var(--text); font-size: 16.5px; max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; margin-top: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line); }
.hero-points li { padding-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.hero-points strong { font-size: 16px; font-weight: 600; }
.hero-points span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.hero-inner .inner-title { margin-top: 18px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 17em; text-wrap: balance; }
.hero-inner .hero-sub { margin-top: 22px; }
.hero-inner .btn { margin-top: 28px; }

/* Examples */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(30px, 4vw, 48px); }
.example { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(11,18,32,.85), rgba(5,9,16,.85)); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; }
.tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--accent); border: 1px solid rgba(46,211,167,.35); padding: 3px 10px; }
.example h3 { margin-top: 16px; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.example dl { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.example dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.example dd { margin-top: 4px; font-size: 15.5px; color: var(--text-2); line-height: 1.55; }
.example .outcome { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.example .outcome dd { color: var(--text); }

/* Workflow illustration */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(30px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.demo { border: 1px solid rgba(46,211,167,.3); background: linear-gradient(180deg, var(--panel), var(--panel-2)); box-shadow: 0 50px 100px -50px #000, 0 0 80px -40px rgba(46,211,167,.35); }
.demo-head { padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(46,211,167,.04); }
.demo-tag { font-size: 12.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line-2); padding: 3px 10px; }
.scenario { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.scenario-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.scenario-text { margin-top: 6px; font-size: 15.5px; color: var(--text); }
.step { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.step .dot, .rules .dot { width: 9px; height: 9px; flex: none; margin-top: 8px; background: var(--c, var(--muted)); box-shadow: 0 0 10px var(--c, transparent); }
.step-body { flex: 1; min-width: 0; }
.step-text { font-size: 15.5px; line-height: 1.5; }
.step-status { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--c, var(--muted)); }
.step[data-state="done"], .step[data-state="sent"], .rules [data-kind="auto"] { --c: var(--accent); }
.step[data-state="waiting"], .rules [data-kind="approval"] { --c: var(--amber); }
.step[data-state="handed"], .rules [data-kind="person"] { --c: var(--blue); }
.step[data-state="held"] { --c: var(--muted); }
.step[data-state="waiting"] { background: rgba(240,166,60,.07); }
.approval { margin-top: 14px; padding-inline-start: 14px; border-inline-start: 2px solid var(--amber); }
.step[data-state="sent"] .approval, .step[data-state="held"] .approval { border-inline-start-color: var(--line-2); }
.draft-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.draft { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.demo-foot { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.demo-feedback:empty { display: none; }
.demo-feedback { font-size: 14.5px; color: var(--text); border-inline-start: 2px solid var(--accent); padding-inline-start: 12px; }
.sim-note { font-size: 13px; color: var(--muted); }
.side-title { font-size: 15px; font-weight: 600; }
.rules { margin-top: 12px; border-top: 1px solid var(--line); }
.rules li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rules li div { display: flex; flex-direction: column; gap: 2px; }
.rules strong { font-size: 15.5px; font-weight: 600; }
.rules span:not(.dot) { font-size: 14.5px; color: var(--muted); }
.rules-wide { margin-top: clamp(26px, 3vw, 38px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.rules-wide strong { font-size: 17px; }
.rules-wide span:not(.dot) { font-size: 15.5px; line-height: 1.55; }
.why { margin-top: 20px; border: 1px solid var(--line); }
.why summary { cursor: pointer; padding: 13px 16px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.why ol { list-style: decimal; padding: 0 16px 14px; padding-inline-start: 36px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text-2); }

/* Process */
.stages-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 28px; margin-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line); }
.stages-compact li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stages-compact h3 { margin-top: 12px; font-size: 18.5px; font-weight: 600; }
.stages-compact p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.stage-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(46,211,167,.5); color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 600; flex: none; }
.pricing-line { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(46,211,167,.28); background: rgba(46,211,167,.05); color: var(--text-2); font-size: 16px; max-width: 60em; }
.pricing-line strong { color: var(--text); }
.stages li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px clamp(20px, 3vw, 44px); padding: clamp(24px, 3vw, 34px) 0; border-top: 1px solid var(--line); align-items: start; }
.stages li:last-child { border-bottom: 1px solid var(--line); }
.stage-title { display: flex; align-items: center; gap: 14px; }
.stage-title h2 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.stages p { font-size: 16.5px; color: var(--text-2); }
.stage-output { display: flex; flex-direction: column; gap: 5px; }
.stage-output span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stage-output strong { font-size: 15.5px; font-weight: 600; color: var(--accent); line-height: 1.45; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(26px, 3vw, 38px); }
.price-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(11,18,32,.85), rgba(5,9,16,.85)); padding: clamp(22px, 2.4vw, 30px); }
.price-card h3 { font-size: 21px; font-weight: 700; }
.price-card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(30px, 4vw, 64px); align-items: start; }
.signature { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); }
.signature strong { font-size: 18px; }
.signature span { font-size: 14.5px; color: var(--muted); }
.about-points { border-top: 1px solid var(--line); }
.about-points li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.about-points strong { font-size: 18px; font-weight: 600; }
.about-points span { font-size: 15.5px; color: var(--muted); }

/* FAQ */
.faq { margin-top: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.4; }
.faq summary:hover h3 { color: var(--accent); }
.faq details p { padding-bottom: 22px; color: var(--text-2); font-size: 16.5px; max-width: 48em; }

/* Contact */
.contact { margin-top: var(--section); border-top: 1px solid rgba(46,211,167,.26); background: linear-gradient(180deg, rgba(46,211,167,.08), transparent 55%); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 4vw, 64px); padding-block: clamp(56px, 7vw, 100px); align-items: start; }
.form-card { border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--panel-2)); padding: clamp(20px, 2.5vw, 32px); }
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 13px; font: inherit; font-size: 16px; border-radius: 0; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--amber); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
::placeholder { color: #6F849C; opacity: 1; }
.field-error, .form-error { font-size: 14px; color: var(--amber); }
.form-error { border-inline-start: 2px solid var(--amber); padding-inline-start: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-success { padding: 34px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.form-success:focus { outline: none; }
.success-title { margin-top: 12px; font-size: 21px; font-weight: 700; }
.form-success p:not(.success-title) { color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-block: 40px 24px; }
.footer-desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 30em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; }
.footer-nav a { color: var(--text-2); padding: 4px 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 18px 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-grid { animation: none; }
  .btn { transition: none; }
}
