/* הדייט שלנו: עיצוב של הזמנה אישית. נייר חם, דיו סגול עמוק, קו אדום אחד. מובייל קודם, RTL. */
:root {
  --paper: #f6efe6; --paper-2: #efe4d6; --ink: #2a1630; --ink-2: #5a4762; --muted: #8a7a90; --line: #d9cbbb;
  --red: #d94a36; --red-ink: #fff5f2; --gold: #b8923d; --ok: #2f7d4f; --warn: #a8690e; --bad: #b53a2a; --info: #2d5f9a;
  --radius: 22px; --pad: 18px; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Assistant", -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-bottom: calc(env(safe-area-inset-bottom) + 24px); overflow-x: hidden; position: relative; }
.paper { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(217,74,54,.12), transparent 60%),
    radial-gradient(900px 500px at -20% 110%, rgba(184,146,61,.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(42,22,48,.025) 0 1px, transparent 1px 28px); }
a { color: var(--info); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 6px 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.sub { color: var(--ink-2); }
.muted { color: var(--muted); font-size: 16px; }
.err { color: var(--bad); font-weight: 700; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad); background: rgba(246,239,230,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(217,74,54,.18); }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 700; position: relative; padding-bottom: 2px; }
.nav a.active { color: var(--ink); border-bottom: 2px solid var(--red); }
.badge { position: absolute; top: -9px; left: -16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.link { background: none; border: 0; color: var(--ink-2); padding: 0; cursor: pointer; font-weight: 700; }

.view { max-width: 680px; margin: 0 auto; padding: 20px var(--pad) 56px; position: relative; overflow-x: clip; }

/* editorial hero: giant outline word that breaks the frame */
.hero { position: relative; padding: 26px 0 10px; min-height: 150px; overflow: hidden; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.hero .ghost { position: absolute; inset-inline-end: -6%; top: -8px; font-size: clamp(96px, 30vw, 180px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(42,22,48,.18); letter-spacing: -0.04em; pointer-events: none; user-select: none; white-space: nowrap; }
.hero h1 { position: relative; }
.hero h1 em { font-style: normal; color: var(--red); }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* diagonal marquee strip */
.marquee { position: relative; margin: 18px -40px; transform: rotate(-3deg); background: var(--ink); color: var(--paper); padding: 10px 0; overflow: hidden; white-space: nowrap; font-weight: 700; letter-spacing: .04em; }
.marquee span { display: inline-block; padding-inline-end: 40px; animation: slide 26s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* cards: the ticket */
.card { background: #fffaf3; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); margin: 14px 0; box-shadow: 0 1px 0 rgba(42,22,48,.04), 0 18px 40px -30px rgba(42,22,48,.35); position: relative; }
.ticket { border-radius: 26px; overflow: visible; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); top: 50%; transform: translateY(-50%); }
.ticket::before { inset-inline-start: -14px; }
.ticket::after { inset-inline-end: -14px; }
.ticket .tear { border-top: 2px dashed var(--line); margin: 14px -6px; }
.tilt { transform: rotate(-1.2deg); }
.tilt:nth-child(even) { transform: rotate(.9deg); }
.locked-card { background: linear-gradient(160deg, #2a1630, #4a2850 70%, #6a3a4a); color: var(--paper); border-color: transparent; }
.locked-card .sub, .locked-card .muted { color: rgba(246,239,230,.75); }
.locked-card .kv dt { color: rgba(246,239,230,.7); }
.gift { font-size: 54px; line-height: 1; margin: 6px 0 10px; display: inline-block; animation: wiggle 3.4s var(--ease) infinite; transform-origin: 60% 100%; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }

.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; width: 100%; transition: transform .15s var(--ease), background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.red { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.btn.small { min-height: 42px; width: auto; padding: 6px 16px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: default; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row .btn { width: auto; flex: 1 1 140px; }

/* inputs */
label { display: block; font-weight: 700; margin: 10px 0 6px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(217,74,54,.35); border-color: var(--red); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: auto; margin-top: 3px; flex: none; accent-color: var(--red); }
.check.on { border-color: var(--red); background: var(--red-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; min-height: 42px; font-weight: 600; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: rgba(47,125,79,.12); color: var(--ok); }
.pill.warn { background: rgba(168,105,14,.14); color: var(--warn); }
.pill.bad { background: rgba(181,58,42,.12); color: var(--bad); }
.pill.info { background: rgba(45,95,154,.12); color: var(--info); }
.pill.gold { background: rgba(184,146,61,.16); color: var(--gold); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* dashboard list */
.list a.card { display: block; color: inherit; transition: transform .2s var(--ease); }
.list a.card:hover { transform: translateY(-2px) rotate(0); }
.title { font-weight: 800; font-size: 20px; }
.date-big { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .02em; }
.strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.strip .step { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.strip .step.done { background: rgba(47,125,79,.12); color: var(--ok); border-color: transparent; }
.strip .step.live { background: rgba(45,95,154,.12); color: var(--info); border-color: transparent; }
.strip .step.bad { background: rgba(181,58,42,.12); color: var(--bad); border-color: transparent; }
.strip .step.human { background: rgba(168,105,14,.14); color: var(--warn); border-color: transparent; }

/* stepper */
.dots { display: flex; gap: 6px; margin: 10px 0 4px; }
.dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--red); }
.dots i.done { background: var(--ink); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.step-num { font-size: 56px; font-weight: 800; color: rgba(42,22,48,.12); line-height: 1; }
.step-body { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nav-steps { display: flex; gap: 10px; margin-top: 16px; }
.nav-steps .btn { width: auto; flex: 1; }

/* candidates */
.cand { border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; background: #fff; display: grid; gap: 6px; }
.cand.selected { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(47,125,79,.12); }
.cand .name { font-weight: 800; font-size: 18px; }

/* preview split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .split { grid-template-columns: 1fr; } }
.split .pane { border-radius: 16px; padding: 12px; border: 1.5px solid var(--line); background: #fff; }
.split .pane.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.split .pane h3 { margin-bottom: 8px; }
.split .pane .kv dt { color: inherit; opacity: .65; }
.hidden-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hidden-list span { font-size: 13px; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.12); }

/* timeline */
.timeline { display: grid; gap: 10px; }
.tl { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); margin-top: 6px; background: #fff; }
.tl .dot.done { background: var(--ok); border-color: var(--ok); }
.tl .dot.live { background: var(--info); border-color: var(--info); animation: pulse 1.6s ease-in-out infinite; }
.tl .dot.bad { background: var(--bad); border-color: var(--bad); }
.tl .dot.human { background: var(--warn); border-color: var(--warn); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45,95,154,.35); } 50% { box-shadow: 0 0 0 7px rgba(45,95,154,0); } }
.receipt { font-size: 15px; background: var(--paper-2); border-radius: 12px; padding: 8px 12px; margin-top: 6px; word-break: break-word; }
.note { background: var(--paper-2); border-radius: 14px; padding: 10px 14px; color: var(--ink-2); font-size: 16px; }
.note.warn { background: rgba(168,105,14,.1); color: var(--warn); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.toast { position: fixed; bottom: 20px; inset-inline: 16px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px rgba(42,22,48,.3); z-index: 9; text-align: center; font-weight: 700; }
.toast.bad { background: var(--bad); }

.continuation { border-radius: 20px; padding: 16px; background: linear-gradient(150deg, #fff6ea, #ffe9e3); border: 1.5px solid rgba(217,74,54,.25); }
.continuation .atmo { font-style: italic; color: var(--ink-2); }

@media (min-width: 720px) { .btn { width: auto; } .marquee { margin: 22px -60px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee span, .gift, .tl .dot.live { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step-body { animation: none; }
  .tilt, .tilt:nth-child(even) { transform: none; }
}
