/* stallo.ae: tokens from stallo-tokens.json. Light, restrained, no gradients.
   Arabic (RTL) is primary; every rule uses logical properties so /en mirrors it. */
@font-face { font-family: "Plex Arabic"; src: url("/assets/IBMPlexSansArabic-Regular.04f3ffd120.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/IBMPlexSansArabic-Medium.2c44c1e726.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/IBMPlexSansArabic-SemiBold.49147762d2.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/IBMPlexSansArabic-Bold.d6c001ccc6.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Colour (brand tokens only) */
  --cobalt: #2d46d8; --cobalt-pressed: #2238b0; --ink: #14161e; --ink-2: #5e6068;
  --sand: #eae3d6; --chalk: #faf7f1; --border: #ddd5c6; --outline: #857e73; --error: #b3322a; --success: #146a44;
  --surface: #fffdf9;
  /* Type */
  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;
  --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.1875rem;
  /* Space: 4 / 8 / 12 / 16 / 24 / 32 / 48, plus section rhythm */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  /* Shape */
  --r-field: 8px; --r-card: 12px; --r-pill: 999px;
  --tap: 44px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--chalk); color: var(--ink); font-family: var(--font); font-size: var(--text-md); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); text-underline-offset: 0.2em; }
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
:lang(en) :is(h1, h2) { letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
.wrap { width: min(70rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: var(--s5); }

/* Focus: one ring for every interactive element */
:is(a, button, input, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: var(--s4); top: var(--s4); z-index: 10; padding: var(--s2) var(--s4); background: var(--ink); color: var(--chalk); border-radius: var(--r-field); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* Brand motif: the awning edge, used once at the top of every page */
.awning { height: 26px; background: url("/media/awning.svg") repeat-x top / auto 100%; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s4); }
.top .home { display: inline-flex; align-items: center; min-height: var(--tap); }
.top .home img { height: 36px; width: auto; }
.top nav { display: flex; gap: var(--s5); align-items: center; font-weight: 500; font-size: var(--text-sm); }
.top nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.top nav a:hover { color: var(--cobalt); }
.top nav .lang { border: 1px solid var(--border); border-radius: var(--r-pill); padding-inline: var(--s4); min-height: var(--tap); }
.top nav .btn { min-height: 2.5rem; padding-inline: var(--s4); font-size: var(--text-sm); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding-inline: var(--s5); border-radius: var(--r-pill); font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--chalk); }
.btn.primary:hover { background: var(--cobalt-pressed); border-color: var(--cobalt-pressed); }
.btn.secondary:hover { background: var(--sand); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 150ms ease-out, transform 100ms ease-out; }
  .btn:active { transform: scale(0.97); }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s7); align-items: center; padding-block: var(--s6) var(--section); }
.eyebrow { color: var(--cobalt); font-weight: 600; font-size: var(--text-sm); }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); font-weight: 700; margin-block: var(--s3) var(--s5); }
.hero h1 span { display: block; color: var(--cobalt); }
.lead { font-size: var(--text-lg); color: var(--ink-2); max-width: 32em; }
.cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); align-items: center; }
.soon { font-size: var(--text-sm); color: var(--ink-2); }

.phone { justify-self: center; position: relative; width: min(18.75rem, 72vw); }
.phone .screen { aspect-ratio: 1080 / 2340; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--sand); box-shadow: 0 4px 16px rgba(20, 22, 30, 0.08); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset-block-end: var(--s5); inset-inline: 0; margin-inline: auto; width: fit-content; background: var(--chalk); border-color: var(--chalk); min-height: var(--tap); font-size: var(--text-sm); white-space: nowrap; }
.play svg { width: 1rem; height: 1rem; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }

/* Sections */
section { padding-block: var(--section); }
.band { background: var(--sand); }
.rule { border-top: 1px solid var(--border); }
.head { max-width: 40rem; display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s7); }
.head h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); }
.head p { color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-2); }
.tag { align-self: flex-start; font-size: 0.8125rem; font-weight: 600; border-radius: var(--r-pill); padding-inline: var(--s3); background: var(--chalk); border: 1px solid var(--border); }
.card ul { padding-inline-start: 1.1em; display: flex; flex-direction: column; gap: var(--s1); font-size: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); list-style: none; padding: 0; }
.steps li { border-top: 2px solid var(--ink); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.steps b { font-size: var(--text-sm); color: var(--cobalt); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }

/* Fees */
.fees h3.sub { font-size: 1.25rem; margin-block: var(--s7) var(--s4); }
.figure { flex-direction: row; align-items: baseline; gap: var(--s5); }
.figure strong { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; font-weight: 700; color: var(--cobalt); flex: none; }
.figure div { display: flex; flex-direction: column; gap: var(--s1); }
.figure h4 { margin: 0; font-size: 1.0625rem; }
.fine { margin-top: var(--s5); color: var(--ink-2); font-size: 0.9375rem; max-width: 46rem; }

/* FAQ: native disclosure, searchable with find-in-page */
.faq { max-width: 48rem; display: flex; flex-direction: column; border-top: 1px solid var(--outline); }
.faq details { border-bottom: 1px solid var(--outline); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 3.5rem; padding-block: var(--s3); font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* Directional cue in place of the hidden triangle: a plus that becomes a minus */
.faq summary svg { flex: none; width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq details[open] summary .v { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .faq summary .v { transition: opacity 150ms ease-out; } }
.faq details > div { padding-block-end: var(--s5); color: var(--ink-2); max-width: 42rem; display: flex; flex-direction: column; gap: var(--s3); }

/* Interest form */
.interest { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; }
.interest .head { margin-bottom: 0; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(var(--s5), 3vw, var(--s6)); display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s1); border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 1rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.hint { font-size: var(--text-sm); color: var(--ink-2); }
.input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--chalk); border: 1px solid var(--outline); border-radius: var(--r-field); min-height: 3rem; padding: var(--s3) var(--s4); width: 100%; }
textarea.input { min-height: 6rem; resize: vertical; }
.input:focus-visible { border-color: var(--cobalt); outline-offset: 1px; }
.choices { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s1); }
.choice { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding-inline: var(--s4); border: 1px solid var(--outline); border-radius: var(--r-pill); cursor: pointer; background: var(--chalk); }
.choice input { accent-color: var(--cobalt); width: 1.125rem; height: 1.125rem; margin: 0; }
.choice:has(:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.choice:has(:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.error-msg { display: none; color: var(--error); font-size: var(--text-sm); font-weight: 500; }
.error-msg::before { content: "! "; font-weight: 700; }
:is(.input:user-invalid, .input.user-invalid-fallback) { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
:is(.input:user-invalid, .input.user-invalid-fallback) ~ .error-msg { display: block; }
.field:has(input[type="radio"]:user-invalid) .error-msg, .field.user-invalid-fallback .error-msg { display: block; }
.trap { position: absolute; inset-inline-start: -100vw; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.status { font-weight: 500; }
.status:empty { display: none; }
.status.ok { color: var(--success); }
.status.err { color: var(--error); }
.legal { font-size: 0.8125rem; color: var(--ink-2); }
.contact { color: var(--ink-2); }
/* reCAPTCHA attribution is shown in .legal, so its floating badge is hidden. */
.grecaptcha-badge { visibility: hidden; }

/* Footer */
footer { border-top: 1px solid var(--border); padding-block: var(--s6); font-size: var(--text-sm); color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
footer nav { display: flex; gap: var(--s2) var(--s5); flex-wrap: wrap; }
footer a { color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); min-width: var(--tap); }
footer a:hover { color: var(--ink); }
footer svg { width: 1.125rem; height: 1.125rem; }

/* Legal pages */
.doc { max-width: 46rem; padding-block: var(--s6) var(--section); }
.doc h1 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem); margin-bottom: var(--s3); }
.doc h2 { font-size: 1.25rem; margin-block: var(--s6) var(--s3); }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: var(--s3); }
.doc ul { padding-inline-start: 1.25em; display: flex; flex-direction: column; gap: var(--s2); }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-2); font-size: var(--text-sm); }

/* Subtle entry for content blocks. Decorative only: progressive enhancement, no fallback. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 0.75rem; } }
    .reveal { animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

@media (max-width: 860px) {
  .top nav a:not(.lang):not(.btn) { display: none; }
  .top nav { gap: var(--s3); }
  .hero, .interest { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .phone { width: min(15rem, 64vw); }
  .grid-3, .grid-2, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: var(--s5); }
  .head { margin-bottom: var(--s6); }
}
@media (max-width: 420px) {
  .top nav .btn { display: none; }
}
