/* /merpati event landing page. Mobile first: people arrive from a QR code on their phone. */
.page-event .contact-fab { display: none; }


/* ---------- Session code ticket ---------- */
.ev-ticket-wrap { position: relative; z-index: 2; margin-top: -48px; padding-bottom: 56px; }
.ev-ticket { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 28px; background: var(--white); box-shadow: 0 30px 70px -30px rgba(28,25,23,.45), 0 0 0 1px var(--line); overflow: hidden; }
.ev-ticket__code { position: relative; padding: 28px 22px 26px; background: radial-gradient(120% 90% at 0% 0%, #FBE3D3 0%, var(--white) 60%); }
.ev-ticket__code::after { /* perforation */ content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; border-bottom: 2px dashed var(--line-strong); }
.ev-ticket__title { margin: 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.03em; }
.ev-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px 14px 20px; border-radius: 18px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font: inherit; transition: background-color .25s, border-color .25s; }
.ev-code__value { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(1.25rem, 6.2vw, 2.125rem); font-weight: 700; letter-spacing: .06em; }
.ev-code__hint { font-size: .8125rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--ev-orange); white-space: nowrap; }
.ev-code.is-copied { background: #1E5E3B; border-color: #1E5E3B; }
.ev-ticket__small { margin: 12px 0 0; font-size: .9375rem; color: var(--muted); }
.ev-ticket__small a { color: var(--ink); font-weight: 600; }
.ev-ticket__side { display: grid; gap: 20px; padding: 24px 22px 24px; }
.ev-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ev-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; font-size: .9375rem; color: var(--muted); }
.ev-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FBE3D3; color: var(--ev-orange); font-size: .9375rem; }
.ev-steps strong { display: block; color: var(--ink); font-size: 1rem; }
.ev-ticket__cta { width: 100%; }
@media (min-width: 900px) {
  .ev-ticket-wrap { margin-top: -80px; padding-bottom: 80px; }
  .ev-ticket { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .ev-ticket__code { padding: 40px; }
  .ev-ticket__code::after { left: auto; top: 22px; bottom: 22px; right: 0; border-bottom: 0; border-right: 2px dashed var(--line-strong); }
  .ev-ticket__side { padding: 40px; align-content: center; }
  .ev-ticket__title { font-size: 1.75rem; }
}

/* ---------- Journey: vertical timeline on phones, three columns on desktop ---------- */
.ev-journey__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: m; }
.ev-moment { border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -32px rgba(28,25,23,.4); }
.ev-moment__visual { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.ev-moment__visual img { width: 100%; height: 100%; object-fit: cover; }
.ev-chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #fff; background: rgba(20,17,15,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ev-chip i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: ev-pulse 1.8s infinite; }
@keyframes ev-pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ev-chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; background: linear-gradient(160deg, #1F3B33, #14211D); }
.ev-chat p { margin: 0; max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .875rem; line-height: 1.35; }
.ev-chat__in { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.ev-chat__out { align-self: flex-end; background: #D9FDD3; color: #12261E; border-bottom-right-radius: 4px; }
.ev-chat small { display: block; margin-top: 6px; font-size: .6875rem; font-weight: 700; color: var(--ev-orange); letter-spacing: .02em; }
.ev-moment__body { padding: 20px 20px 22px; }
.ev-moment__when { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--ev-orange); }
.ev-moment__title { margin: 4px 0 14px; font-size: 1.375rem; letter-spacing: -0.03em; }
.ev-moment__row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.ev-moment__row strong { display: block; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.ev-moment__row .ia { color: var(--ev-orange); }
.ev-moment__row--you .ia { color: #1E7A4C; }
.ev-moment__row svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .ev-journey__list { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; } }

/* ---------- Evidence ---------- */
.ev-stats { display: grid; gap: 14px; margin-top: 40px; }
.ev-stat { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ev-stat__big { margin: 0; font-size: clamp(2.75rem, 12vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: #F08A4B; }
.ev-stat__big small { font-size: .5em; color: var(--on-dark-3); }
.ev-stat__label { margin: 10px 0 0; font-size: 1.0625rem; color: var(--on-dark); letter-spacing: -0.01em; }
.ev-stat--bars .ev-stat__label { margin: 0 0 18px; }
.ev-stat__text { margin: 10px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--on-dark-2); }
.ev-stat__src { margin: 16px 0 0; font-size: .8125rem; color: var(--on-dark-3); }
.ev-stat__src a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ev-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-top: 14px; font-size: .875rem; color: var(--on-dark-2); }
.ev-bar-row b { font-size: 1.5rem; color: var(--on-dark); letter-spacing: -0.03em; }
.ev-bar-row--hi b { color: #F08A4B; }
.ev-meter { grid-column: 1 / -1; grid-row: 2; height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ev-meter i { display: block; height: 100%; width: calc(var(--w) * 2.4); max-width: 100%; border-radius: inherit; background: var(--on-dark-3); transform-origin: left; transition: transform 1.2s var(--ease-out) .2s; }
.ev-bar-row--hi .ev-meter i { background: linear-gradient(90deg, #C45A1A, #F08A4B); }
.js-motion .ev-stat--bars:not(.is-in) .ev-meter i { transform: scaleX(0); }
.ev-takeaway { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 0; padding: 18px 20px; border-radius: 20px; background: linear-gradient(120deg, rgba(196,90,26,.28), rgba(196,90,26,.08)); color: var(--on-dark); font-size: 1rem; }
.ev-takeaway .ia { color: #F08A4B; flex: none; }
.ev-takeaway svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .ev-stats { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 56px; } .ev-stat { padding: 32px; } }

/* ---------- MMC rules ---------- */
.ev-rules__grid { display: grid; gap: 12px; margin-top: 36px; }
.ev-rule { padding: 22px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.ev-rule:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(28,25,23,.45); }
.ev-rule__top { display: flex; align-items: center; justify-content: space-between; }
.ev-rule__top .ia { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #F08A4B; }
.ev-rule__top svg { width: 22px; height: 22px; }
.ev-rule__clause { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; font-weight: 600; color: var(--muted-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.ev-rule__title { margin: 16px 0 6px; font-size: 1.25rem; letter-spacing: -0.025em; }
.ev-rule__text { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.ev-links { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 560px) { .ev-links { display: flex; flex-wrap: wrap; } }
@media (min-width: 700px) { .ev-rules__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .ev-rules__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Audience paths ---------- */
.ev-paths__grid { display: grid; gap: 14px; margin-top: 36px; }
.ev-path { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.ev-path:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(28,25,23,.5); }
.ev-path > .ia { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #FBE3D3; color: var(--ev-orange); }
.ev-path > .ia svg { width: 26px; height: 26px; }
.ev-path__who { margin: 6px 0 0; font-size: 1.375rem; letter-spacing: -0.03em; }
.ev-path__text { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); flex: 1; }
.ev-path__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--ev-orange); }
.ev-path__cta svg { transition: transform .3s var(--ease-out); }
.ev-path:hover .ev-path__cta svg { transform: translateX(4px); }
.ev-path--dark { background: radial-gradient(120% 100% at 100% 0%, #5A2A10 0%, var(--ink) 55%); border-color: var(--ink); color: var(--on-dark); }
.ev-path--dark .ev-path__text { color: var(--on-dark-2); }
.ev-path--dark > .ia { background: rgba(240,138,75,.16); color: #F08A4B; }
.ev-path--dark .ev-path__cta { color: #F08A4B; }
@media (min-width: 900px) { .ev-paths__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .ev-path { padding: 32px; } }

/* ---------- Speaker ---------- */
.ev-speaker__grid { display: grid; gap: 28px; align-items: center; }
.ev-speaker__photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 520px; background: var(--bg-soft); }
.ev-speaker__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ev-speaker__photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-speaker__photo figcaption span { padding: 6px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(20,17,15,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ev-speaker__role { margin: 0; font-weight: 700; color: var(--ev-orange); }
.ev-speaker__name { margin: 6px 0 0; font-size: clamp(1.75rem, 7vw, 2.75rem); line-height: 1.08; letter-spacing: -0.04em; }
.ev-speaker__bio { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 56ch; }
@media (min-width: 900px) { .ev-speaker__grid { grid-template-columns: 0.8fr 1fr; gap: 64px; } }

/* ---------- Sticky bar on phones ---------- */
.ev-sticky { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(28,25,23,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transform: translateY(140%); transition: transform .45s var(--ease-out); }
.ev-sticky.is-on { transform: none; }
.ev-sticky__code { display: grid; align-content: center; padding: 0 14px; border-radius: 15px; border: 1px dashed rgba(255,255,255,.35); background: transparent; color: #fff; font: 700 .9375rem/1.1 ui-monospace, Menlo, monospace; letter-spacing: .06em; cursor: pointer; }
.ev-sticky__code small { font: 600 .625rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.ev-sticky__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 15px; background: var(--ev-orange); color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .ev-sticky { left: auto; right: 24px; bottom: 24px; width: 380px; } }

@media (prefers-reduced-motion: reduce) {
  .ev-hero__bg img, .ev-hero__scroll, .ev-chip i { animation: none; }
  .ev-meter i { transition: none; }
}

/* The day around this session: organiser, record, venue (outbound links) */
.ev-orgs__grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .ev-orgs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.ev-org { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.ev-org:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(28,25,23,.35); }
.ev-org__logo { display: flex; align-items: center; height: 64px; }
.ev-org__logo img { height: 40px; width: auto; }
.ev-org__logo--mbr img { height: 60px; }
.ev-org__logo--ic .ia { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-wash); color: var(--accent-ink); }
.ev-org__logo--ic svg { width: 26px; height: 26px; }
.ev-org h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.ev-org h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease-out); }
.ev-org h3 a:hover { background-size: 100% 1.5px; }
.ev-org h3 a::after { content: " ↗"; color: var(--accent-ink); }
.ev-org p { margin: 0; color: var(--muted); line-height: 1.55; }
.ev-org__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.ev-org__links a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.ev-org__links a:hover { border-color: var(--ink); }


/* Referral demo (referralLive): step pills, picked note facts, typed draft, tap-to-check */
.rl-steps { display: flex; gap: 6px; max-width: 30rem; margin: 0 auto var(--s-4); }
.rl-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.65); font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background var(--d-med), color var(--d-med); }
.rl-step b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: 0.7rem; transition: background var(--d-med), color var(--d-med); }
.rl-step.is-done b { background: var(--ink); color: var(--white); }
.rl-step.is-on { background: var(--ink); color: var(--white); }
.rl-step.is-on b { background: var(--accent); color: var(--white); }
.rl-step:focus-visible, .rl-f:focus-visible, .rl-m:focus-visible, .rl-copy:focus-visible, .rl-confirm:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.rl-f, .rl-m { display: inline; margin: 0; padding: 1px 2px; border: 0; border-radius: 3px; background: none; font: inherit; color: inherit; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background var(--d-med), color var(--d-med), box-shadow var(--d-fast); }
.rl-f { color: var(--muted); }
.rl-f.is-on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 600; }
.rl-m { font-weight: 600; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.rl-m.is-ok { background: var(--ok-bg); color: var(--ok); }
.rl-f.is-link, .rl-m.is-link { box-shadow: 0 0 0 2px var(--accent); }
.rl-ok { display: none; }
.rl-m.is-ok .rl-ok { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 4px; border-radius: 50%; background: var(--ok); vertical-align: -2px; }
.rl-ok svg { width: 11px; height: 11px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rl-caret { display: none; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: rl-blink 0.9s steps(1) infinite; }
.rl[data-phase="2"] .rl-caret { display: inline-block; }
.rl--js .rl-w:not(.is-on) { visibility: hidden; }
.rl--js .rl-m:not(.is-on) { background: none; }
.rl[data-phase="3"] .rl-m:not(.is-ok) { animation: rl-pulse 1.8s var(--ease-out) infinite; }
.rl-check { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px var(--s-3); margin-top: var(--s-3); }
.rl-meter { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--bg-soft); overflow: hidden; }
.rl-meter i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.45s var(--ease-out), background var(--d-med); }
.rl.is-ready .rl-meter i { background: var(--ok); }
.rl-count { margin: 0; font-size: 0.85rem; font-weight: 600; }
.rl-count b { font-variant-numeric: tabular-nums; }
.rl-copy { min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--r-pill); background: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--white); cursor: pointer; transition: opacity var(--d-med), background var(--d-med); }
.rl-copy:disabled { opacity: 0.35; cursor: not-allowed; }
.rl.is-ready .rl-copy { background: var(--accent); }
.rl-stage { position: relative; }
.rl-panel { list-style: none; max-width: 30rem; margin: var(--s-4) auto 0; padding: 0; display: grid; gap: 8px; }
.rl-panel li { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 10px 10px 14px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--sh-float); transition: background var(--d-med), box-shadow var(--d-fast); }
.rl-panel li.is-ok { background: var(--ok-bg); }
.rl-pc small { display: block; font-size: 0.72rem; color: var(--muted-2); }
.rl-pc b { display: block; font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.rl-panel li.is-ok b { color: var(--ok); }
.rl-confirm { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background var(--d-med), color var(--d-med), border-color var(--d-med); }
.rl-confirm:hover { border-color: var(--accent); }
.rl-panel li.is-ok .rl-confirm { background: var(--ok); border-color: var(--ok); color: var(--white); }
.rl-panel li.is-ok .rl-ok { display: inline-grid; place-items: center; width: 14px; height: 14px; }
.rl--js:not([data-phase="3"]) .rl-panel { display: none; }
.rl[data-phase="3"] .rl-panel li { animation: rl-pop 0.55s var(--ease-out) both; animation-delay: calc(0.45s + var(--i) * 90ms); }
@keyframes rl-pop { from { opacity: 0; transform: translateX(20px) scale(0.96); } }
@media (min-width: 1100px) {
  .rl--js .rl-steps, .rl--js .rl-stage > .vig-card { transition: transform 0.8s var(--ease-out); }
  .rl--js[data-phase="3"] :is(.rl-steps, .rl-stage > .vig-card) { transform: translateX(-10rem); }
  .rl--js .rl-panel { position: absolute; top: 0; bottom: 0; left: calc(50% + 6.5rem); width: 19rem; margin: 0; align-content: center; }
}
.rl-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); }
.rl.is-ready .rl-hint { color: var(--ok); }
.rl:not(.is-ready) .rl-pill { background: var(--bg-soft); color: var(--muted); }
.rl--js :is(.rl-check, .rl-hint) { transition: opacity var(--d-med) var(--ease-out); }
.rl--js:not([data-phase="3"]) :is(.rl-check, .rl-hint) { opacity: 0; pointer-events: none; }
@keyframes rl-blink { 50% { opacity: 0; } }
@keyframes rl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 420px) { .rl-step { font-size: 0.72rem; gap: 5px; padding-inline: 6px; } }
@media (prefers-reduced-motion: reduce) { .rl-caret, .rl[data-phase="3"] .rl-m:not(.is-ok), .rl[data-phase="3"] .rl-panel li { animation: none; } .rl--js .rl-steps, .rl--js .rl-stage > .vig-card { transition: none; } }
