/* ============================================================
   Next October — "איך תציינו את ה-7.10?" memorial kit
   First Light expression. Screen 1d (desktop) / 2a (mobile) /
   3a-3b (lead-capture overlay).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap');

:root {
  /* Night */
  --night: #0a1226;
  --night-2: #111c3a;
  /* Dawn */
  --dawn-sky: #dce4f4;
  --dawn-mist: #eceef2;
  --dawn-warm: #f7ecdd;
  --dawn-blush: #f5e3cf;
  /* Gold — ornament only, never a fill */
  --gold: #c9a876;
  --gold-text: #96763f;
  --gold-soft: #d9bd8d;
  --gold-line: rgba(150, 118, 63, .32);
  /* Ink */
  --ink-900: #0e1320;
  --ink-700: #2a3142;
  --ink-600: #444b5c;
  --ink-500: #5a6072;
  /* Sand */
  --sand-50: #fbfaf7;
  --sand-100: #faf9f7;
  --sand-200: #f4f0e9;
  /* Azure */
  --blue-600: #0161ff;
  --blue-700: #0340d5;
  /* Green — share CTA + overlay CTA only */
  --green-500: #1f9d63;
  /* On-night text */
  --text-on-night: rgba(250, 249, 247, .88);
  --text-on-night-muted: rgba(250, 249, 247, .65);

  --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
  --font-sans: 'Assistant', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #070d1d; }

body {
  margin: 0;
  font-family: var(--font-sans);
  direction: rtl;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  /* The concept: night rising into dawn as you scroll. */
  background: linear-gradient(180deg,
    #070d1d 0%, var(--night) 16%, #1b2a4d 30%, #6f86b8 40%,
    var(--dawn-mist) 50%, var(--dawn-warm) 62%,
    var(--sand-100) 76%, var(--sand-50) 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

::selection { background: rgba(201, 168, 118, .4); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }

/* The grain. Whisper-quiet, over everything, non-negotiable —
   without it the wide dawn gradients band. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- motion ---------- */
@keyframes fl-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fl-in { from { opacity: 0; } to { opacity: .85; } }
@keyframes fl-drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%,-2%,0) scale(1.08); } 100% { transform: translate3d(0,0,0) scale(1); } }
@keyframes fl-breathe { 0%,100% { opacity: .32; } 50% { opacity: .62; } }
@keyframes fl-glow {
  0%,100% { box-shadow: 0 10px 26px rgba(31,157,99,.3), 0 0 0 0 rgba(31,157,99,.34); }
  50% { box-shadow: 0 14px 34px rgba(31,157,99,.4), 0 0 0 12px rgba(31,157,99,0); }
}
@keyframes fl-sheen { 0% { transform: translateX(-140%) skewX(-18deg); } 55%,100% { transform: translateX(240%) skewX(-18deg); } }

/* Static is a designed state, not a fallback: keep the composed dawn,
   drop the loops and the entrance transforms. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__logo { opacity: .85; }
  .sun { opacity: .46; }
}

/* ---------- layout shell ---------- */
.page { max-width: 1180px; margin: 0 auto; position: relative; }

/* ============================================================
   a. Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 52px 72px 76px; text-align: center; }
.sun {
  position: absolute; left: 50%; top: 34%; width: 900px; height: 560px; margin-left: -450px;
  background: radial-gradient(ellipse at center, rgba(246,196,120,.18) 0%, rgba(246,196,120,0) 72%);
  animation: fl-breathe 15s ease-in-out infinite; pointer-events: none;
}
.hero__logo {
  display: block; height: 40px; margin: 0 auto; opacity: .85;
  animation: fl-in 1.3s var(--ease-slow) both;
}
.hero__title {
  position: relative; margin: 28px 0 0; font-size: 92px; line-height: 1.04;
  letter-spacing: -.02em; color: #fff;
  animation: fl-up 1.1s var(--ease-slow) .12s both;
}
/* Emphasis is weight + colour at one size — never split by size. */
.hero__title .light { display: block; font-weight: 300; color: rgba(250,249,247,.7); }
.hero__title .bold  { display: block; font-weight: 800; }
.hero__intro { position: relative; max-width: 660px; margin: 34px auto 0; animation: fl-up 1.1s var(--ease-slow) .3s both; }
.hero__intro p { margin: 0 0 15px; font-size: 19px; line-height: 1.75; color: var(--text-on-night); text-wrap: pretty; }
.hero__intro p.muted { margin-bottom: 18px; color: var(--text-on-night-muted); }
.hero__intro p.closing { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 700; color: var(--gold-soft); }

/* ============================================================
   b. Featured block — the ceremony
   ============================================================ */
.ceremony-wrap { padding: 0 72px 24px; }
.ceremony {
  position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid rgba(201,168,118,.5); background: rgba(10,18,38,.78);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 26px 70px rgba(0,0,0,.42); padding: 48px 52px;
  animation: fl-up 1.1s var(--ease-slow) .4s both;
}
/* head + CTA stack in the wide column; the body column spans both rows,
   so the rule between them runs the full height of the panel. */
.ceremony__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr;
  grid-template-areas: "head body" "cta body";
  gap: 20px 46px; align-items: start;
}
.ceremony__head { grid-area: head; }
.ceremony__cta  { grid-area: cta; align-self: start; }
.ceremony__body { grid-area: body; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--gold-soft); margin-bottom: 16px; }
.ceremony__title { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 700; color: #fff; letter-spacing: -.01em; text-wrap: pretty; }
.ceremony__body { padding-inline-start: 30px; border-inline-start: 1px solid rgba(201,168,118,.3); }
.ceremony__body p { margin: 0 0 13px; font-size: 16px; line-height: 1.7; color: var(--text-on-night); }
.ceremony__body p.note { margin: 0; font-size: 15px; color: var(--text-on-night-muted); }

/* ============================================================
   c. Activity list
   ============================================================ */
.activities { position: relative; padding: 70px 72px 90px; }
.axis-wrap { position: relative; }
/* The gold hairline axis starts and stops with the list — never the footer. */
.axis-wrap::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 8%, var(--gold-line) 92%, transparent);
}
.section-pill-row { position: relative; text-align: center; margin-bottom: 44px; }
.section-pill {
  display: inline-block; padding: 7px 20px; border-radius: var(--pill);
  border: 1px solid var(--gold-line); background: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 700; letter-spacing: .05em; color: var(--gold-text);
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 68px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.72); border: 1px solid rgba(201,168,118,.35);
  border-radius: 20px; padding: 32px 30px; box-shadow: 0 8px 26px rgba(14,19,32,.07);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(14,19,32,.12); }
.card:nth-child(odd)  { grid-column: 1; }
.card:nth-child(even) { grid-column: 2; }
.card h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.card p { margin: 0 0 24px; flex: 1; font-size: 15px; line-height: 1.75; color: var(--ink-600); text-wrap: pretty; }
.card--quiet { background: rgba(255,255,255,.5); border-style: dashed; border-color: rgba(201,168,118,.5); box-shadow: none; }
.card--quiet:hover { background: rgba(255,255,255,.78); box-shadow: none; }
.card--quiet p { margin: 0; }
.card__cta { align-self: flex-start; }

/* ---------- FLButton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  letter-spacing: .01em; line-height: 1.2; border-radius: var(--pill);
  text-decoration: none; cursor: pointer; transition: all .35s var(--ease);
}
.btn__arrow { display: inline-block; margin-inline-start: 10px; margin-inline-end: 0; transition: margin .35s var(--ease); }
.btn:hover .btn__arrow { margin-inline-start: 15px; margin-inline-end: -5px; }
/* Azure is demoted everywhere else; this is where it is spent. */
.btn--primary {
  background: var(--blue-600); color: #fff; border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(1,97,255,.18); padding: 14px 38px; min-height: 48px;
}
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 10px 26px rgba(1,97,255,.24); }
.btn--outline {
  background: rgba(255,255,255,.35); color: var(--ink-900);
  border: 1px solid rgba(14,19,32,.25); padding: 13px 34px; min-height: 46px;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-text); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn__soon {
  margin-inline-start: 10px; padding: 2px 9px; border-radius: var(--pill);
  border: 1px solid var(--gold-line); font-size: 12px; font-weight: 700; color: var(--gold-text);
}

/* ---------- the green CTA (share + overlay primary) ---------- */
.cta-green {
  position: relative; overflow: hidden; display: inline-flex; align-items: center;
  justify-content: center; gap: 12px; padding: 16px 34px; border-radius: var(--pill);
  background: linear-gradient(180deg, #26b072 0%, var(--green-500) 100%);
  color: #fff; font-family: var(--font-sans); font-size: 18px; font-weight: 800;
  letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer;
  animation: fl-glow 3.2s var(--ease) infinite; transition: transform .3s var(--ease);
}
.cta-green:hover { transform: translateY(-2px) scale(1.02); }
.cta-green::before {
  content: ""; position: absolute; inset: 0; width: 34%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.42), rgba(255,255,255,0));
  animation: fl-sheen 3.6s var(--ease-slow) infinite; pointer-events: none;
}
.cta-green > * { position: relative; }
.cta-green:disabled { opacity: .5; cursor: not-allowed; animation: none; transform: none; }
.cta-green:disabled::before { animation: none; opacity: 0; }

/* ============================================================
   d. Footer block — sibling AFTER the axis wrapper
   ============================================================ */
.footer-block {
  position: relative; max-width: 760px; margin: 76px auto 0; padding-top: 34px;
  border-top: 1px solid var(--gold-line); text-align: center;
}
.footer-block p { margin: 0 0 30px; font-size: 17px; line-height: 1.8; color: var(--ink-600); text-wrap: pretty; }
.footer-block a.inline { font-weight: 700; color: var(--blue-600); text-decoration: none; border-bottom: 1px solid rgba(1,97,255,.35); }
.footer-block a.inline:hover { color: var(--blue-700); }
.signoff { position: relative; text-align: center; margin-top: 64px; }
.signoff img { display: block; height: 52px; margin: 0 auto; }
.signoff p { margin: 16px 0 0; font-size: 24px; font-weight: 800; color: var(--ink-900); }

/* ============================================================
   Screens 3a / 3b — lead-capture overlay
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.overlay.is-open { display: block; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(6,11,24,.72); }
.overlay__halo {
  position: absolute; left: 50%; top: 62%; width: 720px; height: 460px; margin-left: -360px;
  background: radial-gradient(ellipse at center, rgba(246,196,120,.28) 0%, rgba(246,196,120,0) 70%);
  animation: fl-breathe 15s ease-in-out infinite; pointer-events: none;
}
.overlay__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* Liquid glass */
.sheet {
  position: relative; overflow: hidden; width: 520px; max-width: 100%; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.34);
  background: linear-gradient(160deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.12) 46%, rgba(255,255,255,.2) 100%);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  /* the inset top highlight is what makes it read as glass — keep it */
  box-shadow: 0 30px 80px rgba(10,18,38,.42), inset 0 1px 0 rgba(255,255,255,.5);
  padding: 40px 40px 34px; animation: fl-up .8s var(--ease-slow) both;
}
.sheet::before {
  content: ""; position: absolute; inset: -60% -20% auto auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 66%);
  animation: fl-drift 30s ease-in-out infinite; pointer-events: none;
}
.sheet__handle { display: none; }

/* Close affordance — inline-end (left in RTL), matched to the glass. */
.sheet__close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.74); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.sheet__close:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); color: #fff; }

/* The gate variant drops the heading — the mark alone carries it. */
.sheet--bare .sheet__head h2,
.sheet--bare .sheet__head p { display: none; }
.sheet--bare .sheet__head img { margin-bottom: 26px; }
.sheet__head { position: relative; text-align: center; }
.sheet__head img { display: block; height: 34px; margin: 0 auto 20px; }
.sheet__head h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.24; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.sheet__head p { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.82); text-wrap: pretty; }
.sheet__form { position: relative; display: flex; flex-direction: column; gap: 12px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.72); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.16);
  color: #fff; font-family: inherit; font-size: 16px; text-align: right; outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder { color: rgba(255,255,255,.55); }
/* Gold focus, never a blue ring. */
.field input:focus { border-color: rgba(217,189,141,.9); background: rgba(255,255,255,.24); outline: none; }
.field input[aria-invalid="true"] { border-color: rgba(232,96,143,.85); }
.field > .field-error { display: none; margin: 6px 2px 0; font-size: 13px; color: #ffc2d4; }
.field > .field-error.is-on { display: block; }
.consent {
  display: flex; align-items: center; gap: 11px; margin-top: 6px; padding: 13px 15px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1);
  cursor: pointer; transition: background .3s var(--ease);
}
.consent:hover { background: rgba(255,255,255,.16); }
.consent input { width: 19px; height: 19px; accent-color: var(--green-500); margin: 0; flex: none; }
.consent span { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.9); }
.sheet__form .cta-green { width: 100%; margin-top: 14px; padding: 17px 24px; }
.fine-print { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); }
.form-error { margin: 10px 0 0; text-align: center; font-size: 14px; color: #ffc2d4; min-height: 0; }

/* Confirmation state (ceremony registration) */
.sheet__done { position: relative; text-align: center; }
.sheet__done img { display: block; height: 34px; margin: 0 auto 20px; }
.sheet__done h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.3; font-weight: 800; color: #fff; }
.sheet__done p { margin: 0 0 10px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.88); text-wrap: pretty; }
.sheet__done p.note { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 26px; }
.sheet__done .cta-green { width: 100%; padding: 17px 24px; }

/* ============================================================
   Screen 2a — mobile
   ============================================================ */
@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg,
      #070d1d 0%, var(--night) 12%, #1b2a4d 24%, #6f86b8 33%,
      var(--dawn-mist) 42%, var(--dawn-warm) 74%, var(--dawn-blush) 100%);
  }
  .topbar { position: relative; padding: 26px 22px 0; text-align: center; }
  .topbar img { display: block; height: 34px; margin: 0 auto; opacity: .85; }

  .hero { padding: 22px 22px 44px; }
  .hero__logo { display: none; }
  .sun { top: 40%; width: 460px; height: 340px; margin-left: -230px; }
  .hero__title { margin: 0; font-size: 46px; line-height: 1.06; }
  .hero__intro { margin-top: 24px; }
  .hero__intro p { font-size: 16px; line-height: 1.7; margin-bottom: 13px; }
  .hero__intro p.muted { margin-bottom: 15px; }
  .hero__intro p.closing { font-size: 18px; line-height: 1.55; }

  .ceremony-wrap { padding: 0 18px 16px; }
  .ceremony { border-radius: 22px; background: rgba(10,18,38,.8); box-shadow: 0 20px 46px rgba(0,0,0,.4); padding: 28px 24px; }
  .ceremony__grid { display: flex; flex-direction: column; gap: 0; }
  .ceremony__head { order: 1; }
  .ceremony__body { order: 2; }
  .ceremony__cta { order: 3; }
  .kicker { font-size: 12px; letter-spacing: .05em; margin-bottom: 12px; }
  .ceremony__title { font-size: 26px; line-height: 1.24; margin-bottom: 16px; }
  .ceremony__cta { width: 100%; }
  .ceremony__body { padding: 14px 0 0; border: 0; border-top: 1px solid rgba(201,168,118,.28); }
  .ceremony__body p { font-size: 15px; margin-bottom: 11px; }
  .ceremony__body p.note { font-size: 14px; margin-bottom: 20px; }
  .ceremony .btn { width: 100%; }

  .activities { padding: 34px 18px 44px; }
  .axis-wrap::before { right: 12px; }
  .section-pill-row { text-align: right; padding-inline-start: 24px; margin-bottom: 22px; }
  .section-pill { font-size: 13px; padding: 6px 16px; letter-spacing: .04em; }
  .cards { display: flex; flex-direction: column; gap: 16px; padding-inline-start: 24px; }
  .card { border-radius: 18px; padding: 24px 22px; box-shadow: 0 6px 20px rgba(14,19,32,.07); }
  .card:hover { transform: none; box-shadow: 0 6px 20px rgba(14,19,32,.07); }
  .card h3 { font-size: 21px; }
  .card p { margin-bottom: 20px; font-size: 15px; }
  .card .btn { width: 100%; }
  .card__cta { align-self: stretch; }

  .footer-block { margin-top: 40px; padding-top: 26px; }
  .footer-block p { font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
  .footer-block .cta-green { display: flex; width: 100%; font-size: 17px; padding: 16px 24px; gap: 10px; }
  .footer-block .cta-green svg { width: 20px; height: 20px; }
  .signoff { margin-top: 40px; }
  .signoff img { height: 40px; }
  .signoff p { margin-top: 12px; font-size: 20px; }

  /* 3b — bottom sheet */
  .overlay__center { align-items: flex-end; padding: 0; }
  .overlay__halo { top: auto; bottom: -160px; width: 520px; height: 420px; margin-left: -260px; }
  .sheet {
    width: 100%; border-radius: 30px 30px 0 0; border-bottom: 0;
    box-shadow: 0 -20px 60px rgba(10,18,38,.4), inset 0 1px 0 rgba(255,255,255,.5);
    padding: 14px 22px 24px; max-height: 92vh; overflow-y: auto;
  }
  .sheet__handle { display: block; width: 44px; height: 4px; border-radius: var(--pill); background: rgba(255,255,255,.42); margin: 0 auto 20px; }
  .sheet__close { top: 10px; inset-inline-end: 12px; width: 32px; height: 32px; }
  .sheet__head img, .sheet__done img { height: 30px; margin-bottom: 16px; }
  .sheet--bare .sheet__head img { margin-bottom: 20px; }
  .sheet__head h2 { font-size: 25px; line-height: 1.26; margin-bottom: 8px; }
  .sheet__head p { font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
  .sheet__done h2 { font-size: 24px; }
  .sheet__done p { font-size: 16px; }
  /* Labels drop on mobile — placeholders carry the field names. */
  .field > span { display: none; }
  .field input[type="text"], .field input[type="email"] { padding: 15px 16px; }
  .sheet__form { gap: 11px; }
  .sheet__form .cta-green { margin-top: 8px; font-size: 17px; }
  .consent span { font-size: 14px; }
  .fine-print { font-size: 12px; margin-top: 6px; }
}

@media (min-width: 861px) { .topbar { display: none; } }

/* Narrow tablet: keep two columns from collapsing awkwardly */
@media (min-width: 861px) and (max-width: 1080px) {
  .hero { padding: 44px 40px 60px; }
  .hero__title { font-size: 68px; }
  .ceremony-wrap { padding: 0 40px 24px; }
  .ceremony { padding: 40px 36px; }
  .ceremony__grid { gap: 32px; }
  .ceremony__title { font-size: 32px; }
  .activities { padding: 56px 40px 72px; }
  .cards { gap: 26px 44px; }
}
