/* ============================================================
   Thanks & Cheers — site styles
   Responsive approach: fluid sizing (clamp/%) everywhere instead of
   fixed breakpoints tied to specific devices — this is what makes the
   layout hold up correctly on a folded phone (~280-320px), a normal
   phone (~360-430px), a tablet, a desktop, AND a foldable phone
   unfolded into its wide, roughly-square inner screen (~700-900px,
   which is NOT a normal phone or tablet aspect ratio) without needing
   device-specific code.
   ============================================================ */

:root {
  --bg: #FBF5E8;
  --ink: #2A1A08;
  --ink-dim: #6B5A3E;
  --navy: #0F1B2D;
  --navy-2: #16233A;
  --navy-3: #1B2A42;
  --cream: #F5F3EE;
  --cream-dim: #94A6C0;
  --gold: #F4B740;
  --gold-dark: #B9852E;
  --coral: #FF6B5B;
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: 'Sora', system-ui, sans-serif; margin: 0; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: #8A6420; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* [dir="rtl"] is set by JS when Arabic is selected */
html[dir="rtl"] body { direction: rtl; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); box-sizing: border-box; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: clamp(10px, 2vw, 16px) clamp(16px, 4vw, 48px);
  background: rgba(15,27,45,0.96);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(15px, 2vw, 18px); color: var(--cream); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); flex-wrap: wrap; }
.site-nav a { color: var(--cream-dim); font-size: 13.5px; font-weight: 600; }
.site-nav .cta { padding: 9px 18px; border-radius: 999px; background: var(--gold); color: #2A1A08; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3.5vw, 40px) clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: clamp(10px, 1.5vw, 16px); }
.badge-pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(244,183,64,0.14); border: 1px solid rgba(244,183,64,0.35);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--gold); }
.badge-pill span.label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold); }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; color: var(--cream); max-width: 620px; }
.hero p.sub { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.6; color: var(--cream-dim); max-width: 520px; margin: 0; }

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255,255,255,0.14);
}
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .lines small { font-size: 9px; color: var(--cream-dim); }
.store-badge .lines strong { font-size: 14px; color: var(--cream); }

.qr-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box {
  width: 72px; height: 72px; border-radius: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 9px; color: var(--ink-dim); text-align: center; padding: 4px;
}
.qr-note { font-size: 11.5px; color: #6B7D99; max-width: 160px; margin: 0; }
/* Get-the-app QR (2026-10-12): white quiet zone so phone cameras read it off a screen. */
.qr-img { width: 110px; height: 110px; border-radius: 10px; background: #FFFFFF; padding: 4px; flex-shrink: 0; }
/* Phones: only their own store button, and no scan-me QR. */
html.is-phone .desktop-only { display: none !important; }
html.is-ios [data-store="googlePlay"] { display: none; }
html.is-android [data-store="appStore"] { display: none; }

.hero-visual { flex: 1 1 300px; min-width: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; }
.hero-visual .glow { position: absolute; width: min(60vw, 420px); height: min(60vw, 420px); border-radius: 50%; background: radial-gradient(circle, rgba(244,183,64,0.22) 0%, rgba(244,183,64,0) 70%); }
.hero-visual img { width: clamp(140px, 30vw, 260px); height: auto; object-fit: contain; position: relative; z-index: 1; }
.hero-tagline { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--gold); position: relative; z-index: 1; text-align: center; }

/* ---------- Highlights bar ---------- */
.highlights {
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--navy-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 40px);
}
.highlight-item { display: flex; align-items: center; gap: 10px; }
.highlight-item .stars { font-size: 18px; color: var(--gold); }
.highlight-item span.val { font-size: 13.5px; color: var(--cream); font-weight: 700; }
.highlight-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.12); }

/* Store ratings + reviews: hidden until real store data is switched on (user, 2026-10-17). */
.store-live { display: none !important; }

/* ---------- Quotes screen ---------- */
/* Compact on computers too: only as tall as the quote pill needs (user, 2026-10-17). */
.quotes-screen { padding: 18px clamp(16px, 4vw, 48px); background: #0B1420; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tv-frame {
  width: 100%; max-width: 760px; border-radius: 20px;
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 100%);
  border: 6px solid #06090F;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35), inset 0 0 40px rgba(244,183,64,0.04);
  padding: 16px clamp(18px, 4vw, 32px);
  display: flex; align-items: center; justify-content: center; min-height: 70px;
}
.tv-frame p { margin: 0; font-family: 'Sora', sans-serif; font-size: clamp(15px, 1.8vw, 18px); font-weight: 600; line-height: 1.5; color: var(--cream); text-align: center; transition: opacity 0.6s ease; }
.tv-stand { width: 70px; height: 10px; border-radius: 0 0 8px 8px; background: #06090F; }

/* ---------- Features ---------- */
.features { padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 48px); }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: clamp(14px, 2.5vw, 24px); }
.section-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold-dark); }
.section-head h2 { font-size: clamp(22px, 4vw, 32px); }
.section-head p { font-size: 14px; color: var(--ink-dim); max-width: 560px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.feature-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(42,26,8,0.08); display: flex; flex-direction: column; gap: 8px; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: #FBF1DB; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.feature-card h3 { font-size: 16.5px; }
.feature-card h3 a { color: inherit; text-decoration: none; }
.feature-card h3 a:hover { text-decoration: underline; }
.feature-card h3 .play { color: var(--gold); font-size: 0.8em; }
.feature-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 20px; }
.video-slot { aspect-ratio: 16/9; border-radius: 16px; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; position: relative; }
.video-slot iframe, .video-slot video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-slot .ph-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.video-slot span.label { color: var(--cream-dim); font-size: 12.5px; }

/* ---------- Screenshots ---------- */
.screens { padding: 8px clamp(16px, 4vw, 48px) clamp(24px, 4vw, 44px); background: linear-gradient(180deg, var(--bg) 0%, #F4E9D2 100%); }
.screens-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.phone-frame { width: clamp(160px, 40vw, 220px); aspect-ratio: 220/450; border-radius: 30px; background: var(--navy); border: 6px solid var(--ink); box-shadow: 0 20px 40px rgba(42,26,8,0.18); display: flex; flex-direction: column; overflow: hidden; }
.phone-frame .notch { height: 18px; display: flex; align-items: center; justify-content: center; }
.phone-frame .notch div { width: 56px; height: 5px; border-radius: 3px; background: var(--ink); }
.phone-frame .inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; }
.phone-frame .inner.pf-video { padding: 0; }
.phone-frame .inner.pf-video video, .phone-frame .inner.pf-video iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.phone-frame .ph-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.screen-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.screen-title { margin: 0; font-size: 16.5px; text-align: center; }
.phone-frame .pf-note { color: var(--cream-dim); font-size: 10px; }

/* ---------- Reviews / Feedback ---------- */
.reviews { padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 48px); background: var(--navy); display: flex; flex-direction: column; gap: clamp(14px, 2.5vw, 24px); }
.reviews .section-head h2, .reviews .section-eyebrow { color: var(--cream); }
.reviews .section-eyebrow { color: var(--gold); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.testi-card { padding: 18px; border-radius: 16px; background: var(--navy-3); border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 10px; }
.testi-card .stars { color: var(--gold); font-size: 14px; }
.testi-card p { margin: 0; font-size: 13px; line-height: 1.6; color: #C7D3E3; }
.testi-card .name { font-size: 12px; font-weight: 700; color: var(--cream); }

.feedback-box { max-width: 480px; margin: 0 auto; width: 100%; padding: clamp(16px, 3vw, 24px); border-radius: 18px; background: var(--navy-3); border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 10px; }
.feedback-box h3 { font-size: 17px; color: var(--cream); }
.star-rating { display: flex; gap: 6px; }
.star-rating button { background: none; border: none; cursor: pointer; padding: 0; font-size: 24px; color: rgba(255,255,255,0.22); }
.star-rating button.active, .star-rating button.lit { color: var(--gold); }
.feedback-box label span { font-size: 12px; color: var(--cream-dim); display: block; margin-bottom: 6px; }
.feedback-box textarea {
  width: 100%; resize: vertical; padding: 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: #16233A; color: var(--cream); font-family: inherit; font-size: 13.5px;
}
.feedback-box button.submit { align-self: flex-start; padding: 10px 22px; border-radius: 999px; border: none; background: var(--gold); color: #2A1A08; font-weight: 700; font-size: 13.5px; cursor: pointer; }

/* ---------- About ---------- */
.about { padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px); max-width: 880px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.about p { font-size: 14.5px; line-height: 1.75; color: var(--ink-dim); margin: 0; }

/* ---------- Secondary CTA ---------- */
.secondary-cta { padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px); background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.secondary-cta h2 { font-size: clamp(22px, 3.5vw, 30px); color: var(--cream); }
.secondary-cta p { margin: 0; font-size: 14px; color: var(--cream-dim); }
.secondary-cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(20px, 3vw, 32px) clamp(16px, 4vw, 48px) 18px; background: #0B1420; display: flex; flex-direction: column; gap: 18px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.footer-col .ftitle { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--cream-dim); }
.footer-col a { font-size: 12.5px; color: #C7D3E3; }
.footer-brand p { margin: 0; font-size: 12px; color: #6B7D99; line-height: 1.6; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; text-align: center; }
.footer-bottom span { font-size: 11px; color: #4E5F7A; }

/* ---------- Narrow / folded-phone safety net (<=340px) ---------- */
@media (max-width: 340px) {
  .site-nav a:not(.cta) { display: none; } /* keep only the Download button visible */
  .hero { padding-inline: 14px; }
}

/* ---------- Rotating-quotes screen at the top, right after the header ----------
   Phones since 2026-10-03, computers too since 2026-10-17 (user). Body is a flex
   column, so these two `order` values lift them above the Hero; every other
   section keeps its source order. */
.site-header { order: -2; }
.quotes-screen { order: -1; }

/* ---------- Mobile: smaller quotes screen ---------- */
@media (max-width: 768px) {
  .quotes-screen { padding: 18px 16px; gap: 10px; }
  .tv-frame { padding: 16px 18px; min-height: 70px; border-width: 6px; }
  .tv-frame p { font-size: 14.5px; }
  .tv-stand { width: 50px; height: 7px; }
}

/* ---------- Foldable-unfolded / squarish wide screens (~650-920px) ----------
   Not a phone, not quite a tablet — these just need the two-column hero to
   wrap a little earlier and the 3-col grids to drop to 2 columns sooner,
   which minmax(min(100%, 260px),1fr) above already does automatically; this
   block only tightens spacing so it doesn't look too sparse. */
@media (min-width: 650px) and (max-width: 920px) {
  .hero { gap: 20px; }
}

/* ---------- Print (so the legal pages are usable printed/saved as PDF) ---------- */
@media print {
  .site-header, .site-footer, .secondary-cta { display: none; }
}
