/* ============================================================
   LUDWINA Funnel — public pages (/f/:slug…)
   Base layer copied from the approved mockups (funnel-mockups/shared/public.css)
   Same product language as the LWNA Business Suite redesign:
   canvas + soft color washes, opaque surface cards for content,
   glass only on the floating top bar, SF Pro / Inter, 400/500.
   ============================================================ */
@import url("/design/tokens/colors.css");
@import url("/design/tokens/typography.css");
@import url("/design/tokens/radius.css");
@import url("/design/tokens/spacing.css");
@import url("/design/tokens/shadows.css");
@import url("/design/tokens/glass.css");
@import url("/design/tokens/motion.css");
@import url("/design/tokens/base.css");

:root {
  --measure: 680px;          /* prose line length (inside full-width cards) */
  --rd-toc: 264px;           /* handbook chapter sidebar */

  /* Full-width pages like the suite: no centered max-width column,
     content, top bar and footer share the same page padding. */
  --gutter: var(--sp-8);
  --sp-page: var(--sp-12);   /* top bar -> first content */
  --sp-section: var(--sp-16);/* last content -> footer */
  --sp-block: var(--sp-6);   /* between cards / blocks */
  --sp-field: var(--sp-4);   /* between form fields */
  --pad-card: var(--sp-8);
}
@media (max-width: 640px) {
  :root { --gutter: var(--sp-4); --sp-page: var(--sp-8); --sp-section: var(--sp-12); --sp-block: var(--sp-4); --pad-card: 20px; }
}

body.pub {
  color: var(--text-body);
  min-height: 100vh;
  background:
    radial-gradient(720px 520px at 6% 0%, rgba(97,85,240,.12), transparent 60%),
    radial-gradient(760px 560px at 100% 100%, rgba(42,111,219,.10), transparent 58%),
    radial-gradient(560px 460px at 92% 4%, rgba(15,155,151,.08), transparent 60%),
    var(--canvas);
  background-attachment: fixed;
}
.pub-main { padding: var(--sp-page) var(--gutter) var(--sp-section); }

/* ---- Card (opaque content surface) --------------------------- */
.card, .pub-card { background: var(--surface); border: .5px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-content); padding: var(--pad-card); }

/* ---- Top bar (glass, floating chrome) ------------------------ */
.pub-mast { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: var(--sp-4);
  margin: 12px var(--gutter) 0; min-height: 56px;
  padding: 8px 10px 8px 18px; border-radius: var(--r-card);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: .5px solid var(--glass-border); box-shadow: var(--edge-glass), var(--shadow-glass); }
.pub-mast > a:first-child, .pub-mast > img { display: block; flex: none; }
.pub-mast img { height: 16px; display: block; }
.pub-mast .grow { flex: 1; min-width: 48px; }
.pub-mast > .kicker { margin-left: auto; }
.pub-mast .pub-lang { margin-left: auto; }
.pub-mast .grow + .pub-lang, .pub-mast .rd-pdf + .pub-lang { margin-left: 0; }

/* Segmented control (suite) — also used for DE/EN */
.seg, .pub-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-control);
  background: var(--surface-sunk); border: .5px solid var(--border); flex: none; }
.seg button, .seg a, .pub-lang a { appearance: none; border: 0; background: transparent; display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill); font: 500 13px/1 var(--font-sans); color: var(--text-muted);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pub-lang a { height: 26px; padding: 0 9px; font-size: 12px; }
.pub-lang[hidden] { display: none; } /* single-language funnels: no empty switch */
.seg button:hover, .seg a:hover, .pub-lang a:hover { color: var(--text-strong); }
.seg [aria-pressed="true"], .seg [aria-current], .pub-lang a[aria-current] {
  background: var(--surface); color: var(--text-strong); box-shadow: 0 1px 3px rgba(20,20,35,.10); }

/* Progress (top bar) */
.bar-progress, .rd-progress { flex: 1; height: 6px; background: var(--surface-sunk); border-radius: var(--r-round);
  overflow: hidden; min-width: 40px; position: relative; }
.bar-progress > span, .rd-progress > span { display: block; height: 100%; width: 0; background: var(--accent);
  border-radius: var(--r-round); transition: width var(--dur-slow) var(--ease-out); }
.bar-count, .rd-count { font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.bar-count b, .rd-count b { color: var(--text-strong); font-weight: 600; }

/* ---- Type ---------------------------------------------------- */
.kicker { font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--tr-label);
  text-transform: uppercase; font-weight: 500; color: var(--text-subtle); margin: 0; }
.display { font-size: 32px; line-height: 38px; letter-spacing: var(--tr-display);
  font-weight: 500; color: var(--text-strong); margin: 0; }
.display em, .h1 em { font-style: normal; }
.h1 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title);
  font-weight: 500; color: var(--text-strong); margin: 0; }
.h2 { font-size: var(--fs-subhead); line-height: var(--lh-subhead); letter-spacing: var(--tr-subhead);
  font-weight: 500; color: var(--text-strong); margin: 0; }
.lede { font-size: var(--fs-subhead); line-height: 26px; color: var(--text-muted); max-width: 36em; margin: 0; }
.prose { font-size: 16px; line-height: 26px; color: var(--text-body); max-width: var(--measure); }
.prose p { margin: 0 0 1em; }
.rule { height: .5px; background: var(--border); border: 0; margin: 0; }
.muted { color: var(--text-muted); }
@media (max-width: 640px) {
  .display { font-size: 26px; line-height: 32px; }
  .h1 { font-size: 24px; line-height: 30px; }
  .lede { font-size: var(--fs-body); line-height: var(--lh-body); }
}

/* ---- Buttons (suite) ----------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--r-control); border: .5px solid var(--border); background: var(--surface); color: var(--text-strong);
  font: 500 14px/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.btn:hover { background: var(--surface-sunk); }
.btn:active { transform: scale(var(--press-scale)); }
.btn-ink { background: var(--ink); color: var(--ink-on); border-color: var(--ink); box-shadow: var(--shadow-content); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ink:active { background: var(--ink-press); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; height: 48px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link { color: var(--accent); font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 500;
  color: var(--text-subtle); text-decoration: none; }
.back-link:hover { color: var(--text-strong); }

/* ---- Form controls (suite input-wrap) ------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--text-muted); }
.req, .opt { color: var(--text-subtle); font-weight: 400; }
.input, .textarea, .select { width: 100%; min-width: 0; height: 42px; padding: 0 14px; font: 400 14px/1.4 var(--font-sans);
  color: var(--text-strong); background: var(--surface); border: .5px solid var(--border-strong); border-radius: var(--r-control);
  outline: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-tint); }
.input[readonly] { background: var(--surface-sunk); color: var(--text-muted); }
.textarea { height: auto; min-height: 104px; padding: 11px 14px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23877f72' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px; }
@media (max-width: 640px) { .input, .textarea, .select { font-size: 16px; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 20px; color: var(--text-body); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }

/* Selectable card (radio / checkbox) */
.choice { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 14px; border: .5px solid var(--border-strong);
  border-radius: var(--r-control); background: var(--surface); cursor: pointer; font-size: 14px; color: var(--text-body);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.choice:hover { background: var(--surface-2); }
.choice input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--text-strong);
  box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---- Chips, status pills, avatars ---------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 16px;
  color: var(--text-muted); background: var(--surface-sunk); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 16px;
  border-radius: var(--r-pill); padding: 4px 9px; white-space: nowrap; background: var(--st-done-tint); color: var(--st-done-on); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-done); flex: none; }
.status-pill.active { background: var(--st-active-tint); color: var(--st-active-on); } .status-pill.active::before { background: var(--st-active); }
.status-pill.offer  { background: var(--st-offer-tint);  color: var(--st-offer-on); }  .status-pill.offer::before  { background: var(--st-offer); }
.status-pill.warn   { background: var(--st-warn-tint);   color: var(--st-warn-on); }   .status-pill.warn::before   { background: var(--st-warn); }
.num-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  font-size: 11px; font-weight: 600; color: var(--text-subtle); background: var(--surface-2); border: .5px solid var(--border);
  border-radius: var(--r-pill); font-variant-numeric: tabular-nums; flex: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pop); color: #fff; font: 500 15px/1 var(--font-sans); flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.person { display: flex; align-items: center; gap: 12px; }
.person b { display: block; font-weight: 500; color: var(--text-strong); font-size: 14px; line-height: 20px; }
.person small { display: block; color: var(--text-subtle); font-size: 12px; line-height: 16px; }

/* Calendar date tile */
.date-tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; height: 60px; padding: 0 8px;
  border-radius: var(--r-control); background: var(--surface-2); border: .5px solid var(--border); flex: none; line-height: 1; }
.date-tile small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--text-subtle); white-space: nowrap; }
.date-tile b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--text-strong); margin: 4px 0 3px; font-variant-numeric: tabular-nums; }

/* ---- Footer -------------------------------------------------- */
.pub-foot { padding: var(--sp-6) var(--gutter) var(--sp-12); display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-caption); color: var(--text-subtle); }
.pub-foot a { color: inherit; text-decoration: none; }
.pub-foot a:hover { color: var(--text-strong); }


/* ============================================================
   Questionnaire (/f/:slug) — from mockup public/01-fragebogen.html
   ============================================================ */
.wrap { padding: var(--sp-page) var(--gutter) var(--sp-section); }

/* Personal-link banner */
.greet { display: none; margin-bottom: var(--sp-block); padding: 12px 16px; border-radius: var(--r-control);
  background: var(--accent-tint); font-size: var(--fs-small); color: var(--text-body); align-items: baseline; gap: 8px; flex-wrap: wrap; }
.greet strong { font-weight: 500; color: var(--text-strong); }
.greet span { color: var(--text-muted); }
body.is-personal .greet { display: flex; }

/* Hero: title, lede and meta stacked */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero .lede { max-width: var(--measure); }
.meta { display: flex; gap: 8px; margin: 0; }

/* Sections = cards */
.section { margin-top: var(--sp-block); }
.form-intro { display: grid; gap: 8px; }
.form-intro p { margin: 0; max-width: none; font-size: 16px; line-height: 26px; color: var(--text-body); }
.section-head { display: grid; gap: 4px; margin-bottom: var(--sp-6); }
.section-head .h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.section-head p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Contact grid: 4 columns on desktop */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-field); }
.grid .span-2 { grid-column: span 2; }
.addr { display: contents; }

/* Questions: one card per question, stacked one per row */
.qs { margin-top: var(--sp-8); }
.qs > .section-head { margin: 0 0 var(--sp-4) 4px; }
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-block); }
.q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 14px; align-content: start; }
.q.wide { grid-column: 1 / -1; }
.q-num { margin-top: 1px; }
.q-title, .field label.q-title { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text-strong); margin: 0 0 2px; }
.q-hint { font-size: var(--fs-caption); color: var(--text-subtle); margin: 0 0 12px; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.choice-other { flex-wrap: wrap; }
.choice-other .input { flex: 1; min-width: 140px; height: 32px; padding: 0 10px; font-size: 14px; }

/* Scale: segmented */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 3px; border-radius: var(--r-control);
  background: var(--surface-sunk); border: .5px solid var(--border); }
.scale label { position: relative; display: grid; place-items: center; height: 38px; border-radius: var(--r-pill); font-size: 14px;
  font-weight: 500; cursor: pointer; color: var(--text-muted); font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.scale label:hover { color: var(--text-strong); }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:checked) { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(20,20,35,.10), 0 0 0 1px var(--accent) inset; }
.scale label:has(input:focus-visible) { outline: 2px solid var(--accent-ring); outline-offset: -2px; }
.scale, .scale-legend { max-width: 520px; }
.scale-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-caption); color: var(--text-subtle); }

/* Consents + submit: side by side */
.finish { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center; }
.consents { display: grid; gap: var(--sp-4); max-width: 760px; }
.check a { color: var(--accent); text-decoration: none; }
.check small { display: block; margin-top: 2px; color: var(--text-subtle); font-size: var(--fs-caption); line-height: 16px; }
.submit-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding-left: var(--sp-8);
  border-left: .5px solid var(--hairline); align-self: stretch; }
.submit-row p { margin: 0; font-size: var(--fs-caption); color: var(--text-subtle); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Validation (not in the mockup — suite warn tokens) */
.is-invalid .input, .input.is-invalid, .select.is-invalid { border-color: var(--st-warn); box-shadow: 0 0 0 3px var(--st-warn-tint); }
.q.is-invalid { box-shadow: var(--shadow-content), 0 0 0 1px var(--st-warn) inset; }
.check.is-invalid span { color: var(--st-warn-on); }
.form-error { display: none; margin: 0; padding: 10px 12px; border-radius: var(--r-control); grid-column: 1 / -1;
  background: var(--st-warn-tint); color: var(--st-warn-on); font-size: var(--fs-small); line-height: var(--lh-small); }
.form-error.show { display: block; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .finish { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .submit-row { padding: var(--sp-6) 0 0; border-left: 0; border-top: .5px solid var(--hairline); }
}
@media (max-width: 720px) {
  .grid, .choices { grid-template-columns: 1fr; }
  .grid .span-2 { grid-column: 1 / -1; }
  .submit-row .btn { width: 100%; height: auto; min-height: 42px; padding: 10px 18px; white-space: normal; text-align: center; line-height: 20px; }
}

/* ============================================================
   Thank-you (/f/:slug/danke) — from mockup public/02-danke.html
   ============================================================ */
body.pub { display: flex; flex-direction: column; }
#app { flex: 1; display: flex; flex-direction: column; }
.thanks { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-block); align-items: stretch;
  padding: var(--sp-page) var(--gutter) var(--sp-section); }
.thanks.single { grid-template-columns: minmax(0, 760px); justify-content: center; align-content: center; min-height: calc(100vh - 220px); }
.thanks.single .thanks-inner { padding: var(--sp-16) var(--sp-12); }
.thanks.single .thanks-inner > * { max-width: 520px; }
.thanks.single .h1 { font-size: 40px; line-height: 46px; }
.thanks.single .lede { font-size: 18px; line-height: 27px; }
.thanks.single .ok { width: 64px; height: 64px; }
.thanks.single .ok svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .thanks.single { min-height: 0; align-content: start; } .thanks.single .thanks-inner { padding: var(--sp-12) var(--sp-6); } .thanks.single .h1 { font-size: 30px; line-height: 36px; } }
.thanks-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sp-12) var(--sp-8); }
.thanks-inner > * { width: 100%; max-width: 440px; }
.thanks-inner .ok { width: 48px; }
.ok { width: 48px; height: 48px; margin: 0 auto var(--sp-6); border-radius: 50%; display: grid; place-items: center;
  background: var(--st-active-tint); color: var(--st-active); }
.ok svg { width: 22px; height: 22px; }
.thanks .kicker { margin: 0 0 6px; }
.thanks .h1 { margin: 0; }
.thanks .lede { margin: var(--sp-3) auto 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.thanks .ty-text p, .thanks .ty-text ul, .thanks .ty-text ol { margin: 0 0 .6em; }
.thanks .ty-text > :last-child { margin-bottom: 0; }
.thanks .ty-text ul, .thanks .ty-text ol { text-align: left; display: inline-block; }
.thanks .ty-text a { color: inherit; text-decoration: underline; }
.thanks .btn { margin-top: var(--sp-8); }
.sub { margin: var(--sp-3) 0 0; font-size: var(--fs-caption); color: var(--text-subtle); }

/* Chapter overview */
.toc .kicker { margin: 0 0 6px; }
.toc .h2 { margin: 0 0 var(--sp-6); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.toc li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px;
  background: var(--surface-2); border: .5px solid var(--border); border-radius: var(--r-control);
  font-size: 14px; line-height: 20px; color: var(--text-strong); }

@media (max-width: 860px) { .thanks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .thanks-inner { padding: var(--sp-8) 20px; } }

/* Loading / not-found */
.state { flex: 1; display: grid; place-items: center; padding: var(--sp-page) var(--gutter) var(--sp-section); }
.state .card { text-align: center; max-width: 480px; width: 100%; }
.state .lede { margin: var(--sp-3) auto 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.state.loading { color: var(--text-subtle); font-size: var(--fs-small); }

/* ============================================================
   Handbook reader (/f/:slug/handbook/:n) — mockups public/03, 04, 05
   Chrome from funnel-mockups/shared/public.css, page types below.
   ============================================================ */
.rd-title { font-size: var(--fs-small); font-weight: 500; color: var(--text-strong); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.rd-sep { width: .5px; align-self: stretch; margin: 6px 0; background: var(--border-strong); flex: none; }
.rd-pdf { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; flex: none;
  border-radius: var(--r-control); border: .5px solid var(--border); background: var(--surface);
  font: 500 13px/1 var(--font-sans); color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.rd-pdf:hover { background: var(--surface-sunk); }
.rd-pdf svg { width: 14px; height: 14px; }

.rd-layout { flex: 1; display: grid; grid-template-columns: var(--rd-toc) minmax(0, 1fr); gap: var(--rd-gap); align-items: start;
  padding: var(--sp-page) var(--gutter) var(--sp-8);
  --rd-gap: var(--sp-8); /* ONE vertical rhythm in the reader: header -> cards -> cards -> nav card */ }
.rd-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.rd-body { min-width: 0; }
.rd-toc { position: sticky; top: 88px; padding: 20px var(--sp-3) var(--sp-3); scroll-margin-top: 88px; }
.rd-toc .kicker { margin: 0 0 var(--sp-3) 10px; }
.rd-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rd-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: var(--r-control);
  font-size: var(--fs-small); line-height: 20px; color: var(--text-muted); text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.rd-toc a .num-pill { margin-top: -1px; }
.rd-toc a:hover { background: var(--surface-2); color: var(--text-strong); }
.rd-toc a[aria-current] { background: var(--accent-tint); color: var(--text-strong); font-weight: 500; }
.rd-toc a[aria-current] .num-pill { background: var(--accent); border-color: var(--accent); color: #fff; }
.rd-toc a.done .num-pill { color: var(--text-muted); }

/* Reader prev/next — compact footer inside the reading card (or its own slim card on media/closing pages) */
.rd-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--pad-card);
  padding-top: var(--pad-card); border-top: 1px solid var(--border); }
.rd-nav-card { margin-top: var(--rd-gap); padding-top: 0; padding-bottom: 0; }
.rd-nav-card .rd-nav { margin-top: 0; border-top: 0; padding: var(--sp-4) 0; }
.rd-prev { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-muted); text-decoration: none;
  font-size: var(--fs-small); font-weight: 500; transition: color var(--dur-fast) var(--ease-out); }
.rd-prev:hover { color: var(--text-strong); }
.rd-prev-l { white-space: nowrap; }
.rd-prev-t { font-weight: 400; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rd-next { margin-left: auto; max-width: 360px; min-width: 0; text-decoration: none; }
.rd-next-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Page type: topic — reading card + "Aus dem Team" beside it */
.hb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--rd-gap); align-items: start; }
.hb-wrap.single { grid-template-columns: minmax(0, 1fr); }
.t-card { padding: var(--sp-12) 40px; }
.t-head, .t-body { max-width: var(--measure); }
.t-head { display: grid; gap: var(--sp-3); }
.t-card .t-head { padding-bottom: var(--sp-8); border-bottom: .5px solid var(--hairline); }
.t-card .t-head:last-child { padding-bottom: 0; border-bottom: 0; }
.t-body { padding-top: var(--sp-8); }
.prose { overflow-wrap: break-word; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); font-weight: 500;
  color: var(--text-strong); margin: 1.8em 0 .5em; }
.prose h2 { font-size: var(--fs-title); line-height: var(--lh-title); }
.prose strong { color: var(--text-strong); font-weight: 500; }
.prose a { color: var(--accent); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul li { margin: 0 0 .4em; }
.prose ol { list-style: none; counter-reset: li; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose ol li { counter-increment: li; position: relative; padding: 12px 14px 12px 48px;
  background: var(--surface-2); border: .5px solid var(--border); border-radius: var(--r-control); font-size: 15px; line-height: 22px; }
.prose ol li::before { content: counter(li); position: absolute; left: 14px; top: 12px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; font-size: 11px; font-weight: 600; color: var(--text-subtle); background: var(--surface);
  border: .5px solid var(--border); border-radius: var(--r-pill); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border: 0; border-left: 3px solid var(--accent); }
.prose blockquote, .prose blockquote p { font-size: var(--fs-heading); line-height: 28px; letter-spacing: var(--tr-heading); font-weight: 500;
  color: var(--text-strong); }
.prose blockquote p { margin: 0 0 .4em; }
.prose blockquote > :last-child { margin-bottom: 0; }

.fn { position: sticky; top: 88px; }
.fn .kicker { margin: 0 0 var(--sp-3); }
.fn-quote { font-size: var(--fs-subhead); line-height: 26px; color: var(--text-strong); margin: 0; white-space: pre-line; }
.fn-quote::before { content: "\201E"; } .fn-quote::after { content: "\201C"; }
html[lang="en"] .fn-quote::before { content: "\201C"; } html[lang="en"] .fn-quote::after { content: "\201D"; }
.fn-by { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: .5px solid var(--hairline); }
.fn-by img.avatar { object-fit: cover; background: var(--surface-2); }
.fn-name { font-weight: 500; color: var(--text-strong); font-size: 14px; line-height: 20px; }
.fn-role { font-size: 12px; line-height: 16px; color: var(--text-subtle); }
.m-page > .fn, .cl-page > .fn { position: static; margin-top: var(--rd-gap); }

/* Page type: media — video + animation slot side by side */
.m-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-bottom: var(--rd-gap); }
.m-head .lede { max-width: var(--measure); }
.m-head .kicker { margin: 0 0 var(--sp-3); }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--rd-gap); align-items: stretch; }
.m-cell { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; margin: 0; padding: 12px; }
.m-cap { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); margin: 0; padding: 4px 8px 6px; max-width: none; }
.vp { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; background: var(--warm-200); overflow: hidden; border-radius: var(--r-control); }
.vp video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--warm-150), var(--warm-300)); }
.vp-empty-in { display: grid; justify-items: center; gap: 6px; max-width: 280px; padding: 24px; text-align: center; }
.vp-empty-in b { font-weight: 500; color: var(--text-strong); font-size: var(--fs-body); }
.vp-empty-in span:last-child { font-size: var(--fs-caption); line-height: 16px; color: var(--text-muted); }
.vp-icon { width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted);
  background: var(--glass-bg-2); border: .5px solid var(--glass-border); box-shadow: var(--edge-glass), var(--shadow-glass); }
.vp-icon svg { width: 18px; height: 18px; margin-left: 3px; }
.ap { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; border: .5px dashed var(--border-strong); border-radius: var(--r-control);
  display: grid; place-items: center; overflow: hidden; background-color: var(--surface-2);
  background-image: radial-gradient(var(--warm-300) .8px, transparent .8px); background-size: 18px 18px; background-position: 9px 9px; }
.ap-tag { position: absolute; top: 12px; left: 12px; }
.ap-art { position: relative; width: 56%; aspect-ratio: 1; }
.ap-art .ring { position: absolute; inset: 0; border: .5px solid var(--border-strong); border-radius: 50%; }
.ap-art .ring.r2 { inset: 18%; } .ap-art .ring.r3 { inset: 36%; background: var(--surface); box-shadow: var(--shadow-card); }
.ap-art .orbit { position: absolute; inset: 0; animation: orbit 9s linear infinite; }
.ap-art .orbit.o2 { inset: 18%; animation-duration: 6s; animation-direction: reverse; }
.ap-art .orbit::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent); }
.ap-art .orbit.o2::before { width: 8px; height: 8px; top: -4px; margin-left: -4px; background: var(--pop); }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-art .orbit { animation: none; } }
.ap-title { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: var(--fs-body); font-weight: 500; color: var(--text-muted); }

/* Page type: closing — audit + workshop offers */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-3); }
.intro .lede { max-width: var(--measure); }
.cl-text { margin-top: var(--rd-gap); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rd-gap); margin-top: var(--rd-gap); align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: var(--sp-4); }
/* Cards without an offer (audit off, no workshop dates) are not rendered. */
.offers[hidden], .offer[hidden] { display: none; }
.offers.single { grid-template-columns: minmax(0, 1fr); }
.offer-top { display: grid; gap: 6px; }
.offer .h1 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.offer-text { margin: 0; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-body); }
/* Footer pinned to the card bottom; above it only the regular in-card gap. */
.offer-foot { margin-top: auto; display: grid; gap: var(--sp-3); justify-items: start; }
.offer-foot small { color: var(--text-subtle); font-size: var(--fs-caption); line-height: 16px; display: block; }

@media (max-width: 1180px) {
  .hb-wrap { grid-template-columns: minmax(0, 1fr); }
  .fn { position: static; }
}
@media (max-width: 1100px) {
  .m-head, .intro { grid-template-columns: 1fr; gap: var(--sp-3); }
}
@media (max-width: 960px) {
  .rd-layout { grid-template-columns: minmax(0, 1fr); }
  .rd-toc { position: static; order: 2; }   /* chapter list moves below the content */
}
@media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .m-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rd-layout { --rd-gap: var(--sp-6); }
  .pub-mast { gap: var(--sp-3); padding-left: 14px; }
  .rd-title, .rd-sep { display: none; }
  .rd-count .lbl-long { display: none; }
  .rd-pdf { width: 34px; padding: 0; justify-content: center; }
  .rd-pdf > span { display: none; }
  .rd-nav { flex-direction: column-reverse; align-items: stretch; gap: var(--sp-2); }
  .rd-next { max-width: none; margin-left: 0; }
  .rd-prev { justify-content: center; height: 40px; }
  .rd-prev-t { display: none; }
  .t-card { padding: var(--sp-8) 20px; }
  .prose { font-size: 15px; line-height: 24px; }
  .prose blockquote, .prose blockquote p { font-size: var(--fs-subhead); line-height: 24px; }
  .vp, .ap { aspect-ratio: 4 / 4.6; }
}

/* Closing page — live workshop list (mockup 05) */
.ws { list-style: none; margin: 0; padding: 0; border: .5px solid var(--border); border-radius: var(--r-control); overflow: hidden; }
.ws li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; }
.ws li + li { border-top: .5px solid var(--hairline); }
.ws-info { min-width: 0; }
.ws-info b { display: block; font-weight: 500; color: var(--text-strong); font-size: 14px; line-height: 20px; }
.ws-info .t { display: block; font-size: 12px; line-height: 16px; color: var(--text-subtle); margin: 1px 0 6px; }
.ws li.full { background: var(--surface-2); }
.ws li.full .date-tile, .ws li.full .ws-info b { opacity: .55; }
.ws-empty { margin: 0; font-size: var(--fs-small); color: var(--text-subtle); }
@media (max-width: 600px) {
  .ws li { grid-template-columns: auto minmax(0, 1fr); align-items: start; row-gap: var(--sp-3); }
  .ws li .date-tile { grid-row: 1 / span 2; }
  .ws .btn { grid-column: 2; justify-self: start; }
}

/* Workshop booking (mockup 07) */
.bk { padding: var(--sp-page) var(--gutter) var(--sp-section); }
.bk-hero { margin: var(--sp-4) 0 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-12); align-items: end; }
.bk-hero .kicker { margin: 0 0 var(--sp-3); }
.bk-hero .lede { white-space: pre-line; }
.bk-facts { margin: var(--sp-8) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.bk-fact { padding: 18px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.bk-fact + .bk-fact { border-left: .5px solid var(--border); }
.bk-fact .kicker { margin: 0; }
.bk-fact b { display: block; font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); }
.bk-fact span { display: block; font-size: 12px; color: var(--text-subtle); line-height: 16px; }
.bk-fact .status-pill { justify-self: start; margin-top: 2px; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-block); margin-top: var(--sp-block); align-items: start; }
.bk-form { display: flex; flex-direction: column; gap: var(--sp-block); min-width: 0; }
.bk-form fieldset { margin: 0; display: flex; flex-direction: column; gap: var(--sp-field); min-width: 0; }
.bk-form legend { float: left; width: 100%; padding: 0; margin-bottom: var(--sp-2); display: flex; gap: 10px; align-items: center; }
.bk-form legend + * { clear: both; }
.bk-form legend .h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); margin: 0; }
.bk-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-field); }
.bk-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr); gap: var(--sp-field); }
.bk-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-field); }
.bk-hint { font-size: var(--fs-caption); color: var(--text-subtle); margin: 0; }
.bk-pay { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; background: var(--surface-2); border: .5px solid var(--border); border-radius: var(--r-control); }
.bk-pay .mark { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font: 600 14px/1 var(--font-sans); }
.bk-pay b { display: block; color: var(--text-strong); font-weight: 500; font-size: 14px; line-height: 20px; margin-bottom: 2px; }
.bk-pay p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.bk-submit { display: flex; flex-direction: column; gap: var(--sp-6); }
/* Workshop terms behind the consent checkbox (text from the funnel editor). */
.bk-terms { margin: calc(var(--sp-6) * -1 + 6px) 0 0 30px; font-size: var(--fs-small); line-height: 20px; color: var(--text-body); }
.bk-terms summary { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); cursor: pointer; list-style: none; }
.bk-terms summary::-webkit-details-marker { display: none; }
.bk-terms summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-fast, .15s) ease; }
.bk-terms[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.bk-terms-b { margin-top: 10px; max-height: 320px; overflow: auto; padding: 12px 14px; white-space: pre-line; overflow-wrap: anywhere;
  border-radius: var(--r-control, 10px); background: var(--surface-2, rgba(0,0,0,.03)); color: var(--text-body); }
.bk-aside { position: sticky; top: 88px; }
.bk-aside h3 { margin: 0 0 var(--sp-3); }
.bk-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: .5px solid var(--hairline); color: var(--text-muted); }
.bk-lines li b { font-weight: 500; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-lines li.total { border-bottom: 0; padding-top: 14px; color: var(--text-strong); font-weight: 500; align-items: baseline; }
.bk-lines li.total b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.bk-closed { margin-top: var(--sp-block); }
@media (max-width: 900px) {
  .bk-hero { grid-template-columns: 1fr; gap: var(--sp-3); }
  .bk-facts { grid-template-columns: 1fr 1fr; }
  .bk-fact:nth-child(3) { border-left: 0; }
  .bk-fact:nth-child(n+3) { border-top: .5px solid var(--border); }
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-row4, .bk-row3 { grid-template-columns: 1fr 1fr; }
  .bk-aside { position: static; order: -1; }
}
@media (max-width: 600px) {
  .bk-fact { padding: 14px 16px; }
  .bk-row2, .bk-row3, .bk-row4 { grid-template-columns: minmax(0, 1fr); }
  .bk-submit .btn { width: 100%; }
}

/* Booking confirmation (mockup 08, workshop variant) */
.cf { padding: var(--sp-page) var(--gutter) var(--sp-section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--sp-12); align-items: start; }
.cf-intro > .kicker { margin: 0 0 var(--sp-3); }
.cf-intro > .lede { margin: var(--sp-3) 0 0; }
.cf-card > .kicker { margin: 0; }
.cf-when { display: flex; gap: var(--sp-4); align-items: center; margin: var(--sp-4) 0 var(--sp-6); }
.cf-when .date-tile { height: 72px; min-width: 64px; }
.cf-when .date-tile b { font-size: 26px; }
.cf-when h2 { margin: 0 0 2px; font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.cf-when p { margin: 0; color: var(--text-subtle); font-size: var(--fs-small); }
.cf dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); font-size: 14px; border: .5px solid var(--border); border-radius: var(--r-control); overflow: hidden; }
.cf dt, .cf dd { padding: 11px 14px; border-top: .5px solid var(--hairline); }
.cf dt:first-of-type, .cf dt:first-of-type + dd { border-top: 0; }
.cf dt { color: var(--text-subtle); background: var(--surface-2); }
.cf dd { margin: 0; color: var(--text-strong); min-width: 0; overflow-wrap: anywhere; }
.cf-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; margin-top: var(--sp-6); }
.cf-next { margin-top: var(--sp-6); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); }
.cf-next a { color: var(--accent); text-decoration: none; font-weight: 500; }
.cf-next a:hover { text-decoration: underline; }
@media (max-width: 960px) { .cf { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); } }
@media (max-width: 600px) {
  .cf dl { grid-template-columns: minmax(0, 1fr); }
  .cf dd { border-top: 0; padding-top: 0; background: var(--surface-2); }
  .cf dt { padding-bottom: 2px; }
  .cf-actions .btn { width: 100%; }
}
/* "booked" instead of "offer": .offer is the closing-page card class. */
.status-pill.booked { background: var(--st-offer-tint); color: var(--st-offer-on); } .status-pill.booked::before { background: var(--st-offer); }

/* ============================================================
   Handbook reader (/f/:slug/handbook/:n) — WINA Social House brandbook look
   (settings.handbook_style = 'socialhouse'; the Business Suite look is above)
   Recreates the brandbook PDF (story format 1080×1920): full-bleed color pages,
   LUDWINA© logo + chapter number on top, WINASOCIALHOUSE© wordmark at the bottom,
   highlighted + underlined phrases, lime boxes, stickers. One theme per page
   (design.theme); everything inside is scoped to body.bb.
   ============================================================ */
@font-face { font-family: "Haas BB"; src: url("/fonts/NeueHaasDisplayRoman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Haas BB"; src: url("/fonts/NeueHaasDisplayMediu.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Haas BB"; src: url("/fonts/NeueHaasDisplayBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

body.bb {
  --bb-brown: #3F2413; --bb-lime: #DCEB4F; --bb-red: #F03F2E; --bb-plum: #4E192B;
  --bb-salmon: #E1B3A2; --bb-lilac: #B89FD6; --bb-blue: #444DA9; --bb-white: #FFFFFF;
  --bg: var(--bb-lilac); --ink: var(--bb-blue); --hl: var(--bb-lime); --box: var(--bb-lime); --box-ink: var(--ink);
  --bb-pad: clamp(20px, 6vw, 88px);
  --bb-measure: 34em;
  background: var(--bg); color: var(--ink);
  font-family: "Haas BB", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.bb.bb-lilac      { --bg: var(--bb-lilac); --ink: var(--bb-blue);  --hl: var(--bb-lime); }
body.bb.bb-red        { --bg: var(--bb-red);   --ink: var(--bb-brown); --hl: var(--bb-salmon); }
body.bb.bb-brown      { --bg: var(--bb-brown); --ink: var(--bb-lime);  --hl: var(--bb-lime); --box-ink: var(--bb-brown); }
body.bb.bb-white      { --bg: var(--bb-white); --ink: var(--bb-plum);  --hl: var(--bb-lime); }
body.bb.bb-white-blue { --bg: var(--bb-white); --ink: var(--bb-blue);  --hl: var(--bb-lime); }
body.bb:not(.bb-pub) .pub-mast { display: none; }
body.bb .state.loading { visibility: hidden; } /* page color only while the data loads */
body.bb .pub-foot { color: var(--ink); opacity: .75; font-family: inherit; padding: 0 var(--bb-pad) 20px; }
body.bb .pub-foot a:hover { color: inherit; text-decoration: underline; }
body.bb ::selection { background: var(--ink); color: var(--bg); }

.bb-page { flex: 1; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(20px, 4vw, 48px) var(--bb-pad) 0; }
.bb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-weight: 500; font-size: clamp(17px, 2.2vw, 30px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.bb-top a { color: inherit; text-decoration: none; }
.bb-num { font-variant-numeric: tabular-nums; }
.bb-content { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }

/* Wordmarks (vector paths from the PDF, used as masks so they take the ink color) */
.bb-wm, .bb-tb { display: block; width: 100%; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.bb-wm { --m: url("/funnel/brandbook/wordmark.svg"); aspect-ratio: 930 / 68.2; margin: 0 0 clamp(16px, 3vw, 40px); }
.bb-tb { --m: url("/funnel/brandbook/theb-andbook.svg"); aspect-ratio: 880 / 81.4; }
/* LUDWINA© logo (the original wordmark, not set as text), same mask technique */
.bb-lw, body.bb-pub .pub-mast::before { display: block; flex: none; height: clamp(15px, 2vw, 26px); aspect-ratio: 154 / 26; background: currentColor;
  -webkit-mask: url("/funnel/brandbook/ludwina.svg") left center / contain no-repeat; mask: url("/funnel/brandbook/ludwina.svg") left center / contain no-repeat; }

/* Typography */
.bb-title { margin: 0; font-weight: 400; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.025em; max-width: 16em; text-wrap: balance; }
.bb-lede { margin: 1.2em 0 0; font-size: clamp(19px, 2vw, 28px); line-height: 1.4; letter-spacing: -.01em; max-width: var(--bb-measure); white-space: pre-line; }
.bb-prose { margin-top: clamp(28px, 4vw, 56px); max-width: var(--bb-measure); font-size: clamp(18px, 1.9vw, 27px); line-height: 1.5; letter-spacing: -.012em;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphenate-limit-before: 4; hyphenate-limit-chars: 10 4 4; }
.bb-prose p, .bb-prose ul, .bb-prose ol { margin: 0 0 1.5em; }
.bb-prose > :last-child { margin-bottom: 0; }
.bb-prose strong { font-weight: 500; }
.bb-prose a, .bb-prose u { color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; }
body.bb mark { background: var(--hl); color: inherit; padding: 0 .18em; margin: 0 -.18em;
  text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.bb sup { font-size: .5em; line-height: 0; vertical-align: .95em; margin-right: .2em; letter-spacing: 0; }
.bb-prose h2, .bb-prose h3 { font-weight: 400; font-size: 1.45em; line-height: 1.1; letter-spacing: -.02em; margin: 1.6em 0 .6em; }
.bb-prose h3 { display: table; background: var(--box); color: var(--box-ink); padding: .08em .35em .12em .2em; margin-left: -.2em; }
.bb-prose > h2:first-child, .bb-prose > h3:first-child { margin-top: 0; }
.bb-prose ul { list-style: none; padding: 0; }
.bb-prose ul li { position: relative; padding-left: 1.45em; margin: 0; }
.bb-prose ul li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05em; height: 1.05em; border-radius: 50%; background: currentColor; }
.bb-prose ol { padding-left: 1.6em; }
.bb-prose ol li { margin: 0 0 .4em; padding-left: .2em; }
.bb-prose blockquote { margin: 1.5em 0; padding: 1.6em 1.4em; background: var(--box); color: var(--box-ink); border: 3px solid var(--ink);
  border-radius: 2.4em; text-align: center; }
body.bb.bb-brown .bb-prose blockquote { border-color: var(--bb-lime); }
.bb-prose blockquote p { margin: 0 0 1em; }
.bb-prose blockquote > :last-child { margin-bottom: 0; }
/* A box runs across the full content width; the text around it keeps its measure. */
.bb-prose:has(> blockquote) { max-width: none; }
.bb-prose:has(> blockquote) > :not(blockquote) { max-width: var(--bb-measure); }

/* Topic: title, optional image (GIF) and text; image sits right on wide screens */
.bb-topic { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "img" "body"; align-items: start; }
.bb-topic > .bb-head { grid-area: title; }
.bb-topic > .bb-figure { grid-area: img; margin: clamp(28px, 4vw, 48px) 0 0; max-width: 760px; }
.bb-topic > .bb-main { grid-area: body; min-width: 0; }
.bb-figure img { display: block; width: 100%; height: auto; }
@media (min-width: 1100px) {
  .bb-topic.has-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "title img" "body img"; column-gap: clamp(40px, 6vw, 112px); }
  .bb-topic.has-img > .bb-figure { margin: 0; position: sticky; top: 40px; }
}

/* Stickers */
.bb-sticker { position: absolute; z-index: 2; pointer-events: none; user-select: none; }
.bb-st-smiley { top: clamp(24px, 6vw, 80px); right: 0; width: clamp(84px, 13vw, 180px); height: auto; }
.bb-st-social { top: clamp(40px, 8vw, 110px); right: 2%; transform: rotate(9deg); font-weight: 500; text-transform: uppercase;
  font-size: clamp(13px, 1.5vw, 20px); line-height: 1; letter-spacing: -.04em; text-align: center; }
/* Lime die-cut contour around the letters, like the lime disc behind the smiley.
   On brown pages the letters turn brown so they stand out from the contour. */
.bb-st-social { padding: .2em; text-shadow: 0.150em 0.000em 0 var(--bb-lime), 0.145em 0.039em 0 var(--bb-lime), 0.130em 0.075em 0 var(--bb-lime), 0.106em 0.106em 0 var(--bb-lime), 0.075em 0.130em 0 var(--bb-lime), 0.039em 0.145em 0 var(--bb-lime), 0.000em 0.150em 0 var(--bb-lime), -0.039em 0.145em 0 var(--bb-lime), -0.075em 0.130em 0 var(--bb-lime), -0.106em 0.106em 0 var(--bb-lime), -0.130em 0.075em 0 var(--bb-lime), -0.145em 0.039em 0 var(--bb-lime), -0.150em 0.000em 0 var(--bb-lime), -0.145em -0.039em 0 var(--bb-lime), -0.130em -0.075em 0 var(--bb-lime), -0.106em -0.106em 0 var(--bb-lime), -0.075em -0.130em 0 var(--bb-lime), -0.039em -0.145em 0 var(--bb-lime), -0.000em -0.150em 0 var(--bb-lime), 0.039em -0.145em 0 var(--bb-lime), 0.075em -0.130em 0 var(--bb-lime), 0.106em -0.106em 0 var(--bb-lime), 0.130em -0.075em 0 var(--bb-lime), 0.145em -0.039em 0 var(--bb-lime), 0.090em 0.000em 0 var(--bb-lime), 0.078em 0.045em 0 var(--bb-lime), 0.045em 0.078em 0 var(--bb-lime), 0.000em 0.090em 0 var(--bb-lime), -0.045em 0.078em 0 var(--bb-lime), -0.078em 0.045em 0 var(--bb-lime), -0.090em 0.000em 0 var(--bb-lime), -0.078em -0.045em 0 var(--bb-lime), -0.045em -0.078em 0 var(--bb-lime), -0.000em -0.090em 0 var(--bb-lime), 0.045em -0.078em 0 var(--bb-lime), 0.078em -0.045em 0 var(--bb-lime); }
body.bb.bb-brown .bb-st-social { color: var(--bb-brown); }
.bb-st-consumed { right: 4%; bottom: clamp(16px, 3vw, 40px); transform: rotate(14deg); font-weight: 700; text-transform: uppercase;
  font-size: clamp(16px, 2vw, 30px); line-height: .95; letter-spacing: -.06em; text-align: center; color: var(--bb-plum); }
.bb-st-consumed span { background: var(--bb-lime); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.bb.bb-brown .bb-st-consumed { color: var(--bb-brown); }
.bb-content:has(.bb-st-smiley) .bb-title, .bb-content:has(.bb-st-social) .bb-title { padding-right: clamp(96px, 16vw, 220px); }
@media (max-width: 640px) { .bb-content:has(.bb-st-consumed) { padding-bottom: 120px; } }

/* Cover */
.bb-cover-page { padding-top: clamp(28px, 5vw, 64px); }
.bb-cover { flex: 1; display: grid; justify-items: center; align-content: center; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 64px) 0; text-align: center; }
.bb-cover-fig { position: relative; margin: 0; width: fit-content; max-width: min(100%, 640px); }
.bb-cover-fig img.bb-photo { display: block; width: auto; max-width: 100%; max-height: 70vh; }
.bb-cover-fig .bb-st-smiley { top: auto; bottom: 14%; right: -9%; width: clamp(84px, 16vw, 170px); }
.bb-cover-lede { margin: 0; max-width: 34em; font-weight: 500; text-transform: uppercase; font-size: clamp(15px, 1.7vw, 22px); line-height: 1.18; letter-spacing: -.035em; white-space: pre-line; }

/* Index */
.bb-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bb-toc { list-style: none; margin: 0; padding: 0; border-top: 3px solid currentColor; }
.bb-toc li { border-bottom: 3px solid currentColor; }
.bb-toc a { display: grid; grid-template-columns: minmax(4.2em, 28%) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: .55em 0 .5em;
  color: inherit; text-decoration: none; font-weight: 500; text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(22px, 3.2vw, 46px); line-height: 1.05; transition: opacity .15s ease; }
.bb-toc a:hover .t, .bb-toc a[aria-current] .t { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.bb-toc .n { font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .bb-index.has-img { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); } }
.bb-index > .bb-figure { margin: 0; } /* top flush with the first index rule (no UA figure margin) */

/* Media: polaroid image or video with lime text boxes overlapping its left edge */
.bb-media { display: grid; justify-items: center; }
.bb-head + .bb-media { margin-top: clamp(28px, 4vw, 48px); }
.bb-polaroid { position: relative; margin: 0; width: min(100%, 720px); container-type: inline-size; }
.bb-polaroid img, .bb-polaroid video { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
/* The figure takes the video's own aspect ratio (set from its metadata), so there are no black bars. */
.bb-polaroid video { background: transparent; }
.bb-ov { position: absolute; left: calc(-1 * min(6vw, 60px)); top: 31%; right: 18%; margin: 0; z-index: 1; pointer-events: none; }
/* Text boxes lie on the video like on a photo; they step aside while it plays. */
.bb-polaroid.is-video .bb-ov { transition: opacity .25s ease; }
.bb-polaroid.is-playing .bb-ov { opacity: 0; }
.bb-ov p { margin: 0 0 .7em; font-size: clamp(22px, 3.6vw, 52px); line-height: 1.16; letter-spacing: -.025em; color: var(--box-ink); }
body.bb.bb-red .bb-ov p, body.bb.bb-white-blue .bb-ov p { color: var(--bb-blue); }
.bb-ov span { background: var(--bb-lime); padding: .02em .18em .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bb-video-empty svg { width: 28px; height: 28px; }
.bb-video-empty { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px;
  background: var(--bb-white); color: var(--bb-plum); border: 18px solid #EDEDED; font-size: clamp(16px, 1.6vw, 20px); }
.bb-media .bb-prose { justify-self: stretch; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .bb-ov { left: -12px; right: 8%; } }

/* Team note */
.bb-note { margin-top: clamp(32px, 4vw, 56px); max-width: var(--bb-measure); border-top: 3px solid currentColor; padding-top: 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.bb-note .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: var(--box); color: var(--box-ink); font-weight: 500; }
.bb-note-q { margin: 0; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; white-space: pre-line; }
.bb-note-q::before { content: "\201E"; } .bb-note-q::after { content: "\201C"; }
html[lang="en"] .bb-note-q::before { content: "\201C"; } html[lang="en"] .bb-note-q::after { content: "\201D"; }
.bb-note-by { grid-column: 2; font-size: 14px; text-transform: uppercase; letter-spacing: -.02em; font-weight: 500; }
.bb-note-by span { font-weight: 400; opacity: .8; }

/* Prev / next, PDF, language */
.bb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; margin-bottom: clamp(16px, 2.5vw, 32px);
  border-top: 3px solid currentColor; font-weight: 500; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.2; }
.bb-nav a { color: inherit; text-decoration: none; }
.bb-nav a:hover, .bb-nav a:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.bb-nav .bb-next { margin-left: auto; }
.bb-nav a { display: inline-flex; align-items: baseline; gap: .35em; }
.bb-arr { flex: none; height: .72em; width: auto; align-self: baseline; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.bb-nav .bb-lang a { padding: 0 2px; opacity: .6; }
.bb-nav .bb-lang a[aria-current] { opacity: 1; text-decoration: underline; }
.bb-nav .bb-next-t { text-transform: none; font-weight: 400; letter-spacing: -.01em; }
@media (max-width: 640px) {
  .bb-nav { gap: 10px 18px; }
  .bb-nav .bb-next-t { display: none; }
}

/* Closing: full-bleed photo, wordmark on top, text in lime boxes, offers below */
.bb-closing-hero { position: relative; margin: calc(-1 * clamp(20px, 4vw, 48px)) calc(-1 * var(--bb-pad)) 0; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(28px, 5vw, 64px) var(--bb-pad) 0; color: var(--bb-lime); }
.bb-closing-hero > img.bb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bb-closing-hero > :not(.bb-bg) { position: relative; z-index: 1; }
.bb-closing-hero .bb-content { align-items: center; text-align: center; }
.bb-closing-hero .bb-ov { position: static; margin: 0; }
.bb-closing-hero .bb-ov p { color: var(--bb-brown); font-size: clamp(20px, 2.6vw, 36px); margin-bottom: .3em; } /* handles sit close under the title */
.bb-closing-hero .bb-prose { margin-top: 0; color: var(--bb-brown); }
.bb-closing-hero .bb-prose p { display: inline; background: var(--bb-lime); padding: .04em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bb-closing-hero .bb-st-smiley { top: auto; bottom: 30%; right: 12%; }
.bb-closing-hero .bb-st-consumed { right: auto; left: 11%; bottom: 8%; transform: none; color: var(--bb-brown); }
.bb-closing-hero.no-photo { background: var(--bb-brown); }

body.bb .offers { margin: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); gap: clamp(16px, 2.5vw, 32px); }
body.bb .offer { background: transparent; border: 3px solid currentColor; border-radius: 0; box-shadow: none; color: var(--ink); padding: clamp(20px, 3vw, 36px); }
body.bb .offer .kicker, body.bb .offer small, body.bb .offer-text, body.bb .points li, body.bb .offer .h1, body.bb .offer .h2 { color: inherit; font-family: inherit; }
body.bb .offer .kicker { text-transform: uppercase; letter-spacing: -.02em; font-weight: 500; opacity: .85; }
body.bb .offer .h1, body.bb .offer .h2 { font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
body.bb .offer .btn, body.bb .offer .btn-ink { background: var(--bb-lime); color: var(--bb-brown); border: 0; border-radius: 0; box-shadow: none;
  font-family: inherit; font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; }
body.bb .offer .btn:hover { background: var(--bb-white); }
body.bb .ws { border-color: currentColor; border-radius: 0; }
body.bb .ws li + li { border-top-color: currentColor; }
body.bb .ws-info b, body.bb .ws-info .t { color: inherit; }
body.bb .date-tile { background: transparent; border: 2px solid currentColor; color: inherit; border-radius: 0; }


/* ============================================================
   Questionnaire + thank-you in the WINA Social House look (body.bb-pub,
   funnel style 'socialhouse'). Same markup as the suite look; only the
   suite tokens and a few components are re-skinned here.
   ============================================================ */
body.bb-pub {
  --font-sans: "Haas BB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-strong: var(--ink); --text-body: var(--ink); --text-muted: var(--ink);
  --text-subtle: color-mix(in srgb, var(--ink) 72%, transparent);
  --border: var(--ink); --border-strong: var(--ink); --hairline: var(--ink);
  --surface: transparent; --surface-2: transparent; --surface-sunk: transparent;
  --accent: var(--ink); --accent-ring: var(--ink); --accent-tint: var(--bb-lime);
  --r-control: 0; --r-card: 0; --r-pill: 0;
  --shadow-content: none;
}
body.bb-pub .pub-mast { position: sticky; top: 0; margin: 0; border-radius: 0; padding: 14px var(--bb-pad); min-height: 0;
  background: var(--bg); border: 0; border-bottom: 3px solid var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.bb-pub .pub-mast img { display: none; }
body.bb-pub .pub-mast::before { content: ""; }
body.bb-pub .bar-progress { height: 8px; border: 2px solid var(--ink); background: transparent; }
body.bb-pub .bar-progress > span { background: var(--ink); }
body.bb-pub .bar-count { font-size: 14px; color: var(--ink); }
body.bb-pub .pub-lang { border: 2px solid var(--ink); background: transparent; }
body.bb-pub .pub-lang a[aria-current] { background: var(--ink); color: var(--bg); box-shadow: none; }

body.bb-pub .wrap { padding: clamp(32px, 6vw, 80px) var(--bb-pad) 0; }
body.bb-pub .card { background: transparent; border: 0; border-top: 3px solid var(--ink); border-radius: 0; box-shadow: none; padding: 24px 0 8px; }
body.bb-pub .hero { margin-bottom: clamp(32px, 5vw, 64px); }
body.bb-pub .hero .display { font-weight: 400; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.03em; max-width: 14em; text-wrap: balance; }
body.bb-pub .hero .lede { font-size: clamp(19px, 2vw, 28px); line-height: 1.4; letter-spacing: -.01em; max-width: 30em; }
body.bb-pub .chip { border: 2px solid var(--ink); background: transparent; color: var(--ink); text-transform: uppercase; letter-spacing: -.02em; font-size: 13px; padding: 4px 10px; }
body.bb-pub .h2, body.bb-pub .section-head .h2 { font-weight: 500; letter-spacing: -.035em; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; }
body.bb-pub .form-intro p { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); max-width: 38em; }
body.bb-pub .section-head p { font-size: 16px; color: var(--ink); }
body.bb-pub .qs > .section-head { margin-left: 0; }
body.bb-pub .q { grid-template-columns: 48px minmax(0, 1fr); }
body.bb-pub .q-num { align-self: start; margin-top: .3em; background: transparent; border: 0; min-width: 0; height: auto; padding: 0; font-size: 15px; font-weight: 500; color: var(--ink); justify-content: flex-start; }
body.bb-pub .q-title, body.bb-pub .field label.q-title { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; font-weight: 400; letter-spacing: -.01em; text-transform: none; }
body.bb-pub .field > label { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; }
body.bb-pub .input, body.bb-pub .textarea, body.bb-pub .select { height: 48px; border: 2px solid var(--ink); background: rgba(255, 255, 255, .5); color: var(--ink); font-size: 16px; }
body.bb-pub .textarea { height: auto; }
body.bb-pub .input::placeholder, body.bb-pub .textarea::placeholder { color: color-mix(in srgb, var(--ink) 55%, transparent); }
body.bb-pub .input:focus, body.bb-pub .textarea:focus, body.bb-pub .select:focus { background: #fff; box-shadow: 0 0 0 3px var(--bb-lime); }
body.bb-pub .choice { border: 2px solid var(--ink); background-color: transparent; color: var(--ink); font-size: 16px; min-height: 50px; }
body.bb-pub .choice:hover { background-color: rgba(255, 255, 255, .35); }
/* Checked = lime fill; drawn as a gradient so it can sweep in (Brandbook motion). */
body.bb-pub .choice, body.bb-pub .scale label {
  background-image: linear-gradient(var(--bb-lime), var(--bb-lime)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; }
body.bb-pub .choice:has(input:checked) { background-color: transparent; background-size: 100% 100%; box-shadow: none; border-color: var(--ink); }
body.bb-pub .choice input, body.bb-pub .check input { accent-color: var(--ink); }
body.bb-pub .scale { border: 2px solid var(--ink); background: transparent; gap: 0; padding: 0; }
body.bb-pub .scale label { height: 46px; color: var(--ink); font-size: 16px; }
body.bb-pub .scale label + label { border-left: 2px solid var(--ink); }
body.bb-pub .scale label:has(input:checked) { background-size: 100% 100%; color: var(--ink); box-shadow: none; }
body.bb-pub .check { font-size: 15px; line-height: 1.45; color: var(--ink); }
body.bb-pub .check a { color: inherit; text-decoration: underline; }
body.bb-pub .submit-row { border-left: 3px solid var(--ink); }
body.bb-pub .btn-ink { height: auto; min-height: 54px; padding: 14px 24px; background: var(--bb-lime); color: var(--bb-brown); border: 2px solid var(--bb-brown);
  box-shadow: none; font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: -.02em; white-space: normal; }
body.bb-pub .btn-ink:hover { background-color: #fff; }
body.bb-pub .is-invalid .input, body.bb-pub .input.is-invalid, body.bb-pub .select.is-invalid { border-color: var(--bb-red); box-shadow: 0 0 0 3px var(--bb-red); }
body.bb-pub .q.is-invalid { box-shadow: none; border-top-color: var(--bb-red); }
body.bb-pub .q.is-invalid .q-title { text-decoration: underline wavy var(--bb-red); text-underline-offset: .2em; }
body.bb-pub .form-error { background: var(--bb-red); color: #fff; border-radius: 0; font-size: 15px; }
body.bb-pub .greet { background: var(--bb-lime); color: var(--bb-brown); border-radius: 0; }
body.bb-pub .greet strong, body.bb-pub .greet span { color: inherit; }
body.bb-pub .wrap > .bb-wm, body.bb-pub .thanks > .bb-wm { margin-top: clamp(48px, 8vw, 112px); }
@media (max-width: 860px) { body.bb-pub .submit-row { border-left: 0; border-top: 3px solid var(--ink); } }
@media (max-width: 640px) { body.bb-pub .q { grid-template-columns: 36px minmax(0, 1fr); } }

/* Thank-you on brown, like the brandbook cover */
body.bb-pub .thanks.single { display: flex; flex-direction: column; align-items: stretch; padding: clamp(28px, 5vw, 64px) var(--bb-pad) 0; min-height: calc(100vh - 60px); }
body.bb-pub .thanks .bb-tb { flex: none; }
body.bb-pub .thanks-inner { flex: 1; border-top: 0; align-self: center; padding: clamp(40px, 6vw, 80px) 0; }
body.bb-pub .thanks-inner > * { max-width: 34em; }
body.bb-pub .bb-ok { width: clamp(84px, 12vw, 140px); height: auto; margin: 0 auto clamp(20px, 3vw, 32px); }
body.bb-pub .thanks .kicker { font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
body.bb-pub .thanks .h1 { font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
body.bb-pub .thanks .lede { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--ink); }
body.bb-pub.bb-brown .btn-ink { border-color: var(--bb-lime); }

/* ============================================================
   Brandbook motion (body.bb: handbook reader, questionnaire, thank-you)
   Seen about once per lead, so it may delight — but text never waits on it:
   start states only apply to elements funnel.js marked (data-rv) and reveals
   (.in) come from an IntersectionObserver; nothing blocks input.
   Animated: transform / opacity / clip-path (+ the individual scale, rotate,
   translate properties so idles compose with entrances). background-size /
   -position only for the highlighter, the checked-answer fill and the
   wordmark sweep: small boxes, paint only, one-shot or on click.
   Reduced motion: no movement, wipes or idles — everything just fades.
   The Business Suite look (body without .bb) is untouched.
   ============================================================ */
body.bb {
  --bb-out: cubic-bezier(0.23, 1, 0.32, 1);           /* strong ease-out: entrances */
  --bb-io: cubic-bezier(0.77, 0, 0.175, 1);           /* strong ease-in-out: strokes, wipes */
  --bb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);     /* fallbacks for the linear() springs below */
  --bb-spring-soft: cubic-bezier(0.23, 1, 0.32, 1);
}
/* Damped springs sampled into linear(): ζ .6 ≈ 10% overshoot (bounce ~.2),
   ζ .75 ≈ 3% overshoot. Durations around 0.9–1.1s let them settle. */
@supports (animation-timing-function: linear(0, 1)) {
  body.bb {
    --bb-spring: linear(0, 0.046, 0.159, 0.308, 0.469, 0.624, 0.761, 0.874, 0.962, 1.025, 1.066, 1.087, 1.095, 1.091, 1.081, 1.068, 1.052,
      1.038, 1.024, 1.013, 1.005, 0.998, 0.994, 0.992, 0.991, 0.991, 0.992, 0.993, 0.995, 0.996, 0.998, 0.999, 1);
    --bb-spring-soft: linear(0, 0.029, 0.103, 0.202, 0.314, 0.427, 0.536, 0.635, 0.723, 0.798, 0.859, 0.909, 0.948, 0.977, 0.998, 1.012,
      1.021, 1.026, 1.028, 1.028, 1.026, 1.024, 1.021, 1.017, 1.014, 1.011, 1.009, 1.006, 1.005, 1.003, 1.002, 1.001, 1);
  }
}
body.bb #app > .state.loading { visibility: hidden; }
/* Spinning/popping stickers near the edge must not widen the page. */
body.bb .bb-page { overflow-x: clip; }

@keyframes bb-fade { from { opacity: 0; } }
@keyframes bb-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bb-word { from { opacity: 0; transform: translateY(.42em) rotate(3deg); filter: blur(6px); } }
@keyframes bb-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bb-curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bb-zoom { from { scale: 1.14; } }
@keyframes bb-zoom-in { from { opacity: 0; scale: 1.14; } }
@keyframes bb-drop { from { opacity: 0; transform: translateY(-56px) rotate(-8deg) scale(1.06); } 25% { opacity: 1; } }
@keyframes bb-settle { from { opacity: 0; transform: translateY(28px) rotate(-3deg) scale(.96); } 30% { opacity: 1; } }
@keyframes bb-pop { from { opacity: 0; scale: .6; rotate: -45deg; } 30% { opacity: 1; } }
@keyframes bb-dot { from { opacity: 0; scale: .4; } }
@keyframes bb-spin { to { rotate: 360deg; } }
@keyframes bb-wiggle { 0%, 68%, 100% { rotate: 0deg; } 73% { rotate: -9deg; } 78% { rotate: 7deg; } 83% { rotate: -4deg; } 88% { rotate: 2deg; } 93% { rotate: 0deg; } }
@keyframes bb-float { from { translate: 0 0; rotate: -2deg; } to { translate: 0 -10px; rotate: 2.5deg; } }
@keyframes bb-hl { 0% { background-size: 0% .06em, 0% 100%; } 62% { background-size: 0% .06em, 100% 100%; } 100% { background-size: 100% .06em, 100% 100%; } }
@keyframes bb-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bb-draw { from { transform: scaleX(0); } }
@keyframes bb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bb-par { to { translate: 0 28%; } }

@media (prefers-reduced-motion: no-preference) {
  /* Start states (only on marked elements, until revealed) */
  body.bb [data-rv=""]:not(.in), body.bb [data-rv=fade]:not(.in), body.bb [data-rv=drop]:not(.in), body.bb [data-rv=settle]:not(.in),
  body.bb [data-rv=pop]:not(.in), body.bb [data-rv=zoom]:not(.in), body.bb [data-rv=wipe]:not(.in), body.bb [data-rv=curtain]:not(.in),
  body.bb [data-rv=words]:not(.in) .bb-w, body.bb [data-rv=list]:not(.in) > li, body.bb [data-rv=card]:not(.in) > * { opacity: 0; }
  /* Never clip an observed element itself: IntersectionObserver sees a fully clipped box as out of view. */
  body.bb [data-rv=boxes]:not(.in) span, body.bb .bb-st-consumed[data-rv]:not(.in) span { clip-path: inset(0 100% 0 0); }

  /* Blocks rise; what enters together staggers by --d (set on reveal) */
  body.bb [data-rv=""].in { animation: bb-rise .8s var(--bb-out) var(--d, 0ms) backwards; }
  body.bb [data-rv=fade].in { animation: bb-fade .6s ease var(--d, 0ms) backwards; }

  /* Titles: word by word, slightly turned and out of focus */
  body.bb .bb-w { display: inline-block; }
  body.bb [data-rv=words].in .bb-w { animation: bb-word .9s var(--bb-out) calc(var(--d, 0ms) + var(--i) * 55ms) backwards; }

  /* Highlighter: <mark> draws in left to right per line, the underline follows */
  body.bb [data-rv] mark { text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - .03em) / 100% .06em no-repeat,
                linear-gradient(var(--hl), var(--hl)) 0 0 / 100% 100% no-repeat; }
  body.bb [data-rv]:not(.in) mark { background-size: 0% .06em, 0% 100%; }
  body.bb .in mark { animation: bb-hl 1.1s var(--bb-io) calc(var(--d, 0ms) + 380ms) backwards; }
  body.bb [data-rv=words].in mark { animation-delay: calc(var(--d, 0ms) + 650ms); }

  /* Lime boxes (h3, overlay lines, closing text, sticker lines) wipe in like tape */
  body.bb [data-rv=wipe].in { animation: bb-wipe .75s var(--bb-io) var(--d, 0ms) backwards; }
  body.bb [data-rv=boxes].in span { animation: bb-wipe .7s var(--bb-io) calc(var(--d, 0ms) + var(--i) * 80ms) backwards; }
  body.bb .bb-polaroid .bb-ov.in span { animation-delay: calc(var(--d, 0ms) + 520ms + var(--i) * 80ms); }

  /* Lists: items rise one after another, their dots pop */
  body.bb [data-rv=list].in > li { animation: bb-rise .7s var(--bb-out) calc(var(--d, 0ms) + var(--i) * 70ms) backwards; }
  body.bb ul[data-rv=list].in > li::before { animation: bb-dot .8s var(--bb-spring) calc(var(--d, 0ms) + var(--i) * 70ms + 140ms) backwards; }

  /* Quote box lands and settles */
  body.bb [data-rv=settle].in { transform-origin: 30% 100%; animation: bb-settle 1s var(--bb-spring) var(--d, 0ms) backwards; }

  /* Photos: curtain up from the bottom while the picture settles from a slight zoom */
  body.bb .bb-figure[data-rv] { overflow: clip; }
  body.bb [data-rv=curtain].in { animation: bb-curtain 1.1s var(--bb-io) var(--d, 0ms) backwards; }
  body.bb .bb-photo[data-rv=curtain].in { animation: bb-curtain 1.1s var(--bb-io) var(--d, 0ms) backwards, bb-zoom 1.6s var(--bb-out) var(--d, 0ms) backwards; }
  body.bb .bb-figure.in img { animation: bb-zoom 1.6s var(--bb-out) var(--d, 0ms) backwards; }

  /* Polaroid dropped on the table: falls in turned, springs flat */
  body.bb [data-rv=drop].in { animation: bb-drop 1.1s var(--bb-spring) var(--d, 0ms) backwards; }

  /* Closing photo fades up from a zoom */
  body.bb [data-rv=zoom].in { animation: bb-zoom-in 1.8s var(--bb-out) var(--d, 0ms) backwards; }

  /* Stickers pop in, then live: smiley turns, "social" wiggles, "consumed" floats.
     Idles use rotate/translate, so they add to the stickers' own tilt. */
  body.bb [data-rv=pop].in { animation: bb-pop .9s var(--bb-spring) calc(var(--d, 0ms) + 350ms) backwards; }
  body.bb .bb-st-smiley.in, body.bb .bb-ok.in {
    animation: bb-pop .9s var(--bb-spring) calc(var(--d, 0ms) + 350ms) backwards, bb-spin 24s linear calc(var(--d, 0ms) + 1250ms) infinite; }
  body.bb .bb-st-social.in {
    animation: bb-pop .9s var(--bb-spring) calc(var(--d, 0ms) + 350ms) backwards, bb-wiggle 4.2s ease-in-out calc(var(--d, 0ms) + 1.6s) infinite; }
  body.bb .bb-st-consumed.in {
    animation: bb-pop .9s var(--bb-spring) calc(var(--d, 0ms) + 350ms) backwards, bb-float 3.2s ease-in-out calc(var(--d, 0ms) + 1250ms) infinite alternate; }
  body.bb .bb-st-consumed.in span { animation: bb-wipe .6s var(--bb-io) calc(var(--d, 0ms) + 500ms + var(--i) * 80ms) backwards; }
  html body.bb .in.is-off, html body.bb .is-off .in { animation-play-state: paused; } /* beats the .in animation shorthands */

  /* Wordmarks: ink sweeps through the letters behind a highlight-colored edge */
  body.bb .bb-wm[data-rv], body.bb .bb-tb[data-rv] {
    background: linear-gradient(90deg, currentColor 0 46%, var(--hl) 46% 54%, transparent 54%) 0 0 / 220% 100% no-repeat; }
  body.bb [data-rv=sweep]:not(.in) { background-position: 100% 0; }
  body.bb [data-rv=sweep].in { animation: bb-sweep 1.3s var(--bb-io) var(--d, 0ms) backwards; }

  /* Index: on hover an ink copy of the row wipes over it (text flips with it) */
  body.bb .bb-toc-fx { transition: clip-path .22s var(--bb-out); }
  body.bb .bb-arr { transition: transform .25s var(--bb-out); }

  /* Closing photo drifts slower than the page */
  @supports (animation-timeline: scroll()) {
    body.bb .bb-closing-hero > img.bb-bg.in {
      animation: bb-zoom-in 1.8s var(--bb-out) var(--d, 0ms) backwards, bb-par linear both;
      animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
  }

  /* Questionnaire: section rules draw in from the left, then the content rises */
  body.bb-pub .card[data-rv] { position: relative; border-top-color: transparent; }
  body.bb-pub .card[data-rv]::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px;
    background: var(--ink); transform-origin: 0 50%; pointer-events: none; }
  body.bb-pub .q.is-invalid[data-rv]::before { background: var(--bb-red); }
  body.bb-pub [data-rv=card]:not(.in)::before { transform: scaleX(0); }
  body.bb-pub [data-rv=card].in::before { animation: bb-draw .9s var(--bb-io) var(--d, 0ms) backwards; }
  body.bb-pub [data-rv=card].in > * { animation: bb-rise .7s var(--bb-out) calc(var(--d, 0ms) + 180ms) backwards; }

  /* Answers: lime sweeps in (and back out of the old answer); press feedback */
  body.bb-pub .choice, body.bb-pub .scale label {
    transition: background-size .45s var(--bb-out), background-color .15s ease, transform .12s var(--bb-out); }
  body.bb-pub .bar-progress > span { transition: transform .8s var(--bb-spring-soft); }
  body.bb-pub .btn-ink { transition: background-size .35s var(--bb-out), transform .16s var(--bb-out); }
  body.bb-pub .btn-ink::after { transition: transform .35s var(--bb-spring); }
  body.bb-pub .form-error.show { animation: bb-rise .4s var(--bb-out); }
}

@media (prefers-reduced-motion: reduce) {
  body.bb [data-rv]:not(.in) { opacity: 0; }
  body.bb [data-rv].in { animation: bb-fade .5s ease var(--d, 0ms) backwards; }
  body.bb-pub .form-error.show { animation: bb-fade .3s ease; }
}

/* Index row hover copy (always present, only shown on fine pointers) */
body.bb .bb-toc a { position: relative; }
body.bb .bb-toc-fx { position: absolute; inset: 0; display: grid; grid-template-columns: inherit; gap: inherit; align-items: inherit;
  padding: inherit; background: var(--ink); color: var(--bg); clip-path: inset(0 100% 0 0); pointer-events: none; }
body.bb .bb-toc-fx > span { transform: translateX(.3em); }   /* text inside the fill sits a touch further in */

/* Progress: the fill scales instead of resizing (width stays 100%). */
body.bb-pub .bar-progress > span { width: 100% !important; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* Submit / continue: white wipes in from the left, the arrow nudges */
body.bb-pub .btn-ink { background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 0% 100%; }
body.bb-pub .btn-ink::after { content: "→"; content: "→" / ""; display: inline-block; }
body.bb-pub .btn-ink:active, body.bb-pub .choice:active, body.bb-pub .scale label:active { transform: scale(var(--press-scale)); }

@media (hover: hover) and (pointer: fine) {
  body.bb .bb-toc a:hover .bb-toc-fx { clip-path: inset(0 0 0 0); }
  body.bb .bb-next:hover .bb-arr { transform: translateX(4px); }
  body.bb .bb-prev:hover .bb-arr { transform: translateX(-4px); }
  body.bb .bb-pdf:hover .bb-arr { transform: translateY(3px); }
  body.bb-pub .btn-ink:hover { background-color: var(--bb-lime); background-size: 100% 100%; }
  body.bb-pub .btn-ink:hover::after { transform: translateX(5px); }
}

/* Reading progress hairline (handbook pages that scroll) */
@supports (animation-timeline: scroll()) {
  body.bb:not(.bb-pub)::after { content: ""; position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 3px; background: currentColor;
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; animation: bb-progress linear both; animation-timeline: scroll(root); }
}

/* Page to page: the next page's color wipes over the old one, which slides
   back a little (from the left when going back). Chromium 126+, Safari 18.2+;
   elsewhere a normal navigation. funnel.js skips it outside the brandbook look. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bb-vt-old .75s cubic-bezier(0.77, 0, 0.175, 1) both; }
::view-transition-new(root) { animation: bb-vt-new .75s cubic-bezier(0.77, 0, 0.175, 1) both; }
html:active-view-transition-type(bb-back)::view-transition-old(root) { animation-name: bb-vt-old-back; }
html:active-view-transition-type(bb-back)::view-transition-new(root) { animation-name: bb-vt-new-back; }
@keyframes bb-vt-new { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes bb-vt-old { to { transform: translateX(-12%); } }
@keyframes bb-vt-new-back { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bb-vt-old-back { to { transform: translateX(12%); } }
@keyframes bb-vt-fade-out { to { opacity: 0; } }
@keyframes bb-vt-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: bb-vt-fade-out .3s ease both; }
  ::view-transition-new(root) { animation: bb-vt-fade-in .3s ease both; }
  html:active-view-transition-type(bb-back)::view-transition-old(root) { animation-name: bb-vt-fade-out; }
  html:active-view-transition-type(bb-back)::view-transition-new(root) { animation-name: bb-vt-fade-in; }
}

@media print {
  body.bb [data-rv], body.bb [data-rv] * { opacity: 1 !important; clip-path: none !important; animation: none !important; }
  body.bb [data-rv] mark { background-size: 100% .06em, 100% 100% !important; }
  body.bb [data-rv=sweep] { background-position: 0 0 !important; }
  body.bb::after { display: none; }
  body.bb .bb-toc-fx { display: none !important; }
}
.bb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Closing-page offers (audit + workshop cards) in the brandbook look:
   no suite pills/colors — numbers as "001" labels, everything in the page ink. */
body.bb .offer .person b { color: inherit; font-weight: 500; }
body.bb .offer .person small { color: inherit; opacity: .8; }
body.bb .offer .points { counter-reset: bb-pt; gap: 10px; }
body.bb .offer .points li { counter-increment: bb-pt; color: inherit; grid-template-columns: 2.6em 1fr; align-items: baseline; font-size: clamp(16px, 1.4vw, 19px); }
body.bb .offer .points .num-pill { background: none; border: 0; min-width: 0; height: auto; padding: 0; justify-content: flex-start;
  font-size: 0; color: inherit; }
body.bb .offer .points .num-pill::before { content: "00" counter(bb-pt); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1; }
body.bb .offer .status-pill { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 0; text-transform: uppercase;
  font-weight: 500; letter-spacing: -.01em; }
body.bb .offer .status-pill::before { background: currentColor; }
body.bb .offer .ws li.full { background: transparent; opacity: .55; }
body.bb .offer .date-tile small { color: inherit; opacity: .8; }
body.bb .offer .date-tile b { color: inherit; }
body.bb .offer .offer-foot small, body.bb .offer .ws-empty { color: inherit; opacity: .8; }
body.bb .offer .avatar { box-shadow: 0 0 0 2px currentColor; background: var(--bb-lime); color: var(--bb-brown); }

/* Closing page: the offers start right under the full-screen photo, so the hop shows them. */
body.bb .bb-closing-hero + .offers { margin-top: 24px; }

/* Text boxes scale with the photo/video width (narrow portrait videos get
   smaller text) and sit vertically centred, overlapping the left edge. */
.bb-polaroid .bb-ov { top: 50%; right: auto; translate: 0 -50%; }
.bb-polaroid .bb-ov p { font-size: clamp(14px, 8cqi, 52px); white-space: nowrap; } /* one box per line, as written */

/* Phone: three columns — back left, PDF centred, next right (language row below). */
@media (max-width: 640px) {
  body.bb .bb-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; }
  body.bb .bb-nav .bb-prev { grid-row: 1; grid-column: 1; justify-self: start; }
  body.bb .bb-nav .bb-pdf { grid-row: 1; grid-column: 2; justify-self: center; }
  body.bb .bb-nav .bb-next { grid-row: 1; grid-column: 3; justify-self: end; margin-left: 0; }
  body.bb .bb-nav .bb-lang { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  /* Only two buttons (first/last page): both flush to the outer edges. */
  body.bb .bb-nav:not(:has(.bb-next)) .bb-pdf { grid-column: 3; justify-self: end; }
  body.bb .bb-nav:not(:has(.bb-prev)) .bb-pdf { grid-column: 1; justify-self: start; }
}

/* iPhone (viewport-fit=cover on brandbook pages): the page draws under the
   status bar — the closing photo reaches the screen edge, everything else
   keeps clear of the clock/notch and the home indicator. */
body.bb .bb-page { padding-top: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-top, 0px)); }
body.bb .bb-cover-page { padding-top: calc(clamp(28px, 5vw, 64px) + env(safe-area-inset-top, 0px)); }
body.bb .bb-closing-hero { margin-top: calc(-1 * (clamp(20px, 4vw, 48px) + env(safe-area-inset-top, 0px)));
  padding-top: calc(clamp(28px, 5vw, 64px) + env(safe-area-inset-top, 0px)); }
body.bb-pub .pub-mast { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
body.bb .pub-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* Closing offers: the main button spans the card (card padding stays). */
body.bb .offer .offer-foot { justify-items: stretch; }
body.bb .offer .offer-foot .btn { width: 100%; justify-content: center; }
a.bb-tb { color: inherit; } /* the linked wordmark keeps the page colour, not the link blue */


/* ============================================================
   Booking pages in the WINA Social House look (body.bb-pub) — composed
   like brandbook pages: big Haas type, 3px ink rules per section,
   whitespace, "001" steps, a sticker. Booking + audit on red (the action
   step), confirmation on brown like the thank-you page. Lime is used
   solid and only for what is chosen (day, time, title highlight, total)
   and for the call to action. Same markup as the suite look.
   ============================================================ */
body.bb-pub :is(.bk, .au, .cf) { padding: clamp(32px, 6vw, 80px) var(--bb-pad) 0; }
body.bb-pub :is(.bk, .au, .cf) .kicker { color: var(--ink); font-weight: 500; letter-spacing: -.01em; font-size: 14px; line-height: 1.3; }
body.bb-pub :is(.bk-hero, .au-head, .cf-intro) .display { overflow-wrap: anywhere; font-weight: 400; font-size: clamp(40px, 7vw, 108px); line-height: .98;
  letter-spacing: -.04em; text-wrap: balance; }
body.bb-pub :is(.au-head, .cf-intro) .display em { background: var(--bb-lime); color: var(--box-ink); padding: 0 .1em; margin: 0 -.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.bb-pub :is(.bk, .au) .lede { font-size: clamp(19px, 2vw, 28px); line-height: 1.38; letter-spacing: -.01em; color: var(--ink); }
body.bb-pub :is(.bk, .au, .cf) > .bb-wm { margin-top: clamp(56px, 9vw, 128px); }
body.bb-pub .back-link { color: var(--ink); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; }
body.bb-pub .back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
body.bb-pub :is(.bk-hint, .au-change, .au-actions small, .au-tz, .au-note) { color: var(--ink); }
body.bb-pub .au-change a { color: inherit; text-decoration: underline; }
body.bb-pub .pv-note { font-size: 15px; font-weight: 500; }
body.bb-pub .pv-note { background: var(--bb-lime); color: var(--box-ink); padding: 10px 14px; }
body.bb-pub .pv-note[hidden] { display: none; }
body.bb-pub .avatar { background: transparent; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
body.bb-pub .person b, body.bb-pub .person small { color: var(--ink); }

/* White booking pages: solid white fields, lime focus ring plus an ink outline */
body.bb-pub.bb-white-blue :is(.input, .textarea, .select) { background-color: #fff; border: 2px solid var(--ink); color: var(--ink); }
body.bb-pub.bb-white-blue :is(.input, .textarea)::placeholder { color: color-mix(in srgb, var(--ink) 55%, transparent); }
body.bb-pub.bb-white-blue :is(.input, .textarea, .select):focus { background-color: #fff; box-shadow: 0 0 0 3px var(--bb-lime); outline: 2px solid var(--ink); outline-offset: 3px; }

/* Back to the handbook: last row of the page, like the handbook nav */
body.bb-pub :is(.au, .bk) > .back-link { display: flex; align-items: baseline; gap: .35em; margin-top: clamp(56px, 8vw, 104px); padding-top: 18px;
  border-top: 3px solid var(--ink); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.2; letter-spacing: -.03em; }
body.bb-pub :is(.au, .bk) > .back-link + .bb-wm { margin-top: clamp(32px, 5vw, 64px); }

/* Call to action: one full-width lime block with big type (audit, workshop, .ics) */
body.bb-pub :is(.au-actions, .bk-submit .submit-row, .cf-actions) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border: 0; padding: 0; }
body.bb-pub :is(.au-actions, .bk-submit .submit-row, .cf-actions) .btn-ink { width: 100%; min-height: clamp(72px, 8vw, 104px); padding: 18px clamp(18px, 2.4vw, 32px);
  justify-content: space-between; text-align: left; border: 0; color: var(--box-ink); font-size: clamp(20px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.035em; }
/* On white the hover wipe is ink (a white wipe would vanish into the page) */
body.bb-pub.bb-white-blue :is(.au-actions, .bk-submit .submit-row) .btn-ink { background-image: linear-gradient(var(--ink), var(--ink)); transition: background-size .35s var(--bb-out), color .2s ease, transform .16s var(--bb-out); }
body.bb-pub :is(.au-actions, .bk-submit .submit-row, .cf-actions) .btn-ink::after { font-size: 1.1em; }
body.bb-pub :is(.bk-submit .submit-row, .au-actions) p, body.bb-pub .au-actions small { margin: 0; font-size: 14px; color: var(--ink); }

/* Section labels: "001 TAG", "002 MI., 28. OKT.", "003 DEIN TERMIN" */
body.bb-pub .au { counter-reset: au-step; }
body.bb-pub :is(.au-pane-top .h2, .au-summary > .kicker) { counter-increment: au-step; }
body.bb-pub :is(.au-pane-top .h2, .au-summary > .kicker)::before { content: "00" counter(au-step); display: inline-block; min-width: 48px;
  font-size: 15px; font-weight: 500; letter-spacing: 0; vertical-align: .2em; }
body.bb-pub .au-pane-top .h2, body.bb-pub .au-summary > .kicker { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; text-transform: uppercase; letter-spacing: -.035em; line-height: 1.1; }
body.bb-pub .bk-form { counter-reset: bk-step; }
body.bb-pub .bk-form legend { counter-increment: bk-step; align-items: baseline; gap: 0; margin-bottom: 14px; }
body.bb-pub .bk-form legend .num-pill { font-size: 0; background: none; border: 0; padding: 0; min-width: 48px; height: auto; color: var(--ink); }
body.bb-pub .bk-form legend .num-pill::before { content: "00" counter(bk-step); font-size: 15px; font-weight: 500; letter-spacing: 0; }
body.bb-pub .bk-form legend .h2 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.035em; }

/* Audit: head */
body.bb-pub .au-head { display: block; margin: clamp(16px, 3vw, 32px) 0 clamp(40px, 6vw, 80px); }
body.bb-pub .au-head .kicker { margin-bottom: 18px; }
body.bb-pub .au-person { margin-top: clamp(18px, 2.4vw, 28px); padding: 0; border: 0; background: none; box-shadow: none; gap: 10px; }
body.bb-pub .au-person .avatar { width: 48px; height: 48px; font-size: 15px; }
body.bb-pub .au-person b, body.bb-pub .au-person small { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; }

/* Audit: days and times as big type; the chosen one is a solid lime block */
body.bb-pub .au-picker.card { display: block; padding: 0; border: 0; overflow: visible; }
body.bb-pub .au-pane, body.bb-pub .au-pane + .au-pane { position: relative; padding: 22px 0 0; border: 0; border-top: 3px solid var(--ink); }
body.bb-pub .au-pane + .au-pane { margin-top: clamp(40px, 6vw, 72px); }
body.bb-pub .au-pane-top { margin-bottom: clamp(18px, 2.4vw, 28px); align-items: baseline; }
body.bb-pub .au-tz { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; }
body.bb-pub .au-days { display: flex; flex-wrap: wrap; gap: 6px 4px; }
/* Paging: small bare arrows; the one that can't go further is hidden */
body.bb-pub .au-month { gap: 10px; }
body.bb-pub .au-nav { gap: 2px; }
body.bb-pub .au-nav button { width: 28px; height: 28px; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.bb-pub .au-nav button { transition: transform .16s var(--bb-out); }
  body.bb-pub .au-nav [data-page="-1"]:hover { transform: translateX(-3px); }
  body.bb-pub .au-nav [data-page="1"]:hover { transform: translateX(3px); }
}
body.bb-pub .au-nav button:hover:not(:disabled) { background: none; } /* outranks the suite hover in funnel-audit.css */
body.bb-pub .au-nav button:disabled { display: none; }
body.bb-pub .au-nav button:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
body.bb-pub .au-slots { display: flex; flex-wrap: wrap; gap: 8px 6px; }
/* The extra :hover selectors outrank the suite hover rules (background shorthand) in funnel-audit.css. */
body.bb-pub .au .day, body.bb-pub .au .slot, body.bb-pub .au .day:hover:not(:disabled), body.bb-pub .au .slot:hover { flex: 0 0 auto; height: auto; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); cursor: pointer;
  background: linear-gradient(var(--bb-lime), var(--bb-lime)) 0 0 / 0% 100% no-repeat; }
body.bb-pub .au .day { min-width: clamp(64px, 7vw, 100px); padding: 10px 12px 12px; text-align: left; }
body.bb-pub .au .day small { font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: inherit; }
body.bb-pub .au .day b { font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.045em; margin: 6px 0 6px; }
body.bb-pub .au .day i { font-size: 13px; color: inherit; }
body.bb-pub .au .slot { padding: 10px 16px 9px; font: 400 clamp(28px, 3.4vw, 48px)/1 var(--font-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
body.bb-pub .au :is(.day, .slot)[aria-pressed="true"], body.bb-pub .au :is(.day, .slot)[aria-pressed="true"]:hover:not(:disabled) { background-size: 100% 100%; color: var(--box-ink); box-shadow: none; }
body.bb-pub .au .day[aria-pressed="true"] :is(small, i) { color: inherit; }
body.bb-pub .au .day:disabled { background: none; opacity: .35; cursor: default; }
body.bb-pub .au :is(.day, .slot):focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.bb-pub .au-empty { color: var(--ink); font-size: clamp(18px, 1.8vw, 24px); }

/* Audit: "003 Dein Termin" — the choice in big type, then name/topic and the CTA */
body.bb-pub .au-confirm { margin-top: clamp(48px, 7vw, 88px); gap: clamp(28px, 4vw, 64px); }
body.bb-pub .au-big { font-weight: 400; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.035em; color: var(--ink); margin-top: 14px; }
body.bb-pub .au-summary dl { border-top: 0; font-size: 17px; margin-top: 18px; padding-top: 0; }
body.bb-pub .au-summary dt { color: var(--ink); text-transform: uppercase; font-size: 13px; font-weight: 500; padding-top: 3px; }
body.bb-pub .au-form { gap: 20px; }

/* Workshop booking */
body.bb-pub .bk-hero { margin-top: clamp(16px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); gap: 20px; }
body.bb-pub .bk-hero .lede { max-width: 30em; }
body.bb-pub .bk-facts { margin-top: clamp(40px, 6vw, 72px); padding: 22px 0 0; overflow: visible; gap: 24px; }
body.bb-pub .bk-fact, body.bb-pub .bk-fact + .bk-fact { padding: 0; border: 0; gap: 8px; }
body.bb-pub .bk-fact b { font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
body.bb-pub .bk-fact span { color: var(--ink); font-size: 15px; line-height: 1.35; }
body.bb-pub .bk-fact .status-pill { background: var(--bb-lime); color: var(--box-ink); border: 0; padding: 4px 8px; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: -.01em; }
body.bb-pub .bk-fact .status-pill::before { display: none; }
body.bb-pub .bk-layout { gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); }
body.bb-pub .bk-form { gap: clamp(40px, 5vw, 64px); }
body.bb-pub .bk-pay { border: 0; background: transparent; padding: 0; gap: 14px; align-items: start; }
body.bb-pub .bk-pay .mark { width: 40px; height: 40px; border-radius: 0; background: var(--bb-lime); color: var(--box-ink); font-size: 20px; font-weight: 500; }
body.bb-pub .bk-pay b { color: var(--ink); font-size: 17px; font-weight: 500; }
body.bb-pub .bk-pay p { color: var(--ink); font-size: 15px; }
body.bb-pub .bk-submit { gap: 22px; }
body.bb-pub .bk-terms { margin-top: -16px; font-size: 15px; line-height: 1.45; color: var(--ink); }
body.bb-pub .bk-terms summary { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.bb-pub .bk-terms-b { border-radius: 0; background: transparent; border: 2px solid var(--ink); color: var(--ink); }
body.bb-pub .bk-aside, body.bb-pub .bk-aside[data-rv] { position: sticky; top: 84px; } /* [data-rv] cards are position: relative */
body.bb-pub .bk-aside h3 { margin-bottom: 18px; }
body.bb-pub .bk-lines li { border: 0; padding: 6px 0; color: var(--ink); font-size: 17px; }
body.bb-pub .bk-lines li b { color: var(--ink); font-weight: 500; }
body.bb-pub .bk-lines li.total { margin-top: 14px; padding-top: 16px; border-top: 3px solid var(--ink); text-transform: uppercase; font-size: 15px; align-items: center; }
body.bb-pub .bk-lines li.total b { font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.035em; color: var(--box-ink); padding: 2px .14em;
  background: linear-gradient(var(--bb-lime), var(--bb-lime)) 0 0 / 100% 100% no-repeat; }
@media (max-width: 900px) {
  body.bb-pub .bk-aside, body.bb-pub .bk-aside[data-rv] { position: relative; top: 0; }
  body.bb-pub .bk-fact:nth-child(n+3) { border: 0; }
}

/* Confirmation on brown, like the thank-you page */
body.bb-pub .cf { align-items: start; row-gap: clamp(32px, 5vw, 64px); }
body.bb-pub .cf > .bb-tb, body.bb-pub .cf > .bb-wm { grid-column: 1 / -1; }
body.bb-pub .cf > .bb-wm { margin-top: clamp(16px, 4vw, 48px); }
body.bb-pub .cf-intro .bb-ok { display: block; width: clamp(84px, 11vw, 132px); height: auto; margin: 0 0 clamp(20px, 3vw, 36px); }
body.bb-pub .cf-intro > .kicker { margin-bottom: 14px; }
body.bb-pub .cf-intro .display { font-size: clamp(40px, 6vw, 88px); }
body.bb-pub .cf-intro > .lede { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--ink); margin-top: 20px; }
body.bb-pub .cf-next a { color: var(--ink); text-transform: uppercase; letter-spacing: -.02em; text-decoration: underline; text-underline-offset: .15em; }
body.bb-pub .cf-when { gap: 20px; }
body.bb-pub .cf-when .date-tile { height: auto; min-width: 0; padding: 0; border: 0; background: none; align-items: flex-start; color: var(--ink); }
body.bb-pub .cf-when .date-tile small { color: var(--ink); font-size: 12px; }
body.bb-pub .cf-when .date-tile b { color: var(--ink); font-weight: 400; font-size: clamp(48px, 5vw, 72px); line-height: .95; letter-spacing: -.045em; margin: 4px 0; }
body.bb-pub .cf-when h2 { text-transform: none; font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.025em; }
body.bb-pub .cf-when p { color: var(--ink); font-size: 16px; }
body.bb-pub .cf dl { border: 0; border-radius: 0; grid-template-columns: 150px minmax(0, 1fr); font-size: 17px; overflow: visible; }
body.bb-pub .cf dt, body.bb-pub .cf dd { border-top: 1.5px solid color-mix(in srgb, var(--ink) 50%, transparent); padding: 12px 0; }
body.bb-pub .cf dt:first-of-type, body.bb-pub .cf dt:first-of-type + dd { border-top: 0; }
body.bb-pub .cf dt { background: transparent; color: var(--ink); text-transform: uppercase; font-size: 13px; font-weight: 500; padding-top: 15px; }
body.bb-pub .cf dd { color: var(--ink); }
body.bb-pub .cf .avatar { color: var(--ink); }
@media (max-width: 600px) {
  body.bb-pub .cf dl { grid-template-columns: minmax(0, 1fr); }
  body.bb-pub .cf dd { background: transparent; border-top: 0; padding: 0 0 12px; }
  body.bb-pub .cf dt { padding-bottom: 2px; }
}

/* Phones: the day row becomes a strip to the screen edges */
@media (max-width: 600px) {
  body.bb-pub .au-days { flex-wrap: nowrap; margin: -6px calc(-1 * var(--bb-pad)) 0; padding: 6px var(--bb-pad) 8px; /* room for focus rings */ scroll-padding-left: var(--bb-pad); scrollbar-width: none; }
  body.bb-pub .au .day { flex: 0 0 auto; min-width: 72px; }
  body.bb-pub .au .day b { font-size: 44px; }
  body.bb-pub .au .slot { font-size: 30px; padding: 9px 12px 8px; }
  body.bb-pub .bk-facts { grid-template-columns: 1fr 1fr; }
}

/* Booking motion (adds to "Brandbook motion" above): calm reveals; the
   chosen day/time fills with lime from the left (a transition, so it
   retargets when the choice changes quickly). */
@keyframes bb-quick-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  body.bb-pub [data-rv=words]:not(.in) em { clip-path: inset(0 100% 0 0); }
  body.bb-pub [data-rv=words].in em { animation: bb-wipe .7s var(--bb-io) calc(var(--d, 0ms) + 600ms) backwards; }
  /* The pane rule draws like the questionnaire sections */
  body.bb-pub .au-pane[data-rv] { border-top-color: transparent; }
  body.bb-pub .au-pane[data-rv]::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px;
    background: var(--ink); transform-origin: 0 50%; pointer-events: none; }
  /* Days: one soft stagger on the first reveal; times: a quick fade on a new day */
  body.bb-pub .au-pane.in .day { animation: bb-rise .7s var(--bb-out) calc(var(--d, 0ms) + 220ms + var(--i, 0) * 40ms) backwards; }
  body.bb-pub .au-pane.in .au-days.is-page .day { animation: bb-rise .45s var(--bb-out) calc(var(--i, 0) * 30ms) backwards; }
  body.bb-pub .au-slots.is-swap .slot, body.bb-pub .au-slots.is-swap .au-empty { animation: bb-quick-fade .2s ease; }
  body.bb-pub .au .day, body.bb-pub .au .slot { transition: background-size .3s var(--bb-out), color .2s ease; }
  body.bb-pub .au-confirm:not([hidden]) { animation: bb-rise .5s var(--bb-out); }
  /* Rows follow each other */
  body.bb-pub .bk-facts[data-rv=card].in > * { animation-delay: calc(var(--d, 0ms) + 180ms + var(--i, 0) * 70ms); }
  body.bb-pub .bk-aside.in .bk-lines > li { animation: bb-rise .6s var(--bb-out) calc(var(--d, 0ms) + 240ms + var(--i, 0) * 70ms) backwards; }
  body.bb-pub .bk-aside.in .bk-lines > li.total b { animation: bb-fill .5s var(--bb-out) calc(var(--d, 0ms) + 560ms) backwards; }
  body.bb-pub .cf-card.in dl > * { animation: bb-rise .6s var(--bb-out) calc(var(--d, 0ms) + 300ms + var(--i, 0) * 40ms) backwards; }
}
@keyframes bb-fill { from { background-size: 0% 100%; } }
@media (hover: hover) and (pointer: fine) {
  body.bb-pub.bb-white-blue :is(.au-actions, .bk-submit .submit-row) .btn-ink:not(:disabled):hover { color: #fff; }
  body.bb-pub :is(.au, .bk) > .back-link:hover .bb-arr { transform: translateX(-4px); }
  body.bb-pub .au :is(.day:not(:disabled), .slot):not([aria-pressed="true"]):hover :is(b),
  body.bb-pub .au .slot:not([aria-pressed="true"]):hover { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .12em; }
}
@media (forced-colors: active) {
  body.bb-pub .au :is(.day, .slot)[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
}
body.bb-pub .au-pane-top { flex-wrap: wrap; row-gap: 6px; }
body.bb-pub .au-pane-top .h2 { white-space: nowrap; }

/* Audit booking: name / e-mail shown as text in the brandbook look */
body.bb-pub .field > .field-label { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
body.bb-pub .au-val { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }

body.bb .offer .offer-foot .btn { height: 52px; font-size: 15px; } /* one size for both offer buttons */

/* Both offer cards read alike: the workshop card has the audit card's anatomy
   (a row per date where the audit shows the person, the text, one button at
   the bottom). The date sits in a 2px box exactly as tall as the text next to
   it, square, with the month on a solid band on top (like a calendar icon). */
body.bb .offers { align-items: stretch; }
body.bb .offer .ws-people { display: grid; gap: 14px; }
body.bb .offer a.person { color: inherit; text-decoration: none; }
body.bb .offer .person.full { opacity: .55; }
body.bb .offer .offer-text { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; }
body.bb #wsOffer .offer-foot { margin-top: auto; }
body.bb #wsOffer .ws-people .person { align-items: stretch; gap: 20px; }
body.bb #wsOffer .ws-cal { flex: none; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 1; min-width: 76px;
  border: 2px solid currentColor; color: inherit; text-transform: uppercase; }
body.bb #wsOffer .ws-cal i { display: block; padding: 4px 4px 3px; background: var(--ink); color: var(--bg); text-align: center;
  font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .04em; line-height: 1; }
body.bb #wsOffer .ws-cal b { display: grid; place-items: center; font-size: 44px; font-weight: 400;
  letter-spacing: -.06em; line-height: 1; color: inherit; padding-right: .06em; }
body.bb #wsOffer .ws-people .person > div { display: grid; align-content: center; justify-items: start; }
body.bb #wsOffer .ws-people .person > div b { font-size: 22px; line-height: 1.2; }
body.bb #wsOffer .ws-people .person > div small { font-size: 15px; line-height: 1.3; margin-top: 4px; }
body.bb #wsOffer .ws-seats { margin-top: 8px; padding: 3px 6px 2px; background: var(--hl); color: var(--bb-brown);
  font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
body.bb #wsOffer .ws-seats.out { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (max-width: 600px) {
  body.bb #wsOffer .ws-people .person > div b { font-size: 18px; }
  body.bb #wsOffer .ws-people .person > div small { font-size: 13px; }
}
