/* היפוכונדר — דף הנחיתה.
   הטוקנים זהים ל-src/styles/tokens.css של האפליקציה (וריאנט הלילה): רקע
   כמעט-שחור, ורוד זוהר כמבטא יחיד, Karantina לכותרות ו-Heebo לגוף.
   כיווניות: RTL — תכונות לוגיות בלבד, בלי left/right פיזיים. */

:root {
  /* דיו */
  --ink: #f3eef3;
  --ink-2: rgba(243, 238, 243, 0.72);
  --ink-3: rgba(243, 238, 243, 0.5);

  /* משטחים */
  --paper: #100e14;
  --backdrop: #08060b;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-raised: #1c1522;
  --line: rgba(243, 238, 243, 0.32);
  --line-soft: rgba(255, 255, 255, 0.09);
  --rail: rgba(243, 238, 243, 0.26);

  /* מותג */
  --accent: #ff2e88;
  --accent-hover: #ff4c9c;
  --accent-ink: #ff5c9e;
  --accent-contrast: #140a10;
  --taken: #4ee1a0;
  --taken-soft: rgba(78, 225, 160, 0.16);
  --due: #ff8a5c;

  /* גיאומטריה */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 44px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 18px rgba(255, 46, 136, 0.8);
  --ring-accent: inset 0 0 0 1.5px rgba(255, 46, 136, 0.5);
  --glow-card: 0 14px 44px rgba(255, 46, 136, 0.14);

  --display: "Karantina", Impact, sans-serif;
  --body: "Heebo", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--r-full);
  text-decoration: none;
}
.skip:focus { inset-block-start: 16px; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ── טיפוגרפיה ─────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

h1 {
  font-size: clamp(56px, 11.5vw, 104px);
  line-height: 0.86;
  color: #fff;
  margin-block: 10px 0;
}

.h2 {
  font-size: clamp(36px, 6.2vw, 58px);
  line-height: 0.92;
  color: #fff;
}

h3 { font-size: 30px; line-height: 1; color: #fff; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-3);
  margin: 0;
}

.lead {
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--ink-2);
  max-width: 46ch;
  margin-block: 18px 0;
}

p { margin-block: 0; }

/* ── סרגל עליון ─────────────────────────────────────────── */

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(12, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line-soft);
}

.topbar__in {
  max-width: 1080px;
  margin-inline: auto;
  padding: 12px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.wordmark:hover { color: #fff; }
.wordmark__icon { border-radius: 8px; }

.topnav { display: flex; gap: 22px; }
.topnav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
}
.topnav a:hover { color: var(--ink); }

@media (max-width: 620px) {
  .topnav a:not(:last-child) { display: none; }
}

/* ── HERO ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 116px);
  overflow: hidden;
}

/* בריכת האור שמאחורי הטלפון — היחידה בעמוד */
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -140px;
  inset-inline-end: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255, 46, 136, 0.14), transparent 62%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}
/* בלי זה פריט גריד לא יורד מתחת לרוחב המינימלי של תוכנו — והטלפון (338px)
   מרחיב את כל העמוד מעבר למסך צר. body{overflow-x:hidden} אז *מסתיר* את
   העודף במקום לגלול אליו, כלומר טקסט שנחתך ואי אפשר להגיע אליו. */
.hero__in > * { min-width: 0; }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; }
}

.hero__phone { display: flex; justify-content: center; min-width: 0; }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}
.stores--center { justify-content: center; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-block: 11px;
  padding-inline: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--ease) 180ms, transform var(--ease) 180ms,
              background-color var(--ease) 180ms;
}
.store:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.store__glyph { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; }
.store__l1 { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.store__l2 { font-size: 17px; font-weight: 800; }

.stores__note {
  margin-block-start: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── הטלפון: מסך "היום" חי ──────────────────────────────── */

.phone {
  width: 338px;
  max-width: 100%;
  padding: 9px;
  border-radius: 42px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #241b2c, #14101a 55%);
  box-shadow: var(--shadow-2), 0 0 90px rgba(255, 46, 136, 0.16);
}

.phone__screen {
  border-radius: 34px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.appbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  color: #fff;
}
.appbar__brand img { border-radius: 7px; }
.appbar__gear {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.appbar__gear svg { width: 15px; height: 15px; }

.daybody { padding: 8px 16px 14px; }

.daydate { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

.dayhero {
  font-size: 38px;
  line-height: 0.9;
  color: #fff;
  margin-block: 4px 14px;
}

.progress { display: flex; gap: 5px; }
.progress__seg { height: 6px; flex: 1; border-radius: var(--r-full); }
.progress__seg.is-taken { background: var(--taken); }
.progress__seg.is-todo { background: rgba(243, 238, 243, 0.16); }
.progress__label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-block-start: 6px;
}
.progress__label b { color: var(--ink-2); font-weight: 800; }

.tl { list-style: none; margin: 10px 0 0; padding: 0; }

.tl__row {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 9px;
}
.tl__row::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 11px;
  width: 0;
  border-inline-start: 1.5px solid var(--rail);
}
.tl__row.is-next::after,
.tl__row.is-future::after { border-inline-start-style: dashed; }

.tl__dot {
  position: absolute;
  inset-inline-start: 7.25px;
  inset-block-start: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--rail);
  background: var(--paper);
  z-index: 1;
}
.tl__dot.is-taken { background: var(--taken); border-color: var(--taken); }
.tl__dot.is-next { border-color: var(--accent); }
.tl__dot.is-now {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  inset-block-start: 12px;
  width: 11px;
  height: 11px;
  inset-inline-start: 6.25px;
}

.tl__head { display: flex; align-items: center; gap: 8px; }

.tl__time {
  font-family: var(--display);
  font-size: 27px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.tl__time--next { color: var(--accent-ink); font-size: 30px; display: block; }

.tl__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-block-start: 4px;
}
.tl__note { display: block; font-size: 12px; color: var(--ink-3); }

.is-future .tl__time,
.is-future .tl__name { opacity: 0.7; }

.chip {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-full);
}
.chip--taken { background: var(--taken-soft); color: var(--taken); }

.tl__now {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 26px;
  padding-block: 6px;
}
.nowpill {
  flex: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--glow-accent);
}
.nowpill b { font-variant-numeric: tabular-nums; }
.nowline {
  flex: 1;
  height: 1.5px;
  background: var(--accent);
  box-shadow: var(--glow-accent);
  /* הקו נמתח מהציר החוצה. הציר נמצא בימין כי הדף RTL קבוע —
     ל-transform-origin אין מקבילה לוגית. */
  transform-origin: right center;
}

.nextcard {
  background: var(--surface-raised);
  border-radius: var(--r-lg);
  padding: 12px 14px 13px;
  box-shadow: var(--ring-accent), var(--glow-card);
}
.nextcard__actions {
  display: flex;
  gap: 8px;
  margin-block-start: 12px;
  flex-direction: row-reverse;
}
.btn {
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--r-full);
  text-align: center;
}
.btn--primary { background: var(--accent); color: var(--accent-contrast); flex: 1; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink-2); }

.tabbar {
  margin-block-start: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block-start: 1px solid var(--line-soft);
  background: rgba(12, 10, 16, 0.82);
  padding-block: 7px 9px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.tab svg { width: 19px; height: 19px; }
.tab.is-on { color: var(--accent); }

/* ── המסכים ─────────────────────────────────────────────── */

.screens { padding-block: clamp(56px, 8vw, 104px); }
.screens .h2 { margin-block: 10px 0; }

.cards {
  margin-block-start: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 34px 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 52px 34px; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card__shot {
  border-radius: 26px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #221a2a, #14101a 55%);
  box-shadow: var(--shadow-2);
  /* מיושר לתחילת השורה, לא ממורכז — כך הקצה של הצילום והקצה של
     הטקסט שמתחתיו יושבים על אותו קו אנכי. */
  margin-inline: 0 auto;
  width: 100%;
  max-width: 220px;
}
.card__shot img { border-radius: 20px; }

.card__body { margin-block-start: 22px; }
.card__body h3 { margin-block-end: 8px; }
.card__body p { font-size: 14.5px; color: var(--ink-2); }

/* בטלפון: הצילום לצד הטקסט. גם מיישר את הקצוות וגם חוסך חצי מגובה
   הסקשן — ארבעה מסכים בטור אנכי הם גלילה בלי סוף. */
@media (max-width: 619px) {
  .card {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .card__shot { max-width: 122px; border-radius: 18px; padding: 4px; }
  .card__shot img { border-radius: 15px; }
  .card__body { margin-block-start: 0; }
  .card__body h3 { font-size: 26px; }
  .card__body p { font-size: 14px; }
}

/* ── התזכורת ────────────────────────────────────────────── */

.ring {
  padding-block: clamp(56px, 8vw, 104px);
  border-block-start: 1px solid var(--line-soft);
  background: var(--backdrop);
}
.ring__in {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.ring__in > * { min-width: 0; }
@media (min-width: 860px) {
  .ring__in { grid-template-columns: 1fr minmax(300px, 380px); }
}
.ring .h2 { margin-block: 10px 0; }

.notifstack {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}
/* הצלצול הקודם, זה שלא נענה, מבצבץ מתחת */
.notifstack::before {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: -13px;
  height: 46px;
  background: rgba(28, 21, 34, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

.notif {
  position: relative;
  z-index: 1;
  background: rgba(28, 21, 34, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-2);
}
.notif__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.notif__top img { border-radius: 6px; }
.notif__time { margin-inline-start: auto; }
.notif__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-block-start: 10px;
}
.notif__title b { font-weight: 800; }
.notif__body { font-size: 13.5px; color: var(--ink-3); }
.notif__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-block-start: 14px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line-soft);
}
.nbtn {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  padding-block: 6px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
}

/* ── פרטיות ─────────────────────────────────────────────── */

.trust { padding-block: clamp(56px, 8vw, 104px); }
.trust .h2 { margin-block: 10px 0; }

.facts {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  max-width: 720px;
}
.facts li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.facts b { color: var(--ink); font-weight: 800; }

.disclaimer {
  margin-block-start: 32px;
  max-width: 720px;
  font-size: 13px;
  color: var(--ink-3);
  border-inline-start: 2px solid var(--line-soft);
  padding-inline-start: 16px;
}

/* ── המנה הבאה ──────────────────────────────────────────── */

.last { padding-block: clamp(20px, 4vw, 40px) clamp(64px, 9vw, 112px); }

.lastcard {
  background: var(--surface-raised);
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--ring-accent), var(--glow-card);
}
.lastcard .h2 { margin-block: 10px 26px; }
.lastcard .stores__note { margin-block-start: 20px; }

/* ── פוטר ───────────────────────────────────────────────── */

.foot {
  border-block-start: 1px solid var(--line-soft);
  padding-block: 28px 36px;
  background: var(--backdrop);
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot__brand { font-family: var(--display); font-size: 22px; color: var(--ink-2); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__nav a { color: var(--ink-3); text-decoration: none; }
.foot__nav a:hover { color: var(--ink-2); text-decoration: underline; }
.foot__by { margin-inline-start: auto; }
.foot__by a { color: var(--ink-3); }

/* ── תנועה: רגע אחד מתוזמן בטעינה, וחשיפה עדינה בגלילה ──── */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .nowline { transform: scaleX(0); }
.js .hero__phone.is-in .nowline {
  transform: scaleX(1);
  transition: transform 700ms var(--ease) 420ms;
}
.js .nowpill { opacity: 0; }
.js .hero__phone.is-in .nowpill {
  opacity: 1;
  transition: opacity 400ms var(--ease) 900ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .nowline,
  .js .nowpill {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .store { transition: none; }
}
