/* Hallmark · genre: editorial · macrostructure: Narrative Workflow · theme: custom
 * vibe: "rustig, gastvrij, zakelijk, per sectie in andermans kleuren"
 * paper oklch(95.5% 0.005 95.1) · ink oklch(28.8% 0.005 106.7) · accent: none of our own,
 * the venues carry the colour · display Fraunces 400/560 + body Instrument Sans 400/600
 * axes: light / roman-serif / neutral · enrichment: live HTML demo (no chrome), introduction video, no photos
 * nav: N9 edge-aligned minimal · footer: Ft2 inline single line
 * inferred brief: audience = owners and managers of party venues · use = request a demo ·
 * tone = editorial-zakelijk, calm enough for a condolence */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- masthead (N9) ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  max-width: var(--page); margin: 0 auto; padding: var(--space-lg) var(--gutter);
}
.masthead__brand { display: block; color: var(--color-ink); }
.logo { height: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); width: auto; }
#logo .w-rsvp { fill: var(--color-yes); } /* the accent in the wordmark: the green of a chosen "yes" */
.masthead__cta {
  font-weight: 600; font-size: var(--text-sm); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px;
}
.masthead__cta:hover { text-decoration-thickness: 2px; }
.masthead__cta:active, .textlink:active, .colophon a:active, .contact__lines a:active { opacity: 0.7; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg);
  background: var(--color-ink); color: var(--color-on-ink);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.button:hover { background: var(--color-muted); }
.button:active { transform: translateY(1px); }
.hero .button { background: var(--color-yes); } /* "Demo aanvragen": the one accent on the page, the same green as RSVP in the logo */
.hero .button:hover { background: oklch(45% 0.125 150.1); }
.textlink {
  font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: var(--space-2xl); align-items: center;
  max-width: var(--page); margin: 0 auto; padding: var(--space-2xl) var(--gutter) var(--space-3xl);
}
.hero__kicker { margin-bottom: var(--space-md); font-size: var(--text-lg); line-height: 1.35; font-weight: 600; color: var(--color-ink); }
.hero h1 { font-size: var(--text-display); max-width: 12ch; }
.hero__lead { margin-top: var(--space-lg); max-width: var(--measure); font-size: var(--text-lg); color: var(--color-muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); }
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: var(--space-2xl); }
}

/* ---------- venues: each section takes a fictional venue's colours ---------- */
.venue--rose  { --v-bg: var(--venue-rose-bg);  --v-text: var(--venue-rose-text);  --v-accent: var(--venue-rose-accent); }
.venue--ochre { --v-bg: var(--venue-ochre-bg); --v-text: var(--venue-ochre-text); --v-accent: var(--venue-ochre-accent); }
.venue--olive { --v-bg: var(--venue-olive-bg); --v-text: var(--venue-olive-text); --v-accent: var(--venue-olive-accent); }
.venue--clay  { --v-bg: var(--venue-clay-bg);  --v-text: var(--venue-clay-text);  --v-accent: var(--venue-clay-accent); }
.venue--slate { --v-bg: var(--venue-slate-bg); --v-text: var(--venue-slate-text); --v-accent: var(--venue-slate-accent); }
.venue--sage  { --v-bg: var(--venue-sage-bg);  --v-text: var(--venue-sage-text);  --v-accent: var(--venue-sage-accent); }
.venue { background: var(--v-bg); color: var(--v-text); }
.band { margin-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.band + .band, .band + .contact-band { margin-top: 0; }

/* the white surfaces inside a venue: the service's own pages, always ink on white */
.invite, .form {
  background: var(--color-paper-2); color: var(--color-ink);
  border-radius: var(--radius-md); padding: var(--space-lg);
  font-size: var(--text-sm); line-height: 1.5;
}

/* ---------- hero demo ---------- */
.demo { margin: 0; padding: var(--space-lg); border-radius: var(--radius-lg); }
.invite__venue { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v-accent); }
.invite__title { text-wrap: balance; font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-tight); margin-top: var(--space-xs); }
.invite__greeting { margin-top: var(--space-lg); min-height: 1.5em; font-weight: 600; }
.invite__body { margin-top: var(--space-2xs); }
.invite__choices { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.choice {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md);
  border: var(--rule) solid var(--color-rule); border-radius: var(--radius-sm); white-space: nowrap;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.choice.is-picked { background: var(--color-yes); border-color: var(--color-yes); color: var(--color-on-ink); font-weight: 600; }
.invite__done { margin-top: var(--space-md); color: var(--color-muted); transition: opacity var(--dur-mid) var(--ease-out); }
.tally {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-md); padding: 0 var(--space-2xs); font-size: var(--text-sm);
}
.tally__label { font-weight: 600; }
.tally__count b { font-family: var(--font-display); font-weight: 560; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.is-animated .choice.is-picked:not(.is-on) { background: transparent; border-color: var(--color-rule); color: var(--color-ink); font-weight: 400; }
.is-animated .invite__done:not(.is-on) { opacity: 0; }

/* animated steps: the JS removes .is-on to start, and sets it again step by step */
[data-step] { transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
.is-animated [data-step]:not(.is-on) { opacity: 0; transform: translateY(var(--space-xs)); }
/* step 02: the top of a phone screen with a chat on it, cut off at the bottom */
.phone {
  max-width: 20rem; overflow: hidden;
  border: var(--space-xs) solid var(--color-device); border-bottom: 0;
  border-radius: 2.25rem 2.25rem 0 0;
  background: var(--color-chat);
}
/* the phone rises from the bottom edge of its band, so the cut-off reads as intended */
.stage.stage--phone { padding-bottom: 0; }
.stage.stage--phone .stage__visual { align-self: end; }
.phone__bar { display: flex; justify-content: center; padding: var(--space-xs) 0 var(--space-2xs); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-xs); font-weight: 600; }
.phone__head {
  display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md) var(--space-sm);
  background: var(--color-paper-2); color: var(--color-ink); border-bottom: var(--rule) solid var(--color-rule); font-size: var(--text-sm); line-height: 1.2;
}
.phone__head small { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.phone__avatar {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--v-bg); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm);
}
.chat { position: relative; display: grid; gap: var(--space-xs); padding: var(--space-md) var(--space-sm) var(--space-2xl); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.45; }
.bubble { max-width: 85%; padding: var(--space-xs) var(--space-sm) var(--space-2xs); border-radius: var(--radius-md); box-shadow: 0 1px 0 var(--color-rule); }
.bubble--in { justify-self: start; background: var(--color-paper-2); border-top-left-radius: var(--space-2xs); }
.bubble--out { justify-self: end; background: var(--color-bubble-out); border-top-right-radius: var(--space-2xs); }
.bubble__time { display: block; text-align: right; font-size: var(--text-2xs); color: var(--color-muted); }
.preview {
  display: grid; margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm);
  border-left: 3px solid var(--v-bg); background: var(--color-paper); border-radius: var(--radius-sm); line-height: 1.3;
}
.preview span { color: var(--color-muted); font-size: var(--text-xs); }
.typing {
  display: none; position: absolute; top: var(--space-md); left: var(--space-sm); gap: var(--space-2xs); align-items: center;
  background: var(--color-paper-2); border-radius: var(--radius-md); border-top-left-radius: var(--space-2xs);
  padding: var(--space-sm) var(--space-md);
}
.chat.is-typing .typing { display: inline-flex; }
.typing span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-muted); animation: typing-dot 1s var(--ease-in-out) infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } }

/* ---------- stages (Narrative Workflow) ---------- */
.stages__head { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) var(--space-2xl); }
.stages__head h2 { font-size: var(--text-2xl); max-width: 30ch; }
.stage {
  display: grid; gap: var(--space-xl);
  padding: var(--space-3xl) max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
}
.stage__num {
  font-family: var(--font-display); font-weight: 560; font-size: var(--text-lg);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  padding-bottom: var(--space-xs); margin-bottom: var(--space-md);
  border-bottom: 2px solid currentColor; width: 3rem;
}
.stage h3 { font-size: var(--text-2xl); }
.stage__text > p:last-child { margin-top: var(--space-md); max-width: var(--measure); }
.stage__visual { max-width: 26rem; width: 100%; }
@media (min-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-3xl); }
  .stage:nth-child(odd of .stage) .stage__visual { justify-self: end; }
  .stage:nth-child(even of .stage) .stage__text { order: 2; }
}



.form__q { font-weight: 600; margin-top: var(--space-md); }
.form__q:first-child { margin-top: 0; }
.form__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-xs); margin-top: var(--space-xs); }
.form__choices .choice { justify-content: center; }
.form__field--select { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.form__field { min-height: calc(1.5em + 2 * var(--space-xs) + 2px); margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: var(--rule) solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-field); }

/* ---------- replicas of the app (step 01 and 04) ---------- */
.app-tile, .app-window { background: var(--app-white); color: var(--color-ink); border: var(--rule) solid var(--color-rule); border-radius: var(--radius-sm); padding: var(--space-lg); font-size: var(--text-sm); line-height: 1.45; box-shadow: 0 1px 2px color-mix(in oklch, var(--color-ink) 12%, transparent); }
.app-tile { transition: background-color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out); }
.app-tile.is-draft { border-style: dashed; border-color: var(--app-neutral-400); background: var(--app-white); }
.app-tile.is-prepared { border-color: var(--app-amber-300); background: var(--app-amber-50); }
.app-pill { display: inline-block; padding: var(--space-2xs) var(--space-sm); line-height: 1.2; border: var(--rule) solid; border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: 600; transition: background-color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out); }
.is-prepared .app-pill { border-color: var(--app-amber-300); background: var(--app-amber-100); color: var(--app-amber-900); }
.is-draft .app-pill { border-style: dashed; border-color: var(--app-neutral-400); background: var(--app-white); color: var(--app-neutral-700); }
.app-pill--open { border-color: var(--app-blue-400); background: var(--app-blue-300); color: var(--app-blue-950); }
.app-tile__title { margin-top: var(--space-xs); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.app-tile__date { margin-top: var(--space-sm); font-weight: 500; }
.app-tile__times { color: var(--app-neutral-600); }
.app-tile__empty { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule) solid color-mix(in oklch, var(--color-ink) 10%, transparent); color: var(--app-neutral-600); }
.app-window__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding-left: var(--space-md); border-left: 4px solid var(--app-blue-400); }
.app-window__title { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.app-window__label { margin-top: var(--space-lg); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-neutral-600); }
.app-counts { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.app-counts li { display: flex; align-items: center; gap: var(--space-sm); }
.app-counts b { font-weight: 400; font-variant-numeric: tabular-nums; }
.app-dot { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--app-white); }
.app-dot--yes { background: var(--color-yes); }
.app-dot--no { background: var(--app-orange-800); }
.app-dot--wait { background: var(--app-neutral-500); }
.app-dot--people { background: var(--color-ink); }
.ico { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico--thin { stroke-width: 2.5; }
.app-diets { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-2xs); }

/* ---------- film: the introduction video, wide from a tablet up, tall on a phone ---------- */
.film { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) var(--space-3xl); }
.film__frame {
  position: relative; overflow: hidden; background: var(--color-paper-2);
  border: var(--rule) solid var(--color-rule); border-radius: var(--radius-md);
}
.film__frame video { display: block; width: 100%; height: auto; }
.film__frame--wide { display: none; }
.film__frame--tall { max-width: 22rem; }
/* the whole poster starts the video; the label sits bottom left, where both posters are empty */
.film__play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--space-sm); border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.film__play[hidden] { display: none; }
/* on a phone the duration sits on a second line: one line does not fit the tall frame */
.film__label { gap: var(--space-sm); padding: var(--space-xs) var(--space-md); line-height: 1.25; text-align: left; }
.film__play:hover .film__label { background: var(--color-muted); }
.film__label svg { flex: none; width: 0.875rem; height: 0.875rem; fill: currentColor; }
.film__label small { display: block; font-size: var(--text-sm); font-weight: 400; opacity: 0.8; }
@media (min-width: 40rem) {
  .film__frame--wide { display: block; }
  .film__frame--tall { display: none; }
  .film__play { padding: var(--space-lg); }
  .film__label { padding: 0 var(--space-lg); }
  .film__label small { display: inline; margin-left: var(--space-2xs); }
}

/* ---------- in your own style ---------- */
.styles, .occasions, .relief, .contact {
  max-width: var(--page); margin: 0 auto; padding: var(--space-3xl) var(--gutter) 0;
}
.section-head h2, .occasions h2, .relief h2 { font-size: var(--text-2xl); max-width: 18ch; }
.section-head p { margin-top: var(--space-md); max-width: var(--measure); color: var(--color-muted); }
.swatches { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.swatch { border-radius: var(--radius-md); padding: var(--space-lg); display: grid; gap: var(--space-2xs); align-content: start; min-height: 11rem; }
.swatch__name { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.swatch__url { font-size: var(--text-sm); overflow-wrap: anywhere; }
.swatch__button {
  justify-self: start; margin-top: var(--space-md); padding: var(--space-xs) var(--space-md);
  background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-sm); font-weight: 600; font-size: var(--text-sm);
}
.venue--ochre .swatch__button { background: var(--color-ink); color: var(--color-on-ink); }

/* ---------- occasions ---------- */
.occasions__list {
  list-style: none; padding: 0; margin: var(--space-xl) 0 0;
  font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25;
  border-top: var(--rule) solid color-mix(in oklch, currentColor 35%, transparent);
}
.occasions__list li { padding: var(--space-sm) 0; border-bottom: var(--rule) solid color-mix(in oklch, currentColor 35%, transparent); }
.occasions__note { margin-top: var(--space-lg); max-width: var(--measure); }
@media (min-width: 60rem) {
  .occasions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-3xl); align-items: start; }
  .occasions__list { margin-top: 0; }
}

/* ---------- relief ---------- */
.relief__list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-lg); max-width: 46rem; }
.relief__list li { padding-left: var(--space-lg); border-left: 2px solid currentColor; }
.relief__list b { font-weight: 600; }
.relief__note { margin-top: var(--space-xl); font-family: var(--font-display); font-size: var(--text-lg); max-width: var(--measure); }

/* ---------- faq ---------- */
.faq { max-width: var(--page); margin: 0 auto; padding: var(--space-3xl) var(--gutter) 0; }
.faq h2 { font-size: var(--text-2xl); }
.faq__list { margin-top: var(--space-xl); max-width: 46rem; border-top: var(--rule) solid var(--color-rule); }
.faq details { border-bottom: var(--rule) solid var(--color-rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  min-height: 48px; padding: var(--space-md) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: var(--text-xl); line-height: 1; transition: transform var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-muted); }
.faq details p { padding-bottom: var(--space-lg); max-width: var(--measure); }

/* ---------- contact ---------- */
.contact-band { background: var(--color-ink); color: var(--color-on-ink); margin-top: var(--space-3xl); }
.contact { display: grid; gap: var(--space-xl); align-items: center; padding-bottom: var(--space-3xl); }
.contact-band .button { background: var(--color-on-ink); color: var(--color-ink); }
.contact-band .button:hover { background: var(--color-rule); }
.contact-band .contact__lines { color: var(--color-on-ink); opacity: 0.85; }
.contact__photo { width: 10rem; height: 10rem; object-fit: cover; border-radius: 50%; }
.contact h2 { font-size: var(--text-2xl); }
.contact__text > p { margin-top: var(--space-md); max-width: var(--measure); }
.contact__actions { margin-top: var(--space-lg) !important; }
.contact__lines { color: var(--color-muted); margin-top: var(--space-lg) !important; }
.contact__lines a { text-underline-offset: 0.2em; }
@media (min-width: 40rem) {
  .contact { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2xl); }
}
@media (min-width: 60rem) { .contact__photo { width: 16rem; height: 16rem; } }

/* ---------- colophon (Ft2) ---------- */
.colophon {
  display: flex; border-top: 0; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg);
  max-width: var(--page); margin: 0 auto; padding: var(--space-xl) var(--gutter) var(--space-2xl);
  border-top: var(--rule) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted);
}
.logo--small { height: 1.25rem; color: var(--color-ink); }
.colophon a { text-underline-offset: 0.2em; }

/* ---------- privacy (long document) ---------- */
.doc { max-width: 44rem; margin: 0 auto; padding: var(--space-2xl) var(--gutter) var(--space-3xl); }
.doc h1 { font-size: var(--text-2xl); }
.doc h2 { font-size: var(--text-lg); margin-top: var(--space-2xl); font-weight: 560; }
.doc p, .doc ul { margin-top: var(--space-md); }
.doc .doc__date { color: var(--color-muted); margin-top: var(--space-2xl); font-size: var(--text-sm); }
