/* BuzyBite website: one stylesheet for the landing page and the legal pages. */
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(/fonts/Rubik_500Medium.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(/fonts/Rubik_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(/fonts/Rubik_700Bold.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(/fonts/Rubik_800ExtraBold.ttf) format('truetype'); }

:root {
  --lime: #CCF530;
  --lime-soft: #F4FBD9;
  --lime-text: #4F6B00;
  --lime-stroke: #8DB30F;
  --ink: #0A0A0A;
  --muted: #6B6B6B;
  --surface: #F5F5F2;
  --border: #E6E6E1;
  --white: #FFFFFF;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Accessibility: a clear outline on whatever the keyboard is on, a "skip to content" link that
   appears when tabbed to, text that only screen readers read, and less motion for people who
   asked their device for it. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.final a:focus-visible, .final button:focus-visible { outline-color: var(--lime); }
.skip { position: absolute; top: -100px; right: 16px; z-index: 20; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: var(--lime); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .strip { scroll-behavior: auto; }
}

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }

/* Store badges in the header (gray until the app is in the stores) */
.stores { display: flex; gap: 8px; }
/* Dark enough gray for white text to stay readable (contrast above 4.5:1). */
.store { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 10px; border-radius: 9px; background: #6B6B6B; color: #fff; text-decoration: none; cursor: default; }
.store svg { width: 20px; height: 20px; flex: none; }
/* Google's official badge, as Google gives it (black, with its own clear space around it). */
.store-official { display: inline-flex; align-items: center; cursor: default; }
.store-official img { height: 60px; width: auto; display: block; margin: 0 -8px; }
.stores { align-items: center; }
/* Not in the stores yet: both badges gray, with "בקרוב" on hover (or on tap, on phones).
   On launch day the Google Play badge goes back to Google's black original. */
.store-official img { filter: grayscale(1); opacity: 0.42; }
.stores a { position: relative; }
.stores a::after { content: 'בקרוב'; direction: rtl; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.stores a:hover::after, .stores a:focus-visible::after, .stores a:active::after { opacity: 1; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.store-text small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.02em; }
.store-text b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 420px) {
  .stores { gap: 6px; }
  .store { height: 34px; padding: 0 9px 0 7px; gap: 5px; border-radius: 8px; }
  .store svg { width: 16px; height: 16px; }
  .store-official img { height: 51px; margin: 0 -7px; }
  .store-text small { font-size: 7px; }
  .store-text b { font-size: 12.5px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, opacity 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-small { height: 42px; padding: 0 18px; font-size: 14px; }

/* Hero */
/* The glow behind the phones may reach past the screen's edge; it's clipped so the page never scrolls sideways. */
.hero { padding: 72px 0 88px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-text); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 26px; isolation: isolate; }
/* A soft lime glow behind the phones. */
.phones::before { content: ''; position: absolute; inset: -10% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(204, 245, 48, 0.55), rgba(204, 245, 48, 0) 100%); filter: blur(10px); }
/* The same phone as in the Google Play screenshots: a silver frame, a black bezel and side buttons.
   Every size is a share of --w (the store's phone is 920px wide), so it scales as one piece. */
.phone {
  --w: 230px;
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 920 / 1880;
  border-radius: calc(var(--w) * 150 / 920);
  background: linear-gradient(90deg, #EDEDF0, #D6D6DB 50%, #EBEBED);
  border: 1px solid #C7C7CC;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.14);
}
.phone::before { content: ''; position: absolute; inset: calc(var(--w) * 11 / 920); border-radius: calc(var(--w) * 138 / 920); background: var(--ink); }
.phone img { position: absolute; inset: calc(var(--w) * 29 / 920); width: calc(100% - var(--w) * 58 / 920); height: calc(100% - var(--w) * 58 / 920); object-fit: cover; object-position: top; border-radius: calc(var(--w) * 120 / 920); }
.phone .side { position: absolute; right: -3px; width: 3px; border-radius: 2px; background: #CCCCD1; }
.phone .side.a { top: 22%; height: 8%; }
.phone .side.b { top: 34%; height: 14%; }
/* The result screen sits higher (on the right in RTL), the camera a little lower. */
.phones .phone:last-child { margin-top: 56px; }

/* Screenshot showcase: one phone at a time (the store screenshots without backgrounds), with arrows. */
.showcase { padding: 88px 0 72px; }
.carousel { position: relative; width: min(440px, 100% - 120px); margin-inline: auto; }
.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: center; }
.arrow { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(10, 10, 10, 0.18); transition: transform 0.15s ease, opacity 0.15s ease; }
.arrow:hover { transform: scale(1.06); }
.arrow:disabled { opacity: 0.25; cursor: default; transform: none; }
.arrow svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { right: -72px; }
.arrow.next { left: -72px; }
/* Stops and restarts the automatic sliding (required for content that moves on its own). */
.autoplay { display: flex; align-items: center; gap: 8px; margin: 18px auto 0; height: 40px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.autoplay svg { width: 16px; height: 16px; fill: currentColor; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.card h3 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.step { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 800; }

/* Feature rows */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.feature-text > p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 480px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.feature-art img { width: 100%; max-width: 460px; margin-inline: auto; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Final call to action */
.final { background: var(--ink); color: var(--white); text-align: center; padding: 96px 0; }
.final img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 22px; }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.final p { margin: 14px 0 28px; color: #BDBDB8; font-size: 18px; }

/* Footer */
.footer { padding: 48px 0; text-align: center; color: var(--muted); font-size: 14px; }
.footer .brand { justify-content: center; color: var(--ink); margin-bottom: 14px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 14px; }
.footer nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer nav a:hover { text-decoration: underline; }
.footer p + p { margin-top: 6px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: #333; font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-inline-start: 22px; margin: 8px 0; display: grid; gap: 8px; }
.legal a { color: var(--lime-text); }
.legal h3 { font-size: 18px; font-weight: 700; margin: 22px 0 6px; }

/* Phones */
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .feature.flip .feature-text { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .section, .final { padding: 64px 0; }
  .phone { --w: min(200px, 41vw); }
  .phones { gap: 16px; }
  .phones .phone:last-child { margin-top: 36px; }
  .showcase { padding: 64px 0 48px; }
  .carousel { width: calc(100% - 96px); }
  .arrow { width: 40px; height: 40px; margin-top: -20px; }
  .arrow.prev { right: -46px; }
  .arrow.next { left: -46px; }
}
