/* Pophy Monitor marketing site - hand-written CSS, no build.
   Radius scale (one system): cards 16px, controls 12px, chips 999px.
   One accent: Pophy Yellow #ffc533 with black ink on solid fills (design/brand/pophy-monitor).
   Band green appears ONLY inside the Clean Score gauge (semantic data color). */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/google-sans-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/google-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/google-sans-500-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/google-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/google-sans-600-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/google-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/google-sans-700-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/google-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-tint: #fffbeb;
  --surface-deep: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #ffc533;
  --brand-hover: #f5b400;
  --on-brand: #000000;
  --accent-text: #b45309;
  --band-green: #16a34a;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 16px 40px -24px rgb(15 23 42 / 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-tint: #2b2515;
    --surface-deep: #172033;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #334155;
    --brand: #ffc533;
    --brand-hover: #ffd466;
    --on-brand: #000000;
    --accent-text: #ffc533;
    --band-green: #22c55e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -24px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Google Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 12px; padding: 0.75rem 1.5rem; font: inherit; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 4.25rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.logo img { height: 1.75rem; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.main-nav a:hover { color: var(--ink); }
.main-nav .btn { padding: 0.5rem 1.1rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 0.5rem; cursor: pointer; margin-inline-start: auto; }

/* ---- Hero ---- */
.hero { padding-block: 4.5rem 5rem; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero p { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 16px; box-shadow: var(--shadow);
  transform: rotate(-3deg); max-width: 26rem; margin-inline: auto;
}

/* ---- Steps ---- */
.steps { padding-block: 4rem; background: var(--surface); border-block: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--muted); margin: 0; }

/* ---- Bento ---- */
.bento { padding-block: 4.5rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.cell .icon { color: var(--accent-text); width: 1.75rem; height: 1.75rem; }
.cell p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.cell-qr { grid-row: span 2; }
.cell-qr img { border-radius: 12px; border: 1px solid var(--line); margin-top: auto; background: #fff; }
.cell-tint { background: var(--surface-tint); }
.cell-deep { background: var(--surface-deep); }
.lang-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.75rem; }
.lang-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.75rem;
  font-size: 0.85rem; color: var(--muted); background: var(--surface);
}

/* ---- Gauge (real Clean Score component) ---- */
.gauge-wrap { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 0.5rem; }
.gauge { width: 7.5rem; height: 7.5rem; }
.gauge .track { stroke: var(--line); }
.gauge .value { stroke: var(--band-green); transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.gauge text { fill: var(--ink); font: 700 1.7rem 'Google Sans', sans-serif; }
.gauge-legend { font-size: 0.85rem; color: var(--muted); }

/* ---- Audiences ---- */
.audiences { padding-block: 3.5rem; background: var(--surface); border-block: 1px solid var(--line); text-align: center; }
.audience-chips { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.audience-chips span {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 0.5rem 1.25rem; font-weight: 500;
}

/* ---- FAQ ---- */
.faq { padding-block: 4.5rem; }
.faq-list { max-width: 46rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; padding-block: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-text); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: var(--on-brand); padding-block: 4rem; text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band .btn { background: var(--on-brand); color: #fef3c7; margin-top: 0.75rem; }
.cta-band .btn:hover { background: #5c2506; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-fab {
  position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 30;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.1s;
}
.whatsapp-fab:hover { background: #1ebe5b; }
.whatsapp-fab:active { transform: scale(0.95); }
.whatsapp-fab svg { width: 1.9rem; height: 1.9rem; }

/* ---- Footer ---- */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 2rem; color: var(--muted); font-size: 0.875rem; }

/* ---- Legal pages ---- */
.legal { padding-block: 3.5rem; max-width: 46rem; margin-inline: auto; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: 0.875rem; }

/* ---- Reveal on scroll (disabled under reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gauge .value { transition: none; }
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-block: 2.5rem 3rem; }
  .hero-visual img { max-width: 19rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .cell-qr { grid-row: auto; }
  .cell-qr img { max-width: 14rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 4.25rem; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 0.75rem; }
  .main-nav .btn { margin-top: 0.5rem; }
}
