/* devolar-simple-service: a service or product site in sections. Colours, fonts and radii are the custom properties in
   tokens.css (a media file of the site); the site settings `accent` and `tokens` override single ones. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--faint); }
.accent { color: var(--accent); }
.strong { font-size: 14px; font-weight: 600; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-200%); background: var(--fg); color: var(--dark-fg); padding: 8px 12px; border-radius: var(--radius); z-index: 10; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec-tint { background: var(--tint); }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec + .sec.bordered, .site-header + main > .sec.bordered:first-child { border-top: 0; }
.sec-dark { background: var(--dark); color: var(--dark-fg); }
/* two plain sections in a row share one gap */
.sec:not(.sec-tint):not(.sec-dark):not(.hero) + .sec:not(.sec-tint):not(.sec-dark) { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; min-height: 44px; }
.brand img { display: block; }
.mark { width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--accent); border: 2px solid var(--fg); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--hover); }
.bar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.langs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--fg); background: var(--hover); }
.langs a[aria-current="true"] { color: var(--fg); background: var(--hover); }
/* right-to-left: arrows point the reading way; letter-spacing breaks Hebrew and Arabic shaping */
[dir="rtl"] .btn .ic-s { transform: scaleX(-1); }
[dir="rtl"] .eyebrow, [dir="rtl"] .flow-title, [dir="rtl"] .stat-label { letter-spacing: 0; }
[dir="rtl"] .display, [dir="rtl"] .intro h1, [dir="rtl"] .intro h2, [dir="rtl"] .h-row, [dir="rtl"] .cta h2 { letter-spacing: 0; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: var(--dark-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { background: var(--bg); border-color: var(--line); color: var(--fg); }
.btn-outline:hover { background: var(--hover); }
.btn-accent { background: var(--accent); color: var(--fg); font-weight: 600; }
.btn-accent:hover { filter: brightness(0.95); }
.ic { width: 20px; height: 20px; }
.ic-s { width: 16px; height: 16px; flex: none; }

/* type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-dark .eyebrow { color: var(--accent); }
.display { font-size: clamp(40px, 6vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.intro { max-width: 640px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.intro.center { margin-inline: auto; text-align: center; align-items: center; max-width: 760px; }
.intro h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.intro h2 { font-size: clamp(30px, 4vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.intro .lead { font-size: 17px; }
.page-head .intro { margin-bottom: 0; gap: 20px; max-width: 760px; }
.page-head .lead { font-size: 18px; }
.page-head { padding: 80px 0 72px; }
.sec-dark .lead { color: var(--dark-text); }
.intro-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.intro-row .intro { margin-bottom: 0; }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 24px; }
.note.center { text-align: center; }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* hero */
.hero { padding: 88px 0 96px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--tint); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); border: 1px solid var(--fg); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li .ic-s { margin-top: 3px; }
.checks.small { font-size: 14px; gap: 10px; }
.checks.small li .ic-s { margin-top: 2px; }
.checks.inline { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--text); margin-top: 8px; }
.checks.inline li { align-items: center; }
.checks.inline li .ic-s { margin-top: 0; }

.panel-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 12px; box-shadow: var(--shadow-lg); }
.panel { background: var(--dark); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 20px; min-height: 300px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip-dark { font-size: 12px; font-weight: 500; color: var(--dark-chip); border: 1px solid var(--dark-border); border-radius: var(--radius-sm); padding: 4px 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--dark-chip); }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--live); }
.panel-mid { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.target { position: relative; padding: 16px; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); }
.corner.tl { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 4px; }
.corner.tr { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 4px; }
.corner.bl { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 4px; }
.corner.br { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 4px; }
.plate { background: var(--tint); border: 3px solid var(--muted); border-radius: var(--radius); padding: 12px 30px; font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.08em; color: var(--fg); line-height: 1; }
.target-tag { position: absolute; inset-inline-start: 16px; top: -14px; background: var(--accent); color: var(--fg); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.panel-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.stat { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 10px 12px; }
.stat-label { font-size: 11px; color: var(--dark-text); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--dark-fg); }
.stat-value.accent { color: var(--accent); }

/* grids and cards */
.grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-link { text-decoration: none; min-height: 150px; gap: 10px; }
.card-link h3 { font-size: 17px; }
.card-link p { font-size: 14px; }
.card-link:hover, .card:hover { border-color: var(--line-strong); }
.card-icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--fg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 20px; }
.tag { font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--text); background: var(--tint); }
.badge { font-size: 13px; font-weight: 700; background: var(--accent); color: var(--fg); align-self: flex-start; padding: 3px 10px; border-radius: var(--radius-sm); }
.meta { font-size: 13px; color: var(--text); }
.sec-dark .card { background: var(--dark-card); border-color: var(--dark-line); }
.sec-dark .card:hover { border-color: var(--dark-border); }
.sec-dark .card p { color: var(--dark-text); }
.sec-dark .card-icon { background: transparent; border: 0; width: auto; height: auto; justify-content: flex-start; color: var(--accent); }
.steps .card { padding: 28px; }
.steps h3 { font-size: 20px; }
.step-no { font-size: 14px; font-weight: 500; color: var(--accent); }
.sec:not(.sec-dark) .step-no { color: var(--fg); }

/* split rows */
.row-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: center; }
.h-row { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.flow { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--tint); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.flow-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flow ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.flow li { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.num { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: var(--fg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* split: text + key/value list */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: start; }
.split .intro { margin-bottom: 0; }
.kv { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-size: 15px; font-weight: 600; }
.kv dd { margin: 0; font-size: 14px; color: var(--muted); text-align: end; }

/* pricing */
.tiers { align-items: stretch; }
.tier { padding: 32px; gap: 20px; position: relative; border-radius: var(--radius-lg); }
.tier.featured { border: 2px solid var(--fg); padding: 31px; }
.tier p { font-size: 14px; line-height: 1.5; }
.h-tier { font-size: 20px; font-weight: 600; }
.tier-badge { position: absolute; top: -14px; inset-inline-start: 28px; background: var(--accent); color: var(--fg); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--fg); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-value { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price-unit { font-size: 14px; color: var(--muted); }

/* code */
.code-grid { align-items: start; }
.code { margin: 0; border: 1px solid var(--dark-line); border-radius: var(--radius-md); background: var(--dark); overflow: hidden; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--dark-line); font-size: 13px; font-weight: 500; color: var(--dark-chip); }
.code figcaption .mono { font-size: 12px; color: var(--dark-text); }
.code figcaption .mono.accent { color: var(--accent); }
.code pre { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--dark-code); }

/* endpoints */
.endpoints { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.endpoints li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.endpoints li:last-child { border-bottom: 0; }
.method { font-size: 12px; font-weight: 700; background: var(--hover); color: var(--fg); padding: 3px 8px; border-radius: var(--radius-sm); min-width: 52px; text-align: center; }
.method.hot { background: var(--accent); }
.path { font-size: 14px; font-weight: 500; flex: 0 1 280px; overflow-wrap: anywhere; }
.desc { font-size: 14px; color: var(--muted); flex: 1 1 260px; }

/* call to action */
.cta { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--tint); padding: 56px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.cta p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.cta-dark { background: var(--dark); border-color: var(--dark); color: var(--dark-fg); }
.cta-dark p { color: var(--dark-text); }
.sec:has(.cta) { padding-top: 0; }
.sec-tint + .sec:has(.cta), .sec-dark + .sec:has(.cta), main > .sec:first-child:has(.cta) { padding-top: 88px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; align-items: start; }
.contact .intro { margin-bottom: 0; gap: 20px; }
.contact .intro h1 { font-size: clamp(36px, 5vw, 48px); }
.next { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.next li { display: flex; gap: 14px; align-items: flex-start; }
.next .num { width: 28px; height: 28px; font-size: 13px; }
.next p { font-size: 15px; line-height: 1.6; color: var(--text); }
.details { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text); }
.form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; height: 44px; width: 100%; }
.field textarea { height: auto; padding: 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--fg); outline-offset: 1px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* prose (Markdown) */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--body); }
.prose h1, .prose h2, .prose h3 { color: var(--fg); letter-spacing: -0.02em; line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h1 { font-size: 40px; } .prose h2 { font-size: 28px; } .prose h3 { font-size: 20px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 1em; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--hover); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--dark); color: var(--dark-code); padding: 18px; border-radius: var(--radius-md); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.brand-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.foot-brand p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 260px; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.foot-col a { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.foot-col a:hover { color: var(--fg); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--muted); }

/* mobile menu: the nav, languages and 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: 1024px) {
  .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(--bg); color: var(--fg); cursor: pointer; }
  .has-menu .menu-btn { margin-inline-start: auto; }
  .has-menu .menu { display: flex; flex-direction: column; gap: 24px; 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);
    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: 600; }
  .has-menu.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: var(--backdrop); }
  .menu-open { overflow: hidden; }
  .has-menu .bar { flex-wrap: nowrap; }
  .has-menu .nav { flex: none; flex-direction: column; gap: 2px; }
  .has-menu .nav a { min-height: 48px; font-size: 16px; }
  .has-menu .bar-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .has-menu .langs { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .menu { transition: none !important; } }

@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .page-head { padding: 56px 0 48px; }
  .wrap { padding: 0 16px; }
  .row-card, .tier, .form { padding: 24px; }
  .tier.featured { padding: 23px; }
  .cta { padding: 40px 20px; }
  .intro { margin-bottom: 32px; }
}
