/* Pophy Monitor marketing site - hand-written CSS, no build.
   Tokens follow design/brand/pophy-monitor/HANDOFF.md:
   - Radius scale (one system): cards 20px, controls pill (999px), media 20px.
   - One accent: Pophy Yellow #FFC533 with black ink on solid fills. Yellow is never text on white.
   - Black + yellow is the signature pairing: it is used for the header, the hero panel and one bento cell.
   - 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: #fcfbf9;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --surface-tint: #fff6d6;
  --ink: #221f1a;
  --muted: #575249;
  --line: #e2dfd8;
  --line-strong: #c9c4ba;
  --black: #000000;
  --on-black: #ffffff;
  --on-black-muted: rgb(255 255 255 / 0.68);
  --black-line: rgb(255 255 255 / 0.14);
  --brand: #ffc533;
  --brand-hover: #f5b400;
  --on-brand: #000000;
  --band-green: #17915a;
  --shadow: 0 1px 2px rgb(34 31 26 / 0.05), 0 24px 48px -28px rgb(34 31 26 / 0.3);
  --r-card: 20px;
  --r-pill: 999px;
  --container: 74rem;
  --gutter: 1.25rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1b1915;
    --surface-2: #211f1a;
    --surface-tint: #2d2614;
    --ink: #f3f1ec;
    --muted: #a8a295;
    --line: #2f2c26;
    --line-strong: #4a463f;
    --band-green: #2bb673;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -28px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
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;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---- Buttons (all pill) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--r-pill); padding: 0.8rem 1.6rem; font: inherit; font-weight: 700;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.12s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-black { background: var(--black); color: var(--on-black); }
.btn-black:hover { background: #2a2824; }
.on-black .btn-ghost { border-color: var(--black-line); color: var(--on-black); }
.on-black .btn-ghost:hover { border-color: var(--on-black); }

/* ---- Header (black, the signature pairing) ---- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 4rem;
  background: var(--black); color: var(--on-black);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 1.6rem; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--on-black-muted); font-size: 0.95rem; }
.main-nav a:hover { color: var(--on-black); }
.main-nav .btn { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.main-nav .btn-primary { color: var(--on-brand); }
.main-nav .btn-primary:hover { color: var(--on-brand); }
.menu-toggle { display: none; background: none; border: 0; color: var(--on-black); padding: 0.5rem; cursor: pointer; margin-inline-start: auto; }

/* ---- Hero: black text panel at the start side, photo bleeding to the far edge ---- */
.hero {
  background: var(--black); color: var(--on-black);
  border-bottom-left-radius: calc(var(--r-card) * 2); overflow: hidden; /* physical corner, independent of RTL */
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: min(44rem, calc(100dvh - 4rem));
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 4rem 4.5rem;
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline-end: clamp(1.5rem, 4vw, 4rem);
}
.hero-copy h1 { max-width: 15ch; }
.hero-copy p { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--on-black-muted); max-width: 32rem; margin-top: 0.5rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-visual { position: relative; min-height: 22rem; }
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 42% 50%;
}

/* ---- How it works: three steps, no cards, sparse dividers ---- */
.steps { padding-block: 5.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.step { position: relative; padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
.step-num {
  display: inline-block; font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.25rem; padding-bottom: 0.35rem;
  background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 100% 0.5rem;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Bento: 5 items, 5 cells. Row 1 = wide sticker cell + black SLA cell, row 2 = three equal cells ---- */
.bento { padding-block: 5.5rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cell {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.cell .icon {
  width: 2.75rem; height: 2.75rem; padding: 0.65rem; margin-bottom: 0.75rem;
  color: var(--ink); background: var(--surface-2); border-radius: var(--r-pill);
}
.cell h3 { font-size: 1.25rem; }
.cell p { color: var(--muted); margin: 0; font-size: 0.98rem; max-width: 32rem; }
.cell-qr { grid-column: span 2; flex-direction: row; align-items: center; gap: 2rem; padding-inline-end: 0; }
.cell-qr .cell-body { flex: 1 1 0; min-width: 0; }
.cell-qr img {
  flex: 0 0 auto; width: clamp(12rem, 24vw, 16rem); margin-inline-end: 1.75rem;
  border-radius: 16px; box-shadow: var(--shadow);
}
.cell-black { background: var(--black); color: var(--on-black); border-color: var(--black); }
.cell-black .icon { color: var(--on-brand); background: var(--brand); }
.cell-black p { color: var(--on-black-muted); }
.cell-tint { background: var(--surface-tint); border-color: transparent; }
.cell-tint .icon { background: var(--brand); color: var(--on-brand); }
.cell-deep { background: var(--surface-2); }
.cell-deep .icon { background: var(--surface); border: 1px solid var(--line); }
.lang-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }
.lang-chips span {
  border-radius: var(--r-pill); padding: 0.25rem 0.85rem;
  font-size: 0.875rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line);
}

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

/* ---- Pricing: one panel, tiers on top, one shared feature list below ---- */
.pricing { padding-block: 5.5rem; background: var(--surface-2); border-block: 1px solid var(--line); }
.pricing-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); }
.tier { padding: 2rem 1.75rem; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; }
.tier:last-child { border-inline-end: 0; }
.tier-count { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.tier-price { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.25rem; }
.tier-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-inline-start: 0.25rem; }
.tier-per { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }
.tier-per strong { color: var(--ink); font-weight: 600; }
.included { border-top: 1px solid var(--line); padding: 2rem 1.75rem 2.25rem; background: var(--surface); }
.included h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem 2rem; }
.included li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--ink); font-size: 0.98rem; }
.included li .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--on-brand); background: var(--brand); border-radius: var(--r-pill); padding: 0.2rem; }
.pricing-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.pricing-foot p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pricing-note { margin: 1rem 0.25rem 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Audiences: one strip, hairlines, no cards ---- */
.audiences { padding-block: 4rem; }
.audience-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem 1.25rem; }
.audience-strip div { padding-top: 1.25rem; font-weight: 600; font-size: 1.1rem; border-top: 2px solid var(--ink); }
.audiences h2 { font-size: 1.1rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }

/* ---- FAQ ---- */
.faq { padding-block: 5.5rem; background: var(--surface); border-block: 1px solid var(--line); }
.faq-list { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; padding-block: 1.15rem;
  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.5rem; font-weight: 400; color: var(--muted); transition: transform 0.2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.2rem; max-width: 42rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: var(--on-brand); padding-block: 5rem; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: inherit; margin: 0; max-width: 24ch; }

/* ---- 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: var(--r-pill);
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.12s;
}
.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: center; }
.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; }

/* ---- Motion: hero entry + reveal on scroll (disabled under reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-visual img { animation: fade 1s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gauge .value { transition: none; }
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .tier { padding: 1.75rem 1.25rem; }
  .included ul { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile: every multi-column layout collapses to one column ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2.75rem var(--gutter) 2.5rem; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-visual img { border-start-start-radius: var(--r-card); border-start-end-radius: var(--r-card); object-position: 35% 50%; }
  .steps, .bento, .pricing, .faq { padding-block: 3.5rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .cell-qr { grid-column: auto; flex-direction: column; align-items: stretch; gap: 1.25rem; padding-inline-end: 1.75rem; }
  .cell-qr img { width: 13rem; margin: 0.5rem auto 0; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .tier:last-child { border-bottom: 0; }
  .included { padding: 1.5rem; }
  .included ul { grid-template-columns: 1fr; }
  .pricing-foot { padding: 1.25rem 1.5rem; }
  .audience-strip { grid-template-columns: 1fr; gap: 1rem; }
  .audience-strip div { padding-top: 0.85rem; }
  .cta-band { padding-block: 3.5rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 4rem; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--black-line); padding: 0.75rem var(--gutter) 1.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 0.75rem; }
  .main-nav .btn { margin-top: 0.5rem; justify-content: center; }
  /* Legal pages: a two-link nav that never collapses behind the toggle */
  .main-nav.simple { display: flex; position: static; flex-direction: row; align-items: center; gap: 1rem; background: none; border: 0; padding: 0; }
  .main-nav.simple a { padding-block: 0; }
  .main-nav.simple .btn { margin-top: 0; }
}
