/* Gyano site styles. Logical properties throughout so English (LTR) and Hebrew (RTL) share one stylesheet. */
:root {
  --cobalt: #3A3AF0;
  --cobalt-dark: #2A2AB8;
  --cobalt-soft: #EEF0FF;
  --ink: #0E1116;
  --ink-2: #3B414D;
  --ink-3: #4A505C;
  --muted: #565C68;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --line: #E3E5EA;
  --lilac: #9B9BFF;
  --dim: #A9AFBC;
  --gutter: clamp(20px, 5vw, 48px);
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Arial Hebrew", sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Arial Hebrew", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .band-cobalt :focus-visible, .site-footer-dark :focus-visible { outline-color: #FFFFFF; }

.skip-link { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { inset-block-start: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }

/* Header */
.site-header .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; display: block; }
.brand span { font: 700 21px/1 var(--font-display); letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 15px; font-weight: 500; }
.site-nav a.navlink { text-decoration: none; color: var(--ink-2); padding-block: 8px; }
.site-nav a.navlink:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch { font-weight: 600; color: var(--ink); text-decoration: none; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14.5px; }
.lang-switch:hover { background: var(--ink); color: #fff; }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; border-radius: 12px; padding: 16px 28px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { filter: brightness(1.12); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-pill { border-radius: 999px; padding: 10px 20px; font-size: 15px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html[lang="he"] .eyebrow { letter-spacing: 0.02em; text-transform: none; }

.h1 { font: 800 clamp(40px, 6.2vw, 80px)/1.02 var(--font-display); letter-spacing: -0.035em; margin-block-start: 20px; }
.h2 { font: 800 clamp(32px, 4.6vw, 54px)/1.05 var(--font-display); letter-spacing: -0.03em; margin-block-start: 14px; max-width: 780px; }
html[lang="he"] .h1, html[lang="he"] .h2 { letter-spacing: -0.01em; line-height: 1.12; }
.lead { margin-block-start: 26px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--ink-3); }
.sub { margin-block-start: 18px; max-width: 640px; color: var(--ink-3); font-size: 19px; }

/* Hero */
.hero .wrap { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-actions { margin-block-start: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.checks { margin-block-start: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { flex: none; }
.hero-visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.demo-chat { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 22px; box-shadow: 8px 8px 0 var(--ink); }
[dir="rtl"] .demo-chat { box-shadow: -8px 8px 0 var(--ink); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.demo-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.demo-title .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--cobalt); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tag { font: 500 12px/1.2 var(--font-mono); padding: 5px 10px; border-radius: 999px; background: #EEF0F5; color: var(--ink-2); }
.demo-msgs { display: flex; flex-direction: column; gap: 12px; padding-block-start: 18px; font-size: 15.5px; }
.msg { max-width: 86%; padding: 11px 15px; }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-bot { align-self: flex-start; background: #EEF0F5; border-radius: 16px 16px 16px 4px; }
[dir="rtl"] .msg-user { border-radius: 16px 16px 16px 4px; }
[dir="rtl"] .msg-bot { border-radius: 16px 16px 4px 16px; }
.demo-flow { margin-inline-start: clamp(0px, 5vw, 56px); background: var(--cobalt); color: #fff; border-radius: 18px; padding: 20px 22px; }
.demo-flow .tag { background: rgba(255,255,255,0.18); color: #fff; }
.flow-steps { margin-block-start: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.flow-steps li { background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.flow-steps svg { flex: none; }
[dir="rtl"] .flow-steps svg { transform: scaleX(-1); }

/* Fact strip */
.band-dark { background: var(--ink); color: #fff; }
.facts .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.fact { flex: 1 1 200px; }
.fact strong { display: block; font: 800 34px/1.1 var(--font-display); letter-spacing: -0.02em; }
.fact span { display: block; margin-block-start: 8px; color: var(--dim); font-size: 15px; }

/* Services */
.cards { margin-block-start: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 260px; min-width: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.card.featured { background: var(--cobalt); color: #fff; }
.card-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.num { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.featured .num { color: #fff; opacity: 0.9; }
.badge { font: 500 12px/1 var(--font-mono); background: #fff; color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.card h3 { margin-block-start: 10px; font: 700 26px/1.15 var(--font-display); letter-spacing: -0.02em; }
html[lang="he"] .card h3 { letter-spacing: 0; }
.for { margin-block-start: 16px; font-size: 15.5px; color: var(--ink-3); }
.featured .for { color: #fff; }
.for b { color: var(--ink); }
.featured .for b { color: #fff; }
.deliver { margin-block-start: 16px; display: flex; flex-direction: column; gap: 9px; font-size: 15.5px; }
.deliver li { display: flex; gap: 10px; align-items: flex-start; }
.deliver svg { flex: none; margin-block-start: 4px; }
.card-note { margin-block-start: 12px; font-size: 14px; color: var(--muted); }
.featured .card-note { color: #fff; }
.care { margin-block-start: auto; padding-block-start: 22px; }
.care div { background: var(--cobalt-soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: var(--cobalt-dark); }
.featured .care div { background: rgba(255,255,255,0.18); color: #fff; }
.care b { display: block; }
.cards-foot { margin-block-start: 28px; color: var(--ink-3); max-width: 760px; }

/* Process */
.process .section { padding-block: clamp(56px, 8vw, 104px); }
.process .eyebrow { color: var(--lilac); }
.steps { margin-block-start: 52px; display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 230px; min-width: 0; border-block-start: 2px solid var(--lilac); padding-block-start: 22px; }
.step .n { font: 800 56px/1 var(--font-display); letter-spacing: -0.03em; color: var(--lilac); }
.step h3 { margin-block-start: 16px; font: 700 24px/1.2 var(--font-display); }
html[lang="he"] .step h3 { font-size: 22px; }
.step p { margin-block-start: 10px; color: var(--dim); font-size: 16px; }

/* FAQ */
.faq .wrap { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-wrap: wrap; gap: 48px; }
.faq-head { flex: 1 1 320px; min-width: 0; }
.faq-list { flex: 2 1 480px; min-width: 0; }
.faq-item { border-block-start: 1.5px solid var(--ink); }
.faq-item:last-child { border-block-end: 1.5px solid var(--ink); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font: 700 21px/1.3 var(--font-display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
html[lang="he"] .faq-item summary { font-size: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 500 28px/1 var(--font-mono); color: var(--cobalt); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-block-end: 24px; color: var(--ink-3); max-width: 720px; }

/* Contact */
.band-cobalt { background: var(--cobalt); color: #fff; }
.contact .wrap { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 360px; min-width: 0; }
.contact-copy .h2 { color: #fff; font-size: clamp(36px, 5vw, 62px); margin-block-start: 0; }
.contact-copy p { margin-block-start: 24px; max-width: 440px; font-size: 19px; }
.contact-copy .mail { font: 500 15px/1.4 var(--font-mono); }
.contact-copy .mail a { color: #fff; }
form.lead { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea { padding: 14px; border: 1.5px solid #8A8F9B; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field .err { color: #B3261E; font-size: 14px; font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.consent input { width: 20px; height: 20px; margin-block-start: 2px; flex: none; accent-color: var(--cobalt); }
.consent a { color: var(--cobalt-dark); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.lead .btn { width: 100%; }
form.lead .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1C7A4B; }
.form-status.bad { color: #B3261E; }
.form-status .btn { margin-block-start: 10px; width: auto; padding: 12px 18px; font-size: 15px; }

/* Footer */
.site-footer .wrap { padding-block: 36px 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 14.5px; }
.site-footer .brand img { width: 32px; height: 32px; }
.site-footer .brand span { font-size: 18px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-3); }
.footer-note { flex-basis: 100%; font-size: 13.5px; color: var(--muted); max-width: 720px; }

/* Text pages */
.page .wrap { padding-block: clamp(40px, 6vw, 80px); max-width: 860px; }
.page h1 { font: 800 clamp(34px, 5vw, 52px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.page h2 { font: 700 24px/1.25 var(--font-display); margin-block-start: 36px; }
.page p, .page li { margin-block-start: 12px; color: var(--ink-2); }
.page ul { list-style: disc; padding-inline-start: 22px; }
.notice { margin-block-start: 22px; background: #FFF4D6; border: 1.5px solid #8A6A00; color: #3D2F00; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.updated { color: var(--muted); font-size: 14.5px; margin-block-start: 10px; }

/* Chat widget */
#gy-launch { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 2147483000; display: flex; align-items: center; gap: 10px; background: var(--cobalt); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font: 600 16px/1 var(--font-body); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
[dir="rtl"] #gy-launch { box-shadow: -4px 4px 0 var(--ink); }
#gy-launch:focus-visible, #gy-panel button:focus-visible, #gy-panel input:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
#gy-panel { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 2147483001; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 24px); display: none; flex-direction: column; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); font: 400 15.5px/1.45 var(--font-body); }
[dir="rtl"] #gy-panel { box-shadow: -8px 8px 0 var(--ink); }
#gy-panel.gy-open { display: flex; }
#gy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
#gy-head b { font: 700 17px/1.1 var(--font-display); display: block; }
#gy-head small { display: block; margin-block-start: 3px; font-size: 12.5px; color: #C4C9D4; }
#gy-close { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 8px; border-radius: 8px; display: flex; }
#gy-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.gy-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gy-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.gy-user { align-self: flex-end; background: var(--ink); color: #fff; }
.gy-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--bg); }
.gy-chip { background: #fff; color: var(--cobalt-dark); border: 1.5px solid var(--cobalt); border-radius: 999px; padding: 8px 13px; font: 600 14px/1 var(--font-body); cursor: pointer; }
.gy-chip:hover { background: var(--cobalt-soft); }
.gy-act { align-self: flex-start; background: var(--cobalt); color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font: 600 15px/1 var(--font-body); cursor: pointer; }
#gy-form { display: flex; gap: 8px; padding: 12px; border-block-start: 1px solid var(--line); background: #fff; }
#gy-input { flex: 1; min-width: 0; padding: 12px; border: 1.5px solid #8A8F9B; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
#gy-send { background: var(--cobalt); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font: 600 15px/1 var(--font-body); cursor: pointer; }
.gy-typing { align-self: flex-start; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  #gy-panel { inset-inline-end: 0; inset-block-end: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: 0; box-shadow: none; }
  #gy-launch { inset-inline-end: 12px; inset-block-end: 12px; }
  .site-nav { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Notice bar */
.notice-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 2147482999; background: var(--ink); color: #fff; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; font-size: 15px; }
.notice-bar p { flex: 1 1 320px; }
.notice-bar a { color: #fff; }
.notice-bar button { background: #fff; color: var(--ink); border: 0; border-radius: 10px; padding: 10px 18px; font: 600 15px/1 var(--font-body); cursor: pointer; }
body.has-notice #gy-launch { inset-block-end: 96px; }
@media (max-width: 480px) { body.has-notice #gy-launch { inset-block-end: 150px; } }

/* Hebrew typography: avoid the extra-heavy fallback face (Segoe UI Black) that 800 weight maps to on Windows. */
html[lang="he"] {
  --font-body: "Segoe UI", Arial, "Arial Hebrew", system-ui, sans-serif;
  --font-display: "Segoe UI", Arial, "Arial Hebrew", system-ui, sans-serif;
}
html[lang="he"] .h1, html[lang="he"] .h2, html[lang="he"] .fact strong, html[lang="he"] .contact-copy .h2 { font-weight: 700; }
html[lang="he"] .h1 { line-height: 1.12; }
html[lang="he"] .card h3, html[lang="he"] .step h3, html[lang="he"] .faq-item summary, html[lang="he"] .brand span { font-weight: 700; }
.flow-steps li.arrow { background: none; padding: 0; border-radius: 0; display: inline-flex; }

/* WhatsApp / phone */
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; padding: 12px 20px; font-size: 16px; }
.btn-outline-light:hover { background: #fff; color: var(--cobalt-dark); filter: none; }
.contact-actions { margin-block-start: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.wa-float { position: fixed; inset-inline-start: 20px; inset-block-end: 20px; z-index: 2147482998; width: 56px; height: 56px; border-radius: 50%; background: #1DA851; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink); }
[dir="rtl"] .wa-float { box-shadow: -3px 3px 0 var(--ink); }
.wa-float:hover { filter: brightness(1.08); }
body.has-notice .wa-float { inset-block-end: 96px; }
@media (max-width: 480px) { .wa-float { width: 52px; height: 52px; inset-inline-start: 12px; inset-block-end: 12px; } body.has-notice .wa-float { inset-block-end: 150px; } }
.gy-ts { align-self: flex-start; }
#ts-form { min-height: 0; }
