:root {
  --ink: #1C1A2B;
  --muted: #4E4B63;
  --soft: #6A6780;
  --line: #E2E0EC;
  --line-strong: #C9C5DA;
  --bg: #F4F3F8;
  --card: #FFFFFF;
  --accent: #4A2FC0;
  --accent-dark: #2E1B85;
  --accent-soft: #E7E2FB;
  --gold: #F2B33D;
  --gold-soft: #FCE7B6;
  --gold-ink: #5C3D00;
  --ok: #1E7A4F;
  --ok-soft: #DDF1E6;
  --warn-soft: #FFF4DA;
  --warn-line: #E0A21B;
  --display: 'Secular One', sans-serif;
  --body: 'Assistant', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
[hidden] { display: none !important; } /* גובר על display:flex של אזורים מוסתרים */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- מילה מתחלפת בכותרת: המוזמנים / התורמים / המשתתפים / האורחים ---- */
.rot-word { display: inline-grid; vertical-align: top; justify-items: start; }
.rot-word > span { grid-area: 1 / 1; opacity: 0; animation: rot-word 10s ease-in-out infinite; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 .08em; }
.rot-word > span:nth-child(2) { animation-delay: 2.5s; }
.rot-word > span:nth-child(3) { animation-delay: 5s; }
.rot-word > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rot-word { 0% { opacity: 0; transform: translateY(.3em); } 5%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-.3em); } }
@media (prefers-reduced-motion: reduce) {
  .rot-word > span { animation: none; }
  .rot-word > span:first-child { opacity: 1; }
}

/* ---- תרשים זרימה בפס לכל רוחב הדף ---- */
/* רגוע: הריבועים נשארים לבנים; רק האייקון נצבע ועושה תנועה קטנה משלו. מחזור של 12 שניות */
.flow-band { padding: 28px 24px 8px; }
.flow { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px 16px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.flow-step { --t: calc(var(--i) * 2s); position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow-step + .flow-step::before { content: ''; position: absolute; top: 31px; left: calc(50% + 36px); width: calc(100% - 72px); height: 2px; background: repeating-linear-gradient(to right, var(--line-strong) 0 5px, transparent 5px 10px); }
/* נקודה זהובה שעוברת לאט מהשלב הקודם (מימין) לשלב הנוכחי */
.flow-step + .flow-step::after { content: ''; position: absolute; top: 28px; left: calc(150% - 44px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0;
  animation: flow-dot 12s ease-in-out infinite; animation-delay: calc(var(--t) - 1.1s); }
.flow-ic { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: #8B88A0; position: relative; z-index: 1;
  animation: flow-lit 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-ic svg { width: 36px; height: 36px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-ic svg .fill { fill: var(--gold); stroke: none; }
.flow-lb { font-size: 15px; font-weight: 700; color: var(--muted); line-height: 1.25; }

/* תנועה אישית לכל אייקון, בזמן שהשלב שלו פעיל */
.flow-ic svg, .flow-ic svg g, .flow-ic svg path { transform-box: fill-box; }
.flow-step:nth-child(1) .gl { transform-origin: 50% 100%; animation: cheer-l 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(1) .gr { transform-origin: 50% 100%; animation: cheer-r 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(1) .spark-l { opacity: 0; animation: cheer-spark 12s ease-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(2) svg { animation: hop 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(3) svg { animation: glow 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(4) svg { animation: send 12s ease-in-out infinite; animation-delay: var(--t); }
.flow-step:nth-child(5) .flow-ic { animation-name: flow-lit-end; }

@keyframes flow-lit { 0%, 13%, 100% { color: #8B88A0; border-color: var(--line); } 3%, 10% { color: var(--accent); border-color: #CFC6F5; } }
@keyframes flow-lit-end { 0%, 13%, 100% { color: var(--accent); border-color: #CFC6F5; } 3%, 10% { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); } }
@keyframes cheer-l { 0%, 2%, 12%, 100% { transform: none; } 5% { transform: translateX(2.5px) rotate(14deg); } 6.5% { transform: translateX(1.5px) rotate(8deg); } 8% { transform: translateX(2.5px) rotate(13deg); } }
@keyframes cheer-r { 0%, 2%, 12%, 100% { transform: none; } 5% { transform: translateX(-2.5px) rotate(-14deg); } 6.5% { transform: translateX(-1.5px) rotate(-8deg); } 8% { transform: translateX(-2.5px) rotate(-13deg); } }
@keyframes cheer-spark { 0%, 4.5%, 100% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; transform: scale(1.15); } 10% { opacity: 0; transform: scale(1.3); } }
@keyframes hop { 0%, 2%, 11%, 100% { transform: none; } 5% { transform: translateY(-5px) rotate(-6deg); } 7.5% { transform: translateY(0) rotate(3deg); } 9% { transform: rotate(0); } }
@keyframes glow { 0%, 2%, 11%, 100% { transform: none; filter: none; } 5%, 8% { transform: scale(1.08); filter: drop-shadow(0 0 4px rgba(74,47,192,.45)); } }
@keyframes send { 0%, 2%, 12%, 100% { transform: none; opacity: 1; } 6% { transform: translate(-9px, -5px) rotate(-8deg); opacity: .25; } 6.01% { transform: translate(9px, 4px); opacity: 0; } 9% { transform: none; opacity: 1; } }
@keyframes flow-dot { 0% { opacity: 0; left: calc(150% - 44px); } 1.5% { opacity: 1; } 8% { opacity: 1; left: calc(50% + 36px); } 9.5%, 100% { opacity: 0; left: calc(50% + 36px); } }

/* השלב האחרון מתחלף: חופה → בר מצווה → דינר → מסיבה */
.flow-rot, .flow-rot-lb { display: grid; }
.flow-rot svg, .flow-rot-lb span { grid-area: 1 / 1; place-self: center; opacity: 0; animation: flow-rot 12s ease-in-out infinite; }
.flow-rot .r1, .flow-rot-lb .r1 { animation-delay: 3s; }
.flow-rot .r2, .flow-rot-lb .r2 { animation-delay: 6s; }
.flow-rot .r3, .flow-rot-lb .r3 { animation-delay: 9s; }
.flow-end .flow-lb { color: var(--accent-dark); }
.flow-for { margin: 0; font-size: 15px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.flow-for strong { color: var(--ink); font-weight: 600; }
@keyframes flow-rot { 0% { opacity: 0; transform: translateY(6px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 640px) {
  .flow-band { padding: 16px 12px 0; }
  .flow { padding: 18px 8px 12px; }
  .flow-ic { width: 46px; height: 46px; border-radius: 14px; }
  .flow-ic svg { width: 26px; height: 26px; }
  .flow-step + .flow-step::before { top: 22px; left: calc(50% + 26px); width: calc(100% - 52px); }
  .flow-step + .flow-step::after { display: none; }
  .flow-lb { font-size: 12px; }
  .flow-for { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-ic, .flow-ic svg, .flow-ic svg g, .flow-ic svg path, .flow-step::after { animation: none !important; }
  .flow-rot svg, .flow-rot-lb span { animation: none; }
  .flow-rot .r0, .flow-rot-lb .r0 { opacity: 1; }
}

/* פס "בהרצה" בראש העמוד */
.beta-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 15px; text-align: center; }
.beta-bar .pill { background: var(--gold); color: var(--ink); font-size: 13px; padding: 2px 10px; }
.beta-bar a { color: var(--gold); font-weight: 700; }
.beta-bar a:hover { color: #fff; }

/* טופס הרשמה לעדכונים */
.updates-form { margin-top: 32px; background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.updates-form h3 { font-size: 24px; }
.updates-row { display: flex; flex-wrap: wrap; gap: 10px; }
.updates-row input { flex: 1 1 260px; min-width: 0; font: 17px var(--body); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; min-height: 52px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.form-msg { font-weight: 700; color: var(--ok); min-height: 1.5em; margin: 0; }
.updates-form.sent .updates-row, .updates-form.sent .consent { display: none; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; font: 700 18px var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.pill { display: inline-block; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 14px; }

/* header */
.site-header { padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 23px; }
.logo-mark { width: 44px; height: 44px; flex: 0 0 44px; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tag { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 3px; }
@media (max-width: 640px) { .logo-tag { font-size: 12px; } }
.nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-weight: 600; font-size: 17px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav .btn-dark, .nav .btn-dark:hover { color: #fff; }
.nav .btn { min-height: 44px; font-size: 16px; padding: 0 20px; border-radius: 999px; }

/* sections */
section { padding: 96px 24px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: 44px; }
.section-head p { font-size: 19px; color: var(--muted); }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 21px; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.file-types { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.file-types-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ft { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; line-height: 1.25; }
.ft strong { font-size: 16px; }
.ft span { font-size: 13px; color: var(--muted); }
.ft-xls { background: #E9F5EE; color: var(--ok); }
.ft-pdf { background: #FBE9EC; color: #A3243F; }
.ft-hand { background: #FCF1D9; color: #7A5200; }
.file-types-note { display: flex; align-items: center; gap: 10px; font-size: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.file-types-notes { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.file-types-notes li { display: flex; align-items: flex-start; gap: 10px; }
.file-types-notes .icon { margin-top: 2px; }

.hero-visual { flex: 1 1 440px; min-width: 0; position: relative; height: 600px; }
.demo-sheet { position: absolute; top: 0; left: 0; width: min(430px, 100%); height: 540px; background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(28,26,43,.35); transform: rotate(-3deg); padding: 18px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 66px; gap: 6px; align-content: start; }
.demo-label { border: 1px dashed var(--line-strong); border-radius: 5px; padding: 4px 7px; font-size: 9.5px; line-height: 1.35; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.demo-label strong { font-size: 10px; }
.demo-label .hon, .hon { color: var(--accent); }
.envelope { position: absolute; bottom: 0; right: 0; width: 340px; max-width: 90%; height: 220px; background: #EDE6D8; border-radius: 6px; box-shadow: 0 24px 40px -18px rgba(28,26,43,.4); transform: rotate(5deg); display: flex; align-items: center; justify-content: center; }
.envelope .stamp { position: absolute; top: 18px; left: 18px; width: 48px; height: 58px; border: 2px dashed #B9A98C; border-radius: 4px; }
.envelope .addr { background: #fff; border-radius: 8px; padding: 14px 22px; font-size: 15px; line-height: 1.5; max-width: 270px; }
.ready-badge { position: absolute; top: 250px; right: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 24px -10px rgba(74,47,192,.6); }

.pain { background: var(--ink); color: #fff; padding: 72px 24px; }
.pain .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pain h2 { flex: 1 1 420px; font-size: 40px; }
.pain h2 span { color: var(--gold); }
.pain p { flex: 1 1 420px; font-size: 20px; color: #D8D5E6; }

/* honorifics */
.transform { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.transform > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.small-label { font-weight: 700; font-size: 15px; color: var(--muted); }
.raw-table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.raw-table div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.raw-table div:first-child { background: var(--bg); font-weight: 700; font-size: 14px; color: var(--muted); }
.raw-table div + div { border-top: 1px solid var(--line); font-size: 15px; }
.raw-table span { padding: 11px 10px; }
.big-sticker { background: #fff; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; font-size: 19px; line-height: 1.4; }
.big-sticker > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { background: #fff; border: 1px solid #D6D3E3; border-radius: 999px; padding: 8px 18px; font-size: 17px; font-weight: 600; }

/* cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent); }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 48px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ic { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--muted); font-size: 17px; }

.soon { background: var(--accent-soft); }
.soon .card-dark { background: var(--ink); color: #fff; }
.soon .card-dark p { color: #D8D5E6; }
.soon .ic-box { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 20px 26px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; color: var(--muted); }

.final-cta { background: var(--accent); color: #fff; border-radius: 32px; padding: 72px 32px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final-cta h2 { font-size: 48px; }
.final-cta p { font-size: 20px; color: #EEEAFF; }
.final-cta .btn { background: #fff; color: var(--accent-dark); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 24px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

/* עמודי מדיניות */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; font-size: 18px; }
.legal h1 { font-size: 44px; margin-bottom: 6px; }
.legal h2 { font-family: var(--body); font-weight: 700; font-size: 24px; margin: 36px 0 10px; }
.legal h3 { font-size: 19px; margin: 18px 0 4px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }

/* קרדיט בונת המערכת */
.builder { background: #fff; border-top: 1px solid var(--line); padding: 28px 24px; }
.builder .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.builder-id { display: flex; align-items: center; gap: 18px; }
.builder-id img { height: 130px; width: auto; display: block; }
.builder-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.builder-text small { font-size: 14px; color: var(--muted); }
.builder-text strong { font-size: 19px; color: #16466E; }
.builder-text .builder-tagline { font-size: 15px; color: #8A6D1E; font-weight: 600; }
.builder-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.builder-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #C9D6E3; border-radius: 999px; color: #16466E; text-decoration: none; font-weight: 600; font-size: 16px; background: #F5F8FB; }
.builder-contact a:hover { border-color: #16466E; color: #0E3352; }

@media (max-width: 640px) {
  section { padding: 64px 16px; }
  .section-head h2, .pain h2 { font-size: 34px; }
  .hero-visual { height: 520px; }
  .file-types-grid { grid-template-columns: 1fr; }
  .raw-table div { grid-template-columns: repeat(5, minmax(60px, 1fr)); overflow-x: auto; }
}

/* הפס מעל הכותרת — פחות רווח מעל אזור הכותרת */
.flow-band + .hero { padding-top: 48px; }
@media (max-width: 640px) { .flow-band + .hero { padding-top: 32px; } }
