/* ==========================================================================
   vipinvit.es product page. Werkzeug handwriting (bca tokens and components),
   one step louder for the stage: larger type, more air, one live preview.

   The preview in the hero is a copy of the guest page as vip-invites renders
   it: event colour band, Georgia for the event name, always light like the
   real guest page.
   ========================================================================== */

.vs {
	--vs-width: 1040px;
	--vs-accent-text: #8b3a6f;          /* violet as text on paper: 6,9:1 */
	--vs-event: #1f3a5f;                /* colour of the demo event */
	font-size: 1rem;
}

/* White on violet reaches 5,2:1; the dark tokens would put ink there. */
[data-theme="dark"] .vs { --vs-accent-text: color-mix(in srgb, #aa4b88 50%, #ffffff); --bca-on-accent: #ffffff; }

.vs-wrap { width: 100%; max-width: calc(var(--vs-width) + 2 * var(--bca-gutter)); margin: 0 auto; padding: 0 var(--bca-gutter); }

.vs-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--bca-ink); color: var(--bca-surface); border-radius: var(--bca-radius); font-weight: 700; }
.vs-skip:focus { top: 12px; }

.vs h1 { font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.5rem); line-height: 1.06; letter-spacing: -.028em; margin-bottom: .45em; }
.vs h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; letter-spacing: -.022em; }
.vs h3 { font-size: 1.0625rem; }
.vs p { max-width: 38rem; }

/* Top bar ------------------------------------------------------------------ */

.vs-top { position: sticky; top: 0; z-index: 20; background: var(--bca-surface); border-bottom: 1px solid var(--bca-line); }
.vs-top__inner { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.vs-brand { display: inline-flex; color: var(--bca-ink); text-decoration: none; }

.vs-brand .brand-logo { display: block; width: auto; height: 30px; color: var(--bca-ink); }

.vs-nav { display: flex; gap: 20px; }
.vs-nav a { color: var(--bca-ink-quiet); font-size: var(--bca-size-small); font-weight: 700; text-decoration: none; }
.vs-nav a:hover { color: var(--bca-ink); text-decoration: underline; text-decoration-color: var(--bca-accent); text-decoration-thickness: 2px; }

.vs-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.vs-langs ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vs-langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0 6px; border-radius: var(--bca-radius-sm); color: var(--bca-ink-quiet); font-size: var(--bca-size-small); font-weight: 700; text-decoration: none; }
.vs-langs a:hover { color: var(--bca-ink); background: var(--bca-sunken); }
.vs-langs a[aria-current] { color: var(--bca-ink); box-shadow: inset 0 -2px 0 var(--bca-accent); }

.vs-mode { display: inline-flex; padding: 2px; border: 1px solid var(--bca-line); border-radius: var(--bca-radius); }
.vs-mode button { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: var(--bca-radius-sm); background: none; color: var(--bca-ink-quiet); cursor: pointer; }
.vs-mode button[aria-pressed="true"] { background: var(--bca-ink); color: var(--bca-surface); }
.vs-mode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 900px) {
	.vs-nav { display: none; }
}

/* Hero --------------------------------------------------------------------- */

.vs-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.vs-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.vs-hero__text { padding-bottom: 40px; }
.vs-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--bca-ink); }
.vs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 14px; }
.vs-actions .bca-btn { min-height: 46px; padding: 0 1.25rem; font-size: .9375rem; }
.vs-note { color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }

@media (max-width: 860px) {
	.vs-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.vs-demo { max-width: 460px; }
}

/* Live preview ------------------------------------------------------------- */

.vs-demo { display: grid; gap: 12px; }
.vs-demo:has(input[name="vs-demo-colour"][value="2"]:checked) { --vs-event: #aa4b88; }
.vs-demo:has(input[name="vs-demo-colour"][value="3"]:checked) { --vs-event: #2f5d50; }
.vs-demo:has(input[name="vs-demo-colour"][value="4"]:checked) { --vs-event: #7a2335; }

.vs-demo__steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vs-demo__steps li { flex: 1; min-width: 0; }
.vs-demo__steps button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--bca-line); border-radius: var(--bca-radius); background: var(--bca-surface); color: var(--bca-ink-quiet); font: inherit; font-size: var(--bca-size-small); font-weight: 700; cursor: pointer; }
.vs-demo__steps button span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--bca-sunken); color: var(--bca-ink); font-size: .75rem; }
.vs-demo__steps button[aria-current="step"] { border-color: var(--bca-accent); color: var(--bca-ink); }
.vs-demo__steps button[aria-current="step"] span { background: var(--bca-accent); color: var(--bca-on-accent); }

@media (max-width: 400px) {
	.vs-demo__steps button { gap: 5px; padding: 0 6px; font-size: .75rem; }
	.vs-demo__steps button span { width: 18px; height: 18px; }
}

/* The guest page: light in both themes, the way guests see it. */
.vs-invite {
	--ink: #1b1b1b;
	overflow: hidden;
	border: 1px solid #dedad2;
	border-radius: 10px;
	background: #f5f4f0;
	color: var(--ink);
	box-shadow: var(--bca-shadow-pop);
	color-scheme: light;
}
.vs-invite__band { padding: 22px 24px 18px; background: var(--vs-event); color: #fff; transition: background-color .25s ease; }
.vs-invite__band p { max-width: none; margin: 0; }
.vs-invite__event { margin-bottom: 8px !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1.15; }
.vs-invite__meta { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; }
.vs-invite__meta svg { flex: none; width: 17px; height: 17px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.vs-invite__body { margin: 14px; padding: 20px; border: 1px solid #e6e3dc; border-radius: 8px; background: #fff; font-size: .9375rem; line-height: 1.55; }
.vs-invite__body p { margin: 0 0 12px; }
.vs-invite__body :focus-visible { outline: 2px solid var(--vs-event); outline-offset: 2px; }
.vs-invite__salutation,
.vs-invite__title { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.3; }

.vs-invite__answer { margin: 16px 0 14px; padding: 16px 0 0; border: 0; border-top: 1px solid #ebe8e1; }
.vs-invite__answer legend { float: left; width: 100%; margin-bottom: 8px; font-weight: 700; }
.vs-invite__answer label { display: flex; align-items: center; gap: 12px; min-height: 46px; margin-top: 8px; padding: 0 14px; border: 1px solid #8e8a80; border-radius: 8px; font-weight: 700; cursor: pointer; }
.vs-invite__answer label:has(input:checked) { border-color: var(--vs-event); box-shadow: inset 0 0 0 1px var(--vs-event); }
.vs-invite__answer input { width: 20px; height: 20px; margin: 0; accent-color: var(--vs-event); }

.vs-invite__submit,
.vs-invite__next { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: var(--vs-event); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .25s ease; }
.vs-invite__next { margin-top: 4px; background: #1b1b1b; }
.vs-invite__hint { margin: 10px 0 0 !important; color: #5e5b55; font-size: .8125rem; }
.vs-invite__hint.is-asking { color: #8c1a4c; font-weight: 700; }

.vs-invite__qr { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin: 4px 0 16px; padding: 12px; border: 1px solid #ebe8e1; border-radius: 8px; }
.vs-invite__qr svg { width: 112px; height: 112px; display: block; }
.vs-invite__qr p { margin: 0 !important; font-size: .8125rem; line-height: 1.45; color: #4a4843; }
.vs-invite__qr strong { display: block; margin-bottom: 2px; color: #1b1b1b; font-size: .875rem; }
.vs-invite__organiser { margin-top: 16px !important; padding: 10px 12px; border-left: 3px solid #aa4b88; background: #f7eef4; font-size: .875rem; }

.vs-door__label { margin: 0 0 10px !important; color: #5e5b55; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vs-door { padding: 22px 20px; border-left: 4px solid #8fa31a; border-radius: 6px; background: #bfd535; color: #111; }
.vs-door__title { margin: 0 0 6px !important; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.vs-door p:last-child { margin: 0 !important; }

.vs-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.vs-swatches { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.vs-swatches legend { float: left; margin-right: 6px; color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }
.vs-swatches label { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bca-ink) 25%, transparent); cursor: pointer; }
.vs-swatches input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vs-swatches label:has(input:checked) { box-shadow: 0 0 0 2px var(--bca-paper), 0 0 0 4px var(--bca-ink); }
.vs-swatches label:has(input:focus-visible) { outline: 2px solid var(--bca-accent); outline-offset: 5px; }
.vs-demo__restart { min-height: 32px; padding: 0 10px; border: 1px solid var(--bca-line-loud); border-radius: var(--bca-radius); background: var(--bca-surface); color: var(--bca-ink); font: inherit; font-size: var(--bca-size-small); font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
	[data-pane]:not([hidden]) { animation: vs-pane .22s ease-out; }
	@keyframes vs-pane { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Sections ----------------------------------------------------------------- */

.vs-section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--bca-line); }
.vs-head { margin-bottom: 36px; }
.vs-head p { color: var(--bca-ink-quiet); font-size: 1.0625rem; }

/* Run sheet of an event: when on the left, what on the right. */
.vs-plan { position: relative; margin: 0; padding: 0; list-style: none; }
.vs-plan li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--bca-line); }
.vs-plan li:last-child { border-bottom: 1px solid var(--bca-line); }
.vs-plan__when { display: flex; gap: 10px; align-items: baseline; margin: 0; color: var(--vs-accent-text); font-weight: 700; font-size: var(--bca-size-small); }
.vs-plan__when::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--bca-accent); transform: translateY(-1px); }
.vs-plan h3 { margin-bottom: 4px; }
.vs-plan p:not(.vs-plan__when) { margin: 0; color: var(--bca-ink-quiet); }

@media (max-width: 700px) {
	.vs-plan li { grid-template-columns: minmax(0, 1fr); }
}

.vs-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px; align-items: center; margin: 56px 0 0; }
.vs-screen figcaption p { color: var(--bca-ink-quiet); }
.vs-screen__frame { overflow: hidden; border: 1px solid var(--bca-line); border-radius: 8px; background: var(--bca-surface); box-shadow: var(--bca-shadow-pop); }
.vs-screen__frame img { display: block; width: 100%; height: auto; }

@media (max-width: 800px) {
	.vs-screen { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.vs-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.vs-features__group h3 { padding-bottom: 10px; border-bottom: 2px solid var(--bca-accent); }
.vs-features__group ul { margin: 0; padding: 0; list-style: none; }
.vs-features__group li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--bca-line); }
.vs-features__group li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--bca-ink); transform: translateY(-2px); }
.vs-features__group .bca-chip { margin-left: 4px; }

@media (max-width: 700px) {
	.vs-features { grid-template-columns: minmax(0, 1fr); }
}

.vs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 56px; align-items: start; }
.vs-split .vs-head { margin: 0; }

@media (max-width: 800px) {
	.vs-split { grid-template-columns: minmax(0, 1fr); }
}

.vs-points { margin: 0; padding: 0; list-style: none; counter-reset: point; }
.vs-points li { padding: 16px 0 16px 18px; border-top: 1px solid var(--bca-line); border-left: 3px solid transparent; }
.vs-points li:first-child { border-left-color: var(--bca-accent); }
.vs-points li:last-child { border-bottom: 1px solid var(--bca-line); }

/* Prices: a price list, the recommended row carries the accent edge. ------ */

.vs-prices { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--bca-line); border-radius: 8px; background: var(--bca-surface); box-shadow: var(--bca-shadow); }

.vs-tax { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 20px; padding: 0; border: 0; }
.vs-tax legend { float: left; padding: 0; color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }
.vs-tax__options { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--bca-line); border-radius: var(--bca-radius); }
.vs-tax label { position: relative; }
.vs-tax input { position: absolute; opacity: 0; }
.vs-tax span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--bca-radius-sm); color: var(--bca-ink-quiet); font-size: var(--bca-size-small); font-weight: 700; cursor: pointer; }
.vs-tax input:checked + span { background: var(--bca-ink); color: var(--bca-surface); }
.vs-tax input:focus-visible + span { outline: 2px solid var(--bca-accent); outline-offset: 2px; }

.vs-gross { display: none; }
.vs-prices:has(input[name="vs-tax"][value="gross"]:checked) .vs-gross { display: inline; }
.vs-prices:has(input[name="vs-tax"][value="gross"]:checked) .vs-net { display: none; }

.vs-plans { margin: 0; padding: 0; list-style: none; }
.vs-plans__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 28px; align-items: start; padding: 20px 16px; border-top: 1px solid var(--bca-line); border-left: 3px solid transparent; }
.vs-plans__row--pick { border-left-color: var(--bca-accent); background: var(--bca-accent-soft); border-radius: 0 var(--bca-radius) var(--bca-radius) 0; }
.vs-plans__name h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 2px; font-size: 1.125rem; }
.vs-plans__name p,
.vs-plans__detail { margin: 0; color: var(--bca-ink-quiet); font-size: .9375rem; }
.vs-plans__price { display: grid; justify-items: end; gap: 2px; margin: 0; text-align: right; }
.vs-amount { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-amount--small { font-size: 1.0625rem; letter-spacing: 0; }
.vs-amount--inline { font-size: inherit; letter-spacing: 0; }
.vs-unit { color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }
.vs-tiers { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vs-tiers li { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; }
.vs-tiers li > span:first-child { color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }

@media (max-width: 760px) {
	.vs-plans__row { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 12px; }
	.vs-plans__detail { grid-column: 1 / -1; grid-row: 2; }
	.vs-plans__price { grid-column: 2; grid-row: 1; }
}

.vs-founder { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--bca-accent-edge); border-radius: var(--bca-radius); }
.vs-founder p { max-width: none; margin: 0; }
.vs-taxnote { margin: 14px 0 0; color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }
.vs-prices__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bca-line); }
.vs-prices__foot p { margin: 0; }

/* Questions ---------------------------------------------------------------- */

.vs-faq details { border-top: 1px solid var(--bca-line); }
.vs-faq details:last-child { border-bottom: 1px solid var(--bca-line); }
.vs-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.vs-faq summary::-webkit-details-marker { display: none; }
.vs-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--bca-ink-quiet); border-bottom: 2px solid var(--bca-ink-quiet); transform: rotate(45deg); transition: transform var(--bca-move) ease; }
.vs-faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.vs-faq details p { margin: 0 0 18px; color: var(--bca-ink-quiet); }

/* Last call ---------------------------------------------------------------- */

.vs-section--final { border-top: 0; padding-top: 0; }
.vs-final { padding: clamp(28px, 4vw, 48px); border-left: 4px solid var(--bca-accent); border-radius: 8px; background: var(--bca-accent-soft); }
.vs-final p { font-size: 1.0625rem; }
.vs-final .bca-btn { min-height: 46px; margin-top: 8px; padding: 0 1.25rem; font-size: .9375rem; }

/* Foot ---------------------------------------------------------------------- */

.vs-foot { background: var(--bca-surface); border-top: 1px solid var(--bca-line); }
.vs-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; }
.vs-foot__family { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--bca-ink-quiet); font-size: var(--bca-size-small); }
.vs-foot__family img { display: block; }
.vs-foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--bca-size-small); }
.vs-foot__links a { color: var(--bca-ink-quiet); }
