/* Husban landing: the same brand tokens as the app (core/designsystem/theme/Color.kt):
   deep teal primary, warm copper accent, green-tinted neutrals, full dark theme. */
:root {
  --brand: #0f6e64;
  --brand-strong: #0b5a52;
  --brand-ink: #ffffff;
  --brand-soft: #cdede6;
  --brand-tint: #e8f4f1;
  --accent: #9a5418;
  --accent-soft: #ffdcc4;
  --accent-ink: #311300;
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #10201d;
  --muted: #4a5e5a;
  --line: #d9e4e1;
  --line-strong: #b4c4c0;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --final-bg: #0f6e64;
  --final-ink: #ffffff;
  --final-muted: #d7efea;
  --phone: #0b1412;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(16 32 29 / 6%), 0 10px 30px rgb(16 32 29 / 7%);
  --shadow-phone: 0 2px 4px rgb(16 32 29 / 10%), 0 28px 60px rgb(15 110 100 / 22%);
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5fd3c2;
    --brand-strong: #84e0d2;
    --brand-ink: #00201c;
    --brand-soft: #123d37;
    --brand-tint: #10302b;
    --accent: #ffb781;
    --accent-soft: #713700;
    --accent-ink: #ffdcc4;
    --bg: #0d1513;
    --surface: #15201e;
    --surface-2: #1b2826;
    --ink: #e3ece9;
    --muted: #a6bab5;
    --line: #26332f;
    --line-strong: #3b4c48;
    --danger: #ffb4ab;
    --danger-soft: #3d1210;
    --final-bg: #0f4c45;
    --final-ink: #ffffff;
    --final-muted: #bff3ea;
    --phone: #000000;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%);
    --shadow-phone: 0 2px 4px rgb(0 0 0 / 40%), 0 28px 60px rgb(0 0 0 / 45%);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 1.2rem + 3.2vw, 3.1rem); letter-spacing: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.15rem); text-align: center; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
strong { font-weight: 700; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-flip { transform: scaleX(-1); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2 * var(--gutter)); }
section { padding: clamp(56px, 9vw, 96px) 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-lead { text-align: center; color: var(--muted); max-width: 60ch; margin: -.2em auto 2.2em; font-size: 1.05rem; }
.center { text-align: center; justify-content: center; }
.note { text-align: center; color: var(--muted); font-size: .95rem; margin: 20px auto 0; max-width: 70ch; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 20; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 1.25rem; line-height: 1; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-row > .btn { margin-inline-start: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top-row > .btn { margin-inline-start: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font: inherit; font-weight: 700; line-height: 1.3; border: 2px solid var(--brand); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; text-align: center; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.btn-small { min-height: 42px; padding: 6px 14px; font-size: .95rem; border-radius: 12px; }
.btn-large { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-light { background: #ffffff; color: #0f6e64; border-color: #ffffff; }
.btn-light:hover { background: #e8f4f1; border-color: #e8f4f1; color: #0b5a52; }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 70%); }
.btn-outline-light:hover { background: rgb(255 255 255 / 12%); color: #ffffff; border-color: #ffffff; }
.final-box .btn:focus-visible { outline-color: #ffffff; }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); background: radial-gradient(900px 480px at 15% 0%, var(--brand-tint), transparent 70%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--ink); padding: 4px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; line-height: 1.6; }
.accent { color: var(--brand); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.cta-note { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink); font-weight: 500; font-size: .97rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .icon { color: var(--brand); width: 1.15em; height: 1.15em; stroke-width: 2.6; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .phone { width: min(290px, 74vw); }

.audience { margin-top: clamp(36px, 6vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.audience-title { margin: 0; color: var(--muted); font-weight: 500; }
.audience ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.audience li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .95rem; }

/* Phone frame */
.phone { margin: 0; padding: 9px; border-radius: 36px; background: var(--phone); box-shadow: var(--shadow-phone); }
.phone img { width: 100%; border-radius: 28px; background: var(--brand-soft); }

/* Grids and cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid.features { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.value, .feature, .plan, .steps li, .download-card, .request, .fallback { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band .value, .band .plan, .band .download-card { background: var(--bg); }
.value p { color: var(--muted); margin: 0; }
.value-icon, .feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.value-icon .icon, .feature-icon .icon { width: 26px; height: 26px; }
/* Icon beside the title (saves height on phones); value cards stack it above the title on wide screens. */
.value, .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-content: start; }
.value h3, .feature h3 { align-self: center; margin: 0; }
.value p, .feature .ticks { grid-column: 1 / -1; margin-top: 14px; }
.feature h3 { font-size: 1.2rem; }
@media (min-width: 760px) {
  .value { display: block; }
  .value-icon { margin-bottom: 14px; }
  .value h3 { margin-bottom: .5em; }
  .value p { margin-top: 0; }
}

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; color: var(--muted); }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6e64' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd3c2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
}
.ticks strong { color: var(--ink); font-weight: 700; }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 20px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gallery:focus-visible { outline-offset: -3px; }
.shot { flex: 0 0 min(220px, 62vw); margin: 0; scroll-snap-align: start; }
.shot .phone { padding: 7px; border-radius: 30px; box-shadow: var(--shadow); }
.shot .phone img { border-radius: 24px; }
.shot figcaption { text-align: center; color: var(--ink); margin-top: 12px; font-weight: 500; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
@media not all and (hover: hover) and (pointer: fine) { .gallery-nav { display: none !important; } }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.round-btn:hover { background: var(--surface-2); }
.round-btn:disabled { opacity: .4; cursor: default; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Pricing */
.periods { display: none; justify-content: center; gap: 4px; margin: 0 auto 20px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); min-inline-size: 0; }
@supports selector(:has(a)) { .periods { display: flex; } }
.periods label { position: relative; cursor: pointer; }
.periods input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.periods span { display: block; padding: 9px 18px; border-radius: 11px; color: var(--muted); font-weight: 500; min-height: 44px; line-height: 26px; }
.periods input:checked + span { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.periods input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.periods label:hover input:not(:checked) + span { color: var(--ink); background: var(--surface-2); }
.included { text-align: center; color: var(--muted); max-width: 68ch; margin: 0 auto 28px; font-size: .97rem; }
.included strong { color: var(--ink); }

.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.plan .ticks { margin-bottom: 24px; flex: 1; }
.plan .btn { width: 100%; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.band .plan-featured { background: var(--surface); }
.badge { position: absolute; top: -14px; inset-inline-start: 22px; margin: 0; background: var(--accent-soft); color: var(--accent-ink); font-size: .85rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; line-height: 1.9; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 0; }
.price .amt { font-size: 2.4rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 1.3rem; font-weight: 700; }
.price .per { color: var(--muted); font-weight: 500; }
.save { min-height: 1.75em; margin: 2px 0 16px; color: var(--accent); font-weight: 500; font-size: .93rem; }
/* Period switch without JS: monthly by default, the checked radio decides (CSS :has). */
.pricing [data-p="q"], .pricing [data-p="h"] { display: none; }
.pricing:has(input[value="q"]:checked) [data-p="m"], .pricing:has(input[value="h"]:checked) [data-p="m"] { display: none; }
.pricing:has(input[value="q"]:checked) [data-p="q"], .pricing:has(input[value="h"]:checked) [data-p="h"] { display: inline; }
.save [data-p="m"] { color: var(--muted); font-weight: 400; }

/* Request form (builds a Telegram link in the browser; nothing is sent to a server) */
.fallback { text-align: center; }
.fallback p { color: var(--muted); }
.request { padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.fields { display: grid; gap: 18px 16px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { font-weight: 700; margin-bottom: 6px; }
.field input, .field select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px; min-height: 50px; padding: 10px 14px; width: 100%; max-width: 100%; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-start: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5e5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; }
@media (prefers-color-scheme: dark) {
  .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6bab5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]::placeholder { text-align: right; }
.field input::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 500; margin: 6px 0 0; }
.summary { margin: 20px 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--brand-tint); color: var(--ink); text-align: center; }
.summary:empty { display: none; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.privacy-note .icon { margin-top: .25em; color: var(--brand); }
.tg-result { margin-top: 18px; padding: 16px; border-radius: 14px; border: 1px solid var(--brand); background: var(--brand-tint); }
.tg-result p { margin-bottom: 12px; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-actions .btn { flex: 1 1 180px; }

/* Download */
.download-card { text-align: center; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.store-soon { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 18px; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-weight: 500; }
.download-meta { color: var(--muted); margin: 14px 0 18px; font-size: .95rem; }
.install { text-align: start; max-width: 560px; margin: 0 auto; padding-inline-start: 1.4em; display: grid; gap: 6px; }
.install li::marker { color: var(--brand); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 18px; padding-inline-end: 52px; list-style: none; position: relative; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6e64' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s ease; }
@media (prefers-color-scheme: dark) {
  .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd3c2' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 18px 4px; }

/* Soon */
.soon { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); max-width: 960px; }
.soon li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 16px; }
.soon li::before { content: "قريباً"; flex: none; font-size: .78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0 10px; line-height: 1.9; }

/* Final CTA */
.final { padding-top: clamp(48px, 8vw, 80px); }
.final-box { background: var(--final-bg); color: var(--final-ink); border-radius: 28px; padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 56px); text-align: center; }
.final-box h2 { margin-bottom: .4em; }
.final-box p { color: var(--final-muted); }
.final-box .cta-row { margin-bottom: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 36px 0 24px; background: var(--surface); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.foot-brand p { margin: 10px 0 0; max-width: 36ch; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot-links a, .foot-contact a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.foot-links a:hover, .foot-contact a:hover { color: var(--brand); text-decoration: underline; }
.foot-contact p { margin: 0 0 4px; }
.foot-contact .icon { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Privacy page */
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.foot-row a { min-height: 36px; display: inline-flex; align-items: center; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.doc h2 { text-align: start; font-size: 1.3rem; margin-top: 1.6em; }
.draft { background: #fff4d6; color: #5c4400; border-radius: 10px; padding: 10px 14px; }
