/* טל רבי · "ראיית חום". design.md הוא המקור לכל מספר כאן. */
:root {
  --bg: #F4F3F0;
  --surface: #FFFFFF;
  --ink: #1A1D24;
  --muted: #565B66;
  --primary: #0D41EF;
  --primary-ink: #FFFFFF;
  --soft: #E6EBFD;
  --accent: #D28771;
  --line: #D9D6CF;
  --focus: #B53036;
  --heat: #DAFDFC;
  --radius: 20px;
  --k-btn-radius: 14px;
  --font-head: "Miriam Libre Variable", system-ui, sans-serif;
  --font-body: "Assistant Variable", system-ui, sans-serif;
  --k-progress: linear-gradient(to left, #0D41EF, #DAFDFC);
  --gutter: 16px;
  --lens: 136px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: clip;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: 0; }
h1 { font-size: 38px; line-height: 1.12; font-weight: 700; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 700; margin-bottom: 28px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: 64px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.demo-banner {
  min-height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 8px var(--gutter); background: var(--ink); color: #fff;
  font-size: 14px; line-height: 1.4; text-align: center;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; min-height: 44px; justify-content: center; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand__sub { font-size: 14px; color: var(--muted); }
.top__nav { display: none; }
.top .top__wa { display: none; }
.top__call {
  margin-inline-start: auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff;
}
.top__call svg { width: 20px; height: 20px; }
.top__progress { --k-progress: linear-gradient(to left, #0D41EF, #DAFDFC); }

/* Desktop heat bar: a fixed vertical gauge at the left edge (design §6) */
.heatbar { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin-inline: auto; padding: 24px var(--gutter) 56px;
  display: flex; flex-direction: column; gap: 28px;
}
.hero__wall { order: -1; margin: 0; }
.hero__wall figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 12px; line-height: 1.4; }
.hero__lead { margin-top: 16px; color: var(--ink); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero__actions .k-btn { width: 100%; }
.rating { margin-top: 18px; font-size: 15px; color: var(--muted); }
.rating strong { color: var(--ink); font-family: var(--font-head); font-size: 18px; }
.stars { display: inline; color: #B8860B; letter-spacing: 1px; }

/* The wall: two SVG layers of the same size. The lens is a window that moves (translate X),
   while the thermal layer inside it moves by -X, so the picture stays put (design-trades §5.2). */
.wall {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 20px; background: #ECEAE5;
  box-shadow: 0 30px 60px -30px rgb(13 65 239 / .35);
  container-type: size;
}
.wall > img, .wall__half { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
/* No JS or reduced motion: a static split, plaster on the right, thermal on the left. */
.wall__half { clip-path: inset(0 50% 0 0); }
.wall__seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; }
.wall__move { display: none; }
.wall__pin, .wall__read {
  position: absolute; z-index: 3; font-family: var(--font-head); font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap;
}
.wall__pin {
  left: 47%; top: 44%; translate: -50% calc(-100% - 10px);
  background: #fff; color: var(--ink); font-size: 14px; padding: 6px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgb(10 42 158 / .5);
}
.wall__pin::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.wall__read {
  left: 47%; top: 44%; translate: -50% calc(var(--lens) / 2 + 10px);
  background: var(--primary); color: #fff; font-size: 14px; padding: 6px 10px; border-radius: 8px;
}

html.intro .wall__half, html.intro .wall__seam { display: none; }
html.intro .wall__move {
  display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; transform: translate(47%, 44%); z-index: 2;
}
.wall__lens {
  position: absolute; left: calc(var(--lens) / -2); top: calc(var(--lens) / -2);
  width: var(--lens); height: var(--lens); border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #0D41EF, 0 18px 40px -12px rgb(10 42 158 / .6);
  pointer-events: auto; touch-action: none; cursor: grab;
}
.wall__heat {
  position: absolute; left: calc(var(--lens) / 2); top: calc(var(--lens) / 2);
  width: 100cqw; height: 100cqh; max-width: none; object-fit: cover;
  transform: translate(-47%, -44%);
}
.wall__cross::before, .wall__cross::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgb(255 255 255 / .6);
}
.wall__cross::before { width: 20px; height: 2px; margin: -1px 0 0 -10px; }
.wall__cross::after { width: 2px; height: 20px; margin: -10px 0 0 -1px; }

.hero__wa { position: relative; }
.ping { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html.intro .wall__move { animation: lens-move 1600ms var(--k-ease-inout) 450ms both, lens-in 250ms var(--k-ease-out) 200ms both; }
  html.intro .wall__heat { animation: heat-move 1600ms var(--k-ease-inout) 450ms both; }
  html.intro .wall__lens { animation: lens-pop 250ms var(--k-ease-out) 200ms both; }
  html.intro .wall__read { animation: read-in 200ms var(--k-ease-out) 2050ms both; }
  html.intro .wall__pin { animation: pin-in 300ms var(--k-spring) 2250ms both; }
  html.intro .ping {
    display: block; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 2px solid rgb(13 65 239 / .6);
    animation: ping 1600ms var(--k-ease-out) 2600ms 3 both;
  }
  .wall.is-live .wall__move, .wall.is-live .wall__heat { animation: none; }
  .wall.is-back .wall__move, .wall.is-back .wall__heat { transition: transform 300ms var(--k-ease-out); }
}
@keyframes lens-move {
  0% { transform: translate(82%, 8%); }
  40% { transform: translate(82%, 40%); }
  75% { transform: translate(52%, 44%); }
  100% { transform: translate(47%, 44%); }
}
@keyframes heat-move {
  0% { transform: translate(-82%, -8%); }
  40% { transform: translate(-82%, -40%); }
  75% { transform: translate(-52%, -44%); }
  100% { transform: translate(-47%, -44%); }
}
@keyframes lens-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lens-pop { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes read-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pin-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ping {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.12, 1.6); opacity: 0; }
}

/* ---------- Send a video ---------- */
.video { background: var(--surface); }
.steps { position: relative; }
.steps__line { display: none; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps__list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.steps__num {
  font-family: var(--font-head); font-weight: 600; font-size: 44px; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--primary);
}
.quote { margin: 0; }
.quote p { font-weight: 500; }
.quote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.quote--side { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--soft); font-size: 18px; }

/* ---------- How Tal finds it ---------- */
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.tool { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tool h3, .tool p { padding-inline: 20px; }
.tool h3 { margin-top: 18px; }
.tool p { margin: 6px 0 22px; color: var(--muted); }
.tool__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tool__photo img { width: 100%; height: 100%; object-fit: cover; }
.finder span { position: absolute; width: 18px; height: 18px; border: 3px solid #fff; }
.finder span:nth-child(1) { top: 14px; right: 14px; border-width: 3px 3px 0 0; }
.finder span:nth-child(2) { top: 14px; left: 14px; border-width: 3px 0 0 3px; }
.finder span:nth-child(3) { bottom: 14px; right: 14px; border-width: 0 3px 3px 0; }
.finder span:nth-child(4) { bottom: 14px; left: 14px; border-width: 0 0 3px 3px; }

/* ---------- Price ---------- */
.price { background: var(--soft); }
.quote--big p { font-size: 22px; line-height: 1.45; }
.ronny { margin: 40px 0 0; }
.ronny ol { margin: 0; padding-inline-start: 1.6em; display: grid; gap: 10px; font-size: 20px; font-weight: 600; }
.ronny ol li::marker { font-family: var(--font-head); color: var(--primary); }
.ronny figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Services: "readings" ---------- */
.readings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reading { position: relative; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.reading::before {
  content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px;
  background: linear-gradient(#0D41EF, #DAFDFC);
}
.reading { padding-inline-start: 18px; }
.reading h3 { font-size: 19px; }
.reading p { color: var(--muted); font-size: 17px; margin-top: 2px; }
.services__photo { margin-top: 32px; border-radius: var(--radius); overflow: hidden; }
.services__photo img { width: 100%; }

/* ---------- Reviews ---------- */
.reviews__scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scrollbar-width: thin; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.reviews__list li { flex: 0 0 85%; scroll-snap-align: center; }
.card-quote {
  margin: 0; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.card-quote footer { font-size: 15px; color: var(--muted); }
.reviews__more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.k-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.faq summary {
  min-height: 56px; padding: 14px 20px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 24px; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- End ---------- */
.end { background: var(--primary); color: #fff; overflow: hidden; }
.end__inner { position: relative; padding-top: 92px; }
.end h2 { color: #fff; max-width: 14em; }
.end :focus-visible { outline-color: var(--heat); }
.end__btn { --k-btn-bg: #fff; --k-btn-ink: var(--primary); }
.end__call { margin-top: 16px; }
.end__call a { color: var(--heat); font-weight: 700; display: inline-block; min-height: 44px; padding-block: 10px; }
.mini-lens {
  position: absolute; left: var(--gutter); top: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px #fff;
}
.mini-lens img { width: 200px; max-width: none; height: 250px; transform: translate(-59px, -74px); }

/* ---------- Footer + dock ---------- */
.foot { padding: 40px 0 32px; font-size: 15px; line-height: 1.5; background: var(--bg); }
.foot__grid { display: grid; gap: 16px; }
.foot__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.foot a { color: var(--ink); display: inline-block; min-height: 44px; padding-block: 11px; }
.foot p { margin: 0; }

.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform 300ms var(--k-ease), opacity 300ms var(--k-ease);
}
.dock > * { flex: 1 1 0; }
.dock .k-btn { --k-btn-h: 48px; padding-inline: .8em; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
body { padding-bottom: 76px; }

/* ---------- Motion states (only under the kit's .k-motion, so nothing hides without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .k-motion .finder { opacity: 0; transition: opacity 400ms var(--k-ease) 900ms; }
  .k-motion .is-in .finder { opacity: 1; }
  .k-motion .reading::before { transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--k-ease-out); }
  .k-motion .reading.is-in::before { transform: none; }
}

/* ---------- Subpages (accessibility, 404) ---------- */
.subpage__main { max-width: 720px; margin-inline: auto; padding: 48px var(--gutter) 64px; }
.subpage__main h1 { margin-bottom: 20px; }
.subpage__main h2 { font-size: 22px; margin: 32px 0 12px; }
.subpage__main p, .subpage__main li { margin-bottom: 10px; }
.subpage__eyebrow { color: var(--primary); font-weight: 600; }
.subpage__back { display: inline-block; min-height: 44px; padding-block: 10px; font-weight: 700; }
body.subpage { padding-bottom: 0; }

/* ================= Desktop ================= */
@media (min-width: 900px) {
  :root { --gutter: 24px; --lens: 184px; }
  h1 { font-size: 60px; }
  h2 { font-size: 40px; margin-bottom: 40px; }
  h3 { font-size: 24px; }
  section { padding-block: 96px; }
  .eyebrow { font-size: 16px; }
  .top__inner { height: 72px; }
  .top__nav { display: flex; gap: 8px; margin-inline: auto; }
  .top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; min-height: 44px; }
  .top__nav a:hover { background: var(--soft); }
  .top .top__wa { display: inline-flex; }
  .top__call { display: none; }
  .top__progress { display: none !important; }

  .hero {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start;
    padding-block: 0 96px;
  }
  .hero__text { grid-column: 1 / span 5; padding-top: 120px; }
  .hero__wall { grid-column: 6 / span 7; order: 0; padding-top: 40px; }
  .wall { aspect-ratio: 8 / 7; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .k-btn { width: auto; }

  .video__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .steps { grid-column: 1 / span 8; padding-top: 4px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps__list li { grid-template-columns: 1fr; gap: 10px; position: relative; }
  .steps__num { font-size: 56px; background: var(--surface); padding-inline-end: 12px; justify-self: start; position: relative; z-index: 1; }
  .steps__line {
    display: block; position: absolute; top: 28px; right: 40px; left: 22%; height: 2px;
    background: var(--line); transform-origin: right;
  }
  .quote--side { grid-column: 9 / span 4; margin-top: 0; }

  .tools { grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
  .tool:nth-child(2) { margin-top: 48px; }

  .price__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .quote--big { grid-column: 1 / span 7; }
  .quote--big p { font-size: 30px; }
  .ronny { grid-column: 9 / span 4; margin-top: 8px; }

  .services__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .services__main { grid-column: 1 / span 8; }
  .services__photo { grid-column: 9 / span 4; margin-top: 88px; }
  .readings { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .reading { padding: 26px 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .reading::before {
    right: 0; left: 0; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 14px 14px 0 0;
    background: linear-gradient(to left, #0D41EF, #DAFDFC);
  }

  .reviews__scroll { overflow: visible; padding: 0; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
  .reviews__list { display: block; columns: 3; column-gap: 20px; }
  .reviews__list li { break-inside: avoid; margin-bottom: 20px; }

  .faq__list { max-width: calc(8 / 12 * 100%); }
  .end h2 { font-size: 52px; }
  .end__inner { padding-top: 0; }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }

  .dock { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .k-motion .steps__line { transform: scaleX(0); transition: transform 600ms var(--k-ease-out) 200ms; }
  .k-motion .steps.is-in .steps__line { transform: none; }
  .k-motion .reading::before { transform: scaleX(0); transform-origin: right; }
  .k-motion .reading.is-in::before { transform: none; }
}

/* The vertical heat gauge sits in the page gutter, so only on wide screens. */
@media (min-width: 1280px) {
  .heatbar {
    display: block; position: fixed; left: 24px; top: 25vh; height: 50vh; width: 8px; z-index: 40;
    border-radius: 8px; background: linear-gradient(#0D41EF, #DAFDFC); pointer-events: none;
  }
  .heatbar__mark { display: none; }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .heatbar__mark {
        display: block; position: absolute; left: 12px; top: -6px; width: 0; height: 0;
        border-block: 6px solid transparent; border-right: 9px solid var(--accent);
        animation: heat-mark linear both; animation-timeline: scroll(root);
      }
    }
  }
}
@keyframes heat-mark { from { transform: translateY(0); } to { transform: translateY(50vh); } }
