/* hader.site — light/dark (html[data-theme]) and Arabic/English (html[dir]) */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --line: #e2e6ef;
  --ink: #0f1424;
  --ink-2: #39415a;
  --muted: #697089;
  --brand: #2f55d4;
  --brand-2: #12245f;
  --brand-soft: rgb(47 85 212 / 0.1);
  --gold: #f6c453;
  --ok: #109158;
  --ok-soft: rgb(16 145 88 / 0.12);
  --shadow: 0 1px 2px rgb(16 20 36 / 0.05), 0 12px 32px -14px rgb(16 20 36 / 0.18);
  --shadow-lg: 0 40px 90px -30px rgb(18 36 95 / 0.45);
  --radius: 18px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0a0c12;
  --bg-2: #10131c;
  --surface: #151925;
  --line: #262b3a;
  --ink: #eef1f8;
  --ink-2: #c4c9d8;
  --muted: #8f96ad;
  --brand: #5b7cf5;
  --brand-soft: rgb(91 124 245 / 0.14);
  --ok: #45d08a;
  --ok-soft: rgb(69 208 138 / 0.14);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 16px 40px -18px rgb(0 0 0 / 0.8);
  --shadow-lg: 0 40px 90px -30px rgb(0 0 0 / 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html[dir="rtl"] svg.flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 13px; font-weight: 600; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background-color .2s, border-color .2s; white-space: nowrap; }
.btn svg { font-size: 18px; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 38px; padding: 0 15px; border-radius: 11px; font-size: 14.5px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 15px; }
.btn.primary { background: linear-gradient(135deg, #3d63e6, var(--brand-2)); color: #fff; box-shadow: 0 10px 24px -10px rgb(47 85 212 / .7); }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #5b7cf5, #2f55d4); }
.btn.primary:hover { box-shadow: 0 14px 30px -10px rgb(47 85 212 / .85); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.light { background: #fff; color: var(--brand-2); }
.btn.light:hover { transform: translateY(-1px); }
.btn.outline-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn.outline-light:hover { background: rgb(255 255 255 / .1); }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--brand); }
a.icon-btn { color: inherit; text-decoration: none; }
.icon-btn svg { font-size: 18px; }
html[data-theme="dark"] .icon-btn .sun, html[data-theme="light"] .icon-btn .moon { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background-color .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.links { display: flex; gap: 4px; margin-inline-start: 12px; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--ink); background: var(--brand-soft); }
.nav-tools { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; padding: 36px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb.a { width: 560px; height: 560px; background: radial-gradient(circle, rgb(61 99 230 / .55), transparent 70%); top: -180px; inset-inline-end: -120px; }
.orb.b { width: 420px; height: 420px; background: radial-gradient(circle, rgb(246 196 83 / .35), transparent 70%); bottom: -160px; inset-inline-start: -120px; animation-delay: -6s; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .5; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; min-height: min(640px, calc(100vh - 160px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 22px 0 18px; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), #7b5cf0 55%, #e0a83a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); margin: 0 0 30px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--ok); }

/* stage: browser + phone + live cards */
.stage { position: relative; aspect-ratio: 1.12; perspective: 1400px; }
.layer { transition: transform .25s ease-out; will-change: transform; }
.browser { position: absolute; inset: 6% 0 14% 6%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
html[dir="rtl"] .browser:not(.big) { inset: 6% 6% 14% 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); direction: ltr; }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.browser-bar > span:nth-child(2) { background: #ffbd2e; }
.browser-bar > span:nth-child(3) { background: #28c941; }
.url { margin-inline: auto; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 14px; }
.browser .shot { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top center; }
.shot { background: var(--bg-2); transition: opacity .35s; }
.shot.swapping { opacity: 0; }
.scan { position: absolute; inset: 34px 0 0; background: linear-gradient(180deg, transparent, rgb(91 124 245 / .12) 50%, transparent); height: 30%; animation: scan 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(330%); opacity: 0; } }
.phone { position: relative; width: 31%; aspect-ratio: 390 / 844; border-radius: 30px; background: #0b0d12; padding: 7px; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .06) inset; }
.phone .shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.phone .notch { position: absolute; top: 13px; left: 50%; translate: -50% 0; width: 32%; height: 17px; border-radius: 12px; background: #0b0d12; z-index: 2; }
.stage .phone { position: absolute; bottom: 0; inset-inline-start: 0; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { margin-bottom: 10px; } }

.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; }
.float b { display: block; font-size: 15px; }
.float span { color: var(--muted); }
.ring-card { top: 0; inset-inline-end: 4%; }
.ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--bg-2); }
.ring .bar { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.ring-card b { font-size: 22px; }
.geo-card { bottom: 20%; inset-inline-end: -2%; }
.geo { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.ping { position: absolute; inset: 0; border-radius: 12px; border: 2px solid var(--brand); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.toasts { position: absolute; top: 24%; inset-inline-start: 26%; width: 270px; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 15px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; animation: toast-in .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast.out { animation: toast-out .45s ease-in both; }
.toast .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; flex-shrink: 0; }
.toast b { display: block; font-size: 13.5px; }
.toast span { color: var(--muted); }
.toast .st { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.warn { background: rgb(246 196 83 / .18); color: #b07800; }
html[data-theme="dark"] .st.warn { color: var(--gold); }
.st.info { background: var(--brand-soft); color: var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(.96); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.stats > div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats b { display: block; font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stats span { color: var(--muted); font-size: 14.5px; }

/* sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2, .split h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 5px 13px; border-radius: 99px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; overflow: hidden; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.feature.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.feature.wide { grid-column: span 2; }
.feature h3 { font-size: 18px; margin: 16px 0 8px; }
.feature.big h3 { font-size: 24px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15px; }
.feature.big p { font-size: 16.5px; max-width: 30em; }
.f-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 23px; }
.mini-map { position: relative; flex: 1; min-height: 190px; margin-top: 22px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background:
  linear-gradient(90deg, transparent 47%, color-mix(in srgb, var(--line) 80%, transparent) 47% 53%, transparent 53%) 0 0 / 120px 100%,
  linear-gradient(0deg, transparent 46%, color-mix(in srgb, var(--line) 80%, transparent) 46% 54%, transparent 54%) 0 0 / 100% 90px,
  var(--bg-2); }
.zone { position: absolute; width: 150px; height: 150px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: rgb(47 85 212 / .12); border: 2px dashed var(--brand); animation: spin 30s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.me { position: absolute; width: 16px; height: 16px; left: 50%; top: 50%; border-radius: 50%; background: var(--ok); border: 3px solid #fff; box-shadow: 0 0 0 6px var(--ok-soft); animation: walk 7s ease-in-out infinite; }
@keyframes walk { 0% { translate: 110px -70px; } 45%, 75% { translate: -14px 6px; } 100% { translate: 110px -70px; } }

/* screens */
.tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { border: 1px solid var(--line); background: var(--surface); padding: 9px 18px; border-radius: 99px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.showcase .browser.big { position: relative; inset: auto; }
.showcase .browser.big .shot { height: auto; aspect-ratio: 1440 / 900; }
.caption { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 40em; min-height: 3.4em; }

/* phones */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead-sm { color: var(--ink-2); font-size: 18px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.checks svg { margin-top: 5px; color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.phones { position: relative; display: flex; justify-content: center; gap: 22px; padding: 20px 0; }
.phones .phone { width: min(250px, 42%); }
.tilt-a { transform: rotate(-4deg) translateY(10px); }
.tilt-b { transform: rotate(4deg) translateY(-24px); }
html[dir="rtl"] .tilt-a { transform: rotate(4deg) translateY(10px); }
html[dir="rtl"] .tilt-b { transform: rotate(-4deg) translateY(-24px); }

/* servers band (dark in both themes) */
.dark-band { background: radial-gradient(ellipse 80% 70% at 50% 0%, #1d3a9e 0%, #0c1640 55%, #070b1f 100%); color: #eef1f8; }
.dark-band .section-head p, .dark-band .srv p { color: #b9c3e6; }
.dark-band .kicker { background: rgb(255 255 255 / .1); color: #fff; }
.srv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.srv { padding: 26px; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.srv .f-ico { background: rgb(255 255 255 / .1); color: #fff; }
.srv h3 { font-size: 18px; margin: 16px 0 8px; }
.srv p { margin: 0; font-size: 15px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #3d63e6, var(--brand-2)); color: #fff; font-weight: 700; font-size: 18px; }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--ink-2); margin: 0 0 16px; }
.dl { display: grid; gap: 10px; }
.cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #0b0d12; color: #cfd6ea; }
.cmd code { flex: 1; font: 12.5px/1.5 "Cascadia Code", Consolas, ui-monospace, monospace; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd .icon-btn { background: rgb(255 255 255 / .08); border-color: transparent; color: #fff; height: 32px; min-width: 32px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 22px; }
.plan-sub { color: var(--muted); margin: 4px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23109158' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tag { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }

/* faq */
.faq { display: grid; gap: 10px; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 20px; color: var(--ink-2); }

/* closing call to action */
.cta-band { background: linear-gradient(135deg, #3159e0, #12245f); color: #fff; text-align: center; }
.cta-in img { margin: 0 auto 18px; border-radius: 15px; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5); }
.cta-in h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta-in p { color: #c9d4ff; font-size: 18px; margin: 12px auto 30px; max-width: 34em; }

.footer { padding: 34px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.foot-in .muted { margin-inline-start: auto; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }

/* scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .links { display: none; position: absolute; top: 72px; inset-inline: 16px; flex-direction: column; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 0; }
  .links.open { display: flex; }
  .links a { padding: 12px 14px; }
  .menu-btn { display: inline-flex; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .cta-row, .hero-points { justify-content: center; }
  .stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hide-sm, .lang-label { display: none; }
  .nav-tools { gap: 6px; }
  .features, .srv-grid { grid-template-columns: 1fr; }
  .feature.big, .feature.wide { grid-column: auto; grid-row: auto; }
  .stats > div { padding: 14px; }
  .stats b { font-size: 24px; }
  .toasts { width: 224px; inset-inline-start: 24%; top: 38%; }
  .toasts .toast:nth-last-child(n+3) { display: none; } /* at most two on a phone */
  .toast { font-size: 12px; padding: 9px 11px; }
  .toast .av { width: 28px; height: 28px; }
  .float { padding: 9px 11px; gap: 9px; font-size: 11.5px; }
  .float b { font-size: 13px; }
  .ring { width: 40px; height: 40px; }
  .ring-card b { font-size: 17px; }
  .geo-card { display: none; }
  .btn.lg { height: 50px; padding: 0 20px; font-size: 16px; }
  .foot-in .muted { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
.toast > div { flex: 1; min-width: 0; line-height: 1.45; }
.toast > div > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* grid and flex children may shrink below their content (the long install command scrolls instead) */
.step, .dl, .cmd, .plan, .feature, .hero-copy, .stage { min-width: 0; }

/* plan order buttons + the order form */
.plan .btn svg { font-size: 17px; }
.plan-trial { display: block; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-trial:hover { color: var(--brand); }
dialog.order { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.order::backdrop { background: rgb(6 9 20 / .6); backdrop-filter: blur(4px); }
dialog.order[open] { animation: dlg-in .35s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.order-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 26px 6px; }
.order-head > div { flex: 1; }
.order-head h3 { font-size: 22px; }
.order-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.order-body { display: grid; gap: 14px; padding: 16px 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.fld textarea { height: auto; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.plan-pick { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.plan-pick legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.plan-pick label { flex: 1; min-width: 120px; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick span { display: block; text-align: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; transition: all .2s; }
.plan-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.order-note { margin: 0; font-size: 13px; color: var(--muted); }
.order-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgb(229 72 77 / .12); color: #d33b40; font-weight: 600; font-size: 14px; }
.order-foot { display: flex; justify-content: flex-end; padding: 6px 26px 24px; }
.order-foot .btn[disabled] { opacity: .6; pointer-events: none; }
.order-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 38px 28px 30px; }
.order-done h3 { font-size: 24px; margin-top: 10px; }
.order-done p { margin: 0; }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; stroke-width: 3; animation: pop-done .5s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes pop-done { from { transform: scale(.4); opacity: 0; } }
.ticket-id { font-size: 30px; letter-spacing: .06em; padding: 8px 20px; margin: 4px 0 10px; border-radius: 14px; border: 2px dashed var(--brand); color: var(--brand); }
.order-done .cta-row { margin-top: 18px; }
@media (max-width: 620px) {
  .row2 { grid-template-columns: 1fr; }
  .order-head, .order-body { padding-inline: 18px; }
  .order-foot { padding-inline: 18px; }
  .order-foot .btn { width: 100%; }
}

/* the hidden attribute always wins over display rules (e.g. .order-done { display: grid }) */
[hidden] { display: none !important; }

/* ------------------------------------------------------------ topic pages (/location-attendance/ …) */
.page-hero { padding: 48px 0 24px; }
.page-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; margin: 16px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.page-shot { margin: 0; display: flex; justify-content: center; }
.page-shot .browser.big { position: relative; inset: auto; width: 100%; }
.page-shot .browser.big .shot { height: auto; aspect-ratio: 1440 / 900; }
.page-shot .phone { width: min(270px, 70%); }
.page-body { padding-top: 56px; }
.prose section + section { margin-top: 48px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin: 0 0 14px; }
.prose p { font-size: 17.5px; line-height: 1.9; color: var(--ink-2); margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose .checks li { color: var(--ink-2); line-height: 1.8; }
.prose-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.prose-steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose-steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related a { display: block; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related b { display: block; font-size: 17px; }
.related span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.foot-links a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .page-hero-in, .related { grid-template-columns: 1fr; }
  .page-hero { text-align: center; }
  .page-hero .crumbs, .page-hero .cta-row { justify-content: center; }
}
