/* ==========================================================================
   Bookanty marketing site
   Plain CSS, no build step. Sections:
   1. Tokens  2. Base  3. Layout  4. Header  5. Buttons & small parts
   6. Hero & product mocks  7. Content blocks  8. Demos  9. Footer
   10. Utilities & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;
  --ink: #1F2F3E;
  --text: #33414D;
  --muted: #5E6B75;
  --border: #E6E2DA;
  --border-strong: #D3CEC4;
  --brand: #2D6263;
  --brand-strong: #214B4C;
  --brand-soft: #E2EEED;
  --brand-ink: #FFFFFF;
  --accent: #E07A5F;
  --accent-ink: #A9472F;
  --accent-soft: #FBE9E3;
  --ok: #2E7D32;
  --ok-soft: #E3F1E4;
  --warn: #8A5D00;
  --warn-soft: #FBF0D9;
  --bad: #B44D4D;
  --bad-soft: #F8E4E4;
  --focus: #2D6263;
  --dark-band: #1F2F3E;
  --dark-band-text: #D7E0E6;

  /* Table status colours, taken from the product's table map */
  --st-free-bg: #F8FAFC; --st-free-fg: #475569; --st-free-bd: #CBD5E1; --st-free-dot: #94A3B8;
  --st-up-bg: #E2E8F0;   --st-up-fg: #334155;   --st-up-bd: #94A3B8;   --st-up-dot: #475569;
  --st-res-bg: #DCFCE7;  --st-res-fg: #166534;  --st-res-bd: #86EFAC;  --st-res-dot: #22C55E;
  --st-occ-bg: #FEE2E2;  --st-occ-fg: #991B1B;  --st-occ-bd: #FCA5A5;  --st-occ-dot: #EF4444;

  /* Floor plan */
  --plan-bg: #FEFDFB;
  --plan-grid: rgb(31 47 62 / .05);
  --wall: #C8C2B8;
  --zone-a: #2D6A4F;
  --zone-b: #E07A5F;
  --counter: #8B7355;
  --planter: #7BA574;

  --shadow-sm: 0 1px 2px rgb(31 47 62 / .06), 0 1px 1px rgb(31 47 62 / .03);
  --shadow-md: 0 10px 24px -12px rgb(31 47 62 / .22), 0 2px 6px rgb(31 47 62 / .05);
  --shadow-lg: 0 30px 60px -24px rgb(31 47 62 / .35), 0 10px 24px -12px rgb(31 47 62 / .14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6263' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1720;
    --bg-alt: #121C26;
    --surface: #16212C;
    --surface-2: #1B2834;
    --ink: #F1F5F8;
    --text: #D3DCE3;
    --muted: #9AA9B5;
    --border: #253442;
    --border-strong: #34475A;
    --brand: #5FB3B0;
    --brand-strong: #7CC5C2;
    --brand-soft: #173533;
    --brand-ink: #0B1B1B;
    --accent: #F0937A;
    --accent-ink: #F4A893;
    --accent-soft: #3A2620;
    --ok: #6BCB77;
    --ok-soft: #173A1F;
    --warn: #E8B44C;
    --warn-soft: #3A2E12;
    --bad: #F08A8A;
    --bad-soft: #3F1D1D;
    --focus: #7CC5C2;
    --dark-band: #16212C;
    --dark-band-text: #C9D4DC;

    --st-free-bg: #1E293B; --st-free-fg: #CBD5E1; --st-free-bd: #475569; --st-free-dot: #94A3B8;
    --st-up-bg: #334155;   --st-up-fg: #E2E8F0;   --st-up-bd: #64748B;   --st-up-dot: #CBD5E1;
    --st-res-bg: #14532D;  --st-res-fg: #BBF7D0;  --st-res-bd: #22C55E;  --st-res-dot: #4ADE80;
    --st-occ-bg: #7F1D1D;  --st-occ-fg: #FECACA;  --st-occ-bd: #EF4444;  --st-occ-dot: #F87171;

    --plan-bg: #131E28;
    --plan-grid: rgb(255 255 255 / .04);
    --wall: #4B5966;
    --zone-a: #6FC59A;
    --zone-b: #F0937A;
    --counter: #A08867;
    --planter: #6E9A68;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 10px 24px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 60px -24px rgb(0 0 0 / .75), 0 10px 24px -12px rgb(0 0 0 / .5);

    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CC5C2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");

    color-scheme: dark;
  }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.35rem + 3.7vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h3 { font-size: clamp(1.12rem, 1.05rem + .35vw, 1.3rem); text-wrap: pretty; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink); font-weight: 700; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35em; }

code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .08em .38em;
  color: var(--ink);
  white-space: nowrap;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
/* Two sections with the same background in a row share one gap */
.section:not(.section-alt) + .section:not(.section-alt),
.section-alt + .section-alt { padding-top: 0; }

/* Skip rendering work for long sections until they are near the viewport */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }

.section-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.is-left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: .45em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .9rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head:not(.is-left) .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.05fr; }
  .split.is-reversed { grid-template-columns: 1.05fr 1fr; }
  .split.is-reversed > :first-child { order: 2; }
}
.split-copy h2 { margin-bottom: .5em; }

/* 4. Header ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
  }
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgb(31 47 62 / .4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.035em;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; margin-right: 1px; color: var(--ink); }
.brand-oo { color: var(--brand); }

.primary-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .4rem .75rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav-menu a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-lang a::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-cta { margin-left: 8px !important; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgb(31 47 62 / .45);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { min-height: 48px; padding-inline: .9rem; font-size: 1.0625rem; }
  .nav-cta { margin: 10px 0 0 !important; }
  .nav-cta .btn { width: 100%; }
}

/* 5. Buttons & small parts ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 22px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #FFFFFF; color: #1F2F3E; }
.btn-light:hover { background: #E9F3F2; color: #1F2F3E; }
.btn-outline-light { color: #FFFFFF; border-color: rgb(255 255 255 / .4); }
.btn-outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-lg { min-height: 54px; padding: .9rem 1.65rem; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-badge .icon { width: 23px; height: 23px; }
.icon-badge.is-accent { background: var(--accent-soft); color: var(--accent-ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-res-dot); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .75rem; }
.check-list li { position: relative; margin: 0; padding-left: 2.1rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft) var(--check) center / 13px no-repeat;
}

/* 6. Hero & product mocks -------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 88px) clamp(8px, 2vw, 24px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 78% 34%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(34% 32% at 8% 4%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.02fr; } }

.hero h1 .hl {
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--accent) 34%, transparent) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .04em;
}
.hero .lead { max-width: 36rem; margin-top: 1.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.hero-points .icon { color: var(--brand); width: 1.1em; height: 1.1em; }

/* Composite product mock used in the hero */
.hero-visual { position: relative; padding: 26px 0 0; }
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.mock-floor { position: relative; width: min(100%, 580px); margin-left: auto; padding: 16px 16px 18px; }
.mock-widget {
  position: relative;
  width: min(88%, 300px);
  margin: -64px 0 0 3%;
  padding: 16px;
  z-index: 2;
}
@media (min-width: 640px) {
  .hero-visual { min-height: 500px; }
  .mock-floor { width: 86%; }
  .mock-widget { position: absolute; left: 0; bottom: -10px; margin: 0; width: 290px; }
}
@media (min-width: 1000px) {
  .mock-floor { width: 92%; }
  .mock-widget { left: -28px; }
}

.mf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; }
.mf-title { font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.mf-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.mf-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-res-dot); animation: pulse 2.2s ease-out infinite; }
.mf-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.mf-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}
.mf-stat b { color: var(--ink); }
.mf-stat i { width: 7px; height: 7px; border-radius: 50%; }
.mf-stat .i-free { background: var(--st-free-dot); }
.mf-stat .i-res { background: var(--st-res-dot); }
.mf-stat .i-occ { background: var(--st-occ-dot); }

.plan {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--plan-bg);
  background-image:
    linear-gradient(var(--plan-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.zone {
  position: absolute;
  border: 2px solid var(--wall);
  border-radius: 6px;
}
.zone-a { left: 3%; top: 6%; width: 56%; height: 88%; background: color-mix(in srgb, var(--zone-a) 5%, transparent); }
.zone-b { left: 62%; top: 6%; width: 35%; height: 88%; background: color-mix(in srgb, var(--zone-b) 6%, transparent); }
.zone-label {
  position: absolute;
  top: 7px;
  left: 9px;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zone-a .zone-label { color: var(--zone-a); }
.zone-b .zone-label { color: var(--zone-b); }
.ob-counter {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--counter);
  color: #FFFFFF;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.ob-planter { position: absolute; border-radius: 3px; background: var(--planter); opacity: .85; }
.ob-wall { position: absolute; border-radius: 2px; background: var(--wall); }
.ob-pillar { position: absolute; border-radius: 50%; background: var(--wall); }

.mt {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
}
.mt.round { width: 9.5%; aspect-ratio: 1; border-radius: 50%; }
.mt.rect { width: 13%; aspect-ratio: 1.55; border-radius: 6px; }
.mt.wide { width: 17%; aspect-ratio: 2.1; border-radius: 6px; }
.is-free { background: var(--st-free-bg); color: var(--st-free-fg); border-color: var(--st-free-bd); }
.is-up   { background: var(--st-up-bg);   color: var(--st-up-fg);   border-color: var(--st-up-bd); }
.is-res  { background: var(--st-res-bg);  color: var(--st-res-fg);  border-color: var(--st-res-bd); }
.is-occ  { background: var(--st-occ-bg);  color: var(--st-occ-fg);  border-color: var(--st-occ-bd); }

/* Hero plan positions */
.hp-bar { left: 7%; top: 18%; width: 24%; height: 7%; }
.hp-pillar { left: 44.5%; top: 47%; width: 3%; aspect-ratio: 1; }
.hp-pl1 { left: 64%; top: 89%; width: 9%; height: 3%; }
.hp-pl2 { left: 86%; top: 89%; width: 9%; height: 3%; }
.hp-t1 { left: 13%; top: 37%; }
.hp-t2 { left: 27%; top: 37%; }
.hp-t3 { left: 46%; top: 24%; }
.hp-t4 { left: 13%; top: 70%; }
.hp-t5 { left: 31%; top: 72%; }
.hp-t6 { left: 49%; top: 70%; }
.hp-t7 { left: 71%; top: 26%; }
.hp-t8 { left: 88%; top: 26%; }
.hp-t9 { left: 71%; top: 52%; }
.hp-t10 { left: 88%; top: 52%; }
.hp-t11 { left: 79.5%; top: 76%; }

.mw-title { margin-bottom: 10px; color: var(--ink); font-weight: 800; font-size: .92rem; letter-spacing: -.01em; }
.mw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.mw-day {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 0;
  border-radius: 9px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}
.mw-day small { color: var(--muted); font-size: .54rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mw-day.is-off { opacity: .35; text-decoration: line-through; }
.mw-day.is-on { background: var(--brand); color: var(--brand-ink); }
.mw-day.is-on small { color: inherit; opacity: .85; }
.mw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .76rem;
  color: var(--muted);
}
.mw-row b { color: var(--ink); }
.mw-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.mw-time {
  padding: 7px 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--ink);
  font: 700 .74rem/1 var(--font-mono);
  text-align: center;
}
.mw-time.is-full { opacity: .4; text-decoration: line-through; font-weight: 400; }
.mw-time.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.mw-btn {
  padding: 10px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.mock-toast {
  position: absolute;
  z-index: 3;
  bottom: 6px;
  right: 1%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  line-height: 1.35;
  animation: toast-in .6s .9s cubic-bezier(.2, .8, .2, 1) both;
}
.mock-toast .icon-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.mock-toast .icon-badge .icon { width: 18px; height: 18px; }
.mock-toast b { display: block; font-size: .82rem; }
.mock-toast span { color: var(--muted); }
@media (max-width: 639px) { .mock-toast { display: none; } }

/* Widget mock shown on its own (not overlapping the floor plan) */
.mock-widget.is-inline {
  position: relative;
  inset: auto;
  width: min(100%, 340px);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.site-mock { display: grid; gap: 14px; padding: 18px; background: var(--surface-2); }
.site-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-mock-head b { color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.site-mock-head span { display: flex; gap: 10px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.site-mock-hero { padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #2B3B48, #1F2F3E); color: #E6EDF2; font-size: .8rem; }
.site-mock-hero b { display: block; color: #FFFFFF; font-size: 1.05rem; letter-spacing: -.01em; }

/* Hosted booking page mock */
.hosted-mock {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 36px) 18px;
  background:
    radial-gradient(60% 70% at 20% 10%, rgb(224 122 95 / .45), transparent 70%),
    radial-gradient(50% 60% at 85% 90%, rgb(45 98 99 / .55), transparent 70%),
    linear-gradient(160deg, #3A2A22, #1D2A33);
  color: #F4EFE9;
  text-align: center;
}
.hm-title { color: #FFFFFF; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.hm-sub { margin-top: -6px; color: rgb(244 239 233 / .8); font-size: .82rem; }
.hm-form, .hm-times { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hm-form span, .hm-times span {
  padding: 7px 11px;
  border-radius: 8px;
  background: rgb(255 255 255 / .94);
  color: #1F2F3E;
  font-size: .72rem;
  font-weight: 600;
}
.hm-times span { font-family: var(--font-mono); }
.hm-times .on { background: #2D6263; color: #FFFFFF; }
.hm-times .off { opacity: .45; text-decoration: line-through; }
.hm-btn { padding: 9px 22px; border-radius: 999px; background: #E07A5F; color: #FFFFFF; font-size: .8rem; font-weight: 800; }
.hm-menu { color: rgb(244 239 233 / .75); font-size: .68rem; letter-spacing: .02em; }

/* Facts strip under the hero */
.hero .facts { margin-top: clamp(48px, 7vw, 88px); }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 18px clamp(18px, 3vw, 28px);
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.facts li { display: flex; align-items: center; gap: .7rem; margin: 0; padding: 6px 0; color: var(--ink); font-weight: 650; font-size: .97rem; }
.facts .icon { color: var(--brand); width: 1.3em; height: 1.3em; }

/* Generic app window frame for screenshots built in HTML */
.frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame-bar span {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font: 500 .72rem/1.4 var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame-body { padding: clamp(14px, 2vw, 20px); }

/* Back-office mock: tiles, booking rows, availability grid */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tile small { display: block; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile b { font-size: 1.15rem; letter-spacing: -.02em; }

.rows { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; font-size: .78rem; }
.rows .r {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) .45fr .55fr .55fr .7fr;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.rows .r:first-child { border-top: 0; }
.rows .r.h { background: var(--surface-2); color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rows .r.g { border-top: 2px solid var(--border-strong); }
.rows .r b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r span { font-family: var(--font-mono); font-size: .74rem; }
@media (max-width: 520px) { .rows .r { grid-template-columns: minmax(0, 1.5fr) .5fr .6fr; } .rows .r > :nth-child(n+4) { display: none; } }

.avail { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.avail table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.avail th, .avail td { padding: 7px 9px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.avail tr:last-child th, .avail tr:last-child td { border-bottom: 0; }
.avail thead th { background: var(--surface-2); color: var(--muted); font: 700 .7rem/1.2 var(--font-mono); }
.avail tbody th { color: var(--muted); font-weight: 600; text-align: left; }
.avail td { font-family: var(--font-mono); color: var(--text); }
.c-ok { color: var(--ok) !important; font-weight: 700; }
.c-low { color: var(--warn) !important; font-weight: 700; }
.c-full { color: var(--bad) !important; font-weight: 700; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 9px; height: 9px; border-radius: 50%; }
.legend-inline .d-ok { background: var(--ok); }
.legend-inline .d-low { background: var(--warn); }
.legend-inline .d-full { background: var(--bad); }

/* Floor plan configurator mock */
.cfg { display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px; min-height: 330px; }
.cfg-side { padding: 12px; border-right: 1px solid var(--border); background: var(--surface-2); }
.cfg-side h4, .cfg-props h4 { margin: 0 0 8px; color: var(--muted); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.cfg-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.cfg-item {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: .56rem;
  font-weight: 700;
}
.cfg-item i { display: block; background: var(--border-strong); }
.cfg-item .s-round { width: 16px; height: 16px; border-radius: 50%; }
.cfg-item .s-rect { width: 22px; height: 14px; border-radius: 3px; }
.cfg-item .s-wall { width: 22px; height: 4px; background: var(--wall); }
.cfg-item .s-door { width: 4px; height: 16px; background: var(--wall); }
.cfg-item .s-pillar { width: 12px; height: 12px; border-radius: 50%; background: var(--wall); }
.cfg-item .s-counter { width: 22px; height: 8px; border-radius: 2px; background: var(--counter); }
.cfg-item .s-planter { width: 8px; height: 18px; border-radius: 2px; background: var(--planter); }
.cfg-canvas { position: relative; margin: 12px; }
.cfg-canvas .plan { aspect-ratio: auto; height: 100%; min-height: 250px; }
.cfg-sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.cfg-sel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}
.cfg-props { padding: 12px; border-left: 1px solid var(--border); font-size: .7rem; }
.cfg-props label { display: block; margin: 0 0 3px; color: var(--muted); font-weight: 700; }
.cfg-props .val { display: block; margin-bottom: 10px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); font-weight: 700; }
.cfg-props .rng { display: block; position: relative; height: 4px; margin: 8px 0 14px; border-radius: 4px; background: var(--border); }
.cfg-props .rng::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 40%); border-radius: 4px; background: var(--ink); }
.cfg-props .rng::after { content: ""; position: absolute; top: -5px; left: var(--v, 40%); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); }
.cfg-props .rng.v33 { --v: 33%; }
.cfg-props .rng.v25 { --v: 25%; }
.cp-t1 { left: 22%; top: 30%; } .cp-t2 { left: 45%; top: 30%; } .cp-t3 { left: 70%; top: 30%; }
.cp-t4 { left: 30%; top: 70%; } .cp-t5 { left: 65%; top: 70%; }
.cp-wall { left: 0; top: 0; width: 100%; height: 2.5%; }
.cp-door { left: 0; top: 40%; width: 1.6%; height: 18%; }
.cp-counter { left: 82%; top: 54%; width: 16%; height: 30%; }
@media (max-width: 700px) {
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg-side, .cfg-props { display: none; }
}

/* 7. Content blocks -------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 1rem 0 .45rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card-link { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font: 800 .85rem/1 var(--font-mono);
}
.steps.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .97rem; }

.status-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.status-flow .arrow { color: var(--muted); }

.feature-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin: 0; }
.feature-list h3 { margin: .1rem 0 .3rem; font-size: 1.08rem; }
.feature-list p { color: var(--muted); font-size: 1rem; }

.callout {
  margin: 1.5rem 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  border-left: 4px solid var(--brand);
  border-radius: 6px 14px 14px 6px;
  background: var(--brand-soft);
  color: var(--text);
}
.callout-title {
  display: block;
  margin-bottom: .35rem;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.callout.is-accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); border-left-color: var(--accent); background: var(--accent-soft); }
.callout.is-accent .callout-title { color: var(--accent-ink); }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table.data { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.data th, table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { color: var(--ink); font-weight: 700; }
table.data td.num { font-family: var(--font-mono); white-space: nowrap; }

.code {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 16px;
  background: #15202A;
  color: #E3EAF0;
  box-shadow: var(--shadow-md);
}
.code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.7;
  tab-size: 2;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  color: #9FB0BF;
  font: 600 .75rem/1 var(--font-mono);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 32px;
  padding: .3rem .7rem;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 8px;
  background: transparent;
  color: #E3EAF0;
  font: 600 .78rem/1 var(--font-sans);
  transition: background-color .2s, border-color .2s;
}
.copy-btn:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .3); }
.copy-btn .icon { width: 14px; height: 14px; }
.tk-tag { color: #7DD3C8; }
.tk-attr { color: #F4C27A; }
.tk-str { color: #B8E0A0; }
.tk-com { color: #7E909F; font-style: italic; }
.tk-key { color: #F49C85; }

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .4em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .65em; }
.faq .answer { padding: 0 22px 20px; color: var(--text); }

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: var(--dark-band);
  color: var(--dark-band-text);
}
@media (prefers-color-scheme: dark) { .cta-band { border: 1px solid var(--border); } }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  height: 160%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(95 179 176 / .32), transparent);
  pointer-events: none;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: .35em; }
.cta-band p { color: var(--dark-band-text); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(42% 46% at 82% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.page-hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); }
.page-hero .lead { max-width: 44rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* Long-form feature page */
.topic { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); }
.topic:first-of-type { border-top: 0; }
@media (min-width: 1000px) {
  .topic { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; }
  .topic-head { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}
.topic-head h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); }
.topic-head p { color: var(--muted); }
.topic-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.topic-body .card h3 { margin-top: 0; display: flex; align-items: center; gap: .65rem; }
.topic-body .card h3 .icon { color: var(--brand); }
.topic-body .card p, .topic-body .card li { color: var(--text); }
.topic-body .card ul { margin: .5rem 0 0; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul li, .prose ol li { margin-top: .4em; }

.h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); letter-spacing: -.02em; }
.setup-steps { display: grid; gap: .65rem; margin: .5rem 0 0; padding-left: 1.3rem; }
.setup-steps li { margin: 0; padding-left: .3rem; }
.setup-steps li::marker { color: var(--brand); font-weight: 800; }

/* Contact page */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink); font-weight: 700; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--bad); }
.form-note { color: var(--muted); font-size: .9rem; }
.form-status { min-height: 1.6em; font-weight: 700; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-bad { color: var(--bad); }
.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
}
.email-box a { font-weight: 700; font-size: 1.05rem; }
.email-box .btn { min-height: 38px; }

/* Language suggestion toast */
.lang-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: .95rem;
  animation: toast-in .35s cubic-bezier(.2, .8, .2, 1);
}
.lang-toast p { margin: 0; }
.lang-toast .btn { min-height: 38px; }
.lang-toast-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.lang-toast-close:hover { background: var(--surface-2); color: var(--ink); }

/* Cookie consent banner */
.consent {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 70;
  display: grid;
  gap: 14px;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: .95rem;
  animation: toast-in .35s cubic-bezier(.2, .8, .2, 1);
}
.consent-title { margin-bottom: .3em; font-size: 1.05rem; letter-spacing: 0; }
.consent p { margin: 0; }
.consent-prefs { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.consent-option { display: flex; align-items: flex-start; font-weight: 400; }
.consent-option input { margin-top: 1px; }
.consent-option input:disabled { opacity: .55; cursor: not-allowed; }
.consent-option strong { display: block; }
.consent-option-text { display: block; color: var(--muted); font-size: .9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .consent-actions .btn { flex: 1 1 auto; } }

/* 8. Demos ----------------------------------------------------------------- */
.demo {
  position: relative;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.demo-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-fallback { display: grid; place-items: center; gap: 10px; min-height: 260px; color: var(--muted); text-align: center; }
/* Reserve space before a demo loads so the page doesn't jump */
[data-demo="engine"]:not([data-ready]) { min-height: 620px; }
[data-demo="floor"]:not([data-ready]) { min-height: 720px; }
[data-demo="assign"]:not([data-ready]) { min-height: 560px; }
[data-demo="widget"]:not([data-ready]) { min-height: 680px; }
.demo-note { margin-top: 14px; color: var(--muted); font-size: .88rem; }

.ctl-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.ctl { display: grid; gap: 7px; min-width: 0; }
.ctl-label { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ctl-inline { display: flex; align-items: center; gap: 12px; }
.ctl output, .ctl .out { min-width: 3.2em; color: var(--ink); font: 800 1.05rem/1 var(--font-mono); }
.ctl input[type="range"] { width: min(260px, 60vw); accent-color: var(--brand); }
.ctl select {
  min-height: 42px;
  padding: .45rem 2rem .45rem .8rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { color: var(--border-strong); cursor: not-allowed; }
.stepper output { min-width: 2.2em; color: var(--ink); font: 800 1.05rem/1 var(--font-mono); text-align: center; }

.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background-color .2s;
}
.switch input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgb(0 0 0 / .25);
  transition: transform .2s;
}
.switch input:checked { background: var(--brand); }
.switch input:checked::before { transform: translateX(18px); }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.seg button {
  min-height: 34px;
  padding: .3rem .8rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  min-height: 34px;
  padding: .3rem .85rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Availability engine demo */
.eng { display: grid; gap: 20px; }
@media (min-width: 1040px) { .eng { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.eng-box { min-width: 0; padding: clamp(14px, 2vw, 20px); border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.eng-area { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 12px; color: var(--muted); font-size: .85rem; }
.eng-area b { color: var(--ink); }

.tl { --label-w: 128px; margin-top: 6px; }
.tl-scroll { overflow-x: auto; padding-bottom: 4px; }
.tl-inner { min-width: 520px; }
@media (max-width: 640px) {
  .tl { --label-w: 92px; }
  .tl-inner { min-width: 470px; }
  .tl-label { font-size: .74rem; }
}
.tl-axis { position: relative; height: 20px; margin-left: var(--label-w); color: var(--muted); font: 600 .66rem/1 var(--font-mono); }
.tl-axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl-rows { display: grid; gap: 5px; }
.tl-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; }
.tl-label { overflow: hidden; padding-right: 10px; color: var(--text); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.tl-label b { font-weight: 800; }
.tl-row.is-req .tl-label { color: var(--ink); font-weight: 800; }
.tl-track { position: relative; height: 26px; border-radius: 7px; background: var(--surface-2); }
.tl-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--open-l, 0);
  width: var(--open-w, 0);
  border-inline: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
}
.tl-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--l, 0);
  width: var(--w, 0);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 700 .66rem/1 var(--font-mono);
  white-space: nowrap;
  transition: left .25s ease, width .25s ease, background-color .2s, border-color .2s, opacity .2s, color .2s;
}
.tl-bar.is-hit { border-color: #E0A458; background: #FDEBCF; color: #7A4B00; }
@media (prefers-color-scheme: dark) { .tl-bar.is-hit { border-color: #B98327; background: #3D2E12; color: #F5C978; } }
.tl-bar.is-miss { opacity: .5; }
.tl-bar.is-req { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.tl-bar.is-req.is-bad { border-color: var(--bad); background: var(--bad); color: #FFFFFF; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 18px; height: 10px; border-radius: 3px; border: 1px solid var(--border-strong); background: var(--surface); }
.tl-legend .lg-req { border-color: var(--brand); background: var(--brand); }
.tl-legend .lg-hit { border-color: #E0A458; background: #FDEBCF; }
.tl-legend .lg-open { border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 9%, transparent); }

.verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.verdict .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.verdict.is-ok { color: var(--ok); }
.verdict.is-ok .icon-badge { background: var(--ok-soft); color: var(--ok); }
.verdict.is-bad { color: var(--bad); }
.verdict.is-bad .icon-badge { background: var(--bad-soft); color: var(--bad); }
.eng-msg { min-height: 3.3em; color: var(--text); font-size: .97rem; }
.meters { display: grid; gap: 14px; margin: 18px 0; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .86rem; }
.meter-top b { font-family: var(--font-mono); }
.meter-bar { height: 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-fill { width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s ease, background-color .2s; }
.meter.is-full .meter-fill { background: var(--warn); }
.meter.is-over .meter-fill { background: var(--bad); }
.checks { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--border); }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: .92rem; }

/* Table map demo */
.fm { display: grid; gap: 16px; }
.fm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.fm-time { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fm-time .out { min-width: 3.4em; color: var(--ink); font: 800 1.15rem/1 var(--font-mono); }
.fm-time input[type="range"] { width: min(240px, 52vw); accent-color: var(--brand); }
.fm-live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.fm-live.is-on { color: var(--ok); }
.fm-live .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fm-live.is-on .dot { animation: pulse 2.2s ease-out infinite; }
.fm-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-stat { min-width: 92px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.fm-stat small { display: block; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.fm-stat b { font: 800 1.2rem/1.3 var(--font-mono); }
.fm-stat.s-free b { color: var(--zone-a); }
.fm-stat.s-res b { color: var(--warn); }
.fm-stat.s-occ b { color: var(--bad); }
.fm-main { display: grid; gap: 16px; }
@media (min-width: 1040px) { .fm-main { grid-template-columns: minmax(0, 1fr) 320px; } }
.fm-plan-wrap { overflow-x: auto; border-radius: 16px; }
.fm-plan { min-width: 600px; }
.fm-table {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--tw);
  height: var(--th);
  display: grid;
  place-content: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid;
  border-radius: var(--tr, 50%);
  font: 800 .78rem/1.05 var(--font-sans);
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s, box-shadow .2s;
}
.fm-table small { display: block; font-size: .6rem; font-weight: 700; opacity: .85; }
.fm-table:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.fm-table[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plan-bg), 0 0 0 5px var(--ink); }
.fm-table.is-dim { opacity: .2; }
.fm-table.is-chosen { box-shadow: 0 0 0 3px var(--plan-bg), 0 0 0 6px var(--brand); }
.fm-table[data-status="free"] { background: var(--st-free-bg); color: var(--st-free-fg); border-color: var(--st-free-bd); }
.fm-table[data-status="upcoming"] { background: var(--st-up-bg); color: var(--st-up-fg); border-color: var(--st-up-bd); }
.fm-table[data-status="reserved"] { background: var(--st-res-bg); color: var(--st-res-fg); border-color: var(--st-res-bd); }
.fm-table[data-status="seated"] { background: var(--st-occ-bg); color: var(--st-occ-fg); border-color: var(--st-occ-bd); }
.fm-ob { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 3px; }
.fm-ob.wall { background: var(--wall); border-radius: 2px; }
.fm-ob.counter { display: grid; place-items: center; background: var(--counter); color: #FFFFFF; font-size: .55rem; font-weight: 800; letter-spacing: .14em; }
.fm-ob.planter { background: var(--planter); opacity: .85; }
.fm-ob.pillar { border-radius: 50%; background: var(--wall); }
.fm-ob.door { background: var(--plan-bg); border-inline: 2px solid var(--wall); }
.fm-zone { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 2px solid var(--wall); border-radius: 6px; }
.fm-zone.zone-dining { background: color-mix(in srgb, var(--zone-a) 5%, transparent); }
.fm-zone.zone-terrace { background: color-mix(in srgb, var(--zone-b) 6%, transparent); }
.fm-zone .zone-label { font-size: .64rem; }
.fm-zone.zone-dining .zone-label { color: var(--zone-a); }
.fm-zone.zone-terrace .zone-label { color: var(--zone-b); }
.fm-tip {
  position: absolute;
  z-index: 5;
  min-width: 170px;
  max-width: 230px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: .78rem;
  line-height: 1.45;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}
.fm-tip b { color: var(--ink); }
.fm-tip.is-below { transform: translate(-50%, 10px); }
.fm-form h4 { color: var(--ink); font-size: 1rem; }
.fm-panel { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); min-height: 300px; }
.fm-panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 1.15rem; }
.fm-panel .meta { color: var(--muted); font-size: .88rem; }
.fm-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.fm-panel dt { color: var(--muted); }
.fm-panel dd { margin: 0; color: var(--ink); font-weight: 700; }
.fm-panel .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-panel .btn { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.fm-form { display: grid; gap: 12px; }
.fm-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-form label { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fm-form input, .fm-form select {
  min-height: 42px;
  padding: .45rem .7rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.fm-warn { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; font-weight: 600; }
.fm-hint { display: grid; place-items: center; gap: 10px; min-height: 240px; color: var(--muted); text-align: center; font-size: .95rem; }
.fm-hint .icon { width: 34px; height: 34px; color: var(--border-strong); }
.fm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; }
.fm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fm-legend i { width: 11px; height: 11px; border-radius: 50%; }
.fm-legend .d-free { background: var(--st-free-dot); }
.fm-legend .d-up { background: var(--st-up-dot); }
.fm-legend .d-res { background: var(--st-res-dot); }
.fm-legend .d-occ { background: var(--st-occ-dot); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--st-free-dot)); }
.status-dot[data-status="free"] { --dot: var(--st-free-dot); color: var(--st-free-fg); }
.status-dot[data-status="upcoming"] { --dot: var(--st-up-dot); color: var(--st-up-fg); }
.status-dot[data-status="reserved"] { --dot: var(--st-res-dot); color: var(--st-res-fg); }
.status-dot[data-status="seated"] { --dot: var(--st-occ-dot); color: var(--st-occ-fg); }
@media (prefers-color-scheme: dark) {
  .status-dot[data-status="free"], .status-dot[data-status="upcoming"] { color: var(--text); }
  .status-dot[data-status="reserved"] { color: var(--st-res-dot); }
  .status-dot[data-status="seated"] { color: var(--st-occ-dot); }
}

/* Auto-assignment demo */
.as { display: grid; gap: 20px; }
@media (min-width: 1040px) { .as { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.as-result { display: grid; gap: 12px; }
.as-pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: 16px; background: var(--brand-soft); }
.as-pick b { font-size: 1.15rem; }
.as-pick.is-none { border-color: var(--border); background: var(--surface-2); }
.as-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.as-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.as-list .rank { color: var(--muted); font: 800 .8rem/1 var(--font-mono); }
.as-list .name { color: var(--ink); font-weight: 800; }
.as-list .sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.as-list li.is-chosen { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.as-list li.is-out { opacity: .72; }
.as-plan .fm-plan { min-width: 0; }

/* Booking widget demo */
.wd { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .wd { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
.bkw {
  --w-primary: #2D6263;
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 640px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.bkw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bkw-steps i { height: 4px; border-radius: 4px; background: var(--border); transition: background-color .3s; }
.bkw-steps i.is-done { background: var(--w-primary); }
.bkw-title { margin: 0; font-size: 1.25rem; }
.bkw-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bkw-cal-head b { color: var(--ink); text-transform: capitalize; }
.bkw-nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.bkw-nav:disabled { opacity: .35; cursor: not-allowed; }
.bkw-nav .icon { width: 18px; height: 18px; }
.bkw-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.bkw-dow { padding: 4px 0; color: var(--muted); font-size: .66rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.bkw-day {
  aspect-ratio: 1;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  transition: background-color .15s, color .15s;
}
.bkw-day:hover:not(:disabled) { background: color-mix(in srgb, var(--w-primary) 12%, transparent); }
.bkw-day.is-today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-primary) 60%, transparent); }
.bkw-day[aria-pressed="true"] { background: var(--w-primary); color: #FFFFFF; }
.bkw-day:disabled { color: var(--muted); opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.bkw-day.is-blank { visibility: hidden; }
.bkw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bkw-fields.is-single { grid-template-columns: 1fr; }
.bkw-field { display: grid; gap: 5px; }
.bkw-field label { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bkw-field select, .bkw-field input, .bkw-field textarea {
  width: 100%;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
}
.bkw-field textarea { min-height: 76px; resize: vertical; }
.bkw-field select:focus-visible, .bkw-field input:focus-visible, .bkw-field textarea:focus-visible {
  outline: none;
  border-color: var(--w-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-primary) 22%, transparent);
}
.bkw-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bkw-time {
  min-height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 700 .85rem/1 var(--font-mono);
  transition: background-color .15s, border-color .15s, color .15s;
}
.bkw-time:hover:not(:disabled) { border-color: var(--w-primary); }
.bkw-time[aria-pressed="true"] { background: var(--w-primary); border-color: var(--w-primary); color: #FFFFFF; }
.bkw-time:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.bkw-msg { min-height: 1.4em; color: var(--muted); font-size: .88rem; }
.bkw-msg.is-bad { color: var(--bad); font-weight: 600; }
.bkw-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--w-primary);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  transition: filter .15s, opacity .15s;
}
.bkw-btn:hover:not(:disabled) { filter: brightness(1.08); }
.bkw-btn:disabled { opacity: .45; cursor: not-allowed; }
.bkw-btn.is-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.bkw-terms { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .88rem; }
.bkw-terms input { width: 18px; height: 18px; margin-top: .15em; accent-color: var(--w-primary); }
.bkw-terms a { color: var(--w-primary); }
.bkw-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border-radius: inherit;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  font-weight: 700;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid color-mix(in srgb, var(--w-primary, var(--brand)) 20%, transparent);
  border-top-color: var(--w-primary, var(--brand));
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.bkw-done { display: grid; justify-items: center; gap: 6px; padding-top: 10px; text-align: center; }
.bkw-done svg { width: 72px; height: 72px; }
.bkw-done circle, .bkw-done path { fill: none; stroke: #8EC343; stroke-width: 2; }
.bkw-done circle { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw .8s ease-out forwards; }
.bkw-done path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .55s ease-out forwards; }
.bkw-summary { display: grid; gap: 0; margin: 6px 0 4px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.bkw-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .92rem; }
.bkw-summary div:first-child { border-top: 0; }
.bkw-summary dt { color: var(--muted); }
.bkw-summary dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.bkw-locator { font-family: var(--font-mono); letter-spacing: .08em; }
.bkw-skeleton { display: grid; gap: 10px; }
.bkw-skeleton i { height: 40px; border-radius: 10px; background: var(--surface-2); }

.wd-side { display: grid; gap: 16px; }
.wd-card { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.wd-card h3 { margin-bottom: .6rem; font-size: 1.05rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; padding: 0; border: 0; }
.swatches legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span {
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.06); }
.swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.sw-1 { --c: #2D6263; } .sw-2 { --c: #2E7D32; } .sw-3 { --c: #B5523A; } .sw-4 { --c: #1F2F3E; } .sw-5 { --c: #6B3FA0; } .sw-6 { --c: #1D4ED8; }
.event-log {
  min-height: 120px;
  max-height: 220px;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border-radius: 12px;
  background: #15202A;
  color: #CFE3D8;
  font: 500 .8rem/1.6 var(--font-mono);
  white-space: pre-wrap;
}

/* 9. Footer ---------------------------------------------------------------- */
.site-footer {
  padding-block: 56px 28px;
  background: #18242F;
  color: #B9C6D0;
  font-size: .95rem;
}
@media (prefers-color-scheme: dark) { .site-footer { background: #0B1219; border-top: 1px solid var(--border); } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand-mark { color: #FFFFFF; }
.site-footer .brand-oo { color: #7CC5C2; }
.site-footer h2 { margin-bottom: 14px; color: #FFFFFF; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer li { margin: 0; }
.site-footer a { color: #DCE5EB; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-link { padding: 0; border: 0; background: none; color: #DCE5EB; text-align: left; }
.footer-link:hover { color: #FFFFFF; text-decoration: underline; }
.footer-tagline { max-width: 30ch; margin-top: 14px; color: #9FB0BD; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: #8FA1AF;
  font-size: .88rem;
}

/* 10. Utilities & motion --------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); }
  70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Fade sections in as they scroll into view, where the browser supports it.
   Elsewhere everything is simply visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: none; }
    }
  }
}

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

@media print {
  .site-header, .site-footer, .lang-toast, .consent, .demo, .hero-visual, .cta-band { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}
