/* devolar-product: a product marketing site, Hebrew first (from the bazela.co.il design and the Bazele design system).
   Colours, fonts, radii and shadows are the custom properties in tokens.css (a media file of the site); the site settings
   `accent` and `tokens` override single ones. Logical properties throughout, so left-to-right pages mirror by themselves. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
a:hover { color: var(--fg); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-200%); background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-s); z-index: 50; }
.skip:focus { transform: none; }

/* type */
.display { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; text-wrap: balance; }
.h2-sm { font-size: 26px; line-height: 1.2; font-weight: 700; }
.h3 { font-size: 19px; line-height: 1.35; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.pill { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--radius-s); font-size: 13px; font-weight: 500; background: var(--accent-surface); color: var(--accent-text); border: 1px solid var(--accent-border); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.more svg { flex: none; }
[dir="rtl"] .more svg { transform: scaleX(-1); }

/* frame */
.page { max-width: var(--page-width); margin: 0 auto; padding-inline: 24px; }
.page.narrow { max-width: calc(820px + 48px); }
.sec { padding: 80px 0; }
.sec.is-tight { padding: 0 0 80px; }
.intro-sec { padding-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.intro.is-center { align-items: center; text-align: center; margin-inline: auto; }
.intro.is-center .lead { margin-inline: auto; }
.is-center-text { text-align: center; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.is-dark { background: var(--dark); color: var(--dark-fg); }
.is-dark .lead, .is-dark .muted, .is-dark .item-text { color: var(--dark-muted); }
.is-dark .eyebrow { color: var(--accent); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: var(--shadow-xs); cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--fg); background: var(--bg); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); filter: brightness(0.96); }
.btn-dark { background: var(--dark); color: var(--dark-fg); border-color: transparent; }
.btn-dark:hover { background: var(--dark); color: var(--dark-fg); filter: brightness(1.2); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 600; }

/* header */
.site-header { border-bottom: 1px solid var(--line-quiet); background: var(--bg); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a, .langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 500; }
.nav a:hover, .langs a:hover { background: var(--container); }
.nav a[aria-current] { color: var(--accent-text); background: var(--accent-surface); font-weight: 600; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 0 10px; font-size: 14px; color: var(--muted); }
.langs a[aria-current] { color: var(--fg); background: var(--container); }

/* mobile menu: the nav, languages and header buttons move into a drawer from the reading-end side. Without script the
   header simply wraps (the menu button stays hidden and .menu is display: contents). */
.menu-btn, .menu-head, .menu-backdrop { display: none; }
.menu { display: contents; }
@media (max-width: 960px) {
  .has-menu .header-bar { flex-wrap: nowrap; }
  .has-menu .menu-btn, .has-menu .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); cursor: pointer; }
  .has-menu .menu-btn { margin-inline-start: auto; }
  .has-menu .menu { display: flex; flex-direction: column; gap: 20px; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 30;
    width: var(--drawer-width); padding: 12px 20px 24px; overflow-y: auto; background: var(--bg); border-inline-start: 1px solid var(--line-quiet); box-shadow: var(--shadow-l);
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .has-menu[dir="rtl"] .menu { transform: translateX(-100%); }
  .has-menu.menu-open .menu { transform: none; visibility: visible; transition: transform .25s ease; }
  .has-menu .menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .menu-title { font-weight: 700; font-size: 18px; }
  .has-menu .nav { flex-direction: column; gap: 2px; }
  .has-menu .nav a { min-height: 48px; font-size: 17px; }
  .has-menu .header-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .has-menu .header-actions .btn { min-height: 48px; }
  .has-menu .langs { align-self: flex-start; }
  .has-menu.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: var(--backdrop); }
  .menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .menu { transition: none !important; } }

/* cards, badges, notices, chips (the Bazele components) */
.card { background: var(--surface); border: 1px solid var(--line-quiet); border-radius: var(--radius-l); padding: 16px; color: var(--fg); }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: var(--radius-s); font-size: 12px; font-weight: 500; line-height: 16px; background: var(--container); color: var(--fg); white-space: nowrap; }
.badge.is-accent { background: var(--accent); color: var(--accent-fg); }
.badge[data-tone="success"] { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success-text); }
.badge[data-tone="warning"] { background: color-mix(in srgb, var(--warning) 25%, transparent); color: var(--warning-text); }
.badge[data-tone="error"] { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error-text); }
.notice { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); font-size: 13px; background: var(--accent-surface); color: var(--accent-text); border: 1px solid var(--accent-border); }
.notice .spark { flex: none; }
.notice.is-on-dark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--dark-fg); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 14px; font-weight: 500; }
button.chip { min-height: 44px; padding: 0 18px; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-surface); color: var(--accent-text); border-color: var(--accent); }

/* hero and its product illustrations */
.hero { padding: 72px 0 56px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .display { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
.panel { flex: 1 1 400px; min-width: 0; border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-l); }
.panel.card { border-radius: var(--radius-l); padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 0; }
.panel.is-dark .panel-head .small { color: var(--dark-muted); }
.panel-title { font-weight: 600; font-size: 15px; }
.queue { display: flex; flex-direction: column; gap: 8px; }
.queue-head { display: flex; align-items: baseline; gap: 8px; }
.queue-count { font-size: 40px; line-height: 40px; font-weight: 700; }
.queue-title { font-weight: 600; font-size: 16px; }
.queue-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0 4px; border-top: 1px solid var(--line-quiet); }
.queue-who { display: flex; flex-direction: column; min-width: 0; }
.queue-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.queue-btn { align-self: flex-start; margin-top: 4px; }
.chat .panel-head { padding: 0 0 12px; border-bottom: 1px solid var(--line-quiet); }
.chat-thread { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.bubble { align-self: flex-end; max-width: 90%; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--container); line-height: 1.6; }
.bubble.is-user { align-self: flex-start; max-width: 85%; background: var(--accent); color: var(--accent-fg); border-radius: 16px 16px 16px 4px; }
[dir="ltr"] .bubble { border-radius: 16px 16px 16px 4px; }
[dir="ltr"] .bubble.is-user { border-radius: 16px 16px 4px 16px; }
.chat-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ask { display: flex; flex-direction: column; gap: 6px; }
.ask-label { font-size: 13px; font-weight: 500; }
.ask-field { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }

/* card grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.item { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 150px; text-decoration: none; }
a.item:hover { color: var(--fg); border-color: var(--line); box-shadow: var(--shadow); }
.item.is-featured { border: 2px solid var(--accent); }
.is-dark .item { background: transparent; color: var(--dark-fg); border-color: var(--dark-line); }
.is-dark .item.is-featured { border-color: var(--accent); }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.item-head .h3 { flex: 1; }
.item-tag { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.is-dark .item-tag { color: var(--accent); }
.item-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.item-note { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.item-example { border-top: 1px solid var(--line-quiet); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.55; }
.mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--dark); color: var(--accent); font-weight: 700; font-size: 17px; }
.item-head:has(.mark) { justify-content: flex-start; }
.features { margin: 0; padding: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.item .notice { margin-top: auto; }

/* steps (numbered, usually on a dark band) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.step { border: 1px solid var(--line-quiet); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.is-dark .step { border-color: var(--dark-line); }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.is-dark .step p { color: var(--dark-muted); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.stack > .actions { align-self: flex-start; }

/* integrations */
.integrations { padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.integrations-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.integrations .chips { flex: 1 1 420px; }

/* call to action */
.cta { background: var(--accent); color: var(--accent-fg); border-radius: var(--radius-xl); padding: 56px 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.cta-text { font-size: 17px; line-height: 1.6; }
.cta .btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.cta-band { padding: 72px 0; }

/* pricing */
.toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px; border-radius: var(--radius-pill); background: var(--container); }
.toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-xs); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.tier { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tier.is-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-l); }
.tier.is-dark { background: var(--dark); color: var(--dark-fg); border-color: transparent; }
.tier.is-dark .features { color: var(--dark-fg); }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price { font-size: 40px; line-height: 1.1; font-weight: 700; }
.tier .h3 { font-size: 22px; font-weight: 700; }

/* questions */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 20px 24px; }
.faq summary { font-weight: 600; font-size: 17px; min-height: 28px; cursor: pointer; }
.faq p { margin-top: 12px; color: var(--muted); line-height: 1.7; }

/* prose (Markdown) */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose > * { margin: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose ul, .prose ol { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }

/* contact */
.contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact .display { font-size: clamp(34px, 4.4vw, 52px); }
.next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.next li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.next li + li { border-top: 1px solid var(--line-quiet); }
.step-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; background: var(--line-quiet); color: var(--fg); }
.step-mark.is-current { background: var(--accent); color: var(--accent-fg); }
.details { display: flex; flex-direction: column; gap: 6px; color: var(--muted); line-height: 1.6; }
.form { flex: 1 1 480px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.is-wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { min-height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 15px; color: var(--fg); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input[dir="ltr"] { text-align: end; }
[dir="ltr"] .field input[dir="ltr"] { text-align: start; }
.form .btn-lg { min-height: 52px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* footer */
.site-footer { background: var(--dark); color: var(--dark-fg); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 48px 0 32px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.footer-name { font-size: 24px; font-weight: 700; }
.footer-brand p { color: var(--dark-muted); line-height: 1.6; max-width: 32em; }
.footer-col { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.footer-title { font-weight: 600; margin-bottom: 4px; }
.footer-col a { display: flex; align-items: center; min-height: 32px; color: var(--dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--dark-fg); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 20px 0 24px; font-size: 13px; color: var(--dark-muted); }
.footer-top + .footer-bottom { border-top: 1px solid var(--dark-line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--dark-muted); }
.footer-links a:hover { color: var(--dark-fg); }

/* narrow screens */
@media (max-width: 671px) {
  .page { padding-inline: 16px; }
  .sec { padding: 56px 0; }
  .sec.is-tight { padding: 0 0 56px; }
  .hero { padding: 48px 0 40px; }
  .cta { padding: 40px 24px; }
  .actions .btn-lg { flex: 1 1 100%; }
  .integrations, .form { padding: 20px; }
}
