/* balum.app homepage, v2 (Sel, 2026-10-21): ivory, Apple/Google-store style, real 3D
   phones (rendered stills from balum-ads src/site/PhoneStill.jsx; re-render with
   balum-ads capture/site-phones.sh). Nothing moves with the scroll: the hero phones
   rise once on load and each block fades up once as it arrives (IntersectionObserver),
   so phones cannot jitter on mobile. Shared tokens and RTL rules live in site.css. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.home {
  --bg: #F6F1E7; --bg2: #FBF8F1; --card: #FFFFFF; --line: rgba(22, 41, 74, 0.10);
  --ink: #16294A; --ink2: rgba(22, 41, 74, 0.68); --ink3: rgba(22, 41, 74, 0.48);
  --gold: #BE8A2C; --star: #E3A52F;
  --hero-bg: radial-gradient(1100px 700px at 75% 40%, #FFFFFF 0%, #F6F1E7 55%, #EDE5D6 100%);
  --quote: 'Fraunces', Georgia, serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
html[dir="rtl"] body.home { --quote: var(--serif); }
.home .wrap { max-width: 1180px; padding: 0 28px; }
.home .skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.home .skip-link:focus { top: 12px; }
.home .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.home em { font-style: normal; color: var(--gold); }

/* ---- nav ------------------------------------------------------------------ */
.home-nav { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 231, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.home-nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.home-wm { font-weight: 700; font-size: 15px; letter-spacing: 0.32em; color: var(--ink); }
.home-wm span { color: var(--gold); letter-spacing: 0; }
.home-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; color: var(--ink2); }
.home-links a:hover { color: var(--ink); }
.home-nav-end { display: flex; align-items: center; gap: 12px; }
.home-nav .lang-switch > summary { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.6); min-height: 40px; }
.home-nav .lang-switch > summary:hover { background: #fff; }
.home-nav .ls-menu { background: #fff; border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(22, 41, 74, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home-nav .ls-opt { color: var(--ink); }
.home-nav .ls-opt:hover, .home-nav .ls-opt:focus-visible { background: var(--bg); }
.home-nav .ls-opt[aria-current] { color: var(--gold); }
.home-cta { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.home-cta:hover { background: #0E1D38; }

/* ---- hero ----------------------------------------------------------------- */
.home-hero { background: var(--hero-bg); padding: 64px 0 84px; overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: var(--ink3); text-transform: uppercase; margin-bottom: 22px; }
.home h1 { font-size: clamp(40px, 4.7vw, 66px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; margin-bottom: 26px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink2); max-width: 560px; margin-bottom: 34px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 18px 22px; border-radius: 14px; min-width: 250px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.78; font-weight: 500; line-height: 1.3; }
.store b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.store .stat { margin-inline-start: auto; padding-inline-start: 16px; border-inline-start: 1px solid currentColor; text-align: end; }
.store .stat b { font-size: 17px; white-space: nowrap; }
.store.dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(22, 41, 74, 0.6); }
.store.dark .stat { border-inline-start-color: rgba(255, 255, 255, 0.25); }
.store.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.store.light .stat { border-inline-start-color: var(--line); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; list-style: none; font-size: 15px; color: var(--ink2); }
.trust li + li::before { content: "•"; margin-inline-end: 18px; color: var(--ink3); }
.trust strong { color: var(--ink); font-weight: 700; }
.langs { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.flags { display: flex; }
.flags a { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg2); transition: transform 0.2s ease; position: relative; }
.flags a + a { margin-inline-start: -7px; }
.flags a:hover, .flags a:focus-visible { transform: translateY(-3px); z-index: 1; outline: none; }
.flags svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.langs span { color: var(--ink2); font-size: 15px; }

.p3d { display: block; width: 100%; height: auto; }
.hero-art { position: relative; isolation: isolate; }
.hero-art .p3d { width: min(380px, 92%); margin-inline-start: auto; position: relative; animation: phoneIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.hero-art .p3d.back { position: absolute; width: 66%; inset-inline-end: 44%; top: 10%; z-index: -1; animation-delay: 0.3s; }
@keyframes phoneIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* ---- feature sections ----------------------------------------------------- */
.feat { padding: 120px 0; border-top: 1px solid var(--line); }
.feat.alt { background: var(--bg2); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.tag i { font-style: normal; background: var(--gold); color: #fff; letter-spacing: 0.08em; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.home h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 20px; }
.sub { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 600px; }
.feat-head { max-width: 760px; margin-bottom: 64px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.trio figure:nth-child(2) { margin-top: 56px; }
.trio .p3d { max-width: 330px; margin: 0 auto; }
.home figcaption { text-align: center; margin-top: 22px; }
.home figcaption b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.home figcaption span { color: var(--ink2); font-size: 15px; line-height: 1.5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .phones { display: flex; gap: 22px; justify-content: center; }
.split .phones .p3d { width: 48%; max-width: 300px; }
.split .phones .p3d:nth-child(2) { margin-top: 70px; }
.points { list-style: none; margin-top: 36px; display: grid; gap: 22px; }
.points li { padding-inline-start: 34px; position: relative; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.points li b { color: var(--ink); font-weight: 600; display: block; font-size: 17px; }
.points li::before { content: "✦"; position: absolute; inset-inline-start: 0; top: 1px; color: var(--gold); }
.rest { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.rest figcaption b { font-size: 16px; }
.rest figcaption span { font-size: 13.5px; }
.more-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.more-links a { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 9px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.more-links a:hover { border-color: var(--gold); }

/* ---- reviews -------------------------------------------------------------- */
.rating-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.rating { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; display: flex; align-items: center; gap: 16px; }
.rating b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.st { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.rating small { display: block; color: var(--ink2); font-size: 13px; line-height: 1.4; }
.reviews { columns: 3; column-gap: 22px; }
.review { break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 22px; margin-bottom: 22px; }
.review blockquote { font-family: var(--quote); font-size: 21px; line-height: 1.4; margin: 14px 0 10px; letter-spacing: -0.01em; }
.review blockquote[lang="ar"] { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.6; }
html[dir="rtl"] .review blockquote[dir="ltr"] { text-align: start; }
.review .tr { color: var(--ink2); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.review .who b { color: var(--ink); font-weight: 600; }
.review .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(190, 138, 44, 0.16); color: var(--gold); font-weight: 700; font-size: 12px; }
.review .src { margin-inline-start: auto; font-size: 12.5px; color: var(--ink3); text-align: end; }
/* a review needs no translation on a page in its own language */
html:lang(en) .review[data-q="en"] .tr, html:lang(ar) .review[data-q="ar"] .tr, html:lang(id) .review[data-q="id"] .tr { display: none; }

/* ---- the invitation + footer ---------------------------------------------- */
.home-end { text-align: center; padding: 130px 0; background: var(--hero-bg); border-top: 1px solid var(--line); }
.home-end .sub { margin: 0 auto 36px; }
.home-end .stores, .home-end .langs, .home-end .trust { justify-content: center; }
.home-end .note { margin-top: 22px; font-size: 15px; color: var(--ink2); }
.home-end .note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.home-foot { background: var(--bg2); border-top: 1px solid var(--line); padding: 56px 0 40px; text-align: center; color: var(--ink2); }
.home-foot .home-wm { display: inline-block; margin-bottom: 8px; }
.home-foot .foot-tag { font-size: 15px; margin-bottom: 26px; }
.home-foot .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14.5px; margin-bottom: 26px; }
.home-foot .foot-links a:hover { color: var(--ink); }
.home-foot .lang-foot { justify-content: center; margin: 0 0 22px; }
.home-foot .lang-foot a { color: var(--ink2); opacity: 1; }
.home-foot .lang-foot a:hover, .home-foot .lang-foot a[aria-current] { color: var(--gold); }
.home-foot .foot-copy { font-size: 13px; color: var(--ink3); }

/* ---- reveal: once, never scroll-linked ------------------------------------ */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-art .p3d { animation: none; }
  .store, .flags a { transition: none; }
}

/* ---- right to left -------------------------------------------------------- */
html[dir="rtl"] .home h1, html[dir="rtl"] .home h2 { line-height: 1.35; }
html:lang(ur) .home h1, html:lang(ur) .home h2 { line-height: 1.7; }
html[dir="rtl"] .home .eyebrow, html[dir="rtl"] .home .tag { text-transform: none; }

/* ---- tablet + phone ------------------------------------------------------- */
@media (max-width: 960px) {
  .home-links { display: none; }
  .home-nav-end { margin-inline-start: auto; }
  .rest { grid-template-columns: repeat(3, 1fr); }
  .reviews { columns: 2; }
}
@media (max-width: 760px) {
  .home .wrap { padding: 0 20px; }
  .home-nav .wrap { height: 60px; gap: 12px; }
  .home-cta { padding: 9px 14px; font-size: 14px; }
  .home-hero { padding: 40px 0 56px; }
  .home-hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .home h1 { font-size: 9.3vw; }
  html[dir="rtl"] .home h1 { font-size: 8.4vw; }
  .lede { font-size: 17px; margin-bottom: 26px; }
  .trust { gap: 6px 16px; }
  .trust li + li::before { content: none; }
  .trust li { position: relative; }
  .store { min-width: 0; width: 100%; }
  .hero-art { display: flex; justify-content: center; }
  .hero-art .p3d { width: 70%; margin: 0; }
  .hero-art .p3d.back { width: 52%; inset-inline-end: auto; inset-inline-start: 2%; top: 8%; }
  .feat { padding: 76px 0; }
  .feat-head { margin-bottom: 40px; }
  .sub { font-size: 17px; }
  .trio, .rest { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding: 0 20px 12px; scrollbar-width: none; }
  .trio::-webkit-scrollbar, .rest::-webkit-scrollbar { display: none; }
  .trio figure { flex: 0 0 68%; scroll-snap-align: center; margin-top: 0 !important; }
  .rest figure { flex: 0 0 44%; scroll-snap-align: start; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .phones { order: -1; }
  .reviews { columns: 1; }
  .home-end { padding: 84px 0; }
}
.flags a { overflow: hidden; }
