/* ==========================================================================
   Vennora – styles
   Tokens → fonts → base → components → header → sections → pages → consent
   → motion → print
   ========================================================================== */

/* ---------- Fonts (self-hosted: latin, latin-ext, vietnamese) ---------- */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --plum-900: #2b1631;
  --plum: #5c2a63;
  --plum-100: #f3e9f2;
  --plum-card: #3b2242;
  --lavender: #d9c2dc;
  --mist: #ecdfeb;
  --mint: #9fe3c8;
  --mint-100: #e3f7ee;
  --mint-ink: #17694f;
  --gold: #e3c272;
  --gold-100: #f8eed2;
  --gold-ink: #80600f;
  --cream: #fbf7f1;
  --paper: #fff;
  --ink: #2b1631;
  --ink-soft: #5e4b62;
  --muted: #6f5f72;
  --line: #e8dee6;
  --line-strong: #cdbccb;
  --error: #a8261d;
  --error-100: #fdecea;

  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgb(43 22 49 / 0.06), 0 18px 40px -22px rgb(43 22 49 / 0.35);
  --shadow-float: 0 2px 4px rgb(43 22 49 / 0.08), 0 30px 60px -28px rgb(43 22 49 / 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1039px) {
  :root { --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: 0.18em; }
a:hover { color: var(--plum-900); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nobr { white-space: nowrap; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--plum-900);
  color: var(--cream);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--cream); }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-900); color: #fff; }
.btn-line { border-color: var(--plum-900); color: var(--plum-900); }
.btn-line:hover { background: var(--plum-100); color: var(--plum-900); }

/* Section label: a calendar entry "Mo · 09:00 · Module" */
.slot-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
}
.slot-day {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slot-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.slot-label.is-gold .slot-day { background: var(--gold); color: var(--plum-900); }

.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-lead { margin-top: 16px; max-width: 40em; color: var(--ink-soft); font-size: 1.125rem; }

/* ==========================================================================
   Header: the week strip
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 247 241 / 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s;
}
.topbar.is-scrolled { box-shadow: 0 12px 30px -24px rgb(43 22 49 / 0.6); }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1320px, 100% - 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--plum-900);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-size: 1.4375rem; font-weight: 700; letter-spacing: -0.02em; }
.btn-cta { flex: none; min-height: 44px; padding: 0 20px; background: var(--plum-900); color: var(--cream); }
.btn-cta:hover { background: var(--plum); color: #fff; }
.cta-short { display: none; }

.week {
  position: relative;
  display: flex;
  flex: 1;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.month { display: none; }
.week-kw {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--gold-100);
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.week-days { display: flex; gap: 2px; list-style: none; }
.day {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 84px;
  padding: 5px 8px 6px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s;
}
.day:hover { background: var(--plum-100); color: var(--ink); }
.day-time, .day-today { font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.day-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.day-today { display: none; color: var(--plum); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.day-date {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.day-label { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.day.is-past .day-date { border-color: var(--mint-ink); background: var(--mint-100); color: var(--mint-ink); }
.day[aria-current] .day-date { border-color: var(--plum); background: var(--plum); color: #fff; }
.day[aria-current] .day-time { display: none; }
.day[aria-current] .day-today { display: block; }
.week-end { display: flex; gap: 4px; }
.week-end span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
}
.week-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.week-progress i {
  display: block;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--mint-ink), var(--plum));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
.week-toggle {
  position: relative;
  display: none;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  color: var(--plum-900);
  transition: border-color 0.2s, background-color 0.2s;
}
.week-toggle:hover { border-color: var(--plum); }
.week-toggle svg { width: 30px; height: 30px; }
.week-toggle-date {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.week-toggle[aria-expanded="true"] { background: var(--plum-900); border-color: var(--plum-900); color: var(--cream); }

/* Header between 1040 and 1199 px: tighter cells so everything fits on one line. */
@media (max-width: 1199px) and (min-width: 1040px) {
  .topbar-inner { gap: 14px; }
  .day { min-width: 74px; padding-inline: 4px; }
  .week { gap: 6px; }
  .week-end { display: none; }
}

/* Below 1040 px the week becomes a sheet with a month grid. */
@media (max-width: 1039px) {
  .topbar-inner { gap: 12px; }
  .brand { margin-right: auto; }
  .week-toggle { display: grid; }
  .week {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 6px 40px;
    align-content: start;
    max-height: calc(100dvh - var(--header-h));
    padding: 24px var(--gutter) 32px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 30px 50px -30px rgb(43 22 49 / 0.5);
  }
  .week.is-open { display: grid; }
  .month { display: block; grid-row: 1 / 3; }
  .week-kw { justify-self: start; }
  .week-kw::before { content: 'Diese Woche · '; }
  .week-days { flex-direction: column; gap: 0; }
  .day {
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    justify-items: start;
    gap: 14px;
    min-height: 60px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .day-date { grid-column: 1; grid-row: 1; width: 38px; height: 38px; }
  .day-label { grid-column: 2; grid-row: 1; font-size: 1.0625rem; }
  .day-time, .day[aria-current] .day-today { grid-column: 3; grid-row: 1; font-size: 0.8125rem; }
  .week-end, .week-progress { display: none; }
}
@media (max-width: 640px) {
  .week { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .month { grid-row: auto; margin-bottom: 14px; }
}
@media (max-width: 420px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .btn-cta { padding: 0 16px; }
  .brand-word { font-size: 1.25rem; }
}
/* Without JavaScript there is no toggle: show the days as a plain list. */
html:not(.js) .topbar-inner { flex-wrap: wrap; height: auto; padding-block: 10px; }
html:not(.js) .week { position: static; display: flex; flex-basis: 100%; flex-wrap: wrap; padding: 0; box-shadow: none; border: 0; }
html:not(.js) .week-toggle { display: none; }

/* Month grid (built by main.js) */
.month-title { margin-bottom: 10px; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.mg-wd { padding-bottom: 4px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.mg-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.mg-day.is-week { background: var(--plum-100); font-weight: 600; }
.mg-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-ink);
}
.mg-day.is-today { background: var(--plum); color: #fff; }
.mg-day.is-today::after { background: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--plum);
  background: linear-gradient(transparent 68%, var(--gold) 68%, var(--gold) 90%, transparent 90%);
}
.hero-lead { margin-top: 22px; max-width: 34em; color: var(--ink-soft); font-size: 1.1875rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-hint {
  display: flex;
  gap: 10px;
  max-width: 30em;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-hint::before { content: ''; flex: none; width: 18px; height: 2px; margin-top: 0.75em; background: var(--gold-ink); }

/* Booking stage: browser frame, phone and confirmation overlap. */
.booking {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  min-height: 640px;
}
.frame-desk, .frame-phone, .confirm { grid-row: 1; }
.frame-desk {
  grid-column: 1 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--plum-100);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame-bar span { margin-left: 10px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.frame-body { padding: 20px 22px 26px; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-no {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--plum-900);
  font-size: 0.75rem;
}
.services { display: grid; gap: 8px; margin-top: 14px; list-style: none; }
.service {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}
.service::before {
  content: '';
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}
.service:hover { border-color: var(--plum); }
.service[aria-pressed="true"] { border-color: var(--plum); background: var(--plum-100); }
.service[aria-pressed="true"]::before { border: 5px solid var(--plum); }
.service-name { font-weight: 600; line-height: 1.3; }
.service-meta { color: var(--muted); font-size: 0.8125rem; }

.frame-phone {
  position: relative;
  z-index: 2;
  grid-column: 8 / 13;
  margin-top: 46px;
  padding: 40px 16px 20px;
  border: 9px solid var(--plum-900);
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 70px;
  height: 18px;
  border-radius: 999px;
  background: var(--plum-900);
  transform: translateX(-50%);
}
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
.chip-day {
  min-height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip-day:hover { border-color: var(--plum); }
.chip-day[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.slot {
  min-height: 44px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: var(--mint-100);
  color: var(--mint-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.slot:hover { border-color: var(--mint-ink); }
.slot[aria-pressed="true"] { background: var(--mint-ink); color: #fff; }
.slot:disabled {
  border-color: transparent;
  background: repeating-linear-gradient(-45deg, #f4eff3 0 6px, #ebe2e9 6px 8px);
  color: var(--muted);
  text-decoration: line-through;
  cursor: not-allowed;
}
.slots-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 0.75rem; }
.slots-legend span { width: 12px; height: 12px; border-radius: 4px; }
.legend-free { background: var(--mint-100); border: 1px solid var(--mint-ink); }
.legend-busy { margin-left: 8px; background: repeating-linear-gradient(-45deg, #f4eff3 0 3px, #d9ccd6 3px 4px); }

.confirm {
  position: relative;
  z-index: 3;
  grid-column: 1 / 8;
  align-self: end;
  margin-left: clamp(0px, 3vw, 36px);
}
.confirm-card > .step { margin-bottom: 12px; }
.confirm-card {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--mint);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}
.confirm-card.is-fresh { animation: confirm-pop 0.45s var(--ease); }
.confirm-check { float: right; width: 40px; height: 40px; margin: -4px 0 0 12px; }
.confirm-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 600;
}
.confirm-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-ink);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.confirm-what { margin-top: 6px; font-weight: 600; }
.confirm-when { color: var(--plum); font-size: 1.125rem; font-weight: 700; }
.confirm-where {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}
.confirm-remind { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--mint-ink); font-size: 0.8125rem; font-weight: 600; }
.confirm-remind svg { width: 16px; height: 16px; }
.confirm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--plum-900);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.confirm-cta:hover { background: var(--plum); color: #fff; }

@keyframes confirm-pop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (max-width: 1039px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .booking { max-width: 720px; }
}
@media (max-width: 719px) {
  .booking { display: flex; flex-direction: column; min-height: 0; }
  .frame-phone { align-self: flex-end; width: min(300px, 86%); margin-top: -28px; }
  .confirm { align-self: flex-start; width: min(340px, 92%); margin-top: -64px; }
}

/* ==========================================================================
   Modules: stamp card
   ========================================================================== */
.stampcard {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.stampcard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px clamp(20px, 3vw, 32px);
  background: var(--plum-900);
  color: var(--cream);
}
.stampcard-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.stampcard-brand svg { width: 28px; height: 28px; }
.stampcard-hint { color: var(--lavender); font-size: 0.875rem; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-touch { display: inline; }
  .hint-pointer { display: none; }
}
.stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
.stamp-field {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1.5px dashed var(--line-strong);
  transition: background-color 0.25s;
}
.stamp-field:nth-child(odd) { border-right: 1.5px dashed var(--line-strong); }
.stamp-field:nth-last-child(-n + 2) { border-bottom: 0; }
.stamp-field:focus-visible { outline-offset: -6px; border-radius: 18px; }
.stamp { position: relative; width: 104px; height: 104px; }
.stamp-ring { width: 100%; height: 100%; fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 6; }
.stamp-ink {
  position: absolute;
  inset: 4px;
  opacity: 0;
  transform: scale(1.5) rotate(-40deg);
  transition: opacity 0.2s, transform 0.4s var(--ease);
}
.stamp-field:focus .stamp-ink { opacity: 1; transform: scale(1) rotate(-12deg); }
.stamp-field:focus { background: var(--cream); }
@media (hover: hover) {
  .stamp-field:hover { background: var(--cream); }
  .stamp-field:hover .stamp-ink { opacity: 1; transform: scale(1) rotate(-12deg); }
}
/* Touch screens have no hover: stamp each field as it scrolls into view. */
@media (hover: none) {
  .stamp-field.is-seen .stamp-ink { opacity: 1; transform: scale(1) rotate(-12deg); }
}
.stamp-no { color: var(--gold-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.stamp-text h3 { margin-top: 2px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.stamp-text ul { margin-top: 12px; list-style: none; color: var(--ink-soft); font-size: 0.9375rem; }
.stamp-text li { position: relative; padding-left: 18px; }
.stamp-text li + li { margin-top: 6px; }
.stamp-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-ink);
}
.stampcard-foot {
  padding: 18px clamp(20px, 3vw, 32px);
  border-top: 1.5px dashed var(--line-strong);
  background: var(--gold-100);
  color: var(--ink);
  font-size: 0.9375rem;
}
@media (max-width: 859px) {
  .stamps { grid-template-columns: minmax(0, 1fr); }
  .stamp-field:nth-child(odd) { border-right: 0; }
  .stamp-field:nth-last-child(2) { border-bottom: 1.5px dashed var(--line-strong); }
}
@media (max-width: 520px) {
  .stamp-field { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; }
  .stamp { width: 68px; height: 68px; }
}

/* ==========================================================================
   Industries: switcher
   ========================================================================== */
.section-trades { background: var(--paper); }
.trade-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-tab {
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.trade-tab:hover { border-color: var(--plum); }
.trade-tab[aria-selected="true"] { border-color: var(--plum-900); background: var(--plum-900); color: var(--cream); }
.trade-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}
.trade-text h3 { font-family: var(--font-serif); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; }
.trade-text > p { margin-top: 12px; color: var(--ink-soft); }
.ticks { margin-top: 18px; list-style: none; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li + li { margin-top: 10px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.2em + 5px);
  width: 5px;
  height: 9px;
  border: solid var(--plum-900);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.trade-note {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--gold-100);
  font-size: 0.875rem;
}
.dayview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  list-style: none;
}
.dayview::before {
  content: attr(aria-label);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.dv-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; }
.dv-time { padding-top: 10px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dv-title {
  padding: 10px 12px;
  border-left: 4px solid;
  border-radius: 6px 12px 12px 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.dv-item.is-long .dv-title { min-height: 74px; }
.dv-item.is-plum .dv-title { border-color: var(--plum); background: var(--plum-100); }
.dv-item.is-mint .dv-title { border-color: var(--mint-ink); background: var(--mint-100); }
.dv-item.is-gold .dv-title { border-color: var(--gold-ink); background: var(--gold-100); }
.trades:not(.is-tabbed) .trade-panel + .trade-panel { margin-top: 16px; }
@media (max-width: 859px) {
  .trade-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .trade-tab { flex: 1 1 auto; padding: 0 14px; }
}

/* ==========================================================================
   Onboarding: two calendar weeks
   ========================================================================== */
.plan {
  display: grid;
  grid-template-columns: 96px repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* Vertical day lines: one tile per day column, starting after the week label. */
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 96px 0 / calc((100% - 96px) / 5) 100% repeat-x,
    var(--paper);
}
.plan-weekdays { display: contents; }
.plan-weekdays span {
  grid-row: 1;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--plum-100);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.plan-week {
  grid-column: 1 / -1;
  padding: 16px 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}
.plan-week-1 { grid-row: 2; }
.plan-week-2 { grid-row: 3; border-top: 1px solid var(--line); }
.plan-events { display: contents; list-style: none; }
.event {
  position: relative;
  z-index: 1;
  grid-column: var(--col);
  grid-row: var(--row);
  margin: 12px 8px;
  padding: 14px 14px 16px;
  border-left: 5px solid;
  border-radius: 6px 14px 14px 6px;
}
.event.is-plum { border-color: var(--plum); background: var(--plum-100); }
.event.is-mint { border-color: var(--mint-ink); background: var(--mint-100); }
.event.is-gold { border-color: var(--gold-ink); background: var(--gold-100); }
.event.is-launch { background: var(--mint); }
.event-when { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.plan .event-when span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.event h3 { margin-top: 4px; font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 600; }
.event p:last-child { margin-top: 6px; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5; }
.event.is-launch p { color: var(--plum-900); }
.plan-repeat {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 4;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1.5px dashed var(--line-strong);
  background: var(--cream);
  font-size: 0.9375rem;
}
.plan-repeat svg { flex: none; width: 22px; height: 22px; color: var(--plum); }
@media (max-width: 899px) {
  .plan { display: block; padding: 8px clamp(16px, 4vw, 28px) 0; background: var(--paper); }
  .plan-weekdays, .plan-week { display: none; }
  .plan-events { position: relative; display: grid; gap: 12px; padding: 16px 0 20px 22px; }
  .plan-events::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 26px;
    bottom: 28px;
    border-left: 2px dashed var(--line-strong);
  }
  .event { grid-column: auto; grid-row: auto; margin: 0; }
  .event::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--plum);
  }
  .plan .event-when span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .plan-repeat { margin-inline: calc(-1 * clamp(16px, 4vw, 28px)); }
}

/* ==========================================================================
   Operations: event detail sheet on plum
   ========================================================================== */
.section-ops { background: var(--plum-900); color: var(--cream); }
.ops {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.section-ops .section-head { margin-bottom: 0; }
.section-ops .slot-label { border-color: rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.07); }
.section-ops .slot-day { background: var(--mint); color: var(--plum-900); }
.section-ops .slot-time { color: var(--lavender); }
.section-ops .section-lead { color: var(--mist); }
.ops-more { margin-top: 20px; color: var(--mist); }
.ops-more a { color: var(--mint); }
.ops-more a:hover { color: #fff; }
.detail {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7);
}
.detail-head { padding: 22px 28px; background: var(--mint); }
.detail-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-head h3 { margin-top: 4px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.detail-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}
.detail-row:first-child { border-top: 0; }
.detail-row dt { display: flex; align-items: center; gap: 10px; color: var(--plum); font-weight: 700; }
.detail-row dt svg { flex: none; width: 20px; height: 20px; }
.detail-row dd { color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 899px) {
  .ops { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .detail-head, .detail-row { padding-inline: 18px; }
  .detail-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   FAQ: support ticket inbox
   ========================================================================== */
.inbox {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.inbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--plum-100);
}
.inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter span {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--plum-100);
  font-size: 0.75rem;
  text-align: center;
}
.filter:hover { border-color: var(--plum); }
.filter[aria-pressed="true"] { border-color: var(--plum-900); background: var(--plum-900); color: var(--cream); }
.filter[aria-pressed="true"] span { background: var(--plum); color: #fff; }
.inbox-status { color: var(--ink-soft); font-size: 0.8125rem; }
.tickets { list-style: none; }
.tickets li + li { border-top: 1px solid var(--line); }
.ticket summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto 18px;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: solid var(--plum);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.ticket[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.ticket summary:hover { background: var(--cream); }
.ticket summary:focus-visible { outline-offset: -3px; }
.t-no { color: var(--muted); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-subject { font-weight: 600; }
.t-cat {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.t-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.t-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticket.is-solved .t-status { background: var(--mint-100); color: var(--mint-ink); }
.t-reply {
  margin: 0 20px 20px 100px;
  padding: 16px 18px;
  border-left: 3px solid var(--mint-ink);
  border-radius: 4px 16px 16px 16px;
  background: var(--cream);
  color: var(--ink-soft);
}
.t-from { margin-bottom: 4px; color: var(--mint-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 759px) {
  .ticket summary {
    grid-template-columns: auto minmax(0, 1fr) auto 18px;
    grid-template-areas: 'no cat status chev' 'subject subject subject subject';
    gap: 8px 10px;
    padding: 14px 16px;
  }
  .t-no { grid-area: no; }
  .t-cat { grid-area: cat; justify-self: start; }
  .t-status { grid-area: status; }
  .ticket summary::after { grid-area: chev; }
  .t-subject { grid-area: subject; }
  .t-reply { margin: 0 16px 16px; }
  .inbox-bar { padding: 12px 16px; }
}

/* ==========================================================================
   Demo booking form
   ========================================================================== */
.section-demo { background: linear-gradient(var(--cream), var(--plum-100)); }
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.demo-form {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-legend { margin-bottom: 12px; padding: 0; font-weight: 700; }
.req { color: var(--plum); }
.opt { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.picker-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}
.picker-day { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.picker-time { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cell::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all 0.2s var(--ease);
}
.cell:hover { border-color: var(--plum); background: var(--plum-100); }
.cell:has(input:checked) { border-color: var(--plum); background: var(--plum); }
.cell:has(input:checked)::after {
  width: 8px;
  height: 14px;
  margin-top: -4px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
}
.cell:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.picker[aria-invalid="true"] .cell { border-color: var(--error); }
.formats { margin-top: 26px; }
.format-row { display: flex; flex-wrap: wrap; gap: 8px; }
.format {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.format input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.format:hover { border-color: var(--plum); }
.format:has(input:checked) { border-color: var(--plum); background: var(--plum-100); }
.fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1.5px dashed var(--line-strong);
}
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--plum); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--plum); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 24px; color: var(--ink-soft); font-size: 0.875rem; }
.btn-submit { margin-top: 18px; min-width: 260px; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); }
.form-status.is-success { background: var(--mint-100); }
.form-status.is-error { background: var(--error-100); color: var(--error); }

.invite { position: sticky; top: calc(var(--header-h) + 24px); }
.invite-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 8px solid var(--plum);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.invite-kicker { padding: 18px 22px 0; color: var(--gold-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.invite-card h3 { padding: 4px 22px 0; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; }
.invite-list { margin-top: 14px; }
.invite-list div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); }
.invite-list dt { padding-top: 2px; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.invite-list dd { font-weight: 600; }
.invite-list dd.is-set { color: var(--plum); }
.invite-contact {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--plum-900);
  color: var(--cream);
}
.invite-contact p + p { margin-top: 8px; }
.invite-contact p:first-child { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; }
.invite-contact a { color: var(--mint); font-weight: 600; }
.invite-contact a:hover { color: #fff; }
.invite-address { color: var(--mist); font-size: 0.875rem; }
@media (max-width: 959px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .invite { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .invite-contact { margin-top: 0; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .picker-grid { grid-template-columns: 40px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .picker-time { font-size: 0.75rem; }
  .btn-submit { width: 100%; min-width: 0; }
  .invite { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Footer: a stack of reminders
   ========================================================================== */
.site-footer { background: var(--plum-900); color: var(--cream); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-claim { margin-top: 20px; font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.375rem); font-style: italic; line-height: 1.2; }
.footer-address { margin-top: 24px; color: var(--mist); font-size: 0.9375rem; line-height: 1.75; }
.footer-address strong { color: var(--cream); }
.footer-hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  color: var(--mint);
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-hours::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(159 227 200 / 0.2); }
.reminders-head { margin-bottom: 12px; color: var(--lavender); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reminder-stack { position: relative; display: grid; gap: 10px; margin-bottom: 22px; list-style: none; }
/* Two cards peeking out underneath: the rest of the notification group. */
.reminder-stack::before, .reminder-stack::after {
  content: '';
  position: absolute;
  z-index: 0;
  height: 20px;
  border-radius: 0 0 16px 16px;
  background: var(--plum-card);
}
.reminder-stack::before { left: 14px; right: 14px; bottom: -10px; opacity: 0.7; }
.reminder-stack::after { left: 30px; right: 30px; bottom: -20px; opacity: 0.4; }
.reminder {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 14px 18px 14px 62px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  background: var(--plum-card);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}
.reminder::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8.5 12.5l7.5 10 7.5-14' fill='none' stroke='%232b1631' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.reminder::after {
  content: '';
  position: absolute;
  left: 37px;
  top: 12px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--plum-card);
  border-radius: 50%;
  background: var(--gold);
}
.reminder:hover { background: #47294f; transform: translateX(-4px); }
.reminder-meta { color: var(--lavender); font-size: 0.75rem; }
.reminder-title { color: var(--cream); font-size: 1rem; font-weight: 700; text-decoration: none; }
a.reminder-title::after, button.reminder-title::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
a.reminder-title:hover, button.reminder-title:hover { color: #fff; }
.reminder-title:focus-visible { outline-color: var(--mint); }
.reminder-text { color: var(--mist); font-size: 0.875rem; }
.reminder-text a { position: relative; z-index: 2; color: var(--mint); font-weight: 600; }
.reminder-text a:hover { color: #fff; }
.reminder-text a:focus-visible { outline-color: var(--mint); }
.reminder:has([aria-current]) { border-color: var(--mint); }
.footer-legal {
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: var(--lavender);
  font-size: 0.8125rem;
}
@media (max-width: 859px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Pages: legal documents
   ========================================================================== */
.doc { padding-bottom: var(--section-y); }
.doc-head { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) 28px; }
.doc-head h1 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.doc-sheet {
  width: min(860px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.prose { color: var(--ink); }
.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 600;
}
.prose h3 { margin: 24px 0 8px; font-size: 1.0625rem; font-weight: 700; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + dl, .prose dl + p { margin-top: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .lead { color: var(--ink-soft); font-size: 1.1875rem; }
.prose dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; }
.prose dt { font-weight: 700; }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--plum-100); font-size: 0.9em; }
.prose a { overflow-wrap: anywhere; }
.highlight { margin-top: 16px; padding: 18px 20px; border-left: 4px solid var(--plum); border-radius: 6px 14px 14px 6px; background: var(--plum-100); }
.highlight > * + * { margin-top: 8px; }
.highlight h3 { margin-top: 0; }
.toc { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.toc h2 { margin: 0 0 10px; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { columns: 2 240px; column-gap: 32px; }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--plum-100); }

/* Narrow screens: each cookie-table row becomes a stacked block of "label / value" pairs. */
@media (max-width: 899px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr { border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 4px 14px; border-bottom: 0; overflow-wrap: break-word; }
  .table-wrap td:first-child { padding-top: 14px; }
  .table-wrap td:last-child { padding-bottom: 14px; }
  .table-wrap td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
}
@media (max-width: 560px) {
  .highlight, .toc { padding: 14px; }
  .prose ul, .prose ol { padding-left: 1.1em; }
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose dd + dt { margin-top: 10px; }
}

/* ---------- 404: a cancelled appointment ---------- */
.notfound { padding-block: clamp(48px, 8vw, 110px) var(--section-y); }
.notfound-inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 900px; }
.cancelled {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  text-align: center;
  transform: rotate(-3deg);
}
.cancelled-month { padding: 10px; background: var(--plum); color: #fff; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cancelled-day { position: relative; padding: 18px 0 6px; font-family: var(--font-serif); font-size: 5rem; font-weight: 600; line-height: 1; }
.cancelled-day::after { content: ''; position: absolute; left: 22%; right: 22%; top: 56%; height: 5px; border-radius: 3px; background: var(--error); transform: rotate(-12deg); }
.cancelled-note { padding: 0 16px 18px; color: var(--error); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.notfound h1 { margin-top: 14px; font-family: var(--font-serif); font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; }
.notfound-text { margin-top: 14px; max-width: 32em; color: var(--ink-soft); font-size: 1.0625rem; }
.notfound .hero-actions { margin-top: 26px; }
@media (max-width: 640px) {
  .notfound-inner { grid-template-columns: minmax(0, 1fr); }
  .cancelled { justify-self: center; width: 200px; }
}

/* ==========================================================================
   Cookie consent: a notification card
   ========================================================================== */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(520px, 100% - 32px);
  padding: 18px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 60px -24px rgb(43 22 49 / 0.6);
}
.consent-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.consent-app { width: 20px; height: 20px; border-radius: 6px; background: var(--mint); box-shadow: inset 0 0 0 5px var(--mint), inset 0 0 0 10px var(--plum); }
.consent-title { margin-top: 8px; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.consent-text { margin-top: 6px; color: var(--ink-soft); font-size: 0.875rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.consent-btn {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--plum-900);
  border-radius: 999px;
  background: var(--plum-900);
  color: var(--cream);
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-btn:hover { border-color: var(--plum); background: var(--plum); }
.consent-link {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--plum);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.consent-link:hover { color: var(--plum-900); }
.consent-dialog {
  width: min(660px, 100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
}
.consent-dialog::backdrop { background: rgb(43 22 49 / 0.6); }
.consent-dialog-inner { padding: 28px clamp(20px, 4vw, 32px) clamp(20px, 4vw, 28px); border-top: 8px solid var(--mint); }
.consent-categories { margin-top: 18px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.consent-category { padding-block: 14px; border-bottom: 1px solid var(--line); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-category h3 { font-size: 1.0625rem; font-weight: 700; }
.consent-category p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9063rem; }
.consent-always { color: var(--mint-ink); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.consent-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 52px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--plum-100);
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background-color 0.2s;
}
.consent-switch input:checked + .consent-switch-track { border-color: var(--mint-ink); background: var(--mint-ink); }
.consent-switch input:checked + .consent-switch-track::after { background: #fff; transform: translateX(22px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--plum); outline-offset: 3px; }
.consent-btn-save { border-color: var(--plum); background: var(--plum); }
.consent-btn-save:hover { border-color: var(--plum-900); background: var(--plum-900); }
@media (max-width: 480px) {
  .consent { right: 10px; bottom: 10px; width: calc(100% - 20px); padding: 16px; }
}

/* ---------- Utilities ---------- */
/* Placed last so it wins over any component's display value. */
[hidden] { display: none; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .consent, .consent-dialog, .booking, .skip-link, .inbox-bar, .reminder-stack::before, .reminder-stack::after { display: none; }
  body, .section-ops, .site-footer { background: #fff; color: #000; }
  .trade-panel[hidden] { display: grid; }
}
