/* פסיעות בחול · העיצוב (צבעים ופונטים מגיעים מהעיצוב המשותף shared/krambel.css) */
:root {
  --ink: var(--kb-ink); --green: var(--kb-green); --mustard: var(--kb-mustard); --orange: var(--kb-orange);
  --red: var(--kb-red); --leaf: var(--kb-leaf); --slate: var(--kb-slate); --paper: var(--kb-paper);
  --cream: var(--kb-cream); --muted: var(--kb-muted); --line: var(--kb-line);
  --sand: #EFE3C8; --sand-d: #C9B88B;
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--kb-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--kb-head); line-height: 1.12; text-wrap: balance; }
button { font: inherit; }
[hidden] { display: none !important; }

main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(10px, 2vh, 22px) clamp(12px, 3vw, 32px) 40px; }
body.fit { height: 100vh; height: 100dvh; overflow: hidden; }
body.fit .foot { display: none; }
body.fit main { flex: 1; min-height: 0; display: flex; overflow-y: auto; overflow-x: hidden; padding-bottom: clamp(10px, 2vh, 22px); }
.screen { display: none; }
.screen.is-active { display: block; animation: rise .45s ease both; }
body.fit .screen.is-active { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.eyebrow { font-weight: 800; font-size: 15px; color: var(--green); margin-bottom: 8px; }
.h1 { font-size: clamp(26px, min(4.6vw, 6.4vh), 48px); font-weight: 900; color: var(--green); margin-bottom: clamp(8px, 1.8vh, 16px); }
.h2 { font-size: clamp(20px, 3.2vh, 26px); font-weight: 900; color: var(--green); margin-bottom: clamp(6px, 1.4vh, 14px); }
.lead { font-size: clamp(16px, 2.4vh, 19px); }
.fine { font-size: 14px; color: var(--muted); margin-top: clamp(4px, 1vh, 12px); }
.mark { background: linear-gradient(transparent 58%, rgba(217,162,27,.55) 58%, rgba(217,162,27,.55) 92%, transparent 92%); padding: 0 4px; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; background: var(--mustard); color: var(--ink); font-family: var(--kb-head); font-weight: 900; font-size: 18px; padding: 13px 28px; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 0 #A87B0F; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #A87B0F; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #A87B0F; }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn--big { width: 100%; font-size: 20px; padding: clamp(10px, 1.9vh, 16px) 20px; }
.btn--ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:hover, .btn--ghost:active { background: #EAF3EF; box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:disabled { opacity: .3; cursor: default; transform: none; }
.btn--danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn--danger:hover, .btn--danger:active { background: #FDECEA; box-shadow: inset 0 0 0 2px var(--red); }
.btn--small { font-size: 15px; padding: clamp(6px, 1.1vh, 10px) 16px; margin-top: clamp(6px, 1.2vh, 12px); width: 100%; }

.card { background: #fff; border-radius: var(--r); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(6,89,69,.35); padding: clamp(18px, 4vh, 40px) clamp(18px, 3.6vw, 44px); }

/* ---------- פתיחה ---------- */
.hero {
  flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: 32px;
  background: #E9C988;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(18px, 4vh, 48px) clamp(20px, 4vw, 56px);
}
.hero__inner { position: relative; z-index: 2; }
.hero .eyebrow { color: #8A6A1F; }
.hero__title { font-size: clamp(30px, min(5vw, 8.6vh), 68px); font-weight: 900; color: var(--green); margin-bottom: clamp(10px, 2.4vh, 22px); }
.hero__text { font-size: clamp(15px, 2.4vh, 19px); max-width: 540px; }
.hero__text p + p { margin-top: clamp(4px, 1vh, 10px); }
.sand-steps { display: none; }
.sand-steps i { position: absolute; width: 26px; height: 42px; border-radius: 50%; background: rgba(166,138,82,.28); }
.sand-steps i:nth-child(1) { left: 6%; bottom: 8%; transform: rotate(-18deg); }
.sand-steps i:nth-child(2) { left: 12%; bottom: 20%; transform: rotate(-8deg); }
.sand-steps i:nth-child(3) { left: 9%; bottom: 34%; transform: rotate(-14deg); }
.sand-steps i:nth-child(4) { left: 16%; bottom: 47%; transform: rotate(-4deg); }
.sand-steps i:nth-child(5) { left: 13%; bottom: 61%; transform: rotate(-12deg); }
.sand-steps i:nth-child(6) { left: 20%; bottom: 74%; transform: rotate(-2deg); }
.form-card { position: relative; z-index: 3; padding: clamp(16px, 3.4vh, 34px) clamp(18px, 2.6vw, 34px); border-top: 6px solid var(--green); box-shadow: 0 30px 60px -24px rgba(60,40,10,.45); animation: pop .7s cubic-bezier(.2,1.4,.4,1) .2s both; }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
.field { display: block; border: 0; margin-bottom: clamp(8px, 1.8vh, 16px); }
.field__label { display: block; font-weight: 700; margin-bottom: clamp(4px, .9vh, 8px); }
.field__label small { font-weight: 400; color: var(--muted); font-size: 15px; }
input[type=text] { width: 100%; font: inherit; font-size: 18px; padding: clamp(8px, 1.5vh, 13px) 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); }
input[type=text]:focus { outline: none; border-color: var(--green); background: #fff; }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: clamp(7px, 1.3vh, 12px); border-radius: 14px; border: 2px solid var(--line); font-weight: 700; transition: .2s; }
.seg input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- הסבר ---------- */
.intro { width: 100%; max-width: 1080px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.stations { list-style: none; counter-reset: s; display: grid; gap: clamp(5px, 1.1vh, 10px); margin-bottom: clamp(12px, 2.4vh, 22px); }
.stations li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; background: var(--paper); border-radius: 14px; padding: clamp(6px, 1.1vh, 10px) 14px; }
.stations li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--kb-head); font-weight: 900; }
.stations b { font-family: var(--kb-head); color: var(--green); line-height: 1.2; }
.stations span { font-size: 15px; color: var(--muted); line-height: 1.35; }

/* ---------- הקלפים ---------- */
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; flex: none; margin-bottom: clamp(6px, 1.4vh, 14px); }
.track__seg { display: flex; gap: 2px; }
.track__seg i { flex: 1; height: 8px; border-radius: 3px; background: var(--cream); transition: background .3s; }
.track__seg i.done { background: var(--mustard); }
.track__seg i.now { background: var(--green); }
.card-head { display: flex; justify-content: space-between; align-items: center; flex: none; margin-bottom: clamp(4px, 1vh, 10px); }
.chip-st { font-family: var(--kb-head); font-weight: 900; font-size: 15px; color: var(--green); background: #FCEFC9; padding: 4px 14px; border-radius: 999px; }
.count { font-weight: 700; font-size: 15px; color: var(--muted); }
.qcard {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 26px; padding: clamp(12px, 2.6vh, 28px) clamp(12px, 3vw, 32px);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(6,89,69,.4);
  border-top: 8px solid var(--sand-d);
}
.qcard.in-next { animation: inNext .45s cubic-bezier(.2,.9,.3,1) both; }
.qcard.in-prev { animation: inPrev .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes inNext { from { opacity: 0; transform: translateX(-40px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes inPrev { from { opacity: 0; transform: translateX(40px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
.question { font-size: clamp(22px, min(3.8vw, 5vh), 40px); font-weight: 900; color: var(--green); text-align: center; flex: none; }
.from { font-size: 14px; color: var(--muted); margin: 2px 0 clamp(8px, 1.8vh, 18px); flex: none; }
.opts { flex: 1; min-height: 0; width: 100%; max-width: 900px; display: grid; gap: clamp(8px, 1.6vw, 18px); grid-template-columns: repeat(4, 1fr); align-content: center; }
.opts--3 { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
.opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0;
  background: var(--paper); border: 3px solid transparent; border-radius: 18px; padding: clamp(6px, 1.2vh, 12px);
  cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.opt:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -16px rgba(6,89,69,.5); background: #fff; }
.opt:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.opt.is-picked { border-color: var(--mustard); background: #FFF6DD; transform: scale(1.03); }
.opt__pic { width: 100%; max-width: min(190px, 26vh); aspect-ratio: 1; display: block; border-radius: 14px; overflow: hidden; }
.opt__pic svg, .opt__pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.opt__label { font-weight: 800; font-size: clamp(15px, 2.2vh, 18px); text-align: center; line-height: 1.25; }
.card-foot { flex: none; text-align: center; margin-top: clamp(4px, 1vh, 10px); }
.card-foot .btn--small { width: auto; margin: 0; }
@media (max-width: 720px) {
  .opts, .opts--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .opts--3 .opt:last-child { grid-column: span 2; justify-self: center; width: calc(50% - 5px); }
  .opt__pic { max-width: min(150px, 17vh); }
  .from { display: none; }
  .qcard { padding-top: 12px; }
}

/* ---------- חגיגה ---------- */
.party { width: 100%; max-width: 680px; margin: auto; text-align: center; }
.party__num { font-family: var(--kb-head); font-weight: 900; font-size: clamp(60px, 14vh, 120px); line-height: 1; color: var(--mustard); text-shadow: 0 5px 0 rgba(6,89,69,.12); animation: bump .8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes bump { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.party .lead { margin-bottom: clamp(10px, 2vh, 20px); }
.party__path { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: clamp(12px, 2.4vh, 24px); }
.party__path span { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.party__path span.done { background: var(--mustard); color: var(--ink); }
.party__path span.next { background: var(--green); color: #fff; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; display: none; }

/* ---------- ספרייה ---------- */
.lib { width: 100%; max-width: 900px; margin: 0 auto; }
.lib__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lib__head .h1 { margin: 0; }
.lib__head .btn--small, .lib__foot .btn--small { width: auto; margin: 0; }
.lib__list { list-style: none; display: grid; gap: 12px; }
.lib__item { display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 16px; align-items: center; background: #fff; border-radius: 18px; padding: 16px 20px; border-right: 6px solid var(--sand-d); box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(6,89,69,.45); }
.lib__date { display: flex; flex-direction: column; line-height: 1.35; }
.lib__date b { font-family: var(--kb-head); font-size: 19px; color: var(--green); }
.lib__date span { color: var(--muted); font-size: 15px; }
.lib__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lib__tags span { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border-right: 4px solid var(--c); }
.lib__btns { display: flex; gap: 8px; }
.lib__btns .btn--small { width: auto; margin: 0; padding: 9px 16px; white-space: nowrap; }
.lib__empty { text-align: center; background: #fff; border-radius: 18px; padding: 36px 20px; }
.lib__empty p { margin-bottom: 16px; color: var(--muted); }
.lib__foot { margin-top: 18px; text-align: center; }
@media (max-width: 820px) { .lib__item { grid-template-columns: 1fr; gap: 10px; } .lib__btns .btn--small { flex: 1; } }

/* ---------- מכתב ---------- */
.letter { background: #fff; border-radius: var(--r); max-width: 840px; margin: 0 auto; padding: clamp(22px, 6vw, 64px); box-shadow: 0 1px 0 var(--line), 0 24px 50px -28px rgba(6,89,69,.4); border-top: 10px solid var(--sand-d); }
.letter__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px dashed var(--line); margin-bottom: 28px; }
.letter__logo { width: 130px; }
.letter__head > div { text-align: left; }
.letter__date { color: var(--muted); font-size: 15px; }
.letter__hi { font-size: clamp(32px, 5vw, 48px); font-weight: 900; color: var(--green); margin-bottom: 14px; }
.letter > p { margin-bottom: 12px; }
.sec { margin-top: 38px; }
.sec__t { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; color: var(--green); margin-bottom: 14px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.bar__n { font-weight: 700; }
.bar__t { height: 16px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.bar__t i { display: block; height: 100%; border-radius: 99px; }
.force { padding: 18px 20px; border-radius: 18px; background: var(--paper); border-right: 6px solid var(--c); margin-top: 14px; }
.force h3 { font-size: 22px; color: var(--green); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.force__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 16px; }
.picks { margin-top: 10px; padding-right: 20px; display: grid; gap: 4px; font-size: 16px; color: var(--muted); }
.picks b { color: var(--ink); }
.stations-sum { padding-right: 22px; display: grid; gap: 10px; }
.stations-sum b { font-family: var(--kb-head); color: var(--green); margin-left: 8px; }
.stations-sum em { font-style: normal; font-weight: 800; }
.hug { padding: 18px 20px; border-radius: 18px; background: #FFF8E8; border-right: 6px solid var(--mustard); margin-top: 14px; }
.hug h3 { font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.work__card { border-radius: 18px; padding: 18px 20px; background: var(--paper); border-top: 8px solid var(--c); }
.work__card h3 { font-size: 19px; color: var(--green); margin-bottom: 8px; }
.work__card ul { padding-right: 18px; display: grid; gap: 8px; }
.sec--end { padding-top: 30px; border-top: 2px dashed var(--line); }
.sign { margin-top: 22px !important; font-size: 18px; }
.sign b { font-family: var(--kb-head); font-size: 26px; color: var(--green); }
.sign span { font-size: 15px; color: var(--muted); }
.all { margin-top: 24px; background: var(--paper); border-radius: 14px; padding: 12px 18px; }
.all summary { cursor: pointer; font-weight: 800; color: var(--green); }
.all ol { padding-right: 22px; margin-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.all li span { color: var(--muted); }
.letter-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px auto 0; }
.letter-actions .btn--small { width: auto; }
@media (max-width: 600px) { .bar { grid-template-columns: 110px 1fr; font-size: 15px; } }

/* ---------- טלפון ---------- */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; align-content: start; border-radius: 24px; gap: 14px; padding: 20px 16px; }
  .hero__title { font-size: clamp(26px, 5vh, 34px); }
  .hide-sm, .hero .eyebrow { display: none; }
  .intro { grid-template-columns: 1fr; gap: 10px; }
  .intro .eyebrow { display: none; }
  .stations span { display: none; }
  .stations li { grid-template-columns: 30px 1fr; }
  .stations li::before { width: 28px; height: 28px; grid-row: auto; }
}

@media print {
  @page { margin: 14mm; }
  body, body.fit { background: #fff; height: auto; overflow: visible; }
  .no-print, .foot, .kb-top { display: none !important; }
  main { padding: 0; max-width: none; }
  .screen { display: none !important; }
  #s-letter { display: block !important; animation: none; }
  .letter { box-shadow: none; padding: 0; border-top: 0; }
  .all { display: block; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* צילום החוף בגוון חם וצהבהב */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Footprints_on_the_beach.jpg/960px-Footprints_on_the_beach.jpg') center 60% / cover; filter: sepia(.6) saturate(1.7) hue-rotate(-8deg) brightness(1.05) contrast(1.02); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(253,246,228,.9) 0%, rgba(253,246,228,.6) 34%, rgba(253,246,228,0) 58%); }
@media (max-width: 720px) {
  .hero::after { background: linear-gradient(180deg, rgba(253,246,228,.94) 0%, rgba(253,246,228,.8) 55%, rgba(253,246,228,.25) 100%); }
}
