/* ==========================================================================
   OneVoice — shared styling for landing, press and media-kit pages.
   Light, branded look consistent with the homepage. Includes RTL support.
   Load AFTER Bootstrap and (optionally) the main style.css.
   ========================================================================== */

:root {
  --lp-bg: #f5f8fd;
  --lp-ink: #0f172a;
  --lp-muted: #51607a;
  --lp-primary: #4f46e5;
  --lp-primary-ink: #3730a3;
  --lp-accent: #06b6d4;
  --lp-surface: #ffffff;
  --lp-line: rgba(15, 23, 42, 0.08);
  --lp-radius: 26px;
  --lp-radius-sm: 16px;
  --lp-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --lp-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.08);
  --lp-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --lp-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.lp {
  background:
    radial-gradient(circle at 12% -5%, rgba(79, 70, 229, 0.14), transparent 40%),
    radial-gradient(circle at 95% 0%, rgba(6, 182, 212, 0.16), transparent 42%),
    var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-body);
  -webkit-font-smoothing: antialiased;
}

body.lp h1, body.lp h2, body.lp h3, body.lp .display-5, body.lp .display-4 {
  font-family: var(--lp-display);
  letter-spacing: -0.02em;
}

body.lp .muted { color: var(--lp-muted); }
body.lp a { color: var(--lp-primary-ink); text-underline-offset: 3px; }
body.lp a:hover { color: var(--lp-primary); }

/* ---- Top navigation ---------------------------------------------------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--lp-line);
}
.lp-nav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--lp-ink);
  text-decoration: none;
  font-family: var(--lp-display);
}
.lp-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--lp-shadow-sm); }
.lp-nav-links {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.lp-nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--lp-muted);
  text-decoration: none;
}
.lp-nav-links a:hover { background: rgba(79, 70, 229, 0.08); color: var(--lp-primary-ink); }
.lp-nav-links a.is-active { color: var(--lp-primary-ink); background: rgba(79, 70, 229, 0.10); }

/* language pills inside nav */
.lp-langs { display: inline-flex; gap: 0.25rem; flex-wrap: wrap; }
.lp-langs a {
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  color: var(--lp-muted);
  text-decoration: none;
  font-weight: 600;
}
.lp-langs a:hover { border-color: rgba(79,70,229,.35); color: var(--lp-primary-ink); }
.lp-langs a.is-active { background: var(--lp-ink); color: #fff; border-color: var(--lp-ink); }

/* ---- Hero -------------------------------------------------------------- */
.lp-hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 480px;
  background:
    radial-gradient(circle at 25% 30%, rgba(79, 70, 229, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.16), transparent 40%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.lp-hero .container { position: relative; z-index: 1; }

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--lp-primary-ink);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--lp-shadow-sm);
}
.lp-hero h1 { font-weight: 800; line-height: 1.08; }
.lp-hero .lead { max-width: 38rem; color: var(--lp-muted); }
.lp-hero[dir="rtl"] .lead, body[dir="rtl"] .lp-hero .lead { margin-inline: 0; }

/* gradient accent on a phrase */
.lp-grad {
  background: linear-gradient(120deg, var(--lp-primary), var(--lp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons / app badges --------------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: linear-gradient(120deg, var(--lp-primary), #6366f1); color: #fff; box-shadow: 0 14px 30px rgba(79,70,229,.30); }
.lp-btn-primary:hover { color: #fff; }
.lp-btn-dark { background: var(--lp-ink); color: #fff; }
.lp-btn-dark:hover { color: #fff; }
.lp-btn-ghost { background: rgba(255,255,255,.7); color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn-ghost:hover { color: var(--lp-ink); border-color: rgba(79,70,229,.3); }
.lp-btn i { font-size: 1.15rem; }

/* ---- Cards / surfaces -------------------------------------------------- */
.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--lp-shadow-sm);
}
.lp-card-tint {
  background: linear-gradient(180deg, rgba(79,70,229,.05), rgba(255,255,255,.9));
}
.lp-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lp-accent);
}
.lp-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.lp-feature .ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.14));
  color: var(--lp-primary-ink);
  font-size: 1.3rem;
}

/* device frame for hero image */
.lp-device {
  position: relative;
  display: inline-block;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1f2937, #0b1220);
  box-shadow: 0 40px 90px rgba(15,23,42,.30);
}
.lp-device img { display: block; width: 100%; max-width: 280px; border-radius: 30px; }
.lp-device::after {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 22px;
  background: #0b1220;
  border-radius: 0 0 14px 14px;
}

/* ---- Phone screenshot grid (uncropped, press-ready) -------------------- */
.shot-grid { display: grid; gap: 1rem; }
.shot {
  background: linear-gradient(180deg, #eef2ff, #f8fafc);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); }
.shot img {
  display: block;
  width: 100%;
  height: auto;          /* never crop — full screenshot for press */
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  background: #0b1220;
}
.shot .cap { padding: 0.55rem 0.75rem; font-size: 0.82rem; color: var(--lp-muted); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* ---- Brand colour swatches (media kit) -------------------------------- */
.swatch { border-radius: 16px; border: 1px solid var(--lp-line); overflow: hidden; background: var(--lp-surface); }
.swatch .chip { height: 84px; }
.swatch .meta { padding: 0.7rem 0.85rem; }
.swatch .meta code { font-size: 0.85rem; color: var(--lp-ink); }
.copy-btn { cursor: pointer; border: 1px solid var(--lp-line); background: rgba(255,255,255,.7); border-radius: 8px; padding: .1rem .5rem; font-size: .76rem; color: var(--lp-muted); }
.copy-btn:hover { color: var(--lp-primary-ink); border-color: rgba(79,70,229,.3); }

/* boilerplate copy block */
.copy-block { position: relative; }
.copy-block textarea, .copy-block .txt {
  width: 100%;
  border: 1px dashed var(--lp-line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 1rem 1.1rem;
  color: var(--lp-ink);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
}

/* fast-facts table */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: start; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.facts th { width: 38%; color: var(--lp-muted); font-weight: 600; }

/* ---- Accordion (brand-light) ------------------------------------------ */
body.lp .accordion-item { border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm) !important; margin-bottom: 0.6rem; overflow: hidden; background: var(--lp-surface); }
body.lp .accordion-button { font-weight: 600; color: var(--lp-ink); background: var(--lp-surface); }
body.lp .accordion-button:not(.collapsed) { color: var(--lp-primary-ink); background: rgba(79,70,229,.06); box-shadow: none; }
body.lp .accordion-button:focus { box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
body.lp .accordion-body { color: var(--lp-muted); }

/* ---- Footer ------------------------------------------------------------ */
.lp-footer { border-top: 1px solid var(--lp-line); padding-block: 1.6rem; color: var(--lp-muted); }
.lp-footer a { color: var(--lp-muted); text-decoration: none; }
.lp-footer a:hover { color: var(--lp-primary-ink); }

/* ---- Reveal-on-scroll (optional, progressive) -------------------------- */
.reveal-up { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .lp-btn:hover, .shot:hover { transform: none; }
}

/* ---- RTL --------------------------------------------------------------- */
[dir="rtl"] body.lp, body.lp[dir="rtl"] { direction: rtl; }
[dir="rtl"] .lp-nav-links { margin-inline-start: auto; }
[dir="rtl"] .lp-device::after { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .lp-hero .lead { margin-inline-start: 0; }

/* small screens */
@media (max-width: 575.98px) {
  .lp-nav-links a { padding: 0.35rem 0.6rem; font-size: 0.88rem; }
}


/* ---- Store buttons aligned with the homepage ---------------------------- */
a.lp-btn[href*="play.google.com"],
a.lp-btn[href*="apps.apple.com"] {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  gap: 0.5rem;
  text-decoration: none;
}

a.lp-btn[href*="play.google.com"].lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-primary), #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

a.lp-btn[href*="play.google.com"].lp-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, var(--lp-primary-ink));
  color: #fff;
}

a.lp-btn[href*="play.google.com"]:not(.lp-btn-primary) {
  background: #f8f9fa !important;
  color: #000 !important;
  border-color: #f8f9fa !important;
  box-shadow: none;
}

a.lp-btn[href*="play.google.com"]:not(.lp-btn-primary):hover {
  background: #d3d4d5 !important;
  color: #000 !important;
  border-color: #c6c7c8 !important;
}

a.lp-btn[href*="apps.apple.com"].lp-btn-dark {
  background: #212529;
  color: #fff;
  border-color: #212529;
  box-shadow: none;
}

a.lp-btn[href*="apps.apple.com"].lp-btn-dark:hover {
  background: #1c1f23;
  color: #fff;
  border-color: #1a1e21;
}

/* ---- Press pages: homepage-style layout + fixed image proportions --------
   The old press grid allowed screenshots to become visually oversized/tall.
   These rules force a stable iPhone ratio, centered cards and cache-safe pages.
   ------------------------------------------------------------------------- */
body.lp.press-page {
  background:
    radial-gradient(circle at 12% -5%, rgba(79, 70, 229, 0.14), transparent 40%),
    radial-gradient(circle at 95% 0%, rgba(6, 182, 212, 0.16), transparent 42%),
    var(--lp-bg);
}

.press-page .lp-hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 70, 229, 0.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.14), transparent 24%),
    linear-gradient(180deg, #eef4ff, #f9fbff);
  border-bottom: 1px solid var(--lp-line);
}

.press-page .lp-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.press-hero-phone {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 0.35rem;
  border-radius: 48px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  box-shadow:
    0 42px 90px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.press-hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1242 / 2688;
  overflow: hidden;
  border-radius: 42px;
  background: #020617;
  border: 10px solid #0f172a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 34px rgba(0, 0, 0, 0.42);
}

.press-hero-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 34%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #020617;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.press-hero-screen,
.press-hero-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

.press-hero-screen {
  overflow: hidden;
  background: #e2e8f0;
}

.press-hero-screen img {
  display: block;
  object-fit: cover;
  max-width: none;
}

.press-hero-homebar {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 6;
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.20);
}

.press-screen-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(0.9rem, 2vw, 1.25rem) !important;
  align-items: start;
}

.press-screen-grid.press-screen-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.9rem !important;
}

.press-screen-grid .shot {
  width: 100%;
  max-width: 230px;
  margin-inline: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  aspect-ratio: auto !important;
  overflow: visible;
}

.press-screen-grid .shot::before {
  content: "";
  display: block;
  position: absolute;
}

.press-screen-grid .shot img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1242 / 2688 !important;
  object-fit: cover !important;
  max-height: 500px;
  border-radius: 24px;
  background: #e2e8f0;
  box-shadow:
    0 0 0 7px #0f172a,
    0 14px 30px rgba(15, 23, 42, 0.16);
}

.press-screen-grid-compact .shot {
  max-width: 175px;
  padding: 0.45rem;
  border-radius: 24px;
}

.press-screen-grid-compact .shot img {
  max-height: 390px;
  border-radius: 18px;
  box-shadow:
    0 0 0 5px #0f172a,
    0 12px 24px rgba(15, 23, 42, 0.14);
}

.press-cta-card {
  background: linear-gradient(120deg, var(--lp-primary), var(--lp-accent)) !important;
  border: 0 !important;
  color: #fff !important;
  overflow: hidden;
  position: relative;
}

.press-cta-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 65%);
  pointer-events: none;
}

.press-cta-card h2,
.press-cta-card p,
.press-cta-card a {
  position: relative;
  z-index: 1;
}

.press-cta-card h2 { color: #fff !important; }
.press-cta-card p { color: rgba(255, 255, 255, 0.86) !important; }
.press-cta-card .lp-btn {
  background: #fff;
  color: var(--lp-primary-ink);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}
.press-cta-card .lp-btn:hover { color: var(--lp-primary-ink); }

@media (max-width: 991.98px) {
  .press-hero-phone { width: min(100%, 295px); }
  .press-screen-grid,
  .press-screen-grid.press-screen-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .press-screen-grid .shot { max-width: 190px; }
}

@media (max-width: 575.98px) {
  .press-hero-phone {
    width: min(100%, 260px);
    border-radius: 38px;
  }
  .press-hero-frame {
    border-width: 8px;
    border-radius: 34px;
  }
  .press-hero-screen,
  .press-hero-screen img { border-radius: 24px; }
  .press-hero-notch { height: 20px; }
  .press-screen-grid,
  .press-screen-grid.press-screen-grid-compact {
    gap: 0.75rem !important;
  }
  .press-screen-grid .shot {
    max-width: 145px;
    padding: 0.4rem;
    border-radius: 22px;
  }
  .press-screen-grid .shot img {
    border-radius: 16px;
    box-shadow:
      0 0 0 4px #0f172a,
      0 10px 18px rgba(15, 23, 42, 0.13);
  }
}
