/* proqer.ai waiting list. Mobile first (390 px), light and dark from the system, RTL by logical properties.
   Colours follow the app: blue spine (CTA blue-600 → sky-600), cyan/violet only for Anya. */
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/Cairo-arabic-variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --bg: #f7f9fc;
  --bg-2: #eef3fb;
  --ink: #0b1430;
  --ink-2: #334155;
  --muted: #64748b;
  --card: #ffffff;
  --line: #dbe3ef;
  --field: #ffffff;
  --brand: #2563eb;
  --brand-2: #0284c7;
  --link: #1d4ed8;
  --ok: #059669;
  --err: #b91c1c;
  --bubble-me: #e8effc;
  --glow: rgba(37, 99, 235, 0.14);
  --shadow: 0 1px 2px rgba(11, 20, 48, 0.05), 0 8px 30px rgba(11, 20, 48, 0.06);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b18;
    --bg-2: #0b1430;
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --card: rgba(15, 23, 42, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --field: rgba(2, 6, 23, 0.6);
    --link: #7dd3fc;
    --ok: #34d399;
    --err: #fca5a5;
    --bubble-me: rgba(37, 99, 235, 0.22);
    --glow: rgba(59, 130, 246, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
:lang(ar), :lang(fa) { font-family: 'Cairo', var(--font); }
:lang(ar) body, :lang(fa) body { line-height: 1.7; }
bdi { unicode-bidi: isolate; }
a { color: var(--link); }
:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand .wordmark { height: 30px; width: auto; display: block; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0 10px; height: 38px; }
.lang svg { width: 18px; height: 18px; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; padding: 0 2px; height: 100%; cursor: pointer; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { padding: 36px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
:lang(ar) h1, :lang(fa) h1 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) h1 { letter-spacing: 0; line-height: 1.2; }
.sub { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; max-width: 34em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.form-card { padding: 18px; position: relative; overflow: hidden; }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #10b981, #0ea5e9, #8b5cf6); }
.form-title { font-size: 18px; margin: 2px 0 12px; letter-spacing: -0.01em; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400; padding: 0 14px;
}
.field input:focus, .field select:focus { border-color: #38bdf8; outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); }
.field input[aria-invalid='true'] { border-color: var(--err); }
.more { margin: 0 0 12px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 4px 0; list-style-position: inside; }
.more summary small { font-weight: 400; color: var(--muted); }
.more-in { padding-top: 10px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta {
  width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.36); }
.cta:disabled { opacity: 0.7; cursor: progress; transform: none; }
.cta.danger { background: linear-gradient(90deg, #dc2626, #b91c1c); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25); }
.err { color: var(--err); font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.consent { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }
[data-turnstile]:not(:empty) { margin-bottom: 12px; }

.thanks { text-align: center; padding: 8px 4px 4px; outline: none; }
.thanks h2 { margin: 10px 0 6px; font-size: 22px; }
.thanks p { margin: 0 0 8px; color: var(--ink-2); }
.thanks [data-thanks-body] b { color: var(--ink); overflow-wrap: anywhere; }
.muted { color: var(--muted) !important; font-size: 14px; }
.ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); }
.ok svg { width: 28px; height: 28px; }
.share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.share p { font-size: 14px; font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}

/* Anya teaser */
.anya { padding: 26px 0 6px; }
.chat { padding: 16px; display: grid; gap: 10px; }
.chat-note { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .chat-note, :lang(fa) .chat-note, :lang(zh) .chat-note { text-transform: none; letter-spacing: 0; }
.bubble { margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 15px; max-width: 88%; }
.bubble.me { justify-self: end; background: var(--bubble-me); border-end-end-radius: 6px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; }
.bubble.ai { background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.14)); border: 1px solid rgba(139, 92, 246, 0.22); border-end-start-radius: 6px; }
.orb { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #a5f3fc, #22d3ee 35%, #8b5cf6 80%); box-shadow: 0 0 18px rgba(139, 92, 246, 0.45); }

/* Features */
.features { display: grid; gap: 12px; padding: 20px 0 6px; }
.feat { padding: 18px; }
.feat h3 { margin: 10px 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ic { display: block; width: 40px; height: 40px; border-radius: 12px; }
.ic-city { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.ic-anya { background: linear-gradient(135deg, #22d3ee, #8b5cf6); }
.ic-deal { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.ic { position: relative; }
.ic::after { content: ''; position: absolute; inset: 11px; background: #fff; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.ic-city { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21V10l5-3v14M8 21V4l7 3v14M15 21v-9l6 2v7M2 21h20' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ic-anya { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10l-6.3 2.2L12 18.5l-2.2-6.3L3.5 10l6.3-1.7z M19 16l.9 2.1L22 19l-2.1.9L19 22l-.9-2.1L16 19l2.1-.9z'/%3E%3C/svg%3E"); }
.ic-deal { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H8l-4 4z M8 10h8' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Cities */
.cities { padding: 22px 0 6px; }
.sec-title { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .sec-title, :lang(fa) .sec-title, :lang(zh) .sec-title { text-transform: none; letter-spacing: 0; }
.city-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.city { position: relative; height: 140px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.city::after { content: ''; position: absolute; inset: auto 0 0 0; height: 70%; background-position: bottom center; background-repeat: no-repeat; background-size: 100% auto; opacity: 0.35; }
.city span { position: relative; z-index: 1; }
.city-ist { background: linear-gradient(160deg, #1e3a8a, #2563eb 55%, #38bdf8); }
.city-dxb { background: linear-gradient(160deg, #0c4a6e, #0284c7 50%, #f2b661); }
/* Simple skylines: mosque domes and minarets; Dubai towers. */
.city-ist::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23fff' d='M0 80V62h20v-8h6v8h10V50h3V24l2-6 2 6v26h3v-6c0-10 7-18 16-21 9 3 16 11 16 21v6h3V24l2-6 2 6v26h3v12h12v-6c0-7 5-12 11-14 6 2 11 7 11 14v6h14V44h3V28l2-5 2 5v16h3v18h20V48h8v14h16v18z'/%3E%3C/svg%3E"); }
.city-dxb::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23fff' d='M0 80V58h12V40h10v18h10V30h8v28h12V46h10V58h14l6-50 2-8 2 8 6 50h12V36h10v22h10V44h10v14h12V26l10 6v26h10V48h10v32z'/%3E%3C/svg%3E"); }
[dir='rtl'] .city::after { transform: scaleX(-1); }

/* Privacy */
.privacy { margin: 24px 0 8px; padding: 18px; }
.privacy h2 { font-size: 18px; margin: 0 0 8px; }
.privacy ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }

.foot { border-top: 1px solid var(--line); margin-top: 28px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Confirm / leave */
.link-page { display: grid; place-items: center; padding-top: 48px; }
.link-card { width: 100%; max-width: 440px; padding: 28px 22px; text-align: center; }
.link-card h1 { font-size: 24px; line-height: 1.3; margin: 14px 0 8px; }
.link-card p { color: var(--ink-2); }
.link-card .cta { margin: 6px 0 4px; }
.back { font-weight: 600; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-areas: 'eb form' 'h1 form' 'sub form'; column-gap: 48px; align-items: start; padding-top: 72px; }
  .hero .eyebrow { grid-area: eb; justify-self: start; }
  .hero h1 { grid-area: h1; }
  .hero .sub { grid-area: sub; font-size: 19px; }
  .hero .form-card { grid-area: form; grid-row: 1 / span 3; padding: 24px; }
  .anya { max-width: 640px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .city { height: 200px; font-size: 26px; padding: 20px; }
}
