/* מפת מחשבות — marketing site (Playful Studio tokens) */

/* ---------------------------------------------------------------------------
 * Self-hosted fonts.
 *
 * Previously loaded from fonts.googleapis.com, which cost a render-blocking
 * stylesheet on a third-party origin plus two extra DNS/TLS handshakes, and
 * sent every visitor's IP to Google (a needless GDPR surface for an Israeli
 * consumer site). These are the same Rubik + Varela Round subsets the app
 * already self-hosts via next/font, so both surfaces now render identically
 * with zero third-party requests.
 *
 * Hebrew is declared FIRST so it wins for Hebrew codepoints, and both files
 * are woff2-only (universally supported; no legacy fallback needed).
 * Rubik is a variable font — one file covers weights 400-800.
 * Both families are SIL Open Font License, so self-hosting is permitted.
 * --------------------------------------------------------------------------- */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+307-308, U+590-5FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Varela Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/varela-round-hebrew.woff2") format("woff2");
  unicode-range: U+307-308, U+590-5FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Varela Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/varela-round-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --surface: #fff8f4;
  --surface-sunken: #f3ebe6;
  --card: #ffffff;
  --line: #eadfd8;
  --ink: #2d2a3e;
  --ink-soft: #4a455c;
  --ink-faint: #6b6578;
  --primary: #ff6b6b;
  --primary-strong: #e84e4e;
  --primary-soft: #ffe9e6;
  --on-primary: #2d2a3e;
  /* Text-safe variants. --primary-strong and --branch-2 are fill colours; as
     TEXT on --surface/--card they only reach ~3.5:1 and ~3.3:1, below WCAG AA.
     These darker values are for text only (5.1:1 and 5.7:1 respectively). */
  --primary-text: #c53434;
  --ok-text: #1b736c;
  --branch-2: #2a9d94;
  --branch-2-soft: #e8f9f7;
  --branch-4: #7c5cbf;
  --branch-4-soft: #f3eefc;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 8px 28px rgba(45, 42, 62, 0.08);
  --shadow-lift: 0 16px 40px rgba(45, 42, 62, 0.14);
  --font: "Rubik", system-ui, sans-serif;
  --display: "Varela Round", "Rubik", system-ui, sans-serif;
  --header-h: 4.25rem;
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.bg-blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, color-mix(in srgb, var(--primary) 20%, transparent), transparent),
    radial-gradient(ellipse 55% 40% at 92% 8%, color-mix(in srgb, var(--branch-4) 16%, transparent), transparent),
    radial-gradient(ellipse 50% 35% at 50% 100%, color-mix(in srgb, var(--branch-2) 12%, transparent), transparent);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand .name {
  font-family: var(--display);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), #ff9f7a);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--on-primary);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.nav-primary {
  display: none;
  gap: 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-primary a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 0.75rem 0 1rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Below the nav breakpoint the header holds logo + theme + login + primary CTA
   + hamburger, which at 390px squeezed the primary CTA onto two lines. Login
   moves into the menu (where it now has an entry) so the CTA keeps one line. */
@media (max-width: 899px) {
  .header-actions .btn-ghost {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-primary {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  /* Padding alone left these at 38–39px, just under the 44px touch guideline —
     the header buttons are the primary conversion path on a phone. */
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow-lift);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ink:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding: 2.25rem 0 3rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 3.5rem 0 4rem;
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.8vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.fine {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Product mock */
.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-sunken) 70%, var(--card));
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock-dot:nth-child(1) {
  background: #ffb4b4;
}
.mock-dot:nth-child(2) {
  background: #ffe29a;
}
.mock-dot:nth-child(3) {
  background: #b8e6c4;
}

.mock-title {
  margin-inline-start: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.mock-canvas {
  position: relative;
  min-height: 280px;
  padding: 1.25rem;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mock-canvas svg {
  width: 100%;
  height: auto;
  min-height: 240px;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--primary-strong);
}

/* Cards grid */
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.icon-box.teal {
  background: var(--branch-2-soft);
  color: var(--branch-2);
}

.icon-box.violet {
  background: var(--branch-4-soft);
  color: var(--branch-4);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card .how {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* Keyboard tour */
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.kbd-card {
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 0.85rem;
  box-shadow: var(--shadow);
}

.kbd {
  display: inline-flex;
  min-width: 3.2rem;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface-sunken));
  box-shadow: 0 2px 0 var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.kbd-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Steps */
.step-num {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.15rem 1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
  padding: 0.95rem 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: left;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.faq a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 3rem;
  background: linear-gradient(135deg, #2d2a3e 0%, #3d3558 55%, #4a3050 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  color: #fff;
}

.cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.cta-band .fine {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------------------
 * Long-form content pages (the guide and the comparison).
 *
 * The landing page is card-and-grid driven; these pages are prose, so they need
 * measure control, heading rhythm and a readable table. RTL-safe throughout:
 * padding-inline / border-inline-start rather than left/right.
 * --------------------------------------------------------------------------- */

.page-head {
  padding: 3rem 0 1.5rem;
}

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.page-head .lead {
  max-width: 42rem;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

.prose {
  max-width: 44rem;
  padding-bottom: 3rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  margin: 2.6rem 0 0.8rem;
}

.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.7rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-inline-start: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

/* :not(.btn) matters — without it this rule repaints the CTA button's label
   red on its red fill (1.3:1). Buttons bring their own colour. */
.prose a:not(.btn) {
  color: var(--primary-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:not(.btn):hover {
  color: var(--ink);
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
  box-shadow: var(--shadow);
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 34rem;
}

.cmp th,
.cmp td {
  padding: 0.8rem 0.95rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp thead th {
  background: var(--surface-sunken);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.cmp tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cmp td {
  color: var(--ink-soft);
}

.cmp tr:last-child th,
.cmp tr:last-child td {
  border-bottom: 0;
}

.cmp .yes {
  color: var(--ok-text);
  font-weight: 700;
}

/* Screen-reader-only text (used for the comparison table's caption). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
