/* Z Express — the identity on the web.
   Basil for the chrome, mulberry for the main action, leaf / rosehip accents,
   green-biased neutrals; Alexandria for headings, IBM Plex Sans Arabic for text.
   One stylesheet for every page: landing, download, smart links, legal, business. */
:root {
  --basil: #0F6B4C;
  --basil-dark: #0A4F38;
  --basil-deep: #06392A;
  --leaf: #3CC27F;
  --mulberry: #7B1E44;
  --mulberry-dark: #5E1634;
  --rosehip: #E2456A;
  --paper: #F5F7F3;
  --ink: #13201A;
  --muted: #56645C;
  --line: #DCE3DD;
  --card: #FFFFFF;
  --soft: #E6F2EC;
  --mark-bar: var(--basil);
  --mark-diag: var(--mulberry);
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 30px rgba(15, 107, 76, .14);
  --shadow-lg: 0 30px 60px rgba(6, 57, 42, .22);
  --wa: #25D366;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1713; --ink: #E8EFEA; --muted: #9AABA1; --line: #24332B; --card: #15211B; --soft: #163626;
    --mark-bar: var(--leaf); --mark-diag: var(--rosehip); --shadow: 0 12px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1713; --ink: #E8EFEA; --muted: #9AABA1; --line: #24332B; --card: #15211B; --soft: #163626;
  --mark-bar: var(--leaf); --mark-diag: var(--rosehip); --shadow: 0 12px 30px rgba(0,0,0,.35); color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.75;
  padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right));
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--basil); }
img, svg { max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.eyebrow { font-family: var(--display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mulberry); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--rosehip); } }
:root[data-theme="dark"] .eyebrow { color: var(--rosehip); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }

/* ── mark + wordmark ──────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .txt { display: grid; line-height: 1.1; }
.brand .txt b { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand .txt span { font-family: var(--display); font-weight: 600; font-size: .62rem; letter-spacing: .3em; color: var(--mark-bar); direction: ltr; text-align: start; }
[dir="rtl"] .brand .txt span { text-align: right; }
.brand .txt span.ar { letter-spacing: 0; font-size: .72rem; direction: rtl; }
.brand.on-dark { color: #fff; }
.brand.on-dark .txt span { color: var(--leaf); }

/* ── top bar + nav ────────────────────────────────────────────────── */
.topbar { background: var(--basil-deep); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .lang a { font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.topbar .lang a[aria-current="page"] { color: var(--leaf); }
@media (max-width: 560px) { .topbar .hide-sm { display: none; } }

.navbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--basil); }
.nav-links .btn { padding: 9px 18px; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; gap: 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; }
}

/* ── buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; line-height: 1.2; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--mulberry); color: #fff; box-shadow: 0 10px 24px rgba(123, 30, 68, .28); }
.btn-primary:hover { background: var(--mulberry-dark); color: #fff; }
.btn-secondary { background: var(--basil); color: #fff; }
.btn-secondary:hover { background: var(--basil-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--basil); color: var(--basil); }
.btn-light { background: #fff; color: var(--basil-dark); }
.btn-light:hover { background: #f1f6f3; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-wa { background: var(--wa); color: #073b1a; }
.btn-wa:hover { background: #1fbf5b; color: #073b1a; }
.btn .stack { display: grid; line-height: 1.15; text-align: start; }
.btn .stack small { font-size: .7rem; font-weight: 500; opacity: .85; font-family: var(--body); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: linear-gradient(160deg, var(--basil-deep) 0%, var(--basil-dark) 55%, var(--basil) 100%); overflow: hidden; }
.hero .weave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .26; }
.hero .glow { position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(60,194,127,.35), transparent 60%); inset-inline-end: -20vw; top: -30%; pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 36px; grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 56ch; margin-top: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.hero-stat strong { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--leaf); line-height: 1.2; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.8); }
.hero-visual { display: grid; place-items: center; }
.hero-visual svg { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding-block: 44px 56px; gap: 28px; } }

/* tracking card */
.track-card { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.track-card h2 { font-size: 1.25rem; }
.track-card p { color: var(--muted); font-size: .95rem; }
.track-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.track-form input { width: 100%; min-width: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: 600 1.05rem var(--mono); letter-spacing: .04em; background: var(--paper); color: var(--ink); direction: ltr; text-align: left; text-transform: uppercase; }
.track-form input::placeholder { text-transform: none; font-family: var(--body); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.track-form input:focus { border-color: var(--basil); outline: none; box-shadow: 0 0 0 4px rgba(15,107,76,.15); }
.track-form input[aria-invalid="true"] { border-color: var(--rosehip); }
.track-error { display: none; color: var(--rosehip); font-size: .9rem; }
.track-error.on { display: block; }
.track-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.track-links a { color: var(--basil); font-weight: 500; }
@media (max-width: 480px) { .track-form { grid-template-columns: 1fr; } .track-card { padding: 20px; } }

/* ── trust strip ──────────────────────────────────────────────────── */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--basil); flex: none; }
.trust-item b { display: block; font-family: var(--display); font-weight: 600; }
.trust-item span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .trust .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust .container { grid-template-columns: 1fr; } }

/* ── from-zanbbel strip ───────────────────────────────────────────── */
.from-zanbbel { display: none; background: var(--mulberry); color: #fff; padding: 10px 0; font-size: .95rem; }
.from-zanbbel.on { display: block; }
.from-zanbbel .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.from-zanbbel a { color: #fff; font-weight: 600; }

/* ── sections ─────────────────────────────────────────────────────── */
.block { padding-block: 72px; }
.block.alt { background: var(--card); border-block: 1px solid var(--line); }
.block.deep { background: var(--basil-deep); color: #fff; }
.block.deep h2, .block.deep h3 { color: #fff; }
.block.deep .section-head p { color: rgba(255,255,255,.8); }
.block.deep .eyebrow { color: var(--leaf); }
.section-head { display: grid; gap: 10px; max-width: 64ch; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--basil); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .95rem; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--basil); }
.card .more { color: var(--basil); font-weight: 600; font-size: .92rem; margin-top: 6px; }

/* services */
.service { position: relative; overflow: hidden; padding: 28px; min-height: 260px; }
.service .num { position: absolute; inset-inline-end: 18px; top: 10px; font-family: var(--display); font-weight: 800; font-size: 4.5rem; color: var(--soft); line-height: 1; pointer-events: none; }
.service h3 { font-size: 1.3rem; position: relative; }
.service ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .93rem; display: grid; gap: 4px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.step::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--mulberry); }
.step p { color: var(--muted); font-size: .95rem; }

/* showcase (product UI + copy) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.showcase ul.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.showcase ul.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.showcase ul.points svg { width: 26px; height: 26px; color: var(--leaf); }
.showcase ul.points b { display: block; font-family: var(--display); font-weight: 600; }
.showcase ul.points span { color: var(--muted); font-size: .93rem; }
.ui-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; max-width: 420px; margin-inline: auto; width: 100%; }
.ui-card .ui-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ui-card .ui-code { font: 700 .95rem var(--mono); direction: ltr; color: var(--basil); background: var(--soft); padding: 6px 10px; border-radius: 8px; }
.ui-card .ui-route { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; }
.ui-card .ui-route svg { width: 22px; height: 22px; color: var(--mulberry); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.timeline li + li::before { content: ""; position: absolute; inset-inline-start: 12px; top: -14px; height: 24px; border-inline-start: 2px solid var(--line); }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--basil); }
.timeline .dot svg { width: 16px; height: 16px; }
.timeline li.done .dot { background: var(--basil); color: #fff; }
.timeline li.now .dot { background: var(--mulberry); color: #fff; box-shadow: 0 0 0 5px rgba(123,30,68,.18); }
.timeline li.todo { opacity: .5; }
.timeline b { display: block; font-size: .95rem; font-family: var(--display); font-weight: 600; }
.timeline span { color: var(--muted); font-size: .82rem; }
.timeline time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* coverage */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 7px 13px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.block:not(.deep) .chip { background: var(--soft); border-color: transparent; color: var(--basil-dark); }
.route-art { width: 100%; height: auto; display: block; }

/* apps */
.apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app { border-radius: var(--radius-lg); padding: 26px; color: #fff; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.app::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); inset-inline-end: -80px; bottom: -110px; }
.app.customer { background: var(--basil); }
.app.hub { background: var(--mulberry); }
.app.driver { background: var(--ink); }
:root[data-theme="dark"] .app.driver, .app.driver { background: #1B2A22; }
.app .appicon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.app .appicon svg { width: 42px; height: 42px; }
.app h3 { color: #fff; font-size: 1.25rem; }
.app .who { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; font-family: var(--display); }
.app p { color: rgba(255,255,255,.85); font-size: .95rem; }
.app .btn { margin-top: 6px; position: relative; }
.app .soon { font-size: .82rem; opacity: .85; }

/* business tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--basil); font-weight: 400; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; font-size: .95rem; }

/* cta band */
.cta-band { background: var(--mulberry); color: #fff; padding-block: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.06); inset-inline-start: -200px; top: -260px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; }
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; position: relative; }
.store-badges .btn { background: #fff; color: var(--ink); min-width: 200px; }
.store-badges .btn.soon { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.store-badges .btn svg { width: 22px; height: 22px; }

/* ── footer ───────────────────────────────────────────────────────── */
footer.site { padding-block: 48px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; background: var(--card); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-col h4 { color: var(--ink); margin-bottom: 10px; font-size: .95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--basil); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.footer-social a:hover { color: var(--basil); border-color: var(--basil); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom .lang a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 600; margin-inline-start: 12px; }
.footer-bottom .lang a[aria-current="page"] { color: var(--basil); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── secondary pages ──────────────────────────────────────────────── */
.page-header { background: var(--basil-dark); color: #fff; padding-block: 44px; position: relative; overflow: hidden; }
.page-header .weave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; }
.page-header .container { position: relative; display: grid; gap: 8px; }
.page-header h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-header p { color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.05rem; }
.page-header .crumbs { font-size: .85rem; color: rgba(255,255,255,.7); }
.page-header .crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-body { padding-block: 44px 64px; }
.prose { max-width: 760px; }
.legal-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px clamp(18px, 4vw, 40px); max-width: 860px; }
.legal-wrap h2 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--basil-dark); }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap h3 { font-size: 1rem; margin: 18px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--ink); font-size: .97rem; }
.legal-wrap ul, .legal-wrap ol { padding-inline-start: 22px; margin: 8px 0 14px; display: grid; gap: 6px; }
.legal-wrap p { margin-bottom: 12px; }
.legal-wrap .callout { background: var(--soft); border-inline-start: 4px solid var(--basil); border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: .95rem; }
.legal-wrap .last-updated { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 16px; }
.legal-wrap td, .legal-wrap th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-wrap code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; direction: ltr; unicode-bidi: embed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legal-wrap h2 { color: var(--leaf); } }
:root[data-theme="dark"] .legal-wrap h2 { color: var(--leaf); }

/* forms (deletion request etc.) */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.form-card h3 { margin: 0 0 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--basil); outline: none; box-shadow: 0 0 0 4px rgba(15,107,76,.12); }
.field textarea { min-height: 90px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0 16px; }
.checkbox input { margin-top: 5px; }

/* info rows (support) */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); font-size: .9rem; }
.row a { font-weight: 500; }

/* code block */
.code { background: #0E1713; color: #D9E8DF; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: .85rem; line-height: 1.6; direction: ltr; text-align: left; overflow-x: auto; white-space: pre; }
.code .k { color: var(--leaf); }
.code .s { color: #F4B6C7; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--display); background: var(--soft); color: var(--basil-dark); }
.badge.soon { background: rgba(123,30,68,.12); color: var(--mulberry); }

/* ── small single-card pages (download, smart links) ──────────────── */
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 520px; width: 100%; margin: 32px auto; padding: 36px 28px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.page-card .appicon { width: 92px; height: 92px; border-radius: 24px; background: var(--basil); display: grid; place-items: center; }
.page-card .appicon svg { width: 60px; height: 60px; }
.page-card h1 { font-size: 1.6rem; }
.page-card p { color: var(--muted); }
.page-card .btn { width: 100%; }
.page-card .note { font-size: .82rem; color: var(--muted); }
.page-card .code-pill { font: 700 1rem var(--mono); direction: ltr; background: var(--soft); color: var(--basil); padding: 8px 14px; border-radius: 10px; letter-spacing: .04em; }
.loader { width: 38px; height: 38px; border: 3px solid var(--soft); border-top-color: var(--basil); border-radius: 50%; margin: 6px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
