/* Rolarix — home page.
   The legal pages keep styles.css; this file is the home page only.

   Palette comes from the app itself: its night-indigo background, its indigo
   buttons, the green of a gate that has just opened - plus the amber of the
   warning beacon that sits on a real gate. Amber is used for one thing only:
   the banner's progress along the boom. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #080a1c;
  --ink: #101331;
  --ink-2: #181c45;
  --line: rgba(190, 196, 255, 0.14);
  --indigo: #6366f1;
  --indigo-soft: #a5a8ff;
  --text: #eef0ff;
  --muted: #a3a9cf;
  --beacon: #ffb020;
  --open: #34d399;
  --paper: #f1f2f8;
  --paper-ink: #12142e;
  --paper-muted: #575d82;
  --max: 1180px;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 10, 28, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-solid { background: var(--indigo); color: #fff; }
.btn-solid:hover { background: #7578ff; }
.btn-line { border-color: rgba(190, 196, 255, 0.35); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.menu span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

/* Icons: one family, one weight, in a soft indigo tile. */
.ico {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(99, 102, 241, 0.16); color: var(--indigo-soft);
  border: 1px solid rgba(165, 168, 255, 0.22);
}
.ico svg { width: 22px; height: 22px; }
.icon-link { display: block; border-radius: 14px; text-decoration: none; }
.icon-link:hover .ico { background: var(--indigo); color: #fff; }

/* ---------------------------------------------------------------- banner */
.banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.banner > .wrap { position: relative; }
.banner::before {
  /* The app's own backdrop: one soft indigo light from the upper right. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 82% 8%, rgba(99, 102, 241, 0.42), transparent 62%),
    radial-gradient(40% 50% at 8% 100%, rgba(99, 102, 241, 0.16), transparent 70%);
}
.slides { position: relative; min-height: 640px; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 56px 0 120px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.7s ease, visibility 0s; }
.slide-copy > * { transform: translateY(14px); opacity: 0; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.7s ease; }
.slide.is-on .slide-copy > * { transform: none; opacity: 1; }
.slide.is-on .slide-copy > :nth-child(2) { transition-delay: 0.08s; }
.slide.is-on .slide-copy > :nth-child(3) { transition-delay: 0.16s; }
.slide h1, .slide h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 600; max-width: 14ch; }
.slide p { margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: 1.12rem; }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.slide-art { position: relative; height: 100%; min-height: 440px; display: flex; align-items: center; justify-content: center; }

/* Store badges: Apple's and Google's own artwork, unaltered, at one height. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; line-height: 0; border-radius: 9px; }
.badges img { height: 48px; width: auto; }

/* Devices: plain frames around real captures. */
.phone {
  position: relative; width: 250px; aspect-ratio: 560 / 1217; flex: none;
  border-radius: 38px; padding: 9px; background: #05060f;
  box-shadow: 0 0 0 1px rgba(190, 196, 255, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -20px rgba(99, 102, 241, 0.55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.badges img { height: 48px; }
.phone.android { aspect-ratio: 9 / 20; border-radius: 30px; }
.phone.android img { border-radius: 22px; }
.phone-pair { display: flex; align-items: center; }
.phone-pair .phone:first-child { z-index: 2; }
.phone-pair .phone + .phone { margin-left: -64px; transform: translateY(34px) scale(0.9); opacity: 0.9; }

.dash {
  width: min(100%, 520px); border-radius: 22px; padding: 10px; background: #05060f;
  box-shadow: 0 0 0 1px rgba(190, 196, 255, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(99, 102, 241, 0.5);
}
.dash img { width: 100%; border-radius: 14px; }
.dash figcaption { padding: 10px 6px 2px; font-size: 13px; color: var(--muted); }
.dash-stack { display: grid; gap: 18px; justify-items: end; width: 100%; padding-top: 12px; }
.dash-stack .dash:first-child { justify-self: start; width: min(88%, 470px); }
.dash-stack .dash + .dash { margin-top: -70px; width: min(78%, 400px); }


/* The boom: the banner's control, drawn as the arm of a barrier gate.
   Each segment is one slide; the amber runs along the current one. */
.boom {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
}
.boom-pivot {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--night); color: var(--text); border: 2px solid var(--text);
}
.boom-pivot:hover { background: var(--ink-2); }
.boom-pivot svg { width: 16px; height: 16px; }
.boom-pivot .i-play { display: none; }
.banner.is-stopped .boom-pivot .i-play { display: block; }
.banner.is-stopped .boom-pivot .i-pause { display: none; }
.boom-arm { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.boom-seg {
  position: relative; flex: 1; height: 12px; padding: 0; border: 0; cursor: pointer;
  background: rgba(238, 240, 255, 0.2); border-radius: 6px; overflow: hidden;
}
.boom-seg::before { content: ""; position: absolute; inset: -14px 0; } /* a finger-sized target */
.boom-seg i { position: absolute; inset: 0; background: var(--beacon); transform: scaleX(0); transform-origin: left; border-radius: 6px; }
.boom-seg.is-done i { transform: scaleX(1); background: rgba(238, 240, 255, 0.75); }
.boom-seg.is-on i { animation: run var(--slide-ms, 6000ms) linear forwards; }
.banner.is-paused .boom-seg.is-on i { animation-play-state: paused; }
@keyframes run { to { transform: scaleX(1); } }
.boom-step { display: flex; gap: 8px; margin-left: auto; }
.boom-step button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: none; color: var(--text); border: 1px solid rgba(190, 196, 255, 0.35);
  display: grid; place-items: center;
}
.boom-step button:hover { border-color: var(--text); }
.boom-step svg { width: 16px; height: 16px; }
.boom-count { font: 500 13px/1 var(--body); color: var(--muted); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- sections */
.band { padding: 104px 0; }
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 18ch; }
.band .lede { margin-top: 20px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }

/* Four facts under the banner, ruled like the label on the unit. */
.strip { border-bottom: 1px solid var(--line); background: var(--ink); }
.strip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; }
.strip-in > div { padding: 24px 24px 24px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.strip-in .ico { grid-row: span 2; }
.strip-in > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.strip dt { color: var(--muted); font-size: 14px; align-self: end; }
.strip dd { margin: 2px 0 0; font-family: var(--display); font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; align-self: start; }

/* What it is: the app's open button, working, beside four facts as ruled rows. */
.unit { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.try { display: grid; justify-items: center; text-align: center; }
.gate-btn {
  width: min(100%, 320px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none;
  box-shadow: 0 0 0 1px rgba(190, 196, 255, 0.18), 0 0 120px -10px rgba(99, 102, 241, 0.55);
  transition: transform 0.18s ease, box-shadow 0.5s ease;
}
.gate-btn:hover { transform: scale(1.02); }
.gate-btn:active { transform: scale(0.98); }
.gate-btn svg { width: 100%; height: 100%; }
.g-boom { transform-box: view-box; transform-origin: 85px 124px; transition: transform 1s cubic-bezier(.3, .8, .3, 1); }
.g-ring { transition: stroke-dashoffset 1.05s linear; }
.gate-btn.is-opening .g-ring, .gate-btn.is-open .g-ring { stroke-dashoffset: 0; }
.gate-btn.is-opening .g-boom, .gate-btn.is-open .g-boom { transform: rotate(-80deg); }
.gate-btn.is-open { box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.5), 0 0 120px -10px rgba(52, 211, 153, 0.6); }
.gate-state { margin-top: 26px; font-family: var(--display); font-weight: 500; font-size: 1.15rem; min-height: 1.6em; }
.gate-note { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Three steps: a real sequence, so the numbers mean something. */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 30px 32px 6px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--indigo-soft); margin-bottom: 22px; }
.steps strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
.steps span { display: block; margin-top: 10px; color: var(--muted); }
.facts { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 46px 190px 1fr; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts strong { padding-top: 10px; }
.facts span:not(.ico) { padding-top: 8px; }
.facts strong { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.facts span:not(.ico) { color: var(--muted); }

/* Specifications: a light sheet, like the label on the unit. */
.sheet { background: var(--paper); color: var(--paper-ink); }
.sheet .lede { color: var(--paper-muted); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid rgba(18, 20, 46, 0.14); vertical-align: top; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 2px solid var(--paper-ink); }
.specs th { width: 38%; font-weight: 500; color: var(--paper-muted); }
.specs td { font-weight: 600; }

/* The app: a row of real screens that scrolls sideways on small screens. */
.app-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 56px; }
.reel figure { margin: 0; }
.reel .phone { width: 100%; }
.reel figcaption { margin-top: 18px; }
.reel figcaption strong { display: block; font-family: var(--display); font-weight: 500; font-size: 0.98rem; }
.reel figcaption span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.96rem; }

/* In the car. */
.car { background: var(--ink); border-block: 1px solid var(--line); }
.car-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 52px; }
.car-grid .dash { width: 100%; }
.car-grid figcaption strong { display: block; color: var(--text); font-size: 15px; }

/* Four more things the app does. */
.extras { list-style: none; margin: 64px 0 0; padding: 40px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.extras li { display: grid; gap: 6px; align-content: start; }
.extras .ico { margin-bottom: 10px; }
.extras strong { font-family: var(--display); font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }
.extras span:not(.ico) { color: var(--muted); font-size: 0.96rem; }

/* About and contact. */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about p + p { margin-top: 16px; }
.about .body { color: var(--muted); }
.values { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; row-gap: 2px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.values .ico { grid-row: span 2; }
.values strong { font-family: var(--display); font-weight: 500; align-self: end; }
.values span:not(.ico) { color: var(--muted); }
.values a { color: var(--indigo-soft); }

.contact { background: var(--paper); color: var(--paper-ink); }
.contact .lede { color: var(--paper-muted); }
.contact-row { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 44px; }
.contact-item { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--paper-ink); }
.contact-item .ico { width: 60px; height: 60px; border-radius: 18px; background: var(--paper-ink); color: #fff; border-color: transparent; }
.contact-item .ico svg { width: 26px; height: 26px; }
a.contact-item:hover .ico { background: var(--indigo); }
.contact-item > span:not(.ico) { display: grid; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-item small { font-family: var(--body); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--paper-muted); }
.contact-item em { font-family: var(--body); font-style: normal; font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: var(--paper-muted); }

.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .nav { display: none; }
  .top .icon-link { margin-left: auto; }
  .menu { margin-left: 0; }
  .menu { display: block; }
  .top.is-open .nav { display: block; position: absolute; left: 0; right: 0; top: 68px; background: var(--night); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; }
  .top.is-open .nav ul { flex-direction: column; gap: 0; }
  .top.is-open .nav a { display: block; padding: 13px 0; font-size: 17px; color: var(--text); }

  .slides { min-height: 0; }
  .slide { position: relative; display: none; grid-template-columns: 1fr; gap: 26px; padding: 40px 0 124px; }
  .slide.is-on { display: grid; }
  .slide-art { min-height: 0; order: 2; }
  .phone { width: 190px; }
  .phone-pair .phone + .phone { margin-left: -48px; }
  .dash-stack .dash + .dash { margin-top: -40px; }
  .boom { bottom: 26px; }
  .boom-count { display: none; }

  .band { padding: 72px 0; }
  .unit, .sheet-grid, .about, .app-head { grid-template-columns: 1fr; gap: 36px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { grid-template-columns: 46px 1fr; }
  .facts li > span:not(.ico) { grid-column: 2; padding-top: 0; }
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-in > div { padding: 18px 16px 18px 0; }
  .strip-in > div + div { padding-left: 0; border-left: 0; }
  .strip-in > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); margin-top: 22px; }
  .facts li { row-gap: 4px; }
  .reel { grid-template-columns: repeat(4, 62vw); overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; margin-right: -24px; padding-right: 24px; }
  .reel figure { scroll-snap-align: start; }
  .car-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--max)); }
  .badges img { height: 44px; }
  .boom-step { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide-copy > * { transition: none; }
  .slide-copy > * { transform: none; opacity: 1; }
  .boom-seg.is-on i { animation: none; transform: scaleX(1); }
  .g-boom, .g-ring, .gate-btn { transition: none; }
}

.contact-item [lang="he"] { font-size: 0.8em; font-weight: 500; }
