/* =========================================================================
   BiblePro — Marketing Attribution Landing Page
   Design language: Apple / Stripe — dark navy hero, light body sections.
   Palette: hero #08111F · orange #FF5A2C · gold #D4A017 · font Inter
   ========================================================================= */

:root {
  /* Dark zones (hero / stats / cta / footer) */
  --hero-bg:      #08111F;
  --hero-bg-2:    #0B1A2E;
  --footer-bg:    #0A1322;

  /* Light zones (body) */
  --paper:        #FFFFFF;
  --paper-2:      #F6F7FA;
  --paper-3:      #EEF1F6;
  --line:         #E7EBF1;
  --line-2:       #DCE2EB;

  /* Ink (text on light) */
  --ink:          #0E1726;
  --ink-2:        #495568;
  --ink-3:        #6B7585;   /* darkened for WCAG AA on white (was #8A95A6) */

  /* Text on dark */
  --snow:         #F4F7FB;
  --snow-2:       #9FB0C6;
  --snow-3:       #93A4BC;   /* lightened for WCAG AA on navy (was #5D6E86) */

  /* Brand */
  --orange:       #FF5A2C;
  --orange-2:     #FF7A52;
  --orange-deep:  #E8431C;
  --orange-text:  #C7350F;   /* AA-safe orange for small text on light */
  --gold:         #D4A017;
  --gold-2:       #E9B838;
  --gold-text:    #8A6A0E;   /* AA-safe gold for small text on light */
  --peach:        #FFF1EC;

  --radius:       18px;
  --radius-lg:    26px;
  --maxw:         1200px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm:    0 1px 2px rgba(16,23,38,0.06), 0 4px 12px rgba(16,23,38,0.05);
  --shadow-md:    0 8px 30px -10px rgba(16,23,38,0.16);
  --shadow-lg:    0 30px 70px -28px rgba(16,23,38,0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Script-specific fonts (i18n) ----------
   Thai & Burmese need their own Unicode fonts with shaping tables, declared
   FIRST for those locales so Latin webfonts don't tofu the glyphs. Extra
   line-height because Burmese/Thai glyph stacks are taller and these scripts
   have no inter-word spaces (browser uses dictionary line-breaking via lang). */
html.locale-th body { font-family: "Noto Sans Thai", "Inter", system-ui, sans-serif; }
html.locale-th { line-height: 1.7; }
html.locale-my body { font-family: "Noto Sans Myanmar", "Padauk", "Pyidaungsu", "Inter", system-ui, sans-serif; }
html.locale-my { line-height: 1.85; }
html.locale-my .h-display, html.locale-my .h-section { line-height: 1.4; letter-spacing: 0; }
html.locale-th .h-display, html.locale-th .h-section { line-height: 1.3; }
:lang(th) { font-family: "Noto Sans Thai", "Inter", system-ui, sans-serif; }
:lang(my) { font-family: "Noto Sans Myanmar", "Padauk", "Pyidaungsu", "Inter", system-ui, sans-serif; }
/* Chinese: Inter first so Latin + the BiblePro wordmark stay Inter, then fall
   through to the platform CJK font for Han glyphs (no heavy webfont needed). */
html.locale-zh body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
html.locale-tw body { font-family: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:lang(zh-Hans) { font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:lang(zh-Hant) { font-family: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }

/* ---------- Language switcher ---------- */
.lang-dd { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; cursor: pointer;
  font-size: .88rem; font-weight: 600; font-family: inherit; transition: background .25s, border-color .25s; }
.lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn .chev { transition: transform .3s var(--ease); }
.lang-dd.open .lang-btn .chev { transform: rotate(180deg); }
.nav.scrolled .lang-btn { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; padding: 7px; z-index: 95;
  background: rgba(10,18,30,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: block; width: 100%; text-align: left; padding: 10px 13px; border-radius: 9px;
  background: none; border: none; color: var(--snow); cursor: pointer; font-size: .95rem; font-family: inherit;
  transition: background .2s; }
.lang-option:hover { background: rgba(255,255,255,.08); }
.lang-option[aria-current="true"] { background: rgba(255,90,44,.16); color: #fff; font-weight: 700; }
/* mobile menu language row */
.mobile-lang { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-lang .lang-option { width: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 14px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

::selection { background: rgba(255,90,44,.28); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-text);
}
.h-display { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.h-section { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.on-dark .lead, .lead.on-dark { color: var(--snow-2); }
.text-orange { color: var(--orange-text); }
.text-gold { color: var(--gold-text); }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --py: 13px; --px: 24px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--py) var(--px); border-radius: 999px; font-weight: 650; font-size: .96rem;
  letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { --py: 16px; --px: 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 26px -8px rgba(255,90,44,.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,90,44,.62), inset 0 1px 0 rgba(255,255,255,.32); }
.btn-gold { color: #1c1404; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 26px -8px rgba(212,160,23,.46); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost-dark { color: var(--snow); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px; border-radius: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .25s;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge small { display: block; font-size: .64rem; opacity: .95; letter-spacing: .02em; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.store-badge.appstore { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,90,44,.5); }
.store-badge.googleplay { background: #0C1320; color: #fff; }
.store-badge.web { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav.scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--line), 0 8px 30px -20px rgba(16,23,38,.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; color: #fff; }
.nav.scrolled .brand { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5); }
.brand b { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 14px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; transition: color .25s, background .25s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav.scrolled .nav-link { color: var(--ink-2); }
.nav.scrolled .nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav.scrolled .nav-toggle { border-color: var(--line-2); background: var(--paper-2); color: var(--ink); }
.mobile-menu { display: none; position: fixed; inset: 72px 0 auto 0; z-index: 89; padding: 16px 24px 24px; background: rgba(8,17,31,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu.open { display: block; animation: fadeDown .3s var(--ease); }
.mobile-menu a { display: block; padding: 14px 4px; font-size: 1.05rem; color: var(--snow); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 16px; }
@media (max-width: 920px) { .nav-links { display: none; } .nav-toggle { display: inline-flex; } }

/* ---------- HERO (dark) ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--snow); padding-top: 128px; padding-bottom: 88px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 88% 12%, rgba(255,90,44,.34), transparent 56%),
    radial-gradient(760px 540px at 100% 60%, rgba(212,160,23,.22), transparent 60%),
    radial-gradient(700px 600px at -5% 90%, rgba(255,90,44,.1), transparent 60%),
    linear-gradient(180deg, var(--hero-bg), var(--hero-bg-2));
}
/* OPTIONAL: drop a Bible photo here later — set background-image on .hero-photo */
.hero-photo {
  position: absolute; top: 0; right: 0; width: 58%; height: 100%; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 52px; text-align: center; } }
.hero h1 { margin: 22px 0 0; color: #fff; }
.hero .lead { margin-top: 20px; max-width: 540px; }
@media (max-width: 980px) { .hero .lead { margin-inline: auto; } }

.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: var(--snow-2); font-weight: 500; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,44,.2); }

/* Inline trust badges (icon + label) like the reference */
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 30px; }
@media (max-width: 980px) { .hero-trust { justify-content: center; } }
.hero-trust-item { display: inline-flex; align-items: center; gap: 11px; }
.hero-trust-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--orange-2); }
.hero-trust-ico svg { width: 20px; height: 20px; }
.hero-trust-item span { font-size: .9rem; font-weight: 600; line-height: 1.25; color: var(--snow); max-width: 110px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
@media (max-width: 980px) { .hero-actions { justify-content: center; } }
.hero-avail { margin-top: 18px; font-size: .9rem; color: var(--snow-3); }
.hero-avail b { color: var(--snow-2); font-weight: 600; }

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  position: relative; width: 296px; height: 612px; border-radius: 46px; flex-shrink: 0;
  background: linear-gradient(155deg, #2A3548, #0A1120); padding: 11px;
  box-shadow: 0 50px 110px -28px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.06), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone.float { animation: float 7s ease-in-out infinite; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #0C1726, #070D18); }
.phone-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 6; width: 112px; height: 28px; border-radius: 16px; background: #04070D; }
.phone-glow { position: absolute; inset: -50px; z-index: 1; filter: blur(75px); opacity: .5; background: radial-gradient(circle at 62% 28%, var(--orange), transparent 52%), radial-gradient(circle at 30% 82%, var(--gold), transparent 52%); pointer-events: none; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* In-app mock UI (swap for real screenshots later) */
.scr { position: absolute; inset: 0; padding: 40px 15px 12px; display: flex; flex-direction: column; gap: 11px; color: var(--snow); }
.scr-status { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #fff; font-weight: 600; padding: 0 6px; }
.scr-status .dots { display: inline-flex; gap: 3px; align-items: center; }
.scr-head { display: flex; align-items: center; justify-content: space-between; }
.scr-title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.scr-title b { color: var(--orange); }
.scr-ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--gold)); }
.scr-label { font-size: 12px; font-weight: 700; color: var(--snow-2); margin-top: 4px; }
.scr-search { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--snow-3); font-size: 11.5px; }
.scr-search svg { width: 14px; height: 14px; }
.scr-card { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
.scr-verse { background: linear-gradient(140deg, rgba(255,90,44,.2), rgba(212,160,23,.12)); border-color: rgba(255,122,82,.32); }
.scr-verse .vlabel { font-size: 10px; font-weight: 700; color: var(--gold-2); letter-spacing: .03em; }
.scr-verse p { margin: 7px 0 6px; font-size: 12.5px; line-height: 1.5; color: #fff; font-weight: 500; }
.scr-verse .ref { font-size: 10px; color: var(--snow-2); }
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-tile { padding: 11px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scr-tile .ti { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(150deg, rgba(255,90,44,.25), rgba(212,160,23,.18)); display: grid; place-items: center; color: var(--orange-2); }
.scr-tile .ti svg { width: 15px; height: 15px; }
.scr-tile .tl { font-size: 8.5px; color: var(--snow-2); font-weight: 600; }
.scr-line { height: 8px; border-radius: 5px; background: rgba(255,255,255,.09); }
.scr-line.s { width: 55%; } .scr-line.m { width: 78%; } .scr-line.l { width: 92%; }
.scr-read { display: flex; align-items: center; justify-content: space-between; }
.scr-read .pct { font-size: 11px; font-weight: 700; color: var(--orange-2); }
.scr-tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 11px 4px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.scr-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--snow-3); }
.scr-tab svg { width: 17px; height: 17px; }
.scr-tab span { font-size: 7.5px; }
.scr-tab.active { color: var(--orange); }
.scr-body p { font-size: 11.5px; line-height: 1.55; color: var(--snow-2); margin: 0 0 8px; }
.scr-body .hl { background: rgba(212,160,23,.26); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Stats band (dark) ---------- */
.stats { background: var(--hero-bg-2); color: var(--snow); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 200px at 50% 0%, rgba(255,90,44,.12), transparent 70%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }
.stat { text-align: center; padding: 14px; }
.stat .num { font-weight: 850; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1; background: linear-gradient(120deg, #fff, var(--orange-2) 70%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--snow-2); font-size: .92rem; margin-top: 12px; }

/* ---------- Feature cards (light) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s; position: relative;
}
.bg-paper-2 .feature { background: #fff; }
.feature:hover { transform: translateY(-5px); border-color: rgba(255,90,44,.32); box-shadow: var(--shadow-md); }
.feature-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--peach); color: var(--orange); transition: transform .4s var(--ease); }
.feature:hover .feature-ico { transform: scale(1.08) rotate(-4deg); }
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 7px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- Showcase (alternating) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase + .showcase { margin-top: clamp(64px, 8vw, 110px); }
.showcase.reverse .showcase-media { order: 2; }
@media (max-width: 920px) { .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 40px; } .showcase.reverse .showcase-media { order: 0; } }
.showcase h2 { margin: 16px 0 0; }
.showcase .lead { margin-top: 16px; }
.showcase-media { position: relative; display: flex; justify-content: center; }
.showcase-media .phone { width: 270px; height: 558px; }
.showcase-glow { position: absolute; inset: 8% 10%; z-index: 0; filter: blur(60px); opacity: .55; background: radial-gradient(circle at 50% 40%, var(--orange), transparent 60%), radial-gradient(circle at 70% 80%, var(--gold), transparent 60%); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.check-list b { color: var(--ink); font-weight: 600; }
.showcase-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Screenshots gallery ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shots-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }
.shot { position: relative; border-radius: 30px; overflow: hidden; cursor: pointer; aspect-ratio: 9/18.5; padding: 8px; background: linear-gradient(155deg, #1B2436, #0A1120); border: 1px solid rgba(16,23,38,.06); box-shadow: var(--shadow-md); transition: transform .45s var(--ease), box-shadow .45s; }
.shot:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
.shot .scr { padding: 18px 12px 10px; gap: 9px; }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 30px 14px 13px; font-size: .84rem; font-weight: 650; color: #fff; background: linear-gradient(180deg, transparent, rgba(4,7,13,.88)); display: flex; align-items: center; gap: 7px; }
.shot-zoom { position: absolute; top: 14px; right: 14px; z-index: 6; width: 32px; height: 32px; border-radius: 10px; background: rgba(8,17,31,.55); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .35s; backdrop-filter: blur(6px); }
.shot:hover .shot-zoom { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 130; display: none; place-items: center; padding: 24px; background: rgba(4,8,14,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox.open { display: grid; animation: fade .3s ease; }
.lightbox-stage { position: relative; }
.lightbox-close { position: absolute; top: -54px; right: 0; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-cap { text-align: center; color: var(--snow); margin-top: 18px; font-weight: 600; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav.prev { left: 4vw; } .lb-nav.next { right: 4vw; }
@media (max-width: 640px) { .lb-nav { display: none; } }

/* ===== Real app imagery (hero scene + landscape gallery) — official biblepro.vip renders ===== */
.hero-shot { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-shot-glow { position: absolute; inset: -12% -8%; z-index: 1; filter: blur(80px); opacity: .5; background: radial-gradient(circle at 62% 30%, var(--orange), transparent 55%), radial-gradient(circle at 26% 78%, var(--gold), transparent 55%); pointer-events: none; }
.hero-shot-img { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 26px 50px rgba(0,0,0,.5)); }
@media (max-width: 980px) { .hero-shot { max-width: 560px; margin-inline: auto; } }

.shots-grid--wide { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
@media (max-width: 900px) { .shots-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots-grid--wide { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.shots-grid--wide .shot { aspect-ratio: auto; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 14px; overflow: visible; }
.shots-grid--wide .shot:hover { transform: translateY(-6px); box-shadow: none; }
.shots-grid--wide .shot-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(16,23,38,.28)); transition: transform .45s var(--ease); }
.shots-grid--wide .shot:hover .shot-img { transform: scale(1.02); }
.shots-grid--wide .shot-cap { position: static; padding: 12px 6px 0; background: none; color: var(--ink); justify-content: center; font-weight: 650; }
.shots-grid--wide .shot-zoom { background: rgba(8,17,31,.45); }

.lightbox-img { display: block; width: min(1120px, 94vw); height: auto; max-height: 82vh; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 30px 70px rgba(0,0,0,.6)); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testi-grid { grid-template-columns: 1fr; } }
.testi { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; transition: transform .4s var(--ease), box-shadow .4s; }
.bg-paper-2 .testi { background: #fff; }
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.testi p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.62; }
.testi-user { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.testi-user .name { font-weight: 650; font-size: .95rem; color: var(--ink); }
.testi-user .role { color: var(--ink-3); font-size: .82rem; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-text); font-size: .76rem; font-weight: 600; }
.verified svg { width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.bg-paper-2 .faq-item { background: #fff; }
.faq-item.open { border-color: rgba(255,90,44,.3); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1.04rem; font-weight: 650; }
.faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, color .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- CTA band (dark) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px); text-align: center; color: var(--snow); background: linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); border: 1px solid rgba(255,255,255,.08); }
.cta-band .cta-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .25; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(700px 360px at 50% -10%, rgba(255,90,44,.32), transparent 60%), radial-gradient(600px 400px at 90% 110%, rgba(212,160,23,.2), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Footer (dark) ---------- */
.footer { background: var(--footer-bg); color: var(--snow-2); padding-block: 64px 32px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; }
.footer-tag { margin: 16px 0 0; color: var(--snow-3); font-size: .92rem; max-width: 260px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--snow-3); margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: var(--snow-2); font-size: .92rem; transition: color .25s; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: var(--snow-2); transition: color .25s, transform .25s, background .25s; }
.social:hover { color: #fff; transform: translateY(-3px); background: var(--orange); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); color: var(--snow-3); font-size: .86rem; }
.footer-bottom a { color: var(--snow-3); }
.footer-bottom a:hover { color: var(--snow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

/* ---------- Helpers ---------- */
.divider { height: 1px; background: var(--line); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--orange); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.badge-soft { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--peach); border: 1px solid rgba(255,90,44,.22); color: var(--orange-text); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Redirect interstitial ---------- */
.redirect-page { min-height: 100vh; display: grid; place-items: center; background: var(--hero-bg); color: var(--snow); padding: 24px; position: relative; overflow: hidden; }
.redirect-page .hero-bg { position: absolute; }
.redirect-card { position: relative; z-index: 2; max-width: 440px; width: 100%; text-align: center; padding: 46px 34px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.redirect-card .brand { color: #fff; justify-content: center; margin-bottom: 24px; }
.spinner { width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--orange); animation: spin .9s linear infinite; }
.progress { height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 26px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 999px; transition: width .12s linear; }
.redirect-card a.manual { color: var(--snow-2); font-size: .86rem; margin-top: 18px; display: inline-block; }
.redirect-card a.manual:hover { color: #fff; }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--paper-2); color: var(--ink); min-height: 100vh; }
.dash-head { background: var(--hero-bg); color: var(--snow); padding: 22px 0; position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-md); }
.dash-head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--snow-2); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.dash-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dash-select { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: 9px 14px; border-radius: 11px; font-size: .9rem; font-family: inherit; cursor: pointer; }
.dash-select option { color: #111; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--peach); color: var(--orange); display: grid; place-items: center; }
.kpi .k-ico svg { width: 20px; height: 20px; }
.kpi .k-delta { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.kpi .k-delta.up { color: #0a7d3d; background: #e4f7ec; }
.kpi .k-delta.down { color: #b42318; background: #fde7e4; }
.kpi .k-num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 16px; color: var(--ink); }
.kpi .k-label { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.panel .sub { color: var(--ink-3); font-size: .86rem; margin: 0 0 20px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-row .bl { font-size: .9rem; color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.bar-track { height: 10px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--gold)); transition: width 1s var(--ease); }
.bar-row .bv { text-align: right; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.src-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dash-table th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 13px 12px; border-bottom: 1px solid var(--paper-3); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .tnum { font-weight: 700; color: var(--ink); }
.pill-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 650; }
.conv-tag { color: #0a7d3d; background: #e4f7ec; }
.note-box { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 16px 18px; font-size: .9rem; display: flex; gap: 12px; align-items: flex-start; }
.note-box svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.dash-donut { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto; position: relative; }
.dash-donut .hole { position: absolute; inset: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.dash-donut .hole b { font-size: 1.5rem; font-weight: 800; display: block; }
.dash-donut .hole span { font-size: .76rem; color: var(--ink-3); }
.legend { display: grid; gap: 9px; margin-top: 20px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; }
.legend-row .ll { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend-row .lv { font-weight: 700; color: var(--ink); }

/* ---------- Download section (official-style platform cards) ---------- */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .download-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .35s;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(255,90,44,.3); }
.dl-head { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-bottom: 8px; }
.dl-ico { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--peach); color: var(--orange); transition: transform .4s var(--ease); }
.dl-card:hover .dl-ico { transform: scale(1.08) rotate(-4deg); }
.dl-ico svg { width: 30px; height: 30px; }
.dl-card h3 { margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.dl-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 16px; border-radius: 13px; font-weight: 650; font-size: .94rem; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .25s, border-color .25s, color .25s;
}
.dl-btn-ico { display: inline-flex; flex-shrink: 0; }
.dl-btn-ico svg { width: 18px; height: 18px; display: block; }
.dl-btn.primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(16,23,38,.55); }
.dl-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(16,23,38,.65); }
.dl-btn.ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.dl-btn.ghost:hover { background: #fff; border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl-note { margin: 6px 0 0; font-size: .82rem; color: var(--ink-3); text-align: center; line-height: 1.4; }
.dl-foot { text-align: center; margin-top: clamp(34px, 5vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dl-disclaimer { max-width: 640px; margin: 0; font-size: .85rem; color: var(--ink-3); line-height: 1.65; }

/* hero "Available for …" now links to the download section */
.hero-avail-link { color: inherit; display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.hero-avail-link b { color: var(--snow-2); transition: color .25s; }
.hero-avail-link:hover { color: var(--snow); }
.hero-avail-link:hover b { color: var(--orange-2); }

/* ---------- Social "Follow" dropdown ---------- */
.social-dd { position: relative; }
.social-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; background: none; border: none; font-family: inherit; }
.social-btn > svg:first-child { width: 16px; height: 16px; }
.social-btn .chev { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.social-dd.open .social-btn .chev { transform: rotate(180deg); }
.social-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px; padding: 8px; z-index: 95;
  background: rgba(10,18,30,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.social-dd.open .social-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.social-item { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 11px; color: var(--snow); transition: background .2s; }
.social-item:hover { background: rgba(255,255,255,.08); }
.social-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.social-ico svg { width: 19px; height: 19px; }
.social-meta { display: flex; flex-direction: column; line-height: 1.25; }
.social-meta .nm { font-weight: 650; font-size: .92rem; }
.social-meta .hd { font-size: .78rem; color: var(--snow-3); }
.mobile-social-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--snow-3); margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mobile-social .social-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.mobile-social .social-meta .hd { display: none; }

/* =========================================================================
   MOBILE POLISH — touch targets, safe areas, tap feedback, perf
   Added as a final layer so existing desktop layout is untouched (env()
   insets are 0 on non-notched screens; @media (hover:none) only affects
   touch devices). Goal: every page/button/action feels great on a phone.
   ========================================================================= */

/* ---- Notch / Dynamic Island / home-indicator safe areas (viewport-fit=cover) ---- */
:root { --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
        --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
/* Keep all gutters clear of the notch in landscape without doubling on normal screens */
.container { padding-left: max(24px, var(--safe-l)); padding-right: max(24px, var(--safe-r)); }
.nav { padding-top: var(--safe-t); }
.hero { padding-top: calc(128px + var(--safe-t)); }
.footer { padding-bottom: calc(32px + var(--safe-b)); }
.dash-head { padding-top: calc(22px + var(--safe-t)); }
.redirect-page { padding-top: calc(24px + var(--safe-t)); padding-bottom: calc(24px + var(--safe-b)); }
/* Anchor jumps (#features …) must clear the fixed 72px nav instead of hiding under it */
html { scroll-padding-top: calc(84px + var(--safe-t)); }

/* ---- Tap feedback: kill the grey iOS/Android flash, add app-like press states ---- */
a, button, .btn, .dl-btn, .store-badge, .social-card, .shot, .faq-q,
.lang-option, .social-item, .nav-toggle, .nav-link, input, select {
  -webkit-tap-highlight-color: transparent;
}
/* Removes the 300ms tap delay & double-tap-zoom on controls */
a, button, .btn, .dl-btn, .store-badge, .social-card, .shot,
.faq-q, .nav-toggle, .lang-btn, .social-btn, .dash-select { touch-action: manipulation; }

/* On touch devices the lovely hover-lifts never fire — give a crisp press instead */
@media (hover: none) {
  .feature:active, .testi:active, .dl-card:active, .social-card:active,
  .shot:active { transform: scale(.985); transition-duration: .12s; }
  .store-badge:active, .dl-btn:active, .social-item:active,
  .nav-link:active, .lang-option:active, .faq-q:active { transform: scale(.97); transition-duration: .1s; }
  .feature:hover, .testi:hover, .dl-card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ---- Bigger, comfortable touch targets on phones (≥44px guidance) ---- */
@media (max-width: 920px) {
  /* Footer link lists became 17–18px tall rows — too small to tap reliably */
  .footer-links { gap: 2px; }
  .footer-links a { display: inline-block; padding: 14px 2px; line-height: 1.1; }
  .footer-bottom { gap: 10px; }
  .footer-bottom a { display: inline-block; padding: 10px 2px; }
  /* Footer brand-social icons: 40 → 44 */
  .social { width: 44px; height: 44px; }
  .socials { gap: 12px; }
}

/* ---- Phone-only layout refinements so CTAs read as full, tappable buttons ---- */
@media (max-width: 480px) {
  /* Hero store badges share the row evenly instead of wrapping ragged */
  .hero-actions { gap: 10px; }
  .hero-actions .store-badge { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 14px; }
  /* CTA band: stack the three store badges as full-width buttons */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .store-badge { width: 100%; justify-content: center; }
}

/* ---- Mobile menu: scrollable, safe-area aware, never taller than the screen ---- */
body.nav-open { overflow: hidden; }   /* lock the page behind the open menu */
@media (max-width: 920px) {
  .mobile-menu {
    inset: calc(72px + var(--safe-t)) 0 auto 0;
    max-height: calc(100vh - 72px - var(--safe-t));
    max-height: calc(100dvh - 72px - var(--safe-t));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-left: max(24px, var(--safe-l)); padding-right: max(24px, var(--safe-r));
    padding-bottom: calc(24px + var(--safe-b));
  }
  .mobile-menu a { padding-block: 15px; }   /* roomier tap rows */
}

/* ---- Performance: trim the most expensive blur layers on small screens.
        Big radial blur glows + backdrop-filter cost the most while scrolling;
        smaller radii keep the glow look but run smoothly on real phones. ---- */
@media (max-width: 640px) {
  .hero-shot-glow { filter: blur(46px); }
  .showcase-glow, .phone-glow { filter: blur(40px); }
  .nav.scrolled { backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
}

/* ---- Dashboard controls: full-width, ≥44px tappable filters on phones ---- */
@media (max-width: 600px) {
  .dash-head .container { gap: 12px; }
  .dash-controls { width: 100%; }
  .dash-select { flex: 1 1 0; min-width: 132px; padding-block: 11px; }   /* 40 → 44px tall */
  /* Data tables stay readable: let them scroll inside their wrapper, hint with momentum */
  .panel [style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
}
