/* ==========================================================
   KosherGuru landing page
   Design language taken from the app & store screenshots:
   lime green ground, charcoal buttons, Poppins, white cards,
   chevron / pyramid shapes and line-art food doodles.
   ========================================================== */

:root {
  --lime: #b2db5b;
  --lime-light: #ceff69;
  --lime-soft: #eef8d8;
  --lime-deep: #8dba35;
  --ink: #1f1f1f;
  --ink-2: #3a3a3a;
  --muted: #5d6475;
  --slate: #6e7fa3;      /* address text colour in the app */
  --cream: #fbfff5;
  --card: #ffffff;
  --line: #e7ece0;
  --star: #f5a623;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -18px rgba(31, 31, 31, 0.35);
  --shadow-sm: 0 6px 20px -8px rgba(31, 31, 31, 0.2);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  padding: 14px 24px; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 22px 11px 18px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); background: #000; box-shadow: var(--shadow); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.1; }
.store-btn small { font-size: 11px; font-weight: 400; opacity: .85; letter-spacing: .02em; }
.store-btn.is-primary { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lime);
  border-bottom: 1px solid rgba(31,31,31,.08);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Shapes (chevron & pyramid from store art) ---------- */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.chev {
  position: absolute; top: 18%; width: 320px; height: 420px;
  background: rgba(206, 255, 105, .45);
  clip-path: polygon(0 50%, 60% 0, 100% 0, 40% 50%, 100% 100%, 60% 100%);
}
.chev-l { left: -180px; transform: scaleX(-1); }
.chev-r { right: -180px; }
.pyramid {
  position: absolute; left: 50%; bottom: -1px; width: 900px; height: 340px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(206,255,105,.55), rgba(206,255,105,.9));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 40px;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--lime); overflow: hidden; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding-block: 72px 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.55); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.eyebrow-dark { background: var(--lime-soft); }
.eyebrow-dark .dot { background: var(--lime-deep); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; color: #2b2b2b; }
.hero h1 .hl { display: block; color: var(--ink); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: 22px 0 32px; max-width: 34em; }
.hero-note { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

.hero-visual { position: relative; height: 600px; }
.phone {
  background: #141414; padding: 9px; border-radius: 46px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3a3a;
  width: 280px;
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 482 / 1072; object-fit: cover; }
.phone-front { position: absolute; left: 6%; top: 10px; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.phone-back { position: absolute; right: 2%; top: 60px; transform: rotate(6deg); opacity: .97; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; color: var(--ink); }
.fc-icon svg { width: 24px; height: 24px; }
.fc-cert { left: -6%; bottom: 120px; animation: floaty 6s ease-in-out infinite reverse; }
.fc-rating { right: -2%; top: 8px; flex-direction: column; align-items: flex-start; gap: 2px; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }

@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Value strip ---------- */
.values { background: #fff; border-bottom: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 32px; }
.value { display: flex; align-items: center; gap: 14px; }
.value strong { display: block; font-weight: 600; font-size: 15px; }
.value small { color: var(--muted); font-size: 13px; }
.v-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--lime-soft); display: grid; place-items: center;
}
.v-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: #2b2b2b; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ---------- Features ---------- */
.doodle-bg { background-color: var(--cream); background-image: url("assets/doodles.svg"); background-size: 300px; }
.features { padding-block: 100px 60px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 110px;
}
.feature-rev .feature-media { order: 2; }
.feature-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.feature-media .phone { position: relative; z-index: 1; width: 270px; }
.blob {
  position: absolute; width: 440px; max-width: 100%; aspect-ratio: 1;
  background: var(--lime); border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  opacity: .95;
}
.media-duo .phone { width: 240px; }
.media-duo .phone-offset { margin-left: -50px; margin-top: 90px; transform: rotate(4deg); }
.tablet {
  position: relative; z-index: 1; width: 380px;
  background: #111; padding: 14px; border-radius: 30px; box-shadow: var(--shadow);
}
.tablet img { border-radius: 16px; width: 100%; }

.feature-copy { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); background: var(--lime); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.feature-copy h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; margin-bottom: 14px; }
.feature-copy > p { color: var(--muted); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.note {
  margin-top: 22px; font-size: 14px; color: var(--ink-2);
  background: var(--lime-soft); border-left: 4px solid var(--lime-deep); padding: 12px 16px; border-radius: 8px;
}

/* ---------- How it works ---------- */
.how { background: #fff; padding-block: 100px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step {
  position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--ink); color: var(--lime); font-weight: 800; font-size: 24px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Care ---------- */
.care { background: #fff; padding-bottom: 100px; }
.care-card {
  display: flex; gap: 32px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 48px 52px;
  position: relative; overflow: hidden;
}
.care-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: var(--lime); opacity: .14;
}
.care-mascot { width: 94px; flex: none; background: var(--lime); border-radius: 50%; padding: 14px; width: 120px; height: 120px; object-fit: contain; }
.care-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; color: var(--lime); }
.care-card p { color: #d9dccf; font-size: 16px; max-width: 46em; }

/* ---------- FAQ ---------- */
.faq { padding-block: 100px; background: var(--cream); }
.faq-inner { max-width: 840px; }
.faq .section-head { margin-bottom: 40px; }
.faq-list { display: grid; gap: 14px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px;
  transition: box-shadow .2s;
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 8px; background: var(--lime-soft);
  display: grid; place-items: center; font-weight: 600; transition: rotate .2s;
}
details[open] summary::after { content: "–"; background: var(--lime); }
details p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Download ---------- */
.download { position: relative; background: var(--lime); overflow: hidden; }
.download-inner {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 64px;
  padding-block: 90px; text-align: center;
}
.download-logo { width: 200px; margin: 0 auto 22px; }
.download h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; color: #2b2b2b; max-width: 14em; margin-inline: auto; }
.download .lead { margin-inline: auto; }
.qr-card {
  background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 240px; box-shadow: var(--shadow);
  font-size: 14px; color: var(--ink-2);
}
.qr { width: 180px; height: 180px; margin: 0 auto 14px; display: grid; place-items: center; }
.qr img, .qr canvas { width: 180px !important; height: 180px !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccc2; padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #333; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); padding: 6px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand small { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 13px; display: grid; gap: 8px; }
.beteavon { color: var(--lime); }
.beteavon [lang="he"] { font-weight: 600; }
.legal { color: #8a8d84; font-size: 12px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 10px 10px 10px 14px; box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 30px; }
.sticky-cta span { flex: 1; line-height: 1.2; }
.sticky-cta strong { display: block; font-size: 15px; }
.sticky-cta small { color: var(--muted); font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-block: 56px 72px; }
  .hero-copy .lead { margin-inline: auto; }
  .hero .store-buttons { justify-content: center; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; height: 560px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-rev { grid-template-columns: 1fr; gap: 36px; }
  .feature-rev .feature-media { order: 0; }
  .download-inner { flex-direction: column; gap: 40px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .brand img { height: 32px; }
  .header-inner { height: 62px; }
  .steps { grid-template-columns: 1fr; }
  .care-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .qr-card { display: none; }
  .features, .how, .faq { padding-block: 72px; }
  .feature { margin-bottom: 72px; }
  .feature-copy { padding: 28px 24px; }
  .feature-media { min-height: 0; }
  .site-footer { padding-bottom: 80px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .hero-visual { height: 470px; }
  .phone { width: 220px; border-radius: 38px; padding: 7px; }
  .phone img { border-radius: 32px; }
  .phone-front { left: 0; }
  .phone-back { right: -4%; top: 50px; }
  .feature-media .phone { width: 230px; }
  .media-duo .phone { width: 180px; }
  .media-duo .phone-offset { margin-left: -40px; margin-top: 60px; }
  .tablet { width: 100%; max-width: 340px; padding: 10px; }
  .fc-cert { left: 0; bottom: 40px; }
  .fc-rating { right: 0; top: -6px; }
  .values-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .store-btn { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .blob { width: 320px; }
}

/* Let grid/flex children shrink below their content width on narrow screens */
.hero-inner > *, .feature > *, .values-grid > *, .download-inner > * { min-width: 0; }
.store-btn span { white-space: nowrap; }
@media (max-width: 420px) {
  .store-btn { padding: 10px 12px; gap: 8px; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn span { font-size: 16px; }
  .store-btn small { font-size: 10px; }
}
