/* Layout: a dark workflow canvas. Dotted ground, one live example flow in the hero, plain sections below.
   One deliberate dark theme, matching the logo on black. Orange leads, purple supports. */
:root {
  color-scheme: dark;
  --bg: #0B0714;
  --surface: #140E22;
  --surface-2: #1B1330;
  --ink: #F4EFFB;
  --ink-2: #B4A9CB;
  --line: #261B3D;
  --line-strong: #3F3060;
  --dot: #1F1634;
  --orange: #FF8A1F;
  --orange-deep: #EE6419;
  --purple: #7A35CE;
  --violet: #B28AF0;
  --magenta: #D9468B;
  --on-orange: #1C0B02;
  --focus: #FFB46B;
  --grad: linear-gradient(135deg, #FF8A1F 0%, #EE6419 100%);
  --grad-wide: linear-gradient(100deg, #FF9A2E 0%, #EE6419 38%, #D9468B 72%, #8A4AE0 100%);
  --font-display: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; overflow-wrap: anywhere; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap {
  max-width: 1720px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4vw, 72px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 72px), env(safe-area-inset-right, 0px));
}
/* On big screens, scale everything up a little so the page fills the space */
@media (min-width: 1500px) { html { font-size: 106.25%; } }
@media (min-width: 1900px) { html { font-size: 112.5%; } }
.eyebrow { font: 600 .78rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 58ch; }
.h2 { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.grad { background: var(--grad-wide); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { .grad { color: var(--orange); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .82rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--grad); color: var(--on-orange); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--violet); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; white-space: nowrap; text-align: center; flex: none; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; text-decoration: none; }
.logo { display: block; height: 46px; aspect-ratio: 3000 / 868; max-width: 100%; background: var(--logo) center / contain no-repeat; }
.brand .logo { height: 70px; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.9rem); }
.nav a:not(.btn) { text-decoration: none; font-size: .96rem; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 520px) { .nav .btn { display: none; } }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } .brand { min-width: 0; } .brand .logo { height: 46px; } .nav .btn-sm { padding: .55rem 1.1rem; line-height: 1.2; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--line) 1.3px, transparent 1.8px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: -10%; right: -8%; width: 55%; height: 80%; background: radial-gradient(closest-side, rgba(122, 53, 206, .22), transparent); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.2rem); font-weight: 800; line-height: 1.03; letter-spacing: -.025em; }
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero .lead { margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

/* Example workflow */
.flow { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(14px, 2.4vw, 24px); min-width: 0; }
.flow-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.2rem; font: 600 .74rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.node { position: relative; display: flex; align-items: center; gap: .8rem; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .75rem .85rem; min-width: 0; }
.node::before, .node::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong); }
.node::before { top: -6px; }
.node::after { bottom: -6px; }
.node.no-in::before, .node.no-out::after { display: none; }
.node-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--nc); color: var(--ic, #fff); }
.node-ico svg { width: 19px; height: 19px; fill: currentColor; }
.node-body { min-width: 0; }
.node-kind { font: 600 .66rem/1 var(--font-display); letter-spacing: .13em; text-transform: uppercase; color: var(--violet); }
.node-title { margin-top: .3rem; font: 600 1rem/1.25 var(--font-body); }
.node-sub { margin-top: .2rem; font: 400 .82rem/1.35 var(--font-body); color: var(--ink-2); }
.k-start { --nc: var(--orange); --ic: var(--on-orange); }
.k-ai { --nc: var(--purple); --ic: #fff; }
.k-done { --nc: var(--magenta); --ic: #fff; }
.k-next { --nc: var(--violet); --ic: #1A0B33; }
.wire { width: 2px; height: 28px; margin-inline: auto; background: repeating-linear-gradient(to bottom, var(--orange) 0 6px, transparent 6px 12px); background-size: 2px 12px; }
.fork { display: block; width: 100%; height: 34px; }
.fork path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.outs { display: grid; grid-template-columns: 1fr 1fr; }
.outs .node { margin-inline: 6px; }
@media (max-width: 480px) { .outs .node-ico { display: none; } .outs .node-sub { display: none; } }
.flow-cap { margin-top: 1.3rem; font: 500 .9rem/1.45 var(--font-body); color: var(--ink-2); }

/* Sections */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: .9rem; max-width: 64ch; }

/* What we do */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 2.75rem; }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.3rem, 2.5vw, 1.8rem); min-width: 0; }
.svc-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.2rem; background: var(--grad); color: var(--on-orange); }
.svc:nth-child(2) .svc-ico { background: linear-gradient(135deg, #D9468B, #EE6419); color: #fff; }
.svc:nth-child(3) .svc-ico { background: linear-gradient(135deg, #8A4AE0, #6B2CC2); color: #fff; }
.svc:nth-child(4) .svc-ico { background: linear-gradient(135deg, #D9468B, #8A4AE0); color: #fff; }
.svc-ico svg { width: 22px; height: 22px; fill: currentColor; }
.svc h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: .6rem; }
.svc p { color: var(--ink-2); }

/* How it works */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.75rem; }
.steps li { position: relative; padding-top: 3.5rem; min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: var(--on-orange); font: 700 1rem/1 var(--font-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; inset-inline-start: 3.1rem; inset-inline-end: -1.5rem; border-top: 1.5px dashed var(--line-strong); }
.steps h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; margin-bottom: .45rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps li { padding-top: 0; padding-inline-start: 3.8rem; }
  .steps li:not(:last-child)::after { top: 2.9rem; bottom: -1.75rem; inset-inline-start: 1.25rem; inset-inline-end: auto; border-top: 0; border-inline-start: 1.5px dashed var(--line-strong); }
}

/* Why us and contact share a two-column split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split-copy { display: grid; gap: 1rem; min-width: 0; container-type: inline-size; }
.rules { list-style: none; padding: 0; }
.rules li { padding-block: 1.4rem; border-top: 1px solid var(--line-strong); }
.rules li:last-child { border-bottom: 1px solid var(--line-strong); }
.rules strong { display: block; margin-bottom: .35rem; font: 700 1.2rem/1.3 var(--font-display); }
.rules span { color: var(--ink-2); }

/* Contact */
.channels { list-style: none; padding: 0; display: grid; gap: .8rem; margin-top: .6rem; }
.channels li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.ch-label { font: 600 .74rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.ch-val { overflow-wrap: anywhere; user-select: all; }
.form-card { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(1.1rem, 3vw, 1.8rem); min-width: 0; }
.form { display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 600 .9rem/1.2 var(--font-body); }
.field input, .field textarea { width: 100%; min-width: 0; padding: .75rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 1rem/1.45 var(--font-body); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .75; }
.result { display: grid; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); }
.result textarea { width: 100%; min-height: 10rem; padding: .85rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 .95rem/1.55 var(--font-body); resize: vertical; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.status { font: 500 .88rem/1.4 var(--font-body); color: var(--ink-2); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 1.8rem; }
.foot .logo { height: auto; width: min(340px, 100%); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; font: 400 .88rem/1.5 var(--font-body); color: var(--ink-2); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .wire { animation: wire-down 1s linear infinite; }
  .fork path { animation: fork-flow 1s linear infinite; }
}
@keyframes wire-down { to { background-position: 0 12px; } }
@keyframes fork-flow { to { stroke-dashoffset: -12; } }

/* Brand images, embedded kept in assets/ */
:root { --logo: url("assets/logo.png"); --mark: url("assets/mark.png"); --error: #FF8F8F; }
.foot-id { display: inline-flex; align-items: center; gap: .65rem; }
.foot-mark { width: 28px; height: 28px; flex: none; background: var(--mark) center / contain no-repeat; }

/* Contact form */
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .55rem; }
.form legend { padding: 0; margin-bottom: .55rem; font: 600 .9rem/1.2 var(--font-body); }
.seg { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: .5rem; }
.seg-opt { position: relative; min-width: 0; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt label { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .6rem .8rem; text-align: center; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink-2); font: 600 .95rem/1.25 var(--font-body); pointer-events: none; }
.seg-opt label::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.seg-opt:hover label { border-color: var(--violet); color: var(--ink); }
.seg-opt input:checked + label { border-color: var(--orange); background: rgba(255, 138, 31, .1); color: var(--ink); }
.seg-opt input:checked + label::before { border-color: var(--orange); background: radial-gradient(circle, var(--orange) 0 4px, transparent 4.5px); }
.seg-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 400px) { .seg-opt label { padding-inline: .4rem; font-size: .9rem; } .seg-opt label::before { display: none; } }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.count { font: 500 .8rem/1 var(--font-body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hint { font: 400 .82rem/1.4 var(--font-body); color: var(--ink-2); }
.form #f-details { min-height: 5.75rem; }
.error { font: 500 .9rem/1.45 var(--font-body); color: var(--error); }
.field select { width: 100%; min-width: 0; padding: .75rem 2.5rem .75rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4A9CB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 14px; color: var(--ink); font: 400 1rem/1.45 var(--font-body); -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.field select option { background: var(--surface-2); color: var(--ink); }
.phone { display: flex; gap: .5rem; min-width: 0; }
.field .phone input { flex: 1 1 0; width: auto; min-width: 0; }
.dial { flex: none; display: flex; align-items: center; padding: 0 .85rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 600 1rem/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Social links: logo-orange icons; on desktop hover they spin once while the username rolls out */
.socials { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.soc { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--orange); text-decoration: none; }
.soc-ico { width: 43px; height: 43px; display: grid; place-items: center; flex: none; }
.soc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-name { min-width: 0; overflow: hidden; white-space: nowrap; font: 600 .92rem/1 var(--font-body); color: var(--ink); }
.soc-name > span { display: block; padding-inline-end: 1rem; }
.foot .socials { margin-top: 1.4rem; }
@media (hover: hover) and (min-width: 721px) {
  .soc { grid-template-columns: auto 0fr; transition: grid-template-columns .32s cubic-bezier(.3, .7, .2, 1), border-color .2s; }
  /* The email icon is last and its address is the longest, so it used to wrap onto a new line as it
     grew, move out from under the pointer, shrink, move back, and repeat (the flicker).
     It now keeps a fixed 46px slot and the pill grows out of it without affecting the layout. */
  .socials li:last-child { position: relative; flex: none; width: 46px; height: 46px; }
  .socials li:last-child .soc { position: absolute; top: 0; inset-inline-start: 0; z-index: 1; width: max-content; }
  .soc-name { opacity: 0; transition: opacity .22s ease .04s; }
  .soc-name > span { transform: translateX(-12px); transition: transform .32s cubic-bezier(.3, .7, .2, 1); }
  html[dir="rtl"] .soc-name > span { transform: translateX(12px); }
  .soc-ico svg { transition: transform .32s cubic-bezier(.3, .7, .2, 1); }
  .soc:hover, .soc:focus-visible { grid-template-columns: auto 1fr; border-color: var(--violet); }
  .soc:hover .soc-name, .soc:focus-visible .soc-name { opacity: 1; }
  .soc:hover .soc-name > span, .soc:focus-visible .soc-name > span { transform: none; }
  .soc:hover .soc-ico svg, .soc:focus-visible .soc-ico svg { transform: rotate(360deg); }
}
/* In a narrow column the long email address would overflow, so give the email icon its own row */
@container (max-width: 480px) {
  @media (hover: hover) and (min-width: 721px) {
    .socials::after { content: ""; flex-basis: 100%; order: 1; height: 0; margin-top: -.6rem; }
    .socials li:last-child { order: 2; }
  }
}
@media (hover: hover) and (min-width: 721px) and (prefers-reduced-motion: reduce) {
  .soc, .soc-name, .soc-name > span, .soc-ico svg { transition: none; }
  .soc:hover .soc-ico svg, .soc:focus-visible .soc-ico svg { transform: none; }
}

/* Back-to-top arrow: bottom right, shown only while scrolling up */
.to-top { position: fixed; inset-inline-end: calc(env(safe-area-inset-right, 0px) + 18px); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 50; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--orange); background: var(--surface); color: var(--orange); display: grid; place-items: center; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease, color .2s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--orange); color: var(--on-orange); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; transform: none; } }

/* Honeypot field for bots (people never see it) */
.hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* Contact form: note and confirmation */
.form-note { font: 400 .82rem/1.5 var(--font-body); color: var(--ink-2); }
.form-note a, .foot-link { color: var(--ink-2); text-underline-offset: 3px; }
.form-note a:hover, .foot-link:hover { color: var(--ink); }
.sent { display: grid; gap: .7rem; justify-items: start; padding-block: .6rem; }
.sent-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: var(--on-orange); }
.sent-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sent h3 { font: 700 1.4rem/1.2 var(--font-display); }
.sent p { color: var(--ink-2); }
.btn[disabled] { opacity: .6; cursor: progress; filter: none; }

/* Footer: privacy link and "Report a bug" link side by side */
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot-btn { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.foot-btn:hover { color: var(--ink); }

/* Bug report dialog */
.dlg { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-2); color: var(--ink); }
.dlg::backdrop { background: rgba(11, 7, 20, .78); }
.dlg-in { padding: clamp(1.1rem, 3vw, 1.8rem); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dlg h3 { font: 700 1.4rem/1.2 var(--font-display); }
.dlg-intro { margin-top: .4rem; color: var(--ink-2); }
.dlg-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.dlg-x:hover { border-color: var(--violet); }
.dlg-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fb-form { display: grid; gap: 1rem; margin-top: 1.1rem; }
.fb-form .field textarea { min-height: 6.5rem; }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

/* Language switcher: a small button showing the current language, with a drop-down list */
.lang { position: relative; flex: none; z-index: 20; }
.lang-btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .55rem .42rem .7rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .8rem/1 var(--font-body); cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--violet); }
.lang-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 8.5rem; margin: 0; padding: 4px; list-style: none; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.lang-list button { appearance: none; -webkit-appearance: none; display: block; width: 100%; text-align: start; border: 0; background: transparent; color: var(--ink-2); font: 500 .92rem/1.2 var(--font-body); padding: .6rem .8rem; border-radius: 10px; cursor: pointer; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--surface); color: var(--ink); }
.lang-list button[aria-selected="true"] { color: var(--ink); background: rgba(255, 138, 31, .14); }
@media (prefers-reduced-motion: reduce) { .lang-btn svg { transition: none; } }

/* Arabic: right-to-left layout, an Arabic typeface, and no letter-spacing (it breaks connected letters) */
html[lang="ar"] { --font-display: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; --font-body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
html[lang="ar"] .h2, html[lang="ar"] .doc h1 { line-height: 1.3; }
html[dir="rtl"] .phone { direction: ltr; }
html[dir="rtl"] #f-contact, html[dir="rtl"] #fb-contact { direction: ltr; text-align: left; }
html[dir="rtl"] .field select { padding: .75rem .85rem .75rem 2.5rem; background-position: left .85rem center; }

/* Privacy policy page */
.top-plain { border-bottom: 1px solid var(--line); }
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc-body { max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.doc .updated { margin-top: .8rem; color: var(--ink-2); font-size: .95rem; }
.doc h2 { margin-top: 2.6rem; margin-bottom: .75rem; font: 700 1.45rem/1.25 var(--font-display); scroll-margin-top: 1.5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: .9rem; }
.doc ul { padding-inline-start: 1.25rem; display: grid; gap: .5rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--orange); text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
