/* Download page, Dec 2026 look (owner picked "sample 1"): near-black, off-white type, one warm sand accent (the Crystal Dark accent),
   a serif headline, the round emblem, the app in a tilted window over ThreeUI's Predictive Arc, and a grid of real app pictures,
   one per feature. Arabic uses Saudi; English headings use Instrument Serif (OFL, vendor/fonts/instrument-serif). */
@font-face { font-family: 'Instrument Serif'; src: url('../vendor/fonts/instrument-serif/InstrumentSerif-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../vendor/fonts/instrument-serif/InstrumentSerif-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter/Inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

#landing { --s-bg: #0b0b0c; --s-panel: #141416; --s-text: #ecebe8; --s-mut: #9a9aa0; --s-line: rgba(255,255,255,.09); --s-ac: #d9a574; --s-ac-soft: #e3cfae;
  background: var(--s-bg); color: var(--s-text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 0 0 40px; }
/* shown once its pictures, buttons and entrance motion are set (js/78-site-v2.js adds ld-on), so it never appears and then jumps */
#landing.ld-on { visibility: visible; }
#landing[dir="rtl"] { font-family: 'Saudi', Inter, system-ui, sans-serif; }

/* top bar */
#landing .ld-top { max-width: 1180px; padding: 18px 24px; position: relative; z-index: 3; }
#landing .ld-brand b { color: var(--s-text); }
#landing .ld-brand span { color: #aab2cc; font-family: 'Saudi', sans-serif; font-weight: 600; }
#landing .ld-top-r { gap: 18px; }
#landing .ld-lang { border: 0; padding: 8px 4px; color: var(--s-mut); font-size: 14px; }
#landing .ld-lang:hover { color: var(--s-text); }
#landing .ld-ghost { border: 1px solid rgba(255,255,255,.22); color: var(--s-text); font-size: 14px; padding: 9px 18px; }
#landing .ld-ghost:hover { border-color: var(--s-ac); color: #fff; }

/* hero */
#landing .ld-hero { max-width: none; margin: 0; padding: 0 24px; position: relative; }
#landing #ld-arc { position: absolute; left: 0; right: 0; top: 330px; height: 760px; width: 100%; pointer-events: none; z-index: 0; display: block;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
#landing .ld-hero > * { position: relative; z-index: 1; }
#landing .ld-emblem { width: 150px; height: 150px; margin: 56px auto 30px; }
#landing .ld-hero h1 { font: 400 clamp(52px, 8.2vw, 104px)/.98 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; color: var(--s-text); margin: 0 0 22px; }
#landing .ld-hero h1 em { font-style: italic !important; color: var(--s-ac-soft); }
#landing[dir="rtl"] .ld-hero h1 { font: 600 clamp(44px, 7vw, 84px)/1.15 'Saudi', sans-serif; letter-spacing: 0; }
#landing[dir="rtl"] .ld-hero h1 em { font-style: normal !important; }
#landing .ld-lead { color: var(--s-mut); font-size: clamp(16px, 2vw, 19px); max-width: 600px; margin: 0 auto 34px; }

/* buttons: one solid off-white pill and one outline pill, the same height */
#landing .ld-cta { gap: 14px; }
#landing .ld-cta .ld-main, #landing .ld-cta .ld-web { min-height: 52px; min-width: 260px; padding: 0 26px; font-size: 15.5px; font-weight: 600; }
#landing .ld-main { background: var(--s-text); color: #0b0b0c; }
#landing .ld-main:hover { background: #fff; }
#landing .ld-web { background: transparent; color: var(--s-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
#landing .ld-web:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--s-ac); }
#landing .ld-main.ld-sec { background: transparent; color: var(--s-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
#landing .ld-note { color: var(--s-mut); font-size: 13px; margin-top: 14px; }
#landing .ld-others a { color: var(--s-ac-soft); }
#landing .ld-safe { background: var(--s-panel); border-color: var(--s-line); }

/* the app in a tilted window */
.ld-shot { margin: 76px auto 0; max-width: 1000px; perspective: 1500px; }
.ld-win { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #111; box-shadow: 0 50px 120px rgba(0,0,0,.65);
  transform: rotateX(13deg); transform-origin: 50% 0; }
.ld-win-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #1a1a1c; border-bottom: 1px solid var(--s-line); }
.ld-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.ld-win img { display: block; width: 100%; height: auto; }
.ld-shot-fade { height: 140px; margin-top: -140px; position: relative; z-index: 2; background: linear-gradient(transparent, var(--s-bg)); pointer-events: none; }

/* features: one real picture each, most important first */
.ld-feats { max-width: 1132px; margin: 40px auto 0; text-align: start; }
.ld-feats-cap { font-weight: 600; font: 600 12px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--s-mut); margin: 0 0 16px; }
#landing[dir="rtl"] .ld-feats-cap { letter-spacing: 0; font-family: 'Saudi', sans-serif; font-size: 14px; }
.ld-feats-intro { font: 500 clamp(21px, 2.6vw, 30px)/1.45 Inter, sans-serif; max-width: 920px; margin: 0 0 40px; color: var(--s-text); }
#landing[dir="rtl"] .ld-feats-intro { font-family: 'Saudi', sans-serif; }
.ld-feats-intro span { color: var(--s-mut); }
.ld-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-fc { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ld-fc.w2 { grid-column: span 2; }
.ld-fpic { height: 240px; background: #1d1c1f no-repeat center / cover; border-bottom: 1px solid var(--s-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ld-fpic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ld-fpic.fit { padding: 22px; }
.ld-fpic.fit img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.ld-fpic.start img { object-position: left top; }
#landing[dir="rtl"] .ld-fpic.start img { object-position: right top; }
.ld-fbody { padding: 20px 22px 24px; }
.ld-fbody h3 { margin: 0;  display: flex; align-items: baseline; gap: 10px; font-size: 16.5px; font-weight: 600; color: var(--s-text); }
.ld-fbody h3 small { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--s-ac); }
.ld-fbody p { margin: 8px 0 0; color: var(--s-mut); font-size: 14px; line-height: 1.6; }

/* downloads, updates and legal links in the same calm colours */
#landing .ld-all-wrap { max-width: 1132px; margin: 70px auto 0; text-align: start; }
#landing .ld-all-wrap h2 { color: var(--s-mut); letter-spacing: .16em; font-size: 12px; }
#landing .ld-all-wrap[hidden] { display: none; }
#landing .ld-pl { background: var(--s-panel); border-color: var(--s-line); }
#landing .ld-pl:hover, #landing .ld-pl.on { border-color: var(--s-ac); background: var(--s-panel); box-shadow: none; }
#landing .ld-pl .ic { color: var(--s-ac); }
#landing .ld-cap-n { color: var(--s-ac); }

@media (max-width: 860px) {
  .ld-fgrid { grid-template-columns: 1fr; }
  .ld-fc.w2 { grid-column: auto; }
  .ld-fpic { height: 200px; }
  #landing #ld-arc { top: 380px; height: 420px; }
  .ld-shot { margin-top: 48px; }
  .ld-win { transform: none; border-radius: 10px; }
  .ld-win-bar { display: none; }
}
@media (max-width: 560px) {
  #landing .ld-top { padding: 14px 16px; }
  #landing .ld-ghost { display: none; }
  #landing .ld-hero { padding: 0 16px; }
  #landing .ld-emblem { width: 120px; height: 120px; margin: 28px auto 22px; }
  #landing .ld-cta .ld-main, #landing .ld-cta .ld-web { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .ld-win { transition: none; } }

/* review fixes: the lower sections render at their real height (no reserved empty space), one quiet label style, no stray numbering */
#landing .ld-updates-wrap, #landing .ld-all-wrap, #landing .ld-legal { content-visibility: visible; contain-intrinsic-size: none; }
#landing #ld-all-h { text-align: start; }
#landing #ld-all-h { color: var(--s-mut); }
#landing .ld-legal { border-top-color: var(--s-line); padding-inline: 16px; }
#landing .ld-legal a { color: var(--s-mut); }
#landing .ld-lang { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 0 16px; min-height: 38px; color: var(--s-text); }
#landing .ld-lang:hover { border-color: var(--s-ac); }
#landing a:focus-visible, #landing button:focus-visible, #landing summary:focus-visible { outline: 2px solid var(--s-ac); outline-offset: 3px; }
#landing .ld-legal a { padding: 8px 4px; }
#landing[dir="rtl"] .ld-fbody p { font-size: 15.5px; }
#landing[dir="rtl"] .ld-note, #landing[dir="rtl"] .ld-legal { font-size: 14.5px; }
#landing .ld-fpic[data-todo] { background-color: #161618; background-image: linear-gradient(rgba(217,165,116,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(217,165,116,.07) 1px, transparent 1px), linear-gradient(rgba(217,165,116,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(217,165,116,.035) 1px, transparent 1px); background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; }
#landing .ld-fpic img[src$="f-room.webp"] { filter: brightness(.8) saturate(.75); }
.ld-fpic { height: 270px; }
.ld-fpic.fit { padding: 18px; }
@media (max-width: 860px) { .ld-fpic { height: 220px; } }
#landing .ld-cta .ld-main[hidden] { display: none; }
#landing .ld-web.ld-lead { background: var(--s-text); color: #0b0b0c; box-shadow: none; }
#landing .ld-web.ld-lead:hover { background: #fff; }
#landing .ld-fpic img[src$="f-arabic.webp"] { object-position: right top !important; }
#landing[dir="rtl"] #ld-all-h { text-align: right; }

/* the two main buttons (was css/45-ld-cta-equal.css): same height, side by side, full width on phones */
.ld-cta { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.ld-cta .ld-main, .ld-cta .ld-web { justify-content: center; box-sizing: border-box; }

/* legal links (was in css/51-ld-blueprint.css) */
.ld-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin: 34px auto 0; padding: 18px 0 8px; max-width: 880px; border-top: 1px solid var(--s-line); font-size: 13px; }
.ld-legal a { text-decoration: none; } .ld-legal a:hover { color: var(--s-text); text-decoration: underline; }
.ld-legal-c { color: var(--s-mut); width: 100%; text-align: center; margin-top: 6px; font-size: 12px; }

/* the Updates tab (was css/47-ld-updates-css.css, in the old blue): the same near-black panel and one sand accent as the rest of the page */
.ld-updates-wrap { max-width: 760px; margin: 56px auto 40px; padding: 0 16px; position: relative; z-index: 1; }
.ld-updates { border: 1px solid var(--s-line); border-radius: 18px; background: var(--s-panel); overflow: hidden; }
.ld-updates > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--s-text); font-weight: 600; font-size: 16px; }
.ld-updates > summary::-webkit-details-marker { display: none; }
.ld-updates > summary small { color: var(--s-mut); font-weight: 400; font-size: 13px; margin-inline-start: 4px; flex: 1; }
.ld-updates > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--s-mut); border-bottom: 1.5px solid var(--s-mut); transform: rotate(45deg); transition: transform .25s; margin-inline-end: 4px; margin-top: -4px; }
.ld-updates[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.ld-updates > summary:hover { background: rgba(255,255,255,.03); }
.ld-up-body { padding: 4px 22px 24px; text-align: start; }
.ld-up-intro, .ld-up-outro { color: var(--s-mut); font-size: 14px; line-height: 1.6; margin: 6px 0 18px; }
.ld-up-outro { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--s-line); }
.ld-wks { position: relative; display: grid; gap: 22px; padding-inline-start: 22px; }
.ld-wks::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--s-ac), rgba(217,165,116,.08)); }
.ld-wk { position: relative; }
.ld-wk::before { content: ""; position: absolute; inset-inline-start: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--s-panel); border: 1.5px solid var(--s-ac); }
.ld-wk-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ld-wk-h b { color: var(--s-text); font-size: 15px; font-weight: 600; } .ld-wk-d { color: var(--s-ac); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.ld-wk ul { margin: 0; padding-inline-start: 18px; color: #c8c6c1; font-size: 14px; line-height: 1.6; } .ld-wk li { margin: 3px 0; }
.ld-wk li::marker { color: var(--s-mut); }
@media (max-width: 560px) { .ld-updates > summary small { display: none; } }
@media (prefers-reduced-motion: reduce) { .ld-updates > summary::after { transition: none; } }

/* the small download bar: shows once the main buttons have scrolled away, with the lead action and an arrow back up to them.
   Solid panel, one thin line, no blur; same off-white lead button as the hero. Phones: full width at the bottom, above the home bar. */
#landing .ld-stick { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px;
  padding: 6px; border: 1px solid var(--s-line); border-radius: 999px; background: #141416; box-shadow: 0 10px 30px rgba(0,0,0,.55);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
#landing .ld-stick.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#landing .ld-stick-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--s-text); color: #0b0b0c; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
#landing .ld-stick-go:hover { background: #fff; }
#landing .ld-stick-go .ic { width: 18px; height: 18px; flex: none; }
#landing .ld-stick-up { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--s-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
#landing .ld-stick-up:hover { border-color: var(--s-ac); color: var(--s-ac-soft); }
#landing .ld-stick-up .ic { width: 18px; height: 18px; }
@media (max-width: 560px) {
  #landing .ld-stick { left: 12px; right: 12px; transform: translateY(16px); }
  #landing .ld-stick.on { transform: none; }
  #landing .ld-stick-go { flex: 1; min-width: 0; padding: 0 14px; }
  #landing .ld-stick-go span { overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { #landing .ld-stick, #landing .ld-stick.on { transition: none; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) and (max-width: 560px) { #landing .ld-stick, #landing .ld-stick.on { transform: none; } }
