/* RX3 Hebrew. A product page: black, the player's own screen as the hero,
   the system typeface (SF / SF Hebrew on Apple devices, Segoe UI on Windows),
   and one accent, the blue the RX3 uses for a selected row. Layout uses
   logical properties, so the Hebrew (rtl) and English (ltr) pages share it. */

:root {
  --bg: #000;
  --tile: #101112;
  --tile-2: #17181a;
  --line: #26282b;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --blue: #007de6;
  --blue-text: #3b9cff;
  --wrap: 1040px;
  --wide: 1280px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Hebrew", "Segoe UI", "Noto Sans Hebrew", "Noto Sans", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wide { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* Latin headlines tighten; Hebrew is never tracked. */
h1, h2 { font-weight: 700; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -0.025em; }

/* Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 30; height: 48px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav .name { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav .links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav .links a { color: var(--text-2); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .buy {
  background: var(--blue); color: #fff; border-radius: 999px; padding: 4px 13px; font-weight: 500;
}
.nav .buy:hover { text-decoration: none; filter: brightness(1.1); }
@media (max-width: 720px) { .nav .links a.opt { display: none; } }

/* Hero ---------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 9vw, 104px); }
.hero h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1.04; }
.hero .sub { margin-top: 18px; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; color: var(--text-2); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 26px; font-size: clamp(17px, 1.8vw, 20px); }
.cta a::after { content: " ›"; }
[dir="rtl"] .cta a::after { content: " ‹"; }
.devices { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.beta { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.hero .stage { margin-top: clamp(40px, 6vw, 64px); }

/* The player's screen ----------------------------------------------------- */
.screen {
  position: relative; border-radius: clamp(10px, 1.6vw, 18px); overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
}
.screen img, .screen video { width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: 16px; font-size: 14px; color: var(--text-3); text-align: center; }

/* Before / after slider: stock on top, clipped to the start side. */
.compare { --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare .after, .compare .before { position: absolute; inset: 0; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .bar {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); pointer-events: none;
}
.compare .knob {
  position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center;
  font: 600 15px/1 var(--font); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.sides { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.sides .mod { color: var(--blue-text); }

/* Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(88px, 13vw, 160px); }
.section + .section { padding-top: 0; }
.headline { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.07; }
.lead { margin-top: 18px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--text-2); font-weight: 500; max-width: 34em; }
.center .lead { margin-inline: auto; }
.lead strong { color: var(--text); font-weight: 600; }
.media { margin-top: clamp(36px, 5vw, 56px); }

/* Two detail tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--tile); border-radius: 24px; padding: clamp(28px, 4vw, 44px); overflow: hidden; }
.tile h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.15; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.strip { position: relative; margin-top: 32px; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.strip img { width: 100%; }
.strip .b { position: absolute; inset: 0; transition: opacity 0.6s ease; }
.strip.on .b { opacity: 0; }
.flip { display: flex; gap: 6px; margin-top: 16px; font-size: 13px; }
.flip button {
  font: inherit; color: var(--text-2); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.flip button[aria-pressed="true"] { color: #fff; background: var(--tile-2); border-color: #3a3c40; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 72px); }
.specs div { border-top: 1px solid var(--line); padding-top: 22px; }
.specs b { display: block; font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1; }
.specs span { display: block; margin-top: 10px; color: var(--text-2); font-size: 16px; }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } }

/* Device list (under specs) */
.device-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.device-card { background: var(--tile); border-radius: 16px; padding: 22px 24px; }
.device-card b { display: block; font-size: 19px; font-weight: 700; }
.device-card span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
@media (max-width: 720px) { .device-list { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--tile); border-radius: 20px; padding: 28px; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 600; color: var(--blue-text); margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.steps a { display: inline-block; margin-top: 12px; font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Order */
.order { background: var(--tile); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } }
.order .price { margin-top: 22px; font-size: clamp(44px, 5vw, 56px); font-weight: 700; line-height: 1; }
.order .price small { font-size: 17px; font-weight: 500; color: var(--text-2); }
.order ul { margin: 24px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.order li { padding-block: 10px; border-top: 1px solid var(--line); }
/* Device picker in form */
.device-field { border: 0; padding: 0; margin: 0; }
.device-field legend { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.device-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.device-option { display: block; cursor: pointer; }
.device-option input { position: absolute; opacity: 0; pointer-events: none; }
.device-option span {
  display: block; text-align: center; padding: 14px 8px; border-radius: 12px;
  background: #000; border: 1px solid #333538; font-size: 15px; font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.device-option:hover span { border-color: #555; }
.device-option input:checked + span { border-color: var(--blue); background: rgba(0, 125, 230, 0.12); color: var(--blue-text); }
.device-option input:focus-visible + span { outline: 2px solid var(--blue-text); outline-offset: 2px; }

.form { display: grid; gap: 18px; align-content: start; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  background: #000; color: var(--text); border: 1px solid #333538;
  font: 400 17px var(--font);
}
.field input:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 4px rgba(0, 125, 230, 0.25); }
.field input.serial { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; direction: ltr; }
[dir="rtl"] .field input.serial { text-align: right; }
.field input[aria-invalid="true"] { border-color: #ff453a; }
.field .hint { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.button {
  height: 52px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--blue); color: #fff; font: 600 17px var(--font);
}
.button:hover { filter: brightness(1.1); }
.form-status { display: none; font-size: 15px; }
.form-status.show { display: block; }
.form-status.error { color: #ff6961; }
.form-status.info { color: var(--text-2); }

[hidden] { display: none !important; }
.button:disabled { opacity: 0.55; cursor: default; filter: none; }

/* Voucher: a small link in the form opens the code field. */
.voucher-toggle {
  font: 400 15px var(--font); color: var(--blue-text); background: none; border: 0; padding: 0;
  cursor: pointer; text-align: start;
}
.voucher-toggle:hover { text-decoration: underline; }
.voucher-toggle[aria-expanded="true"] { color: var(--text-2); }
.voucher .field { margin-top: 14px; }
/* Honeypot for bots: off screen, never focused. */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* After a voucher is redeemed: the personal link. */
.order-done { display: grid; gap: 16px; align-content: start; outline: none; }
.order-done h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.1; }
.order-done > p { color: var(--text-2); }
.order-done .hint { font-size: 13px; color: var(--text-3); }
.done-eyebrow, .dl-eyebrow { font-size: 14px; font-weight: 600; color: var(--blue-text); }
.field input.done-link { font: 400 14px ui-monospace, "SF Mono", Menlo, monospace; direction: ltr; text-align: left; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done-actions .button { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 20px; }
a.button { text-decoration: none; }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #3a3c40; }
.button.secondary:hover { box-shadow: inset 0 0 0 1px var(--text-2); filter: none; }

/* Download page. */
.dl { padding-top: clamp(56px, 9vw, 104px); }
.dl .headline { font-size: clamp(40px, 6vw, 72px); }
.dl-card { margin-top: clamp(32px, 5vw, 48px); }
.dl-facts { margin: 24px 0 0; display: grid; gap: 0; }
.dl-facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.dl-facts dt { color: var(--text-2); }
.dl-facts dd { margin: 0; font-weight: 600; }
.dl-facts .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; direction: ltr; }
.dl-state { display: grid; align-content: start; }
.dl-panel { display: grid; gap: 14px; align-content: start; }
.dl-panel h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.dl-panel p { color: var(--text-2); }
.dl-panel .small { font-size: 13px; color: var(--text-3); }
.dl-panel .button { padding-inline: 24px; justify-self: start; }
.button.big { height: 64px; font-size: 19px; justify-self: stretch; }
.dl-file { font: 400 14px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-2); direction: ltr; text-align: start; overflow-wrap: anywhere; }
.dl-wait { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-inline-end: 10px; animation: dl-pulse 1.6s ease-in-out infinite; }
@keyframes dl-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dl-wait { animation: none; } }
.dl-install { margin-top: clamp(64px, 9vw, 104px); }
.dl-install .steps { margin-top: 28px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--text-2); max-width: 44em; }

/* Footer */
.footer { padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--text-3); }
.footer p + p { margin-top: 8px; }
.footer a { color: var(--text-2); }

/* Motion: content rises in as it enters. None for reduced motion or no JS. */
.js .rise { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
}
.nb { white-space: nowrap; }
