/* Home page. The product "stages" are always black, like a product page on Apple's or Tesla's
   site, whatever the visitor's theme. The waitlist and footer follow the theme (site.css).
   Each image slot is a CSS background over a dark glow, so a missing image never shows as broken. */

.stage {
  --s-bg: #000;
  --s-text: #f5f6f8;
  --s-muted: #8d93a3;
  --s-line: #1c2130;
  background: var(--s-bg);
  color: var(--s-text);
  color-scheme: dark;
}
.stage .lede { color: var(--s-muted); }

/* Header: transparent over the hero, then the usual blurred bar */
.home .site-header { background: color-mix(in srgb, #000 70%, transparent); border-bottom-color: #ffffff14; }
.home .site-header .logo .on-dark { display: block; }
.home .site-header .logo .on-light { display: none; }

.shot {
  background-color: #05070b;
  background-image: var(--img), radial-gradient(ellipse at 50% 60%, rgba(61, 220, 132, 0.10), transparent 60%);
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: clamp(28px, 7vh, 96px) 0 0;
  overflow: hidden;
}
/* The device image sits under the headline (never behind it) and fills the rest of the screen.
   hero.jpg is cropped to the device; its edges are pure black, so it blends into the page. */
.hero .shot {
  order: 2; width: 100%; margin-top: clamp(16px, 4vh, 40px);
  flex: 1 1 0; min-height: 300px; max-height: 760px;
  background: #000 url('/img/hero.jpg') center bottom / auto 100% no-repeat;
}
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.display {
  margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(40px, min(7.4vw, 10vh), 92px); text-wrap: balance;
}
.h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(32px, 5vw, 60px); text-wrap: balance; }
.hero .lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 36ch; text-align: center; }

/* Sections */
.sec { padding: clamp(80px, 14vh, 150px) 0; }
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(40px, 7vh, 72px); }
.sec-head .lede { text-align: center; max-width: 44ch; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--s-line); }
.steps li { padding-block: 28px 0; padding-inline: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: 0.08em; }
.steps h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--s-muted); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 480px) { .steps { column-gap: 16px; row-gap: 28px; } .steps li { padding-inline-end: 0; } .steps h3 { font-size: 22px; } }
@media (max-width: 340px) { .steps { grid-template-columns: 1fr; } }

/* Chat moment */
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(56px, 9vh, 96px); }
.moment .shot { aspect-ratio: 4 / 5; border-radius: 28px; --img: url('/img/session.jpg'); }
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 420px; justify-self: center; width: 100%; }
.bubble { padding: 14px 18px; border-radius: 22px; font-size: 17px; line-height: 1.35; max-width: 85%; }
.bubble.me { align-self: flex-end; background: #1d2333; border-end-end-radius: 6px; }
.bubble.ai { align-self: flex-start; background: color-mix(in srgb, var(--accent) 16%, #0b0f17); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-end-start-radius: 6px; }
.bubble.ai small { display: block; margin-top: 6px; font-size: 12px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 760px) { .moment { grid-template-columns: 1fr; } .moment .shot { aspect-ratio: 1 / 1; background-position: center 40%; } }

/* Engine */
.engine { position: relative; overflow: hidden; }
.engine .shot { position: absolute; inset: 0; --img: url('/img/engine.jpg'); opacity: 0.9; }
/* Only fade the top and bottom edges into the black page; the network itself frames the text */
.engine .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, transparent 18%, transparent 82%, #000 100%); }
.engine .wrap { position: relative; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { padding: 9px 18px; border-radius: 999px; border: 1px solid #ffffff22; background: #00000066; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; color: #d6d9e0; }

/* Platform */
.platform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: 24px; overflow: hidden; background: #0a0d13; border: 1px solid var(--s-line); display: flex; flex-direction: column; }
.tile .shot { aspect-ratio: 1 / 1; }
.tile div:last-child { padding: 22px 24px 26px; }
.tile h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--s-muted); font-size: 15px; }
.tile-app .shot { --img: url('/img/app.jpg'); }
.tile-device .shot { --img: url('/img/device.jpg'); }
.tile-cart .shot { --img: url('/img/cart.jpg'); }
@media (max-width: 860px) { .platform { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Waitlist (follows the theme) */
.join { padding: clamp(80px, 13vh, 140px) 0; text-align: center; }
.join .sec-head { margin-bottom: 32px; }
.waitlist { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: start; }
.waitlist .row { display: flex; gap: 10px; }
.waitlist .row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--input-bg); border: 1px solid var(--border); border-radius: 999px; padding: 13px 20px; }
.waitlist .row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.waitlist .form-status { text-align: center; }
.join .thanks { max-width: 520px; margin: 0 auto; }
@media (max-width: 480px) { .waitlist .row { flex-direction: column; } }

.legal { max-width: 720px; margin: 40px auto 0; font-size: 12.5px; color: var(--text-muted); text-align: start; }
.legal summary { cursor: pointer; text-align: center; list-style: none; font-size: 13px; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: " +"; }
.legal[open] summary::after { content: " –"; }
.legal h4 { margin: 18px 0 4px; font-size: 12.5px; color: var(--text); }
.legal p { margin: 0; }

/* Age gate */
.gate { position: fixed; inset: 0; z-index: 100; background: #000; color: #f5f6f8; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.gate-box { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.gate-box img { width: 120px; }
.gate-box h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.gate-box p { margin: 0; color: #8d93a3; font-size: 14px; }
.gate-actions { display: flex; gap: 10px; }
.gate .btn-ghost { color: #f5f6f8; border-color: #2a3040; }
html.gated body { overflow: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.home .site-footer { margin-top: 0; }

/* The page behind the stages is black, so the translucent header stays dark in light mode too;
   the waitlist section brings back the theme's own background. */
html.home body { background: #000; }
.join { background: var(--glow), var(--bg); background-repeat: no-repeat; color: var(--text); }

/* Region pop-up (Tesla-style): offered when the visitor seems to be in Israel. Sits above the age gate. */
.region { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.region-box { width: 100%; max-width: 400px; background: #0d1017; border: 1px solid #222838; border-radius: 22px; padding: 28px 24px 22px; color: #f5f6f8; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.region-box h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.35; }
.region-sub { margin: 4px 0 0; font-size: 15px; color: #8d93a3; }
.region-actions { display: flex; flex-direction: column; gap: 10px; }
.region-actions .btn { width: 100%; }
.region .btn-ghost { color: #f5f6f8; border-color: #2a3040; }
.region-switch { color: inherit; }

/* Hebrew: no negative tracking (it crowds Hebrew letters), system Hebrew fonts first */
html[dir="rtl"] body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial Hebrew', Arial, sans-serif; }
html[dir="rtl"] .display, html[dir="rtl"] .h2, html[dir="rtl"] .steps h3, html[dir="rtl"] .tile h3 { letter-spacing: 0; }
html[dir="rtl"] .display { line-height: 1.1; }
html[dir="rtl"] .steps .n { letter-spacing: 0; }
