/* EventBooks public website — colours come from Settings › Website › Brand (set as CSS variables by site.js) */
:root { --p: #6d28d9; --a: #f59e0b; --dk: #0f0c1d; --r: 14px; --font: 'Inter', system-ui, sans-serif; --hfont: var(--font);
  --ink: #17142a; --muted: #5f5b73; --line: #e7e4f0; --bg: #ffffff; --soft: #f6f4fb; --p-soft: color-mix(in srgb, var(--p) 10%, white); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--hfont); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
a { color: var(--p); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: calc(var(--r) * .7); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--p); color: #fff; box-shadow: 0 8px 24px -10px var(--p); }
.btn.accent { background: var(--a); color: #1b1300; }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.btn.white { background: #fff; color: var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p); margin-bottom: 12px; }
.sec { padding: 96px 0; }
.sec.alt { background: var(--soft); }
.sec-h { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-h h2 { font-size: clamp(30px, 4vw, 44px); }
.sec-h p { color: var(--muted); font-size: 18px; margin: 0; }
.svg { width: 22px; height: 22px; }

/* announcement + nav */
.announce { background: var(--dk); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.announce a { color: var(--a); font-weight: 600; margin-left: 8px; }
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, white 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo img { height: 34px; width: auto; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 17px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: -3px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-act { display: flex; gap: 10px; align-items: center; }
.nav-act .signin { color: var(--ink); font-weight: 600; font-size: 15px; padding: 0 8px; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1000px 520px at 85% -10%, color-mix(in srgb, var(--p) 55%, transparent), transparent 60%), radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--a) 22%, transparent), transparent 60%), var(--dk);
  color: #fff; padding: 84px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; text-align: center; }
.hero .eyebrow { color: var(--a); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 920px; margin: 0 auto 20px; font-weight: 800; letter-spacing: -.035em; }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .78); max-width: 720px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.badges li { font-size: 13px; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: 5px 12px; display: flex; gap: 6px; align-items: center; }
.badges li::before { content: '✓'; color: var(--a); font-weight: 700; }
.shot { margin: 56px auto 0; max-width: 1080px; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px color-mix(in srgb, var(--p) 70%, transparent); background: #1b1830; }
.shot .bar { height: 30px; display: flex; gap: 6px; align-items: center; padding: 0 12px; background: rgba(255, 255, 255, .06); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.shot img { width: 100%; }

/* stats */
.stats { border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 20px; }
.stat b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--p); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* feature grid */
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.fcard { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: box-shadow .2s, transform .2s; }
.fcard:hover { box-shadow: 0 18px 40px -24px rgba(30, 20, 70, .35); transform: translateY(-2px); }
.fcard h3 { font-size: 18px; margin: 14px 0 6px; }
.fcard p { color: var(--muted); margin: 0; font-size: 15px; }
.ic { width: 46px; height: 46px; border-radius: 12px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; }
.cards .fcard { text-align: center; padding: 34px 26px; } .cards .ic { margin: 0 auto; width: 56px; height: 56px; }
.mcard ul { list-style: none; padding: 0; margin: 12px 0 0; }
.mcard li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); font-size: 15px; }
.mcard li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--p); border-bottom: 2px solid var(--p); transform: rotate(-45deg); }

/* split */
.split .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev .wrap > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); }
.split p { color: var(--muted); font-size: 17px; }
.split ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.split li { padding: 7px 0 7px 32px; position: relative; font-weight: 500; }
.split li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--p-soft); color: var(--p); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(30, 20, 70, .4); background: var(--soft); }
.frame.empty { aspect-ratio: 16/10; display: grid; place-items: center; color: var(--muted); }

/* pricing */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-top: 22px; }
.toggle button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: var(--p); color: #fff; }
.toggle .save { font-size: 11px; background: color-mix(in srgb, var(--a) 25%, white); color: #7a4b00; border-radius: 99px; padding: 2px 7px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 24px 20px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--p); box-shadow: 0 24px 50px -28px var(--p); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--p); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 20px; margin: 0 0 4px; }
.plan .tl { color: var(--muted); font-size: 13px; min-height: 40px; line-height: 1.45; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.price .cur { font-size: 14px; font-weight: 600; color: var(--muted); }
.price b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .per { font-size: 13px; color: var(--muted); }
.btn.dark { background: var(--ink, #101828); color: #fff; }
.plan .trial-link { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--p); margin: 8px 0 -4px; text-decoration: none; }
.plan .trial-link:hover { text-decoration: underline; }
.plan .note { font-size: 12px; color: var(--muted); min-height: 18px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.plan li { padding: 5px 0 5px 22px; position: relative; line-height: 1.4; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--p); font-weight: 800; }
.plan .meta { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: auto; padding-top: 14px; }
.plan .meta div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.plan .meta b { color: var(--ink); font-weight: 600; text-align: right; }
.plan .grow { flex: 1; }
.tax { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.cmp-toggle { text-align: center; margin-top: 30px; }
.cmp { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.cmp thead th { position: sticky; top: 0; background: #fff; font-size: 15px; }
.cmp tr.grp td { background: var(--soft); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.cmp .y { color: var(--p); font-weight: 800; } .cmp .n { color: #c9c5d6; }
.cmp td.pop, .cmp th.pop { background: color-mix(in srgb, var(--p) 5%, white); }
.addons { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.addon { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: #fff; }
.addon b { display: block; } .addon span { color: var(--muted); font-size: 14px; }
.addon .ap { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 6px; }

/* roles */
.roles-t { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.roles-t table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 14px; }
.roles-t th, .roles-t td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.roles-t td:first-child, .roles-t th:first-child { text-align: left; }
.roles-t td small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; max-width: 360px; }
.roles-t .y { color: var(--p); font-weight: 800; } .roles-t .n { color: #c9c5d6; }

/* testimonials */
.quote { padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.quote p { font-size: 17px; margin: 0 0 18px; }
.quote .who { font-weight: 700; } .quote .who small { display: block; color: var(--muted); font-weight: 400; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; color: var(--p); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA band */
.band { background: linear-gradient(120deg, var(--p), color-mix(in srgb, var(--p) 55%, var(--dk))); color: #fff; border-radius: calc(var(--r) * 1.6); padding: 64px 40px; text-align: center; }
.band h2 { font-size: clamp(28px, 4vw, 42px); } .band p { color: rgba(255, 255, 255, .82); font-size: 18px; margin: 0 0 28px; }
.band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* contact + forms */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.cinfo div { display: flex; gap: 12px; align-items: center; margin: 14px 0; color: var(--ink); font-weight: 500; }
.cinfo .ic { width: 40px; height: 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--p) 35%, transparent); border-color: var(--p); }
.form textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.chips input { width: auto; margin: 0; }
.chips label:has(input:checked) { border-color: var(--p); background: var(--p-soft); color: var(--p); }
.hp { position: absolute; left: -9999px; }
.ok-box { text-align: center; padding: 30px 10px; } .ok-box .ic { margin: 0 auto 14px; width: 56px; height: 56px; }

/* footer */
footer { background: var(--dk); color: rgba(255, 255, 255, .7); padding: 64px 0 30px; margin-top: 96px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(var(--cols, 2), 1fr); gap: 40px; }
footer .logo { color: #fff; } footer .logo small { color: rgba(255, 255, 255, .55); }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
footer a { color: rgba(255, 255, 255, .7); display: block; padding: 4px 0; } footer a:hover { color: #fff; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: 13px; }

/* modal + toasts */
.mbg { position: fixed; inset: 0; background: rgba(15, 12, 29, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.mdl { background: #fff; border-radius: var(--r); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; position: relative; }
.mdl h2 { font-size: 26px; } .mdl > p { color: var(--muted); margin-top: -4px; }
.mdl .form { border: 0; padding: 0; }
.mdl .x { position: absolute; right: 14px; top: 14px; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--dk); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.err { background: #b42318; }

/* inline editor (admins: /?edit=1) */
.edbar { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--dk); color: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; display: flex; gap: 8px; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-size: 14px; }
.edbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); }
body.editing [data-ed] { outline: 1px dashed transparent; outline-offset: 3px; border-radius: 3px; cursor: text; transition: outline-color .15s; }
body.editing [data-ed]:hover { outline-color: color-mix(in srgb, var(--a) 80%, transparent); }
body.editing [data-ed]:focus { outline: 2px solid var(--a); }
body.editing [data-ed-img] { cursor: pointer; position: relative; }
body.editing [data-ed-img]:hover { outline: 2px dashed var(--a); }
body.editing section, body.editing .announce { position: relative; }
.sec-tools { position: absolute; top: 10px; right: 10px; z-index: 40; display: none; gap: 4px; background: var(--dk); border-radius: 10px; padding: 4px; }
body.editing section:hover > .sec-tools, body.editing .announce:hover > .sec-tools { display: flex; }
.sec-tools button { background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 7px; height: 28px; min-width: 28px; padding: 0 8px; font: inherit; font-size: 12px; cursor: pointer; }
.sec-tools button:hover { background: rgba(255, 255, 255, .22); }
.sec-tools .lbl { color: rgba(255, 255, 255, .6); font-size: 11px; padding: 0 6px; align-self: center; text-transform: uppercase; letter-spacing: .06em; }
body.editing .is-hidden { opacity: .35; }
.list-ed { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.list-ed button { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 11px; cursor: pointer; padding: 1px 6px; color: var(--muted); }

/* responsive */
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links a { padding: 10px 0; } .nav.open .nav-links { display: flex; } .burger { display: block; } .nav .wrap { gap: 12px; } .nav-act .signin { display: none; }
  .nav .wrap > .logo { flex: 1; }
  .g3, .g2, .split .wrap, .contact .wrap { grid-template-columns: 1fr; } .split .wrap { gap: 32px; } .split.rev .wrap > :first-child { order: 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); } .plans { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; }
  .sec { padding: 68px 0; }
}
@media (max-width: 560px) { .g4, .plans, .form { grid-template-columns: 1fr; } .band { padding: 44px 22px; } .nav-act .btn { padding: 0 12px; height: 38px; font-size: 14px; } .hero { padding-top: 56px; } }
/* pricing card alignment */
#pricing .wrap, .sec.pricing-wide .wrap { max-width: 1320px; }
.plan .tl { min-height: 58px; }
.price { display: block; min-height: 62px; margin: 14px 0 2px; }
.price .per { display: block; margin-top: 4px; }
.plan ul { font-size: 13.5px; }
.plan .meta { font-size: 12.5px; }
.plan .meta div > :first-child { white-space: nowrap; }
.list-ed { opacity: 0; transition: opacity .15s; } *:hover > .list-ed { opacity: 1; }
.sec-tools { z-index: 60; }
