/* מועדון 13 AVENUE · מסך לטאבלט בחנות. כיוון "חם וחווייתי" בצבעי הלוגו */
:root {
  --ink: #231F20;
  --gold: #8C6239;
  --gold-l: color-mix(in srgb, #8C6239 72%, #E8C48E);
  --gold-d: color-mix(in srgb, #8C6239 78%, #000);
  --red: #E1262A;
  --bg: #FFFAF1;
  --surface: #F6EFE3;
  --surface-2: #EFE3D0;
  --line: #E2D2BA;
  --muted: #5E544D;
  --font-head: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --shadow: 0 30px 60px -24px color-mix(in srgb, #8C6239 60%, transparent);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--ink);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow-x: hidden;
  padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}
img, svg { display: block; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--font-head); line-height: 1.12; text-wrap: balance; }
[hidden] { display: none !important; }

.glow { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; opacity: .5; background: #FFE2A8; }
.glow--a { width: 460px; height: 460px; top: -140px; right: -160px; }
.glow--b { width: 420px; height: 420px; bottom: -160px; left: -160px; }

.kiosk { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; display: grid; gap: 22px; }

/* כותרת עליונה */
.top { text-align: center; display: grid; justify-items: center; gap: 10px; padding-top: 6px; }
.top__logo { width: min(300px, 62vw); height: auto; }
.top__title { margin-top: 6px; font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; }
.top__sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40ch; }
.gift { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-align: start; }
.gift img { width: 84px; height: auto; border-radius: 12px; }
.gift p { font-size: 16px; color: var(--muted); max-width: 38ch; }
.gift b { color: var(--ink); }

/* הכרטיס */
.card { background: #fff; border-radius: 32px; box-shadow: var(--shadow); padding: 26px 22px 28px; border: 1px solid var(--line); }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.progress__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 50%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-l), var(--gold-d)); transition: width .5s ease; }
.card[data-at="2"] .progress__bar i { width: 100%; }
.progress__label { font-size: 16px; font-weight: 700; color: var(--gold); white-space: nowrap; }

.step { display: grid; gap: 16px; }
.step__title { font-size: 26px; font-weight: 700; }
.step__sub { margin-top: -8px; color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; font-size: 18px; font-weight: 700; }
.field i, .check i, legend i { font-style: normal; color: var(--red); }
.field legend { padding: 0; margin-bottom: 10px; }
.field legend small { font-weight: 500; color: var(--muted); font-size: 15px; }
.field input {
  width: 100%; min-height: 62px; padding: 14px 18px;
  border: 2px solid var(--line); border-radius: 18px; background: var(--bg);
  font: inherit; font-size: 20px; font-weight: 500; color: var(--ink);
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 20%, transparent); }
.field--date input { max-width: 360px; }
.check { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg); font-size: 18px; font-weight: 700; cursor: pointer; }
.check input { width: 30px; height: 30px; flex: none; accent-color: var(--gold); }
.terms { border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; background: #FFFCF7; }
.terms summary { cursor: pointer; font-weight: 700; color: var(--gold-d); font-size: 17px; min-height: 30px; }
.terms__body { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 10px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); font-size: 19px; font-weight: 700; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { color: #fff; border-color: var(--gold); background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 66px; padding: 14px 28px; border: 0; border-radius: 999px; font-family: var(--font-body); font-size: 21px; font-weight: 800; cursor: pointer; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--gold { width: 100%; color: #fff; background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn--soft { color: var(--ink); background: var(--surface); }
.row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.msg { font-size: 17px; font-weight: 700; color: var(--gold-d); }
.msg:empty { display: none; }
.msg--bad { padding: 14px 16px; border-radius: 16px; color: #B42318; background: #FDECEC; }
.hint { font-size: 14px; color: var(--muted); text-align: center; }
.saved { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 14px; border-radius: 999px; background: #E6F4EC; color: #1F7A4D; font-weight: 700; font-size: 16px; }
.saved svg { width: 20px; height: 20px; }

/* סיום */
.done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18px 6px 6px; outline: none; }
.done__stars { display: flex; align-items: flex-end; gap: 8px; height: 76px; }
.done__stars svg { width: 36px; height: 36px; fill: var(--gold); animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
.done__stars svg:nth-child(2) { width: 58px; height: 58px; fill: var(--red); animation-delay: .12s; }
.done__stars svg:nth-child(3) { fill: var(--gold-l); animation-delay: .24s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done__title { font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; }
.done__big { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; color: var(--gold); }
.done__email { font-size: 20px; font-weight: 700; word-break: break-all; }
.done__how { font-size: 18px; color: var(--muted); }
.done .btn { max-width: 420px; margin-top: 8px; }
.done__timer { font-size: 15px; color: var(--muted); }

@media (min-width: 700px) {
  body { padding-top: 32px; }
  .card { padding: 34px 38px 36px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 22px; }
  .chips { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .done__stars svg { animation: none; }
  .progress__bar i { transition: none; }
}

.legal-links { display: flex; justify-content: center; gap: 22px; padding: 4px 0 70px; font-size: 16px; }
.legal-links a, .terms__body a { color: var(--gold-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* תאריך לידה וסיומות מייל */
.field__hint { font-size: 14px; font-weight: 500; color: var(--muted); }
.mail-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; direction: ltr; justify-content: flex-end; }
.mail-chip { min-height: 52px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 18px; font-weight: 700; color: var(--gold-d); cursor: pointer; }
.mail-chip:hover, .mail-chip:focus-visible { border-color: var(--gold); background: var(--surface); }
.mail-fix { margin-top: -4px; font-size: 15px; font-weight: 700; color: #B42318; }
.mail-fix__btn { padding: 0 2px; border: 0; background: none; font: inherit; color: #B42318; text-decoration: underline; cursor: pointer; }
.grid .mail-suggest, .grid .mail-fix { grid-column: 1 / -1; }
