:root {
  --blue: #2647d8;
  --blue-deep: #1c37ab;
  --cyan: #27a9f2;
  --sky: #a9d7f5;
  --ink: #16203b;
  --muted: #5b6b8c;
  --bg: #f6f9ff;
  --card: #ffffff;
  --line: #e3eaf7;
  --grad: linear-gradient(120deg, #2647d8, #27a9f2);
  --shadow: 0 18px 50px rgba(38, 71, 216, 0.10);
  --shadow-sm: 0 4px 16px rgba(38, 71, 216, 0.08);
  --radius: 22px;
  font-family: "Assistant", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(90% 60% at 85% -5%, rgba(39, 169, 242, 0.14), transparent 60%),
    radial-gradient(80% 55% at 8% 20%, rgba(38, 71, 216, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 26px;
  padding: 12px 24px; max-width: 1180px; margin: 0 auto;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-lockup img.flipo-logo { height: 44px; width: auto; display: block; }
.byline {
  display: flex; align-items: center; gap: 6px;
  padding-right: 14px; border-right: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.byline img { height: 20px; width: auto; opacity: 0.85; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s; }
.main-nav a:hover { color: var(--blue); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(38, 71, 216, 0.35); transition: transform .15s, filter .15s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.nav-cta svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  background: rgba(38, 71, 216, 0.08); border: 1px solid rgba(38, 71, 216, 0.18);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  margin-top: 20px; font-size: clamp(38px, 5.2vw, 58px); line-height: 1.12; font-weight: 800;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 16px 32px; border-radius: 999px; box-shadow: 0 14px 34px rgba(38, 71, 216, 0.35);
  transition: transform .15s, filter .15s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid rgba(38, 71, 216, 0.25);
  box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--blue); }
.btn-primary svg, .btn-secondary svg { width: 18px; height: 18px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats dt { font-size: 26px; font-weight: 800; color: var(--blue); }
.hero-stats dd { font-size: 13.5px; color: var(--muted); max-width: 15ch; }

/* Hero flipbook (the real page-flip engine, mirrored for a true RTL book) */
.hero-visual { display: grid; place-items: center; position: relative; }
.book-scene { position: relative; display: flex; align-items: center; gap: 14px; }
.hero-book {
  position: relative;
  width: min(470px, 82vw);
  height: calc(min(470px, 82vw) * 0.707);
  filter: drop-shadow(0 30px 60px rgba(22, 32, 59, 0.28));
}
/* The mirror flips the flip-engine horizontally: the LEFT page turns rightward,
   exactly like a Hebrew book. Page images are pre-mirrored back to normal. */
.hero-book-mirror { width: 100%; height: 100%; transform: scaleX(-1); }
.hero-book-mirror #flipMount { width: 100%; height: 100%; direction: ltr; }
.book-nav {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue);
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s;
  z-index: 2;
}
.book-nav:hover { transform: translateY(-2px); border-color: var(--blue); }
.book-nav svg { width: 20px; height: 20px; }
.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 13.5px; color: var(--ink);
  box-shadow: var(--shadow-sm); animation: chipFloat 5s ease-in-out infinite;
}
.floating-chip svg { width: 16px; height: 16px; color: var(--blue); }
.chip-a { top: 8%; left: -4%; animation-delay: 0s; }
.chip-b { bottom: 12%; right: -6%; animation-delay: 2.2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.2; margin-top: 14px; }
.section-heading p.sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

.intro-band {
  background: var(--grad); border-radius: var(--radius); color: #fff;
  padding: 42px clamp(24px, 5vw, 64px); text-align: center;
  font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; line-height: 1.7;
  box-shadow: 0 24px 60px rgba(38, 71, 216, 0.28);
}

.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 800; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(38, 71, 216, 0.09); color: var(--blue);
}
.card .icon svg { width: 22px; height: 22px; }

.compare-card { position: relative; overflow: hidden; }
.compare-card .num {
  font-size: 44px; font-weight: 800; color: rgba(38, 71, 216, 0.12); line-height: 1;
}
.compare-card ul { margin-top: 14px; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.compare-card.featured {
  background: linear-gradient(150deg, #eef3ff, #e6f5ff);
  border-color: rgba(38, 71, 216, 0.3);
}
.compare-card.featured::after {
  content: "המומלץ שלנו"; position: absolute; top: 18px; left: 18px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 34px; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; right: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(38, 71, 216, 0.35);
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15.5px; }

/* Final CTA */
.final-cta {
  background: var(--grad); border-radius: var(--radius); color: #fff; text-align: center;
  padding: clamp(44px, 7vw, 72px) 24px; box-shadow: 0 26px 70px rgba(38, 71, 216, 0.3);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(40% 40% at 70% 20%, rgba(255, 255, 255, 0.18), transparent 70%);
}
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; position: relative; }
.final-cta p { margin: 14px auto 30px; max-width: 56ch; font-size: 17.5px; opacity: 0.92; position: relative; }
.final-cta .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); position: relative; }
.final-cta .cta-phone { display: block; margin-top: 20px; color: #fff; font-weight: 700; font-size: 17px; position: relative; text-decoration: none; opacity: 0.95; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 72px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img.flipo-logo { height: 38px; }
.footer-byline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.footer-byline img { height: 22px; opacity: 0.85; }
.footer-byline a { color: var(--blue); text-decoration: none; font-weight: 700; }
.footer-contact { display: flex; gap: 20px; align-items: center; color: var(--muted); font-size: 14.5px; }
.footer-contact a { text-decoration: none; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.footer-contact a:hover { color: var(--blue); }
.footer-contact svg { width: 16px; height: 16px; color: var(--blue); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .byline { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 22px; }
  .header-inner { gap: 12px; }
  .nav-cta { margin-inline-start: auto; padding: 10px 16px; font-size: 14px; }
  .brand-lockup img.flipo-logo { height: 36px; }
  .floating-chip { display: none; }
}

/* ---------- Launch pricing ---------- */
.launch-ribbon {
  position: absolute; top: 16px; inset-inline-start: -6px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px;
  padding: 6px 16px; border-radius: 8px; box-shadow: var(--shadow-sm);
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.price-old { font-size: 24px; color: var(--muted); text-decoration: line-through; font-weight: 700; }
.price-new { font-size: 48px; font-weight: 800; color: var(--blue); line-height: 1; }
.price-per { font-size: 17px; color: var(--muted); font-weight: 600; }
.price-sub { margin-top: 8px; font-size: 14px; font-weight: 700; color: #c0392b; }
.addon-note {
  margin-top: 16px; background: rgba(39,169,242,0.08); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink); font-weight: 600;
}

/* ---------- Cookie consent ---------- */
.cc-banner {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 1000; max-width: 640px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cc-banner p { font-size: 14.5px; color: var(--ink); flex: 1 1 260px; margin: 0; line-height: 1.6; }
.cc-banner p a { color: var(--blue); font-weight: 700; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-actions button {
  font-family: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 12px;
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.cc-actions .cc-accept { background: var(--grad); color: #fff; border: none; }
@media (max-width: 520px) { .cc-actions { width: 100%; } .cc-actions button { flex: 1; } }
