/* טיפה: האתר. אותה שפה של האפליקציה (demo-app/design/DESIGN.md): נייר, דיו, ים, אפרסמון; Suez One + IBM Plex Sans Hebrew. */
:root {
  --paper: #f6f1e7;
  --sand: #ede4d3;
  --sand-dark: #e2d6bf;
  --ink: #1f2a2e;
  --smoke: #5e6b6e;
  --sea: #127a7a;
  --shallow: #c3e2d8;
  --foam: #8fd3c9;
  --persimmon: #ff7a4d;
  --persimmon-pressed: #e8653b;
  --lemon: #f2c14e;
  --line: 2.5px;
  --r-md: 18px;
  --r-lg: 28px;
  --display: 'Suez One', 'IBM Plex Sans Hebrew', serif;
  --text: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  /* גרעין נייר עדין */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 92px); }
h2 { font-size: clamp(32px, 5.4vw, 52px); }
h3 { font-size: 24px; }
p { margin: 0; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--smoke); }
.center { text-align: center; }

/* ---- כותרת עליונה ---- */
.top {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: var(--line) solid var(--ink); }
.top nav { display: flex; gap: 20px; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* ---- מדבקה: קו דיו, מילוי חול, צל קצר ---- */
.sticker {
  background: var(--sand);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 5px 0 rgba(31, 42, 46, 0.16), inset 0 -10px 0 rgba(226, 214, 191, 0.9);
}

/* ---- כפתורים ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  font: 600 18px var(--text); color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--persimmon);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: 0 5px 0 rgba(31, 42, 46, 0.2), inset 0 -8px 0 rgba(232, 101, 59, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px) scale(0.98); background: var(--persimmon-pressed); box-shadow: 0 2px 0 rgba(31, 42, 46, 0.2), inset 0 -4px 0 rgba(232, 101, 59, 0.9); }
.btn.sand { background: var(--sand); box-shadow: 0 5px 0 rgba(31, 42, 46, 0.16), inset 0 -8px 0 var(--sand-dark); }
.btn.soon { cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; }
.btn small { font-weight: 500; color: var(--smoke); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

/* ---- טיפה (Rive) ---- */
.tipa { position: relative; width: var(--w, 300px); height: calc(var(--w, 300px) * 0.625); pointer-events: none; }
.tipa canvas { position: absolute; inset-inline-start: 0; top: calc(var(--w, 300px) * -0.35); width: var(--w, 300px); height: calc(var(--w, 300px) * 1.75); }

/* ---- פתיח ---- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 110px 20px 0; }
.pano { position: absolute; left: 50%; bottom: 0; pointer-events: none; will-change: transform; max-width: none; }
.pano.far { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* The drawn layers keep their own proportions (2000 × 857): never cropped, only wider than the screen. */
.pano.mid, .pano.near { width: max(112vw, 1100px); height: auto; margin-left: calc(max(112vw, 1100px) / -2); }
.pano.near { bottom: -2vw; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(200px, 24vw, 360px); }
.hero .tipa { --w: clamp(230px, 34vw, 340px); margin-bottom: -6px; }
.hero h1 { text-shadow: 0 2px 0 var(--paper); }
.hero .lead { margin-top: 10px; color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---- חלקים ---- */
section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.sea-band { background: var(--shallow); border-block: var(--line) solid var(--ink); }
.sea-band::before, .sea-band::after {
  content: ''; position: absolute; inset-inline: 0; height: 22px; pointer-events: none;
  background: radial-gradient(22px 16px at 22px 0, var(--paper) 98%, transparent) repeat-x; background-size: 44px 22px;
}
.sea-band::before { top: 0; }
.sea-band::after { bottom: 0; transform: scaleY(-1); }

/* נסו אותי */
.try { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.try-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 20px 30px; }
.try-stage .tipa { --w: 280px; }
.ml { font-family: var(--display); font-size: 64px; line-height: 1; }
.ml small { display: block; font: 500 15px var(--text); color: var(--smoke); text-align: center; margin-top: 6px; }
.try-copy h2 + p { margin-top: 14px; }
.try-copy .btn { margin-top: 26px; }
.link { background: none; border: 0; padding: 8px; font: 500 16px var(--text); color: var(--smoke); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* מה מקבלים */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.point { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px 28px; }
.point img { width: 40px; height: 40px; flex: none; }
.point p { color: var(--smoke); margin-top: 4px; font-size: 17px; }

/* מסכים */
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); margin-top: 48px; }
.phone { flex: 1 1 0; max-width: 280px; min-width: 0; width: min(280px, 30vw); border: var(--line) solid var(--ink); border-radius: clamp(22px, 4vw, 40px); overflow: hidden; background: var(--paper); box-shadow: 0 10px 0 rgba(31, 42, 46, 0.14); transition: transform 0.5s var(--ease-out); }
.phone:nth-child(1) { transform: rotate(3deg) translateY(18px); }
.phone:nth-child(3) { transform: rotate(-3deg) translateY(18px); }
.phone:hover { transform: rotate(0) translateY(-6px); }

/* מחירים */
.price-hero { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
.stars { position: relative; width: 280px; height: 60px; direction: ltr; }
.stars img { position: absolute; top: 8px; width: 44px; opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(-360deg) scale(0.2); }
.stars img:nth-child(3) { width: 52px; top: 4px; }
.stars.go img { animation: star 0.56s var(--ease-out) forwards; animation-delay: var(--d); }
.stars.still img { opacity: 1; transform: none; }
@keyframes star {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(-360deg) scale(0.2); }
  12% { opacity: 1; }
  55% { transform: translate(calc(var(--fx) * 0.55), -34px) rotate(-150deg) scale(1); }
  88% { transform: translate(0, 0) rotate(0) scale(1.22); }
  100% { opacity: 1; transform: none; }
}
.price-hero .tipa { --w: 220px; margin-top: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 34px auto 0; }
.plan { padding: 26px 26px 32px; }
.plan.pick { border-color: var(--sea); box-shadow: 0 0 0 var(--line) var(--ink), 0 7px 0 rgba(31, 42, 46, 0.16), inset 0 -10px 0 rgba(226, 214, 191, 0.9); border-width: 5px; }
.plan h3 { display: flex; align-items: center; gap: 8px; }
.plan h3 img { width: 30px; }
.plan .amount { font-family: var(--display); font-size: 44px; line-height: 1.1; margin-top: 8px; }
.plan .amount small { font: 500 17px var(--text); color: var(--smoke); }
.plan p { color: var(--smoke); margin-top: 8px; font-size: 16px; }
.fine { max-width: 760px; margin: 22px auto 0; font-size: 14px; color: var(--smoke); text-align: center; }

/* תחתית */
footer { border-top: var(--line) solid var(--ink); background: var(--sand); padding: 36px 0 44px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; }
.foot a { color: var(--ink); }
.foot small { color: var(--smoke); }

/* ---- עמודי מסמכים ---- */
.doc { padding: 120px 0 80px; }
.doc .sheet { padding: clamp(24px, 5vw, 56px); max-width: 820px; margin-inline: auto; background: var(--paper); box-shadow: 0 5px 0 rgba(31, 42, 46, 0.16); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc .date { color: var(--smoke); margin-top: 8px; }
.doc h2 { font-size: 26px; margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.doc th, .doc td { border: 1.5px solid var(--ink); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { background: var(--sand); font-weight: 600; }
.doc .note { margin-top: 18px; padding: 14px 18px; background: var(--shallow); border: var(--line) solid var(--ink); border-radius: var(--r-md); }

/* ---- כניסה בגלילה ---- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .top nav { display: none; }
  .try, .points, .plans { grid-template-columns: 1fr; }
  .try-stage { order: -1; }
  .phones { gap: 10px; }
  .phone { width: 31vw; border-radius: 18px; }
  .hero-in { padding-bottom: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .stars img { opacity: 1; transform: none; animation: none !important; }
  .phone, .btn { transition: none; }
}
