/* ============================================================
   Parasha Kids — landing page styles
   Design DNA pulled from the live app:
     cream paper · plum ink · sun-gold sparkle accent
     Fraunces (display) + Nunito (UI)
     soft shadows · generous radii · big tap targets
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-cream: #FBF4E8;
  --bg-cream-deep: #F5EAD3;
  --bg-paper: #FFFBF3;
  /* Ink */
  --ink: #2A1F3D;
  --ink-soft: #5A4D6E;
  --ink-muted: #8B7FA0;
  /* Lines */
  --line: rgba(42,31,61,0.08);
  --line-strong: rgba(42,31,61,0.14);
  /* Accents (parasha-kids brand) */
  --plum: #6B4E8C;
  --plum-deep: #4A2F66;
  --plum-light: #8B6FAC;
  --peach: #F4A988;
  --peach-deep: #E08560;
  --meadow: #8FB88B;
  --sky: #A8C5E2;
  --sun: #F2C969;
  --sun-soft: #FBE4A8;
  --rose: #E89BAE;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 6px 18px -8px rgba(74,47,102,0.18);
  --shadow-float: 0 12px 32px -12px rgba(74,47,102,0.28);
  --shadow-book: 0 14px 28px -14px rgba(74,47,102,0.40);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -12px rgba(74,47,102,0.20);

  /* Type */
  --font-display: "Fraunces", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-ui: "Nunito", "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
}

/* Hebrew uses Frank Ruhl Libre for display, Heebo for UI */
html[lang="he"] {
  --font-display: "Frank Ruhl Libre", "Fraunces", Georgia, serif;
  --font-ui: "Heebo", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg-cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(242,201,105,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(232,155,174,0.10), transparent 60%);
}

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-deep); }

img, svg { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 .4em;
  font-weight: 600;
  text-wrap: pretty;
}
h1 { font-size: clamp(40px, 5.4vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 1em; color: var(--ink-soft); text-wrap: pretty; }
strong, b { color: var(--ink); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "✦";
  color: var(--sun);
  font-size: 13px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

section { padding: clamp(56px, 8vw, 112px) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--plum-deep); color: #fff;
  box-shadow: var(--shadow-float);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--plum); color:#fff; }
.btn-sun {
  background: var(--sun); color: var(--plum-deep);
  box-shadow: 0 6px 16px -6px rgba(242,201,105,0.6);
}
.btn-sun:hover { transform: translateY(-1px); background: var(--sun-soft); color: var(--plum-deep); }
.btn-ghost {
  background: var(--bg-paper); color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Google Play / store badges */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.16s ease, background 0.2s ease;
}
.store-badge:hover { transform: translateY(-1px); background: #1B1430; color: #fff; }
.store-badge .sb-icon { width: 22px; height: 22px; }
.store-badge .sb-small { display: block; font-size: 10.5px; font-weight: 700; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; margin-bottom: 3px; }
.store-badge .sb-big { display: block; font-size: 16px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,244,232,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.brand-name .kids { color: var(--plum); }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--plum-deep); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.lang-switcher { display: inline-flex; gap: 4px; background: var(--bg-paper); border: 1px solid var(--line); padding: 4px; border-radius: var(--r-pill); }
.lang-switcher button {
  background: transparent; border: 0; padding: 7px 12px;
  border-radius: var(--r-pill); font-weight: 800; font-size: 12px;
  color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switcher button.is-active { background: var(--plum); color: #fff; }
.lang-switcher button:hover:not(.is-active) { background: var(--bg-cream-deep); color: var(--ink); }

.nav-toggle { display: none; background: var(--bg-paper); border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-paper); padding: 20px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero h1 .accent { color: var(--plum); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: "✦";
  position: absolute; top: -0.1em; right: -0.6em;
  font-size: 0.35em; color: var(--sun); -webkit-text-stroke: 0;
}
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { color: var(--meadow); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

/* Phone mockup that mimics the app's Today's-story hero card */
.phone {
  width: 290px;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 60px -30px rgba(74,47,102,0.55),
    0 12px 24px -10px rgba(74,47,102,0.25);
  position: relative;
  transform: rotate(-2deg);
}
.phone::after { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #000; border-radius: 14px;
}
.phone-screen {
  background: var(--bg-paper);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 290 / 580;
  position: relative;
  padding: 44px 14px 14px;
}
.phone-status { display: flex; justify-content: space-between; position: absolute; top: 18px; left: 24px; right: 24px; font-size: 11px; font-weight: 800; color: var(--ink); z-index: 2; }
.phone-status .right { display: inline-flex; gap: 6px; align-items: center; }

.app-greet { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); margin: 8px 6px 6px; letter-spacing: -0.01em; }
.app-greet .star { color: var(--peach-deep); }

.app-search { display: flex; align-items: center; gap: 8px; background: var(--bg-paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; margin: 4px 6px 12px; box-shadow: var(--shadow-soft); }
.app-search .ph { flex: 1; font-size: 11px; color: var(--ink-muted); }
.app-search .mic { width: 22px; height: 22px; border-radius: 11px; background: var(--plum); display: grid; place-items: center; color: #fff; font-size: 10px; }

.app-hero {
  background: var(--plum-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 14px;
  margin: 0 6px 12px;
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-book);
}
.app-hero::before, .app-hero::after { content: "✦"; position: absolute; color: var(--sun); opacity: 0.6; font-size: 12px; }
.app-hero::before { top: 14%; left: 38%; }
.app-hero::after  { bottom: 18%; left: 24%; font-size: 8px; }
.app-hero .tag { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 3px 8px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 6px; }
.app-hero .title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.app-hero .sub { color: rgba(255,255,255,0.7); font-size: 10px; margin-bottom: 8px; }
.app-hero .cta { display: inline-flex; align-items: center; gap: 4px; background: var(--sun); color: var(--plum-deep); font-size: 9px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.app-hero .cv {
  width: 64px; aspect-ratio: 1 / 1.4; border-radius: 6px; align-self: center;
  background: linear-gradient(160deg, #B79CD2, #5A3F87);
  display: grid; place-items: center; color: #F2C969; font-size: 18px;
  box-shadow: var(--shadow-book);
}

.app-section-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); margin: 4px 6px 8px; }
.app-rail { display: flex; gap: 8px; padding: 0 6px; overflow: hidden; }
.app-book {
  flex: 0 0 70px; display: grid; gap: 4px;
}
.app-book .cv {
  width: 70px; aspect-ratio: 1 / 1.4; border-radius: 6px;
  display: grid; place-items: center; color: #fff;
  font-size: 18px; font-family: serif;
  box-shadow: var(--shadow-book);
}
.app-book .ttl { font-size: 9px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.app-book .meta { font-size: 8.5px; font-weight: 700; color: var(--ink-muted); }

.cv-1 { background: linear-gradient(160deg, #BFD8AC, #6E9E7B); }
.cv-2 { background: linear-gradient(160deg, #B79CD2, #5A3F87); }
.cv-3 { background: linear-gradient(160deg, #FAD0B4, #D9744E); }
.cv-4 { background: linear-gradient(160deg, #B8DAEA, #4F7A9E); }
.cv-5 { background: linear-gradient(160deg, #FBE9C5, #C8945A); }
.cv-6 { background: linear-gradient(160deg, #F2C2CF, #B45A78); }

/* sparkles floating around the phone */
.sparkles {
  position: absolute; inset: 0; pointer-events: none;
}
.sparkles .sp {
  position: absolute; color: var(--sun);
  filter: drop-shadow(0 0 8px rgba(242,201,105,0.55));
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* The decorative blob behind the phone */
.hero-blob {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sun-soft) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(143,184,139,0.4) 0%, transparent 60%);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 0; filter: blur(6px);
}
.phone { position: relative; z-index: 1; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 480px; }
}

/* ---------- Sections common ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature {
  background: var(--bg-paper);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  font-size: 26px;
  background: linear-gradient(160deg, var(--sun-soft), var(--sun));
  color: var(--plum-deep);
  box-shadow: 0 6px 16px -8px rgba(242,201,105,0.7);
}
.feature.f-2 .feature-icon { background: linear-gradient(160deg, #DCC8F0, var(--plum)); color: #fff; }
.feature.f-3 .feature-icon { background: linear-gradient(160deg, #FBD8C3, var(--peach)); color: var(--plum-deep); }
.feature.f-4 .feature-icon { background: linear-gradient(160deg, #C8E4C4, var(--meadow)); color: var(--plum-deep); }
.feature h3 { font-size: 19px; margin: 0; }
.feature p { font-size: 14.5px; margin: 0; color: var(--ink-soft); }

@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Showcase (alternating image + text) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(56px, 8vw, 112px); }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip { direction: rtl; }
.showcase.flip > * { direction: ltr; }
html[dir="rtl"] .showcase.flip { direction: ltr; }
html[dir="rtl"] .showcase.flip > * { direction: rtl; }

.showcase-art {
  background: var(--bg-paper);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.2;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.showcase-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 20% 20%, rgba(242,201,105,0.18), transparent 60%);
  pointer-events: none;
}

.showcase h2 { margin-bottom: 16px; }
.showcase p { font-size: 17px; }
.showcase ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.showcase li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.showcase li::before {
  content: "✦"; position: absolute; left: 0; top: 1px;
  color: var(--sun); font-size: 14px;
}
html[dir="rtl"] .showcase li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .showcase li::before { left: auto; right: 0; }

@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip { direction: ltr; }
}

/* Book grid art (covers) */
.cover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  width: 100%; max-width: 360px;
}
.cover {
  aspect-ratio: 1 / 1.4; border-radius: 10px;
  background: linear-gradient(160deg, var(--plum-light), var(--plum-deep));
  position: relative; overflow: hidden;
  color: #fff; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-book);
}
.cover .glyph { font-size: 28px; align-self: flex-end; opacity: 0.95; }
.cover .ttl { font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.1; }
.cover.c-1 { background: linear-gradient(160deg, #BFD8AC, #6E9E7B); }
.cover.c-2 { background: linear-gradient(160deg, #B79CD2, #5A3F87); }
.cover.c-3 { background: linear-gradient(160deg, #FAD0B4, #D9744E); }
.cover.c-4 { background: linear-gradient(160deg, #B8DAEA, #4F7A9E); }
.cover.c-5 { background: linear-gradient(160deg, #FBE9C5, #C8945A); }
.cover.c-6 { background: linear-gradient(160deg, #F2C2CF, #B45A78); }

/* Calendar tile for holidays */
.calendar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  width: 100%; max-width: 380px;
}
.cal-tile {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cal-tile .glyph { font-size: 28px; }
.cal-tile .name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.cal-tile .date { font-size: 11px; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.02em; }

/* Shabbat candles */
.shabbat-art { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4/3; }
.shabbat-art .table {
  position: absolute; bottom: 18%; left: 0; right: 0; height: 18%;
  background: linear-gradient(180deg, #C2904D, #8B6A3A);
  border-radius: 10px;
}
.shabbat-art .candle {
  position: absolute; bottom: 36%; width: 18px; height: 80px;
  background: linear-gradient(180deg, var(--bg-paper), #E0D4B7);
  border-radius: 4px;
}
.shabbat-art .candle.l { left: 32%; }
.shabbat-art .candle.r { right: 32%; }
.shabbat-art .flame {
  position: absolute; width: 12px; height: 22px;
  background: radial-gradient(circle at 50% 70%, #FFE9A8, var(--sun) 50%, var(--peach-deep) 90%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  filter: blur(0.4px);
  animation: flicker 2.4s ease-in-out infinite;
}
.shabbat-art .flame.l { left: 32%; bottom: calc(36% + 80px - 4px); transform: translateX(3px); }
.shabbat-art .flame.r { right: 32%; bottom: calc(36% + 80px - 4px); transform: translateX(-3px); }
@keyframes flicker {
  0%, 100% { transform: translateX(3px) scaleY(1); opacity: 1; }
  50% { transform: translateX(3px) scaleY(0.92); opacity: 0.92; }
}
.shabbat-art .glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(242,201,105,0.35), transparent 50%);
  pointer-events: none;
}

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--bg-paper);
  border-radius: var(--r-xl);
  padding: 32px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--sun);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; font-size: 14.5px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); background: var(--bg-cream-deep); position: relative; }
.pricing::before, .pricing::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, var(--bg-cream), transparent);
}
.pricing::before { top: 0; }
.pricing::after { bottom: 0; transform: rotate(180deg); }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative;
}
.plan {
  background: var(--bg-paper);
  border-radius: var(--r-xl);
  padding: 36px 28px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  position: relative;
}
.plan.popular {
  background: var(--plum-deep);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 40px -20px rgba(74,47,102,0.5);
  transform: scale(1.03);
}
.plan.popular::after {
  content: "✦"; position: absolute; top: -10px; right: 20px;
  color: var(--sun); font-size: 20px;
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sun); color: var(--plum-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-pill);
  box-shadow: 0 6px 14px -6px rgba(242,201,105,0.7);
}
.plan-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.plan-tag { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; }
.plan.popular .plan-tag { color: rgba(255,255,255,0.7); }
.plan-price { margin: 22px 0 18px; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan-price .period { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.plan.popular .plan-price .period { color: rgba(255,255,255,0.7); }
.plan-equivalent { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; margin-bottom: 22px; }
.plan.popular .plan-equivalent { color: var(--sun); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.plan.popular li { color: rgba(255,255,255,0.86); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--meadow);
  background-image:
    linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%);
}
.plan .btn { margin-top: auto; }
html[dir="rtl"] .plan li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .plan li::before { left: auto; right: 0; }

@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; }
  .plan.popular { transform: none; }
}

.pricing-note {
  text-align: center;
  margin-top: 36px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}
.pricing-note strong { color: var(--ink-soft); }

/* ---------- Languages ---------- */
.langs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.lang-card {
  background: var(--bg-paper);
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.lang-card .flag {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-cream-deep);
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; color: var(--plum);
  border: 1px solid var(--line);
}
.lang-card h3 { font-size: 18px; margin: 0 0 4px; }
.lang-card p { margin: 0; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 700px) { .langs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px; margin: 0 auto;
  display: grid; gap: 12px;
}
.faq-item {
  background: var(--bg-paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-ui); font-weight: 800; font-size: 22px;
  color: var(--plum); flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 22px; margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--plum-deep);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-book);
}
.cta-strip::before, .cta-strip::after {
  content: "✦"; position: absolute; color: var(--sun); opacity: 0.7; font-size: 22px;
}
.cta-strip::before { top: 24px; left: 28px; }
.cta-strip::after { bottom: 24px; right: 28px; }
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto 26px; font-size: 17px; }
.cta-strip .store-badges { justify-content: center; }
.cta-strip .store-badge { background: #fff; color: var(--ink); }
.cta-strip .store-badge:hover { background: var(--sun); color: var(--plum-deep); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-cream-deep);
  padding: 56px 0 28px;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-family: var(--font-ui); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plum); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.footer a:hover { color: var(--plum-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px; color: var(--ink-muted);
}
.footer-bottom a { color: var(--ink-muted); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: clamp(48px, 6vw, 96px) 0; }
.legal-wrap { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 60px); }
.legal-sidebar {
  position: sticky; top: 84px; align-self: start;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.legal-sidebar h4 { margin: 0 0 14px; }
.legal-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legal-sidebar a {
  display: block; padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px; color: var(--ink-soft); font-weight: 700;
}
.legal-sidebar a:hover { background: var(--bg-cream-deep); color: var(--ink); }
.legal-sidebar a.is-active { background: var(--plum); color: #fff; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); font-weight: 800; font-size: 13px; margin-bottom: 18px; }

.legal-content {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-card);
}
.legal-content h1 { font-size: clamp(28px, 3.4vw, 40px); }
.legal-meta { color: var(--ink-muted); font-size: 13px; font-weight: 700; margin: 6px 0 30px; display: flex; gap: 18px; flex-wrap: wrap; }
.legal-content h2 { font-size: 22px; margin: 32px 0 10px; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.legal-content p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; white-space: pre-wrap; }
.legal-content p strong { color: var(--ink); }
.legal-warning {
  background: rgba(242,201,105,0.16);
  border: 1px solid rgba(242,201,105,0.5);
  color: var(--ink-soft);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 24px;
}

@media (max-width: 880px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; max-height: none; }
}

/* ---------- Utilities ---------- */
.hide { display: none !important; }
.center { text-align: center; }
.text-muted { color: var(--ink-muted); }

/* ---------- RTL adjustments ---------- */
html[dir="rtl"] body { font-family: var(--font-ui); }
html[dir="rtl"] .hero h1 .accent::after { right: auto; left: -0.6em; }
html[dir="rtl"] .phone { transform: rotate(2deg); }
html[dir="rtl"] .app-hero { grid-template-columns: 64px 1fr; }
html[dir="rtl"] .app-hero::before { left: auto; right: 38%; }
html[dir="rtl"] .app-hero::after { left: auto; right: 24%; }
html[dir="rtl"] .plan-badge { left: 50%; }
html[dir="rtl"] .legal-back svg { transform: scaleX(-1); }

/* Print/PDF tweaks for legal docs */
@media print {
  .nav, .footer, .legal-sidebar { display: none; }
  .legal-content { box-shadow: none; border: none; padding: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
