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

:root {
  --cream: #fffff7;
  --ink: #363944;
  --olive: #3f7469;
  --olive-deep: #2f5f56;
  --light: #e7f0f1;
  --muted: #585e6b;
  --line: #d5e3e5;
  --paper: #ffffff;
  --sage: #c3d8db;
  --button-rim: #e4eff1;
  --button-shadow: #9bb7b9;
  --accent: #cc757b;
  --focus: #cc757b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Assistant, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}
img, iframe { max-width: 100%; border: 0; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ul, fieldset { margin: 0; }
h1, h2 {
  font-family: Assistant, Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
}
h2 { font-size: clamp(28px, 7vw, 36px); }
h3 { font-size: 18px; font-weight: 500; }
p, li, dd { color: var(--muted); overflow-wrap: break-word; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

.skip {
  position: fixed;
  top: -120px;
  right: 16px;
  z-index: 80;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Preview-only banner */
.preview-bar {
  background: var(--olive);
  color: #fffff7;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  padding: 9px 16px;
}
.preview-bar strong { font-weight: 600; color: #fff; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid #d7e3e5;
  background: #fffff7f5;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand img {
  height: 43px;
  width: auto;
  max-width: min(280px, 72vw);
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

/* Date header */
.meeting {
  display: grid;
  gap: 18px;
  padding: 28px 0 8px;
}
.meeting-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 28px 28px 12px 12px;
  background: var(--light);
}
.meeting-visual picture {
  display: block;
}
.meeting-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--olive);
}
.meeting h1 {
  font-size: clamp(32px, 9vw, 48px);
  margin-bottom: 6px;
}
.meeting-kicker {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 18px;
}
.meeting-meta {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.meeting-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.meeting-meta strong {
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}
.meeting-meta span { text-align: left; unicode-bidi: isolate; }


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Static price for this page's ticket. Other types are separate pages, not a switcher. */
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.price-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.price-note {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.price-amount {
  font-family: Assistant, Georgia, serif;
  font-size: clamp(36px, 9vw, 48px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -1.2px;
  text-align: left;
  flex-shrink: 0;
}
.price-amount span { unicode-bidi: isolate; }
.price-amount small {
  display: block;
  font-family: Assistant, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0;
}

/* Optional add-a-participant toggle, under the price. Prepared locally; not a ticket-type switcher. */
.add-on {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 52px;
}
.add-on:hover { border-color: var(--sage); }
.add-on:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.add-on:has(input:checked) {
  border-color: var(--olive);
  background: var(--light);
  box-shadow: inset 0 0 0 1px var(--olive);
}
.add-on input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.add-on-box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid var(--olive);
  border-radius: 6px;
  background: var(--paper);
  position: relative;
}
.add-on input:checked + .add-on-box {
  background: var(--olive);
}
.add-on input:checked + .add-on-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fffff7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.add-on-text { flex: 1; }

/* Tickets */
.section { padding: 28px 0 8px; }
.section h2 { margin-bottom: 14px; }
.tickets {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot title price" "dot note price";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  text-align: right;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 64px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ticket:hover { border-color: var(--sage); }
.ticket[aria-pressed="true"] {
  background: var(--light);
  border-color: var(--olive);
  box-shadow: inset 0 0 0 1px var(--olive);
}
.ticket-dot {
  grid-area: dot;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  position: relative;
}
.ticket[aria-pressed="true"] .ticket-dot {
  border-color: var(--olive);
  background: var(--olive);
}
.ticket[aria-pressed="true"] .ticket-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cream);
  border-radius: 50%;
}
.ticket-title {
  grid-area: title;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.ticket-note {
  grid-area: note;
  font-size: 13px;
  color: var(--muted);
}
.ticket-price {
  grid-area: price;
  font-family: Assistant, Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.ticket-price small {
  display: block;
  font-family: Assistant, Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

/* Suitability — after payment */
.suitability {
  background: #fff7f6;
  border: 1px solid #e9c7c8;
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin: 20px 0 0;
}
.suitability h2 { font-size: 26px; margin-bottom: 10px; }
.suitability p { font-size: 15px; line-height: 1.8; }
.suitability p + p { margin-top: 12px; }

/* Payment */
.pay-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 16px;
  margin-top: 8px;
}
.pay-card h2 { margin-bottom: 6px; }
.secure-note {
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.secure-note svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  stroke: var(--olive);
  fill: none;
  stroke-width: 1.6;
}
/* Generous floor so the iCount "שלם כעת" button is not clipped if
   page_size postMessage is late or missing. JS may raise this further. */
.frame-wrap {
  position: relative;
  background: var(--light);
  border-radius: 14px;
  overflow: hidden;
  min-height: 1650px;
  border: 1px solid var(--line);
}
.frame-wrap iframe {
  width: 100%;
  min-height: 1650px;
  height: 1650px;
  background: #fff;
  border: 0;
  overflow: hidden;
  display: block;
}
.frame-wrap.is-loaded { background: #fff; }
.frame-wrap.is-sized,
.frame-wrap.is-sized iframe {
  min-height: 0;
}
.pay-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #fff7f6;
  border: 1px solid #e9c7c8;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
}
.frame-fallback {
  display: block;
  text-align: center;
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 8px 4px;
}
.frame-fallback.is-urgent {
  background: var(--light);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.frame-fallback.is-urgent span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Trust */
.trust {
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  text-align: center;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.trust div { min-width: 88px; }
.trust b {
  display: block;
  font-family: Assistant, Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: var(--olive);
  font-weight: 400;
  letter-spacing: -0.6px;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.trust span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
}
.signature {
  font-family: Assistant, Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.45;
}
.site-footer small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

@media (min-width: 760px) {
  .site-header { height: 92px; }
  .brand img { height: 50px; }
  .wrap { width: min(760px, calc(100% - 64px)); }
  .meeting {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 36px;
    padding-top: 40px;
  }
  .meeting-visual {
    border-radius: 80px 16px 16px 16px;
    order: 2;
  }
  .meeting-visual img { aspect-ratio: 4 / 3; }
  .meeting h1 { font-size: 48px; }
  .pay-card { padding: 24px; }
  .frame-wrap:not(.is-sized), .frame-wrap:not(.is-sized) iframe { min-height: 1250px; height: 1250px; }
  .ticket-price { font-size: 32px; }
}



/* Thank-you page — same story/checkout palette, no tracking. */
.thanks-page { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-page .wrap.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 48px;
}
.thanks-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 22px 32px;
}
.thanks-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.thanks-mark svg { display: block; }
.thanks .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}
.thanks h1 {
  font-size: clamp(32px, 9vw, 48px);
  margin-bottom: 16px;
  color: var(--ink);
}
.thanks p {
  max-width: 28em;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.thanks-page .site-footer {
  margin-top: auto;
}

@media (min-width: 760px) {
  .thanks-card { padding: 52px 48px 44px; border-radius: 28px; }
  .thanks h1 { font-size: 48px; }
}

/* Story-family primary button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  border: 0;
  border-radius: 60px;
  background: var(--olive);
  color: #ffffff;
  font-family: Assistant, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.button:hover {
  background: var(--olive-deep);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket, .button { transition: none; }
  .button:hover { transform: none; }
}

/* Mobile (≤600px, 2026-11-16): hero becomes a short banner so the price and payment form sit higher. Desktop unchanged. */
@media (max-width: 600px) {
  .meeting { gap: 14px; padding-top: 16px; }
  .meeting-visual { border-radius: 18px; }
  .meeting-visual img {
    aspect-ratio: auto;
    height: 160px;
    max-height: 160px;
    object-fit: cover;
    object-position: 50% 38%;
  }
}
