/* === Once shared stylesheet ============================================ */

/* The public site speaks the app's graphic language: a single, fixed
   all-dark scheme — black page, white content — with NO theme toggle (the
   app is always black with white text). A flat chrome bar, radius-12 cards
   and buttons, no gradients and no drop-shadows. Every token below maps to
   the app's design tokens (PRIMARY #000000, RADIUS 12, the WHITE_* alpha
   scale). This is the single source of truth for every public page,
   including the legal pages. The legacy --coral* names are kept only so
   existing rules keep cascading; they all resolve to neutral white now. */
:root {
  color-scheme: dark;

  --coral: #FFFFFF;
  --coral-deep: #DCDCDC;
  --coral-100: rgba(255, 255, 255, 0.06);
  --coral-150: rgba(255, 255, 255, 0.12);
  --coral-border: rgba(255, 255, 255, 0.14);
  --coral-border-2: rgba(255, 255, 255, 0.26);
  --bg: #000000;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.70);
  --text-3: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.10);
  --menu-bg: #1C1C1C;

  /* App radius token: RADIUS = 12 for cards / buttons / inputs / menus.
     --radius-pill stays 999 for true capsule micro-tags only. */
  --radius: 12px;
  --radius-pill: 999px;

  /* The app is flat — no gradients, no drop-shadows on buttons or cards.
     The ONLY shadow kept is a soft lift under the floating language menu:
     the web analogue of the app's BottomSheet, which does carry a shadow. */
  --shadow-menu: 0 14px 38px -12px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);

  --font: 'Noto Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Check glyph for the trust bullets. The bullet circle is var(--coral)
     (white), so the glyph is the page bg colour: black on the white bullet. */
  --check-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7l3 3 6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--coral); color: var(--bg); }

/* === Header (shared on every page) ===
   A solid pure-black bar carrying the white "Once" wordmark — the same
   flat black chrome the app wears at the top (its TabStrip). The whole
   page is black, so the header is seamless with it: no border and no
   shadow, exactly like the app. */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #000000;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; transition: opacity .15s ease; margin-inline-end: auto; }
.brand:hover { opacity: 0.75; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: #FFFFFF; }
/* Login link in the header — same chip language as the lang switcher so the
   two read as one cluster on the right. */
.header-link {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-pill);
  padding: 8px 14px; transition: all .15s ease;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.header-link:hover {
  border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; background: rgba(255, 255, 255, 0.16);
}

/* Language switcher — white-on-black, the app's white-alpha chrome. */
.lang-switcher { position: relative; }
.lang-btn {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-pill);
  padding: 8px 14px; cursor: pointer; transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; background: rgba(255, 255, 255, 0.16);
}
.lang-chevron { transition: transform .15s ease; flex-shrink: 0; }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
/* The dropdown itself is a popover floating over the black page — the web
   analogue of an app sheet, so it sits on a slightly lifted dark surface
   with a soft shadow. */
.lang-menu {
  position: absolute; top: calc(100% + 8px);
  inset-inline-end: 0;
  background: var(--menu-bg);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius);
  list-style: none; padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow-menu);
  z-index: 100;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; padding: 0; list-style: none; }
.lang-menu button {
  background: none; border: none;
  width: 100%;
  text-align: start;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.lang-menu button:hover { background: var(--coral-100); color: var(--coral); }
.lang-menu button.active { color: var(--coral); font-weight: 700; }
.lang-check { opacity: 0; flex-shrink: 0; }
.lang-menu button.active .lang-check { opacity: 1; }

/* === Section + typography defaults === */
section { padding: 80px 28px; position: relative; }
.container { max-width: 1080px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}

h1 {
  font-size: 72px; font-weight: 800; letter-spacing: -2.4px;
  line-height: 1.04; color: var(--text);
}
h2 {
  font-size: 48px; font-weight: 800; letter-spacing: -1.4px;
  line-height: 1.1; color: var(--text);
}
h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text); margin-bottom: 8px;
}
p { color: var(--text-2); }

/* === Buttons ===
   Identical to the app's <Button> on a dark surface: 56px tall, radius 12,
   an 18px label, a flat fill, NO shadow and NO hover lift. primary = a
   solid white fill with black text (the app's `onPrimary`); secondary = a
   soft white-alpha wash with a white semibold label (`onPrimaryGhost`). */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 32px; height: 56px; border-radius: var(--radius);
  font-weight: 800; font-size: 18px; letter-spacing: -0.2px;
  border: none; cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.btn-primary {
  background: var(--coral); color: var(--bg);
}
.btn-primary:hover { opacity: 0.86; }
.btn-primary:active { opacity: 0.78; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.14); color: var(--text);
  font-weight: 600;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.22); }
.btn-secondary:active { background: rgba(255, 255, 255, 0.20); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-weight: 600; font-size: 15px;
  padding: 16px 8px;
  transition: color .15s ease;
}
.btn-link:hover { color: var(--coral); }

/* === Pills (small capsule micro-tags) === */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--coral-deep);
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
}
.pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--coral);
}

/* === Hero === */
.hero {
  padding: 40px 28px 56px;
  text-align: center;
}
.hero-slogan {
  font-size: 13px; font-weight: 700; color: var(--coral);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 30px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-slogan::before, .hero-slogan::after {
  content: ''; width: 28px; height: 1px; background: var(--coral); opacity: .55;
}
.hero h1 {
  max-width: 820px; margin: 0 auto;
  font-size: 60px; letter-spacing: -2px;
}
.hero p {
  max-width: 580px; margin: 26px auto 0;
  font-size: 19px; color: var(--text-2); line-height: 1.6;
}
.hero-cta {
  margin-top: 36px;
  display: flex; gap: 12px;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.hero-secondary-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-3);
  border-bottom: 1px dashed var(--coral-border);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-secondary-link:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}
.hero-pills {
  margin: 36px auto 0;
  max-width: 460px;
  display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center;
}

/* === Problem === */
.problem h2 { max-width: 760px; }
.problem .section-visual img { max-width: 560px; }
.problem .section-visual { padding-top: 8px; }
.problem-body {
  margin-top: 24px;
  font-size: 19px; color: var(--text-2); line-height: 1.65;
  max-width: 660px;
}
.problem-points {
  margin-top: 44px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.problem-point {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
}

/* === Asymmetric section split (text + visual) === */
.section-split {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.section-split.flip .section-visual { order: -1; }

.section-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
/* Transparent illustrations. max-width:100% keeps them inside the
   container on every screen (never wider than the viewport), and a small
   max-height keeps them compact (the art is ~square, so height drives the
   display size). Centered; the transparent surround needs no box. */
.section-visual img {
  width: auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  margin-inline: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Solution text body + points (also used inside .section-split) */
.solution-text .solution-body {
  margin-top: 24px;
  font-size: 18px; color: var(--text-2); line-height: 1.65;
  max-width: 520px;
}
.solution-points {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.solution-point {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.solution-point::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex-shrink: 0;
}

/* === Hero illustration === */
.hero-visual {
  margin: 12px auto 0;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 880px;
}
.hero-visual img {
  width: auto;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  margin-inline: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* === Small section visuals (how / cta lead-in) === */
.lead-visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.how .how-grid + .lead-visual { margin: 36px 0 0; }
.lead-visual img {
  width: auto;
  max-width: 100%;
  max-height: 220px;
  height: auto;
  margin-inline: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* === Illustrations =====================================================
   Pre-baked transparent WebPs: the white-on-transparent set, drawn for the
   site's single dark scheme. No blur halo and no blob mask, so every image
   is a clean rectangle of just the drawing. display:contents collapses the
   <picture> box so the existing
   .hero-visual/.section-visual/.lead-visual img sizing still applies. */
.hero-visual picture,
.section-visual picture,
.lead-visual picture { display: contents; }

/* === When .why is split, stack items vertically === */
.why .section-split .why-grid {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why .section-split h2 { font-size: 48px; letter-spacing: -1.4px; }

/* === How it works === */
.how h2 { max-width: 720px; }
.how-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.how-card {
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius);
  padding: 28px 28px;
  transition: background .25s ease, border-color .25s ease;
}
.how-card:hover {
  background: var(--coral-150);
  border-color: var(--coral-border-2);
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--coral); color: var(--bg);
  font-size: 12px; font-weight: 800;
  margin-bottom: 16px;
}
.how-card h3 { font-size: 19px; margin-bottom: 6px; }
.how-card p { font-size: 14px; line-height: 1.55; }

/* === Why (open typography, no cards) === */
.why h2 { max-width: 700px; font-size: 56px; letter-spacing: -1.6px; }
.why-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px;
}
.why-item {
  position: relative;
  padding-inline-start: 22px;
}
.why-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.why-item h3 { font-size: 22px; margin-bottom: 8px; }
.why-item p { font-size: 16px; line-height: 1.65; }

/* === Trust === */
.trust h2 { max-width: 600px; }
.trust-body {
  margin-top: 24px;
  font-size: 18px; color: var(--text-2); line-height: 1.65;
  max-width: 620px;
}
.trust-list {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: var(--text);
}
/* Single bullet: a coloured circle with the --check-img glyph composited
   on top — always the page bg colour against the var(--coral) circle. */
.trust-list li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background-color: var(--coral);
  background-image: var(--check-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  flex-shrink: 0;
}
.trust .section-visual { margin: 24px auto 8px; }
.trust .section-visual + .trust-list { margin-top: 16px; }

/* === Final CTA === */
.cta {
  text-align: center;
  padding: 96px 28px;
}
.cta h2 {
  max-width: 660px; margin: 0 auto;
  font-size: 56px; letter-spacing: -1.8px;
}
.cta p {
  margin-top: 22px; max-width: 560px; margin-inline: auto;
  font-size: 19px; line-height: 1.6;
}
.cta-actions {
  margin-top: 40px;
  display: flex; gap: 12px;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  padding: 56px 28px 72px;
  text-align: center;
  color: var(--text-3); font-size: 13px;
}
.cta-contact {
  margin: 64px auto 0;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  display: inline-block;
  max-width: 580px;
}
.cta-contact a {
  color: var(--coral);
  font-weight: 700;
  margin-inline-start: 4px;
}
.cta-contact a:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}
.footer-links {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 18px;
}
.footer-links a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
}
.footer-links a:hover { color: var(--coral); text-decoration: underline; }
.footer-links .sep { color: var(--text-3); opacity: 0.4; }

/* === Legal pages (privacy / terms / child-safety) === */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  line-height: 1.75;
}
.legal h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--text);
}
.legal .updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.4px;
  margin-bottom: 56px;
  padding: 8px 16px;
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-pill);
}
.legal .updated::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.4px;
}
.legal p { margin-bottom: 14px; font-size: 16px; color: var(--text-2); line-height: 1.75; }
.legal ul { padding-inline-start: 22px; margin-bottom: 14px; }
.legal li { font-size: 16px; margin-bottom: 8px; color: var(--text-2); line-height: 1.75; }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--coral); font-weight: 600; }
.legal a:hover { color: var(--coral-deep); text-decoration: underline; }
.legal .contact {
  margin-top: 64px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--coral-100);
  border: 1px solid var(--coral-border);
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}
.legal .contact a { color: var(--coral); font-weight: 700; }
.legal .contact a:hover { color: var(--coral-deep); text-decoration: underline; }

/* === Responsive === */
@media (max-width: 880px) {
  section { padding: 56px 24px; }
  .problem { padding-top: 36px; }
  .hero { padding: 24px 24px 40px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.3px; }
  .hero p { font-size: 17px; }
  .hero-pills { gap: 7px; max-width: 360px; }
  .pill { font-size: 12px; padding: 7px 13px; }
  .how-card { padding: 22px 22px; }
  .how-num { width: 28px; height: 28px; margin-bottom: 12px; }
  .how-card h3 { font-size: 18px; }
  h1 { font-size: 36px; letter-spacing: -1.2px; }
  h2 { font-size: 32px; letter-spacing: -0.8px; }
  .why h2, .cta h2 { font-size: 36px; letter-spacing: -1px; }
  .why .section-split h2 { font-size: 36px; letter-spacing: -1px; }
  .section-split,
  .section-split.flip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-split.flip .section-visual { order: 0; }
  /* Guaranteed inset from the screen edges on mobile, plus smaller caps.
     padding-inline on the wrapper + img max-width:100% means the art can
     never reach the viewport edge regardless of its aspect. */
  .hero-visual,
  .section-visual,
  .lead-visual { padding-inline: 24px; }
  .section-visual img { max-width: 100%; max-height: 200px; margin-inline: auto; }
  .hero-visual { margin-top: 8px; max-width: 640px; }
  .hero-visual img { max-width: 100%; max-height: 240px; }
  .lead-visual img { max-width: 100%; max-height: 180px; }
  .how-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta { padding: 72px 24px; }
  /* CTAs stack full-width on phones — the app's full-bleed button layout. */
  .hero-cta, .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .hero-cta .btn-primary, .hero-cta .btn-secondary,
  .cta-actions .btn-primary, .cta-actions .btn-secondary { width: 100%; }
}
@media (max-width: 760px) {
  .legal { padding: 48px 24px 72px; }
  .legal h1 { font-size: 36px; letter-spacing: -1.2px; }
  .legal h2 { font-size: 19px; margin-top: 40px; }
  .legal .contact { padding: 22px 24px; }
}
