/* Livon landing site - tokens from the Livon design system (porting/ui-redesign/ds/project/tokens.json) and the brand book
   (Livon Branding.pdf: #5d2f64 plum, #8f4698 orchid, #20103b ink, #62c8ef cyan, #f1a9af pink). Fonts: Inter (Latin) and Cairo
   (Arabic), both OFL, self-hosted under /assets/fonts (the brand book's own Arabic face is Cairo; Myriad is not free). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.var.6da2c618.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-arabic.var.57e04b87.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --plum: #5d2f64; --plum-600: #713490; --plum-800: #4a2550; --orchid: #8f4698; --orchid-400: #ac58a1; --ink: #20103b;
  --cyan: #62c8ef; --pink: #f1a9af; --rose: #e296ac;
  --p50: #faf7fc; --p100: #f3eef8; --p200: #e8e0ee; --p300: #d3bfdc;
  --s100: #f6f2f9; --s300: #d6cadf; --s600: #6b5a74; --s700: #4e3f57;
  --text: var(--ink); --text-label: #3d2a4a; --muted: var(--s600);
  --input-border: #d9cfe0; --input-bg: #fbf9fc; --danger: #b23a4a; --danger-500: #d9534f; --success: #2d7a4f; --warn: #9a5b00;
  --focus: 0 0 0 3px rgba(143, 70, 152, .28);
  --radius: 10px; --radius-lg: 14px; --shadow: 0 12px 32px rgba(32, 16, 59, .12);
  --gutter: clamp(16px, 3vw, 32px); --wrap: 1160px;
  --font: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}
html[lang="ar"] { --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
html[lang="ar"] body { line-height: 1.75; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--orchid); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 2px; box-shadow: var(--focus); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .95em; background: var(--p100); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 860px; }
.skip { position: absolute; inset-inline-start: 8px; top: -48px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 8px; z-index: 100; }
.skip:focus { top: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orchid); margin: 0 0 12px; }
html[lang="ar"] .kicker { letter-spacing: 0; }
.lead { font-size: 19px; color: var(--s700); max-width: 62ch; }
.meta { color: var(--muted); font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-600); color: #fff; }
.btn--primary:active { background: var(--plum-800); }
.btn--outline { background: #fff; color: var(--plum); border-color: var(--p300); }
.btn--outline:hover { border-color: var(--orchid); color: var(--orchid); background: var(--p50); }
.btn--ghost { background: transparent; color: var(--s600); }
.btn--ghost:hover { background: var(--p100); color: var(--ink); }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--p100); color: var(--plum-800); }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--icon { width: 42px; padding: 0; font-size: 22px; line-height: 1; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--p200); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand__img { width: 128px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav__list a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--text-label); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav__list a:hover { background: var(--p100); color: var(--plum); }
.site-nav__list a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--orchid); border-radius: 8px 8px 0 0; }
.site-nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--text-label); }
.lang-switch:hover { background: var(--p100); }
html[lang="en"] .lang-switch { font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="ar"] .lang-switch { font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--p200); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-label); cursor: pointer; }
.nav-toggle__bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--p200); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { display: block; padding: 12px; font-size: 16px; }
  .site-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orchid); border-radius: 8px; }
  .site-nav__actions { justify-content: space-between; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--s100) url("/assets/img/hero-bg.04ec313e.webp") center / cover no-repeat; padding: clamp(40px, 7vw, 96px) 0; }
@media (max-width: 640px) { .hero { background-image: url("/assets/img/hero-bg-sm.679e7eaa.webp"); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .75) 55%, rgba(255, 255, 255, .35) 100%); pointer-events: none; }
html[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .75) 55%, rgba(255, 255, 255, .35) 100%); }
.hero__grid { position: relative; z-index: 1; }
.hero__text { max-width: 720px; }
.hero__logo { width: 220px; margin: 4px 0 20px; }
.hero__h1 { font-size: clamp(34px, 5.2vw, 60px); margin-bottom: 20px; }
.hero__h1-a { display: block; color: var(--plum-800); }
.hero__h1-b { display: block; color: var(--orchid); }
.hero__p { font-size: clamp(17px, 1.6vw, 20px); color: var(--s700); max-width: 60ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--first { padding-top: clamp(24px, 4vw, 48px); }
.section--tint { background: var(--s100); }
.section__h2 { font-size: clamp(26px, 3vw, 34px); text-align: center; }
.section__intro { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card { background: #fff; border: 1px solid var(--p200); border-radius: var(--radius-lg); padding: 22px 22px 18px; position: relative; }
.card::before { content: ""; position: absolute; inset-inline-start: 22px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--pink), var(--orchid)); }
.card h3 { font-size: 18px; margin: 8px 0 8px; color: var(--plum); }
.card p { margin: 0; color: var(--s700); font-size: 15px; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 56px; min-height: 40px; display: flex; align-items: center; font-size: 16px; color: var(--s700); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 700; }
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(16px, 3vw, 32px); background: linear-gradient(180deg, var(--s100), #fff); }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.page-head--brand { background: var(--s100) url("/assets/img/section-bg.0ca49df8.webp") center / cover no-repeat; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 22px; margin-top: 1.6em; color: var(--plum); }
.prose p { color: var(--s700); font-size: 16px; }
.about { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 3fr 2fr; } .about .prose { margin-inline: 0; } }
.about__logo { margin: 0; padding: 32px; border: 1px solid var(--p200); border-radius: var(--radius-lg); background: linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .86)), url("/assets/img/pattern-light.81c8a78d.webp") center / cover no-repeat #fff; }
.about__logo img { margin: 0 auto; }
.cta-band { background: linear-gradient(120deg, var(--plum) 0%, var(--plum-600) 60%, var(--orchid) 100%); color: #fff; padding: clamp(36px, 5vw, 64px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 60ch; }

/* footer */
.site-footer { background: var(--ink); color: #e9e1ee; padding: 48px 0 24px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1.4fr; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { width: 140px; }
.site-footer__tag { color: var(--cyan); margin: 10px 0 14px; font-weight: 600; }
.site-footer__h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #c9b9d1; margin-bottom: 12px; }
html[lang="ar"] .site-footer__h { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__mail { overflow-wrap: anywhere; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 16px; color: #c9b9d1; }
.site-footer__bottom p { margin: 0; }
.site-footer .lang-switch { color: #fff; }
.soon { color: #c9b9d1; cursor: default; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #9a8aa5; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.status[data-state="operational"] .status__dot { background: #3dbb7a; }
.status[data-state="unavailable"] .status__dot { background: #e0606a; }
.status[data-state="checking"] .status__dot { background: #c9b9d1; }
.noscript { background: var(--p100); color: var(--text-label); padding: 12px var(--gutter); margin: 0; text-align: center; font-size: 14px; }

/* form */
.form-card { background: #fff; border: 1px solid var(--p200); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.form-card__h { font-size: clamp(26px, 3.2vw, 34px); }
.form-card__lead { color: var(--muted); font-size: 17px; }
.form__note { color: var(--muted); font-size: 14px; }
.form__group { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form__group legend { font-size: 17px; font-weight: 700; color: var(--plum); padding: 0; margin-bottom: 12px; }
.form__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } .field--num { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .branches__label { font-size: 13.5px; font-weight: 600; color: var(--text-label); }
.req { color: var(--danger); }
.field input:not([type="checkbox"]), .field select, .field textarea, .tenant-input { width: 100%; min-height: 42px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--input-bg); color: var(--ink); font: inherit; font-size: 15px; padding: 8px 12px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--orchid-400); }
.field input:focus, .field select:focus, .field textarea:focus, .tenant-input:focus-within { outline: none; border-color: var(--orchid); background: #fff; box-shadow: var(--focus); }
.field [aria-invalid="true"], .tenant-input.is-invalid { border-color: var(--danger-500); }
.field__hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.field__error { margin: 0; font-size: 12.5px; color: var(--danger); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field__preview { margin: 0; font-size: 13px; color: var(--text-label); }
.field__preview code { font-size: 13px; }
.tenant-input { display: flex; align-items: center; padding: 0; overflow: hidden; }
.tenant-input input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 40px; flex: 1 1 60px; min-width: 60px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--ink); }
.tenant-input input:focus { outline: none; }
.tenant-input__suffix { padding: 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; background: var(--p100); align-self: stretch; display: flex; align-items: center; border-inline-start: 1px solid var(--input-border); }
.branches { margin-top: 18px; display: grid; gap: 10px; }
.branches__label { margin: 0; }
.branches__rows { display: grid; gap: 10px; }
.branch-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) 42px; gap: 10px; align-items: start; }
.branch-row .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.branch-row:first-child .field label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.branch-row__remove { margin-top: 0; }
.branch-row:first-child .branch-row__remove { margin-top: 26px; }
@media (max-width: 480px) { .branch-row { grid-template-columns: minmax(0, 1fr) 100px 42px; } }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; align-items: start; margin: 8px 0 20px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); }
.field--check label { font-size: 14.5px; font-weight: 400; color: var(--text-label); }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form__banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
.form__banner--error { background: #fdeef0; color: var(--danger); border: 1px solid #f3c3c9; }
.form__banner--info { background: #e6f6fd; color: #186e94; border: 1px solid #bfe3f5; }
.form__actions { display: flex; justify-content: flex-end; gap: 12px; }
.turnstile { margin: 0 0 16px; }
.thanks__facts { display: grid; gap: 8px; margin: 0 0 20px; }
.thanks__facts div { display: flex; gap: 10px; flex-wrap: wrap; }
.thanks__facts dt { color: var(--muted); margin: 0; }
.thanks__facts dd { margin: 0; }
.thanks code { font-size: 16px; }

/* standalone pages (404 / unknown tenant) share this file through build.py inlining the rules below */
.standalone { background: var(--s100) url("/assets/img/hero-bg-sm.679e7eaa.webp") center / cover no-repeat; display: grid; place-items: center; padding: var(--gutter); }
.standalone__main { background: rgba(255, 255, 255, .94); border: 1px solid var(--p200); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); max-width: 640px; width: 100%; }
.standalone__logo { width: 180px; margin-bottom: 24px; }
.standalone h1 { font-size: clamp(24px, 3.5vw, 32px); color: var(--plum); }
.standalone hr { border: 0; border-top: 1px solid var(--p200); margin: 24px 0; }
.standalone section[lang="ar"] { font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
.standalone .btn { background: var(--plum); color: #fff; }
.standalone__tag { color: var(--muted); font-size: 13px; margin: 24px 0 0; }
